This commit is contained in:
孟帅
2024-03-07 20:08:56 +08:00
parent 6dd8cbadad
commit 0fbc1ad47c
246 changed files with 9441 additions and 2293 deletions

View File

@@ -4,7 +4,7 @@
<n-button>
<template #icon>
<n-icon size="20">
<component :is="formValue !== '' ? formValue : 'AntDesignOutlined'" />
<component :is="formValue !== '' ? formValue : AntDesignOutlined" />
</n-icon>
</template>
</n-button>
@@ -38,6 +38,8 @@
<script lang="ts">
import { computed, defineComponent, ref, shallowReactive } from 'vue';
import * as AntdIcons from '@vicons/antd';
import { AntDesignOutlined } from '@vicons/antd';
export default defineComponent({
name: 'AntdSelector',
components: AntdIcons,
@@ -80,6 +82,7 @@
onUpdatePage,
onIconClick,
formValue,
AntDesignOutlined,
};
},
});

View File

@@ -7,7 +7,12 @@
<template v-else>
<AntdSelector v-model:value="formValue" />
</template>
<n-input v-bind="$props" :value="formValue" :style="{ width: '70%' }" />
<n-input
v-bind="$props"
:value="formValue"
:style="{ width: '70%' }"
placeholder="请选择图标"
/>
</n-input-group>
</div>
</template>