import { defineComponent } from 'vue' import { OhVueIcon, addIcons } from 'oh-vue-icons' import { MdUpload, FaEye } from 'oh-vue-icons/icons' import upload from './upload' import 'viewerjs/dist/viewer.css' import { api as showViewer } from 'v-viewer' import { globalToast } from '@/main' import useUserStore from '@/user/useUserStore' import useRouterStore from '@/useRouterStore' addIcons(MdUpload, FaEye) // !清 asyncLoader 加载使用 export default defineComponent({ props: { ratio: { type: Number, default: 1 }, width: { type: Number, default: 64 }, value: { type: String, default: '' }, size: { type: Number, default: 4 } }, emits: { 'update:value': (() => true) as (val: string) => boolean }, setup(props, ctx) { let input: HTMLInputElement | null = null return () => (