mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-16 14:13:46 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
44
web/src/components/IconSelector/index.vue
Normal file
44
web/src/components/IconSelector/index.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div>
|
||||
<n-input-group>
|
||||
<n-input v-bind="$props" :value="formValue" :style="{ width: '70%' }" />
|
||||
<template v-if="option === 'ionicons5'">
|
||||
<Ionicons5Selector v-model:value="formValue" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<AntdSelector v-model:value="formValue" />
|
||||
</template>
|
||||
</n-input-group>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { basicProps } from '@/components/IconSelector/props';
|
||||
import Ionicons5Selector from '@/components/IconSelector/Ionicons5Selector.vue';
|
||||
import AntdSelector from '@/components/IconSelector/AntdSelector.vue';
|
||||
export default defineComponent({
|
||||
name: 'BasicUpload',
|
||||
components: { Ionicons5Selector, AntdSelector },
|
||||
props: {
|
||||
...basicProps,
|
||||
},
|
||||
emits: ['update:value'],
|
||||
setup(props, { emit }) {
|
||||
const formValue = computed({
|
||||
get() {
|
||||
return props.value;
|
||||
},
|
||||
set(value) {
|
||||
emit('update:value', value);
|
||||
},
|
||||
});
|
||||
|
||||
return {
|
||||
formValue,
|
||||
};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less"></style>
|
||||
Reference in New Issue
Block a user