mirror of
https://github.com/bufanyun/hotgo.git
synced 2026-02-19 12:54:32 +08:00
发布v2.13.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user