This commit is contained in:
oneao committed 2025-08-30 17:31:30 +08:00
1 parent 208f6e3124
commit 8f4c696bdd
23 files changed
+1060 -330

No files matched your search

@@ -0,0 +1,23 @@
import type { PropType } from 'vue'
import { Icon } from '@iconify/vue'
import { defineComponent } from 'vue'
export default defineComponent({
name: 'AIcon',
props: {
icon: { type: String as PropType<string>, required: true },
width: { type: String, default: '24px' },
height: { type: String, default: '24px' },
color: { type: String, default: 'currentColor' }, // 默认颜色使用 currentColor,支持继承父元素的颜色
},
setup(props) {
return () => (
<Icon
icon={props.icon}
width={props.width}
height={props.height}
style={{ color: props.color, verticalAlign: 'middle' }}
/>
)
},
})