This commit is contained in:
oneao committed 2025-09-03 17:31:30 +08:00
1 parent de2351e1b2
commit ab0489f692
22 files changed
+1100 -300

No files matched your search

@@ -11,29 +11,20 @@ export default defineComponent({
size: { type: Number, default: 16 },
color: { type: String, default: 'currentColor' },
spin: { type: Boolean, default: false },
rotate: { type: Number, default: 360 },
},
setup(props) {
const prefixCls = getPrefixCls('icon')
return () => (
<i
class={props.spin ? `${prefixCls}-spin` : ''}
style={{
'display': 'inline-flex',
'alignItems': 'center',
'justifyContent': 'center',
'color': props.color,
'--rotate-angle': `${props.rotate}deg`,
}}
class={[prefixCls, props.spin && `${prefixCls}-spin`]}
>
<Icon
icon={props.icon}
width={props.size}
height={props.size}
style={{
verticalAlign: 'middle',
}}
color={props.color}
style={{ verticalAlign: 'middle' }}
/>
</i>
)