import { computed, defineComponent, reactive } from 'vue' import useLayoutStore from '../useLayoutStore' import { ConfigProvider, Form, Input, theme } from 'ant-design-vue' import { OhVueIcon, addIcons } from 'oh-vue-icons' import { MdUpload, MdImage } from 'oh-vue-icons/icons' addIcons(MdUpload, MdImage) const TypeSelector = defineComponent({ props: { value: { type: Number, default: 0 }, icon: { type: String, default: '' }, text: { type: String, default: '' }, color: { type: String, default: '' }, background: { type: String, default: '' } }, emits: { 'update:value': (() => true) as (val: number) => boolean, 'update:icon': (() => true) as (val: string) => boolean }, setup(props, ctx) { return () => (