feat(projects): 添加组件名称,调整vue文件里面的类型声明位置

This commit is contained in:
Soybean
2022-07-10 14:02:00 +08:00
parent b60db89801
commit f64bc91ce2
76 changed files with 223 additions and 70 deletions

View File

@@ -29,6 +29,8 @@ import { ref, computed } from 'vue';
import { Icon } from '@iconify/vue';
import { useThemeStore } from '@/store';
defineOptions({ name: 'IconSelect' });
interface Props {
/** 选中的图标 */
value: string;
@@ -38,14 +40,14 @@ interface Props {
emptyIcon?: string;
}
interface Emits {
(e: 'update:value', val: string): void;
}
const props = withDefaults(defineProps<Props>(), {
emptyIcon: 'mdi:apps'
});
interface Emits {
(e: 'update:value', val: string): void;
}
const emit = defineEmits<Emits>();
const theme = useThemeStore();