@qynpm/ui 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -86
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/{index-kiAR2M_e.mjs → index-B0zL9hEY.mjs} +1 -1
- package/dist/shared/{index-hEy-3mcr.mjs → index-CaDqecpT.mjs} +8 -8
- package/dist/shared/{index-CltDZpF9.cjs → index-D5DmmUX2.cjs} +1 -1
- package/dist/shared/{index-CpvFUems.cjs → index-DqsG1Mam.cjs} +1 -1
- package/dist/shared/index-gcsw_rtX.mjs +3529 -0
- package/dist/shared/index-uhxRj2ZT.cjs +1 -0
- package/index.d.ts +69 -63
- package/package.json +459 -459
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +60 -2
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/dist/shared/index-4wZQbpy3.mjs +0 -3457
- package/dist/shared/index-BvKFjDgX.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const pe=require("element-plus"),e=require("vue"),Se=require("@element-plus/icons-vue"),C=require("element-plus"),he=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Yt=require("./index-DqsG1Mam.cjs"),en=require("./index.vue_vue_type_script_setup_true_lang-5gku7Zwv.cjs"),tn=require("clsx"),Ut=require("@vueuse/core"),nn=require("./index-DIs6iPjF.cjs"),on=require("./index-BDdhBEFr.cjs"),ln=require("./index-rcu9CzSn.cjs"),an=require("./index.vue_vue_type_style_index_0_lang-DccRGtZE.cjs"),rn=require("./index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs"),sn=require("./index-Bmw9BNXm.cjs"),un=require("./index.vue_vue_type_script_setup_true_lang-CuXBYNXZ.cjs"),cn=require("./index-CCZttbsg.cjs"),dn=require("./index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs"),fn=require("./index-CwzztWPU.cjs"),mn=require("./index-BWDaV6FO.cjs"),pn=require("./index.vue_vue_type_script_setup_true_lang-DkDEcB4G.cjs"),qe=require("./index-DLLDXfic.cjs"),jt=require("./index-D5DmmUX2.cjs"),Ce=require("./index-BpI0jwYK.cjs"),yn=require("./index-Bxz4crCd.cjs"),gn=require("./index-BxvS3vlc.cjs"),hn=require("./index.vue_vue_type_script_lang-DMrpLmWN.cjs"),vn=require("./index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs"),wn=require("./index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs"),bn=require("./index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs"),kn=require("./index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs"),xn=require("./index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs"),Sn=require("./index.vue_vue_type_style_index_0_lang-D9DraThL.cjs"),Cn=require("./index.vue_vue_type_script_lang-DLmUPDR5.cjs"),Vn=require("./index.vue_vue_type_script_lang-D42aRlO2.cjs"),Bn=require("./index.vue_vue_type_script_lang-BO9Ju_i0.cjs"),_n=require("./index-D-YyFaZ6.cjs"),Ht=require("./index-B6xIO6kg.cjs"),Qn=require("./index.vue_vue_type_style_index_0_lang-CL_IFx-Z.cjs"),In=require("./index.vue_vue_type_script_lang-CCL57H5c.cjs"),qn=require("./index.vue_vue_type_script_lang-CKZUcaZ5.cjs"),$n=require("./index.vue_vue_type_script_lang-BgapsQjI.cjs"),En=require("./index.vue_vue_type_script_lang-8AT3-xU-.cjs"),Nn=require("./index.vue_vue_type_script_lang-By3jd4gw.cjs"),Tn=require("./index.vue_vue_type_script_lang-CIOi2ahp.cjs"),Mn=require("./index.vue_vue_type_script_lang-DpSaB5eg.cjs"),An=require("./index.vue_vue_type_style_index_0_lang-DUgOOzEZ.cjs"),zn=require("./index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs"),Dn=require("./index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs"),Fn=require("./index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs"),Rn=require("./index.vue_vue_type_script_lang-Bc3tktk9.cjs"),Pn=require("./index.vue_vue_type_script_lang-Cv4Pf58E.cjs"),On=require("./index.vue_vue_type_script_lang-CwrbII5c.cjs"),Ln=require("./index.vue_vue_type_style_index_0_lang-lmRmXLwB.cjs"),Un=require("./index.vue_vue_type_style_index_0_lang-Cn3P9d4L.cjs"),Kn=require("./index.vue_vue_type_script_lang-BkoqbceR.cjs"),jn=require("./index.vue_vue_type_script_lang-CfjfZCT3.cjs"),Hn=require("./index.vue_vue_type_script_lang-WJ63_A7F.cjs"),Wn=require("./index.vue_vue_type_style_index_0_lang-DOfJV2oz.cjs"),b=require("./install-c8il9DQv.cjs"),Ve=require("./index-Dvf1zJ7h.cjs"),Zn=require("./index.vue_vue_type_script_setup_true_lang-S6QPMZay.cjs"),Gn=require("./utils-D2KAQCCB.cjs"),Xn=require("@qynpm/hooks");/*! js-cookie v3.0.8 | MIT */function be(n){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var t in K)t!=="__proto__"&&(n[t]=K[t])}return n}var Jn={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Be(n,$){function K(a,P,m){if(!(typeof document>"u")){m=be({},$,m),typeof m.expires=="number"&&(m.expires=new Date(Date.now()+m.expires*864e5)),m.expires&&(m.expires=m.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var y="";for(var p in m)m[p]&&(y+="; "+p,m[p]!==!0&&(y+="="+m[p].split(";")[0]));return document.cookie=a+"="+n.write(P,a)+y}}function t(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var P=document.cookie?document.cookie.split("; "):[],m={},y=0;y<P.length;y++){var p=P[y].split("="),Q=p.slice(1).join("=");try{var V=decodeURIComponent(p[0]);if(V in m||(m[V]=n.read(Q,V)),a===V)break}catch{}}return a?m[a]:m}}return Object.create({set:K,get:t,remove:function(a,P){K(a,"",be({},P,{expires:-1}))},withAttributes:function(a){return Be(this.converter,be({},this.attributes,a))},withConverter:function(a){return Be(be({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze($)},converter:{value:Object.freeze(n)}})}var Wt=Be(Jn,{path:"/"});const Yn="Admin-Token";function eo(n=Yn){return Wt.get(n)}const to={class:"qy-upload__hint"},no=["placeholder","disabled"],oo=["src"],lo={key:1,class:"qy-upload__tip"},ao={class:"error"},ro={class:"error"},io=Object.assign({name:"QyUpload"},{__name:"index",props:{modelValue:{type:[Object,Array,String],default:void 0},defaultValue:{type:Object,default:()=>({files:"",text:""})},valueFormat:{type:String,default:"object"},showText:{type:Boolean,default:!0},showPasteInput:{type:Boolean,default:!1},pastePlaceholder:{type:String,default:"输入文字"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},limit:{type:Number,default:9},isShowTip:{type:Boolean,default:!1},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"file"},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"default"},disableDrag:{type:Boolean,default:!1},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","change","success","error","remove"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.ref(null),m=e.ref([]),y=e.ref(null),p=e.ref(null),Q=[];let V=!1;const D=e.ref(!1),A=e.ref([]),E=e.ref(0),O=e.ref(!1),L=e.ref(""),I=e.ref(""),T=new Set,j=e.ref(!1),H=e.ref(""),F=e.ref(!1);e.onMounted(()=>{t.modelValue===void 0&&h(t.defaultValue)});const Y=e.computed(()=>({large:"160px",default:"140px",small:"80px"})[t.size]??t.size),U=e.computed(()=>t.disabled),J=e.computed(()=>{var l;return t.isShowTip&&(t.fileSize||((l=z.value)==null?void 0:l.length))}),z=e.computed(()=>{var l;return(l=t.fileType)!=null&&l.length?t.fileType.map(i=>i.toLowerCase()):t.supportVideo?["mp4","mov","avi"]:["jpg","jpeg","png","gif","webp"]}),w=e.computed(()=>{const l=t.supportVideo?1:t.limit;return m.value.length>=l}),B=e.computed(()=>z.value.map(l=>`.${l}`).join(",")),o=e.computed(()=>({"qy-upload--reached-limit":w.value,"qy-upload--disabled":t.disabled,"qy-upload--video":t.supportVideo,"qy-upload--without-text":!t.showText&&!t.showPasteInput}));e.watch(H,()=>{V||le()}),e.watch(()=>t.modelValue,l=>{l!==void 0&&h(l)},{immediate:!0,deep:!0});function s(l){return Array.isArray(l)?l.filter(Boolean):l?String(l).split(",").filter(Boolean):[]}function N(l){return Array.isArray(l)?{files:l,text:""}:typeof l=="string"?{files:s(l),text:""}:l&&typeof l=="object"?{files:s(l.files),text:l.text??""}:{files:[],text:""}}function Z(l=[]){return l.map((i,x)=>({name:String(i).split("/").pop()||`file-${x}`,url:i,status:"success",uid:Date.now()+x}))}function u(l){const i=new Set(l.map(S=>S.url)),x=m.value.filter(S=>S.status==="uploading"&&!i.has(S.url));return[...l,...x]}function h(l){const i=N(l);V=!0,H.value=i.text,m.value=u(Z(i.files)),e.nextTick(()=>{V=!1})}function _(l){return t.valueFormat==="array"?l.files:t.valueFormat==="string"?l.files.join(","):l}function q(){var l;(l=y.value)==null||l.focus()}function ne(l){l.target.value=""}function le(l){const S={files:(l??m.value).filter(M=>M.status==="success"&&M.url).map(M=>M.url),text:H.value};a("update:modelValue",_(S)),a("change",S),t.callBack&&t.callBack(S)}function se(l,i){le(i),a("remove",l,i)}function ue(l){var x;const i=(l==null?void 0:l.name)||"";return i.includes(".")&&((x=i.split(".").pop())==null?void 0:x.toLowerCase())||""}function me(l){var M,X,te;const i=((X=(M=l==null?void 0:l.type)==null?void 0:M.toLowerCase)==null?void 0:X.call(M))||"",x={"image/jpeg":["jpg","jpeg"],"image/png":["png"],"image/gif":["gif"],"image/bmp":["bmp"],"image/webp":["webp"],"video/mp4":["mp4"],"video/quicktime":["mov"],"video/x-msvideo":["avi"],"video/webm":["webm"]};if(x[i])return x[i];const S=(te=i.split("/")[1])==null?void 0:te.split("+")[0];return S?[S]:[]}function g(l){const i=ue(l),x=me(l);return[i,...x].some(S=>z.value.includes(S))}function W(l){return l.size/1024/1024<t.fileSize?g(l)?!0:(C.ElMessage.warning(`格式不支持,仅允许: ${z.value.join("/")}`),!1):(C.ElMessage.warning(`文件大小不能超过${t.fileSize}M`),!1)}async function r(l,i,x,S){const M=v(l);try{const X=await t.uploadRequest({file:l,formData:M,api:t.api,name:t.name,tokenKey:t.tokenKey,extraData:t.extraData}),te=f(X);if(!te){const re=new Error("上传失败,未返回文件地址");C.ElMessage.error(re.message),a("error",re),x==null||x(re);return}C.ElMessage.success("上传成功"),i==null||i({...typeof X=="object"&&X?X:{},url:te})}catch(X){C.ElMessage.error("上传失败"),a("error",X),x==null||x(X)}finally{S.close()}}function v(l){const i=new FormData;return i.append(t.name,l),t.extraData&&Object.entries(t.extraData).forEach(([x,S])=>i.append(x,S)),i}function f(l){var S,M;if(typeof l=="string")return l;const i=l||{},x=i.urls??i.url??((S=i.data)==null?void 0:S.urls)??((M=i.data)==null?void 0:M.url)??"";return Array.isArray(x)?x[0]||"":x||""}function k(l,i,x,S){var Ot,Lt;const M=((Ot=P.value)==null?void 0:Ot.$el.querySelector(".el-upload--picture-card"))||((Lt=P.value)==null?void 0:Lt.$el),X=C.ElLoading.service({target:M,text:"上传中",background:"rgba(255,255,255,0.7)"});if(t.uploadRequest){r(l,x,S,X);return}const te=t.api.startsWith("http")?t.api:window.location.origin+t.api.replace(/^([^/])/,"/$1"),re=v(l),ie=new XMLHttpRequest;Q.push(ie);const fe=()=>{const oe=Q.indexOf(ie);oe!==-1&&Q.splice(oe,1),X.close()};ie.open("POST",te);const Pt=eo(t.tokenKey);Pt&&ie.setRequestHeader("Authorization",`Bearer ${Pt}`),ie.upload.onprogress=oe=>{oe.total>0&&(i==null||i({percent:oe.loaded/oe.total*100}))},ie.onload=()=>{if(fe(),ie.status<200||ie.status>=300){const oe=`上传失败 (HTTP ${ie.status})`;C.ElMessage.error(oe),a("error",{msg:oe,status:ie.status}),S==null||S(new Error(oe));return}try{const oe=JSON.parse(ie.responseText);oe.code===200&&oe.urls?(C.ElMessage.success("上传成功"),x==null||x({...oe,url:oe.urls})):(C.ElMessage.error(oe.msg||"上传失败"),a("error",oe),S==null||S(oe))}catch{C.ElMessage.error("上传失败,响应格式错误"),a("error",new Error("Response parse error")),S==null||S(new Error("Response parse error"))}},ie.onerror=()=>{fe(),C.ElMessage.error("上传失败,网络异常"),a("error",new Error("Network error")),S==null||S(new Error("Network error"))},ie.send(re)}function ee(l){return t.disabled?!1:W(l)}function G(l,i){const x=m.value.find(S=>{var M;return S.uid===(l==null?void 0:l.uid)||((M=S.raw)==null?void 0:M.uid)===(l==null?void 0:l.uid)});x&&(x.url=i,x.status="success")}function ce(l){k(l.file,l.onProgress,i=>{G(l.file,i.url),l.onSuccess(i),le(),a("success",i)},i=>l.onError(i))}function ae(l){var S;if(!l.url)return;const i=((S=l.url.split(".").pop())==null?void 0:S.toLowerCase())||"";if(["mp4","mov","avi","webm"].includes(i)){L.value=l.url,I.value=l.name||"视频预览",O.value=!0;return}const x=m.value.filter(M=>{var X;return M.status==="success"&&M.url&&!["mp4","mov","avi","webm"].includes((X=M.url.split(".").pop())==null?void 0:X.toLowerCase())});A.value=x.map(M=>M.url),E.value=x.findIndex(M=>M.uid===l.uid)||0,D.value=!0}function de(){D.value=!1,A.value=[]}function ye(l,i){if(l.name&&ue(l))return l;const x=me(l).find(S=>z.value.includes(S));return x?new File([l],`paste-${Date.now()+i}.${x}`,{type:l.type,lastModified:l.lastModified}):l}function we(l){for(let i=0;i<l.length;i++){const x=ye(l[i],i);if(!ee(x))continue;const S=Date.now()+i,M=URL.createObjectURL(x);T.add(M),m.value.push({uid:S,name:x.name||`file-${S}`,status:"uploading",percentage:0,url:M}),k(x,X=>{const te=m.value.find(re=>re.uid===S);te&&(te.percentage=X.percent)},X=>{const te=m.value.find(re=>re.uid===S);te&&(te.status="success",te.url=X.url,le(),a("success",X))},()=>R(S))}}function ke(l){const i=Array.from((l==null?void 0:l.files)||[]).filter(X=>{var te;return(te=X.type)==null?void 0:te.startsWith("image/")});if(i.length)return i;const x=l==null?void 0:l.items;if(!x)return[];const S=[],M=new Set;for(let X=0;X<x.length;X++){const te=x[X];if(te.kind==="file"&&te.type.startsWith("image/")){const re=te.getAsFile();re&&!M.has(re)&&(M.add(re),S.push(re))}}return S}function ve(l){if(t.disabled)return;const i=ke(l.clipboardData);i.length&&(l.preventDefault(),we(i))}function ge(){t.disabled||t.disableDrag||(j.value=!0)}function c(){j.value=!1}function d(l){var x;if(j.value=!1,t.disabled||t.disableDrag||w.value)return;const i=Array.from(((x=l.dataTransfer)==null?void 0:x.files)||[]).filter(S=>{var M;return z.value.includes((M=S.name.split(".").pop())==null?void 0:M.toLowerCase())});i.length&&we(i)}function R(l){var x;const i=m.value.findIndex(S=>S.uid===l);i!==-1&&((x=m.value[i].url)!=null&&x.startsWith("blob:")&&(URL.revokeObjectURL(m.value[i].url),T.delete(m.value[i].url)),m.value.splice(i,1))}return e.onBeforeUnmount(()=>{Q.forEach(l=>l.abort()),Q.length=0,T.forEach(l=>URL.revokeObjectURL(l)),T.clear()}),$({openFileDialog:()=>{var l,i;t.disabled||w.value||(i=(l=P.value)==null?void 0:l.$el.querySelector('input[type="file"]'))==null||i.click()},getPathList:()=>m.value.filter(l=>l.status==="success").map(l=>l.url),clearFiles:()=>{m.value=[],H.value="",le()},getValue:()=>({files:m.value.filter(l=>l.status==="success"&&l.url).map(l=>l.url),text:H.value}),getModelValue:()=>_({files:m.value.filter(l=>l.status==="success"&&l.url).map(l=>l.url),text:H.value})}),(l,i)=>{var ie;const x=pe.ElIcon,S=pe.ElInput,M=pe.ElPopover,X=pe.ElUpload,te=pe.ElImageViewer,re=pe.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-upload",o.value]),style:e.normalizeStyle({"--qy-upload-size":Y.value})},[e.createVNode(X,{ref_key:"uploadRef",ref:P,"file-list":m.value,"onUpdate:fileList":i[6]||(i[6]=fe=>m.value=fe),action:"#",multiple:n.supportVideo?!1:n.multiple,limit:n.supportVideo?1:n.limit,"list-type":n.supportVideo?"text":"picture-card",accept:B.value,disabled:U.value,"http-request":ce,"before-upload":ee,"on-preview":ae,"on-remove":se},{default:e.withCtx(()=>[w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-upload__trigger",{"is-dragover":j.value}]),onPaste:ve,onDragover:e.withModifiers(ge,["prevent"]),onDragleave:e.withModifiers(c,["prevent"]),onDrop:e.withModifiers(d,["prevent"])},[e.createVNode(x,{class:"qy-upload__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Plus))]),_:1}),n.supportVideo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i[9]||(i[9]=e.createElementVNode("span",{class:"qy-upload__label"},"点击上传视频",-1)),e.createElementVNode("span",to,"支持 "+e.toDisplayString(z.value.join(" / "))+",不超过 "+e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.showText?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-upload__text",onClick:i[3]||(i[3]=e.withModifiers(()=>{},["stop"])),onPaste:e.withModifiers(ve,["stop"])},[e.createVNode(M,{visible:F.value,"onUpdate:visible":i[2]||(i[2]=fe=>F.value=fe),placement:"bottom-start",width:220,trigger:"click","popper-class":"qy-upload__text-popover",onAfterEnter:q},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-upload__text-preview",{"is-placeholder":!H.value}])},e.toDisplayString(H.value||n.pastePlaceholder),3)]),default:e.withCtx(()=>[e.createVNode(S,{ref_key:"inputRef",ref:y,modelValue:H.value,"onUpdate:modelValue":i[0]||(i[0]=fe=>H.value=fe),type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:n.pastePlaceholder,disabled:n.disabled,onBlur:i[1]||(i[1]=fe=>F.value=!1),onPaste:e.withModifiers(ve,["stop"])},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["visible"])],32)):n.showPasteInput?(e.openBlock(),e.createElementBlock("div",{key:2,class:"qy-upload__text",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),onPaste:e.withModifiers(ve,["stop"])},[e.createElementVNode("input",{ref_key:"pasteInputRef",ref:p,class:"qy-upload__paste-input",placeholder:n.pastePlaceholder,disabled:n.disabled,onPaste:e.withModifiers(ve,["stop"]),onInput:ne,onClick:i[4]||(i[4]=e.withModifiers(()=>{},["stop"]))},null,40,no)],32)):e.createCommentVNode("",!0)],34))]),_:1},8,["file-list","multiple","limit","list-type","accept","disabled"]),D.value?(e.openBlock(),e.createBlock(te,{key:0,"url-list":A.value,"initial-index":E.value,onClose:de},null,8,["url-list","initial-index"])):e.createCommentVNode("",!0),e.createVNode(re,{modelValue:O.value,"onUpdate:modelValue":i[7]||(i[7]=fe=>O.value=fe),title:I.value,width:"640px","append-to-body":"","destroy-on-close":"",onClose:i[8]||(i[8]=fe=>O.value=!1)},{default:e.withCtx(()=>[O.value?(e.openBlock(),e.createElementBlock("video",{key:0,src:L.value,controls:"",autoplay:"",style:{width:"100%","max-height":"400px","border-radius":"4px"}},null,8,oo)):e.createCommentVNode("",!0)]),_:1},8,["modelValue","title"]),J.value?(e.openBlock(),e.createElementBlock("div",lo,[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Se.InfoFilled))]),_:1}),e.createElementVNode("span",null,[i[12]||(i[12]=e.createTextVNode(" 请上传 ",-1)),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i[10]||(i[10]=e.createTextVNode("大小不超过 ",-1)),e.createElementVNode("b",ao,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),(ie=z.value)!=null&&ie.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i[11]||(i[11]=e.createTextVNode(",格式为 ",-1)),e.createElementVNode("b",ro,e.toDisplayString(z.value.join("/")),1)],64)):e.createCommentVNode("",!0),i[13]||(i[13]=e.createTextVNode(" 的文件。 ",-1))])])):e.createCommentVNode("",!0)],6)}}}),Zt=he._export_sfc(io,[["__scopeId","data-v-1e380be1"]]),so=Object.assign({name:"QyImageUpload",inheritAttrs:!1},{__name:"index",props:{modelValue:{type:[String,Array],default:""},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"files"},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},mode:{type:String,default:"default"},voucher:{type:Boolean,default:!1},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},isShowTip:{type:Boolean,default:!1},limit:{type:Number,default:void 0},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"128px"},disableDrag:{type:Boolean,default:!1},showPasteInput:{type:Boolean,default:!0},pastePlaceholder:{type:String,default:"粘贴图片上传"},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","change","success","error","remove","updateImg"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=["jpg","jpeg","png","gif","bmp","webp"],p=e.computed(()=>t.voucher||t.mode==="voucher"),Q=e.computed(()=>Array.isArray(t.modelValue)?t.modelValue.filter(Boolean):t.modelValue?String(t.modelValue).split(",").filter(Boolean):[]),V=e.computed(()=>t.supportVideo?1:p.value?t.limit??30:t.limit??(t.multiple?9:1)),D=e.computed(()=>{var o;return(o=t.fileType)!=null&&o.length?t.fileType:p.value&&!t.supportVideo?y:[]});function A(o){return Array.isArray(o)?o.filter(Boolean):[]}function E(o){const s=A(o);return t.multiple?s:s[0]||""}function O(o){a("update:modelValue",E(o))}function L(o){a("change",E(o==null?void 0:o.files))}function I(o){var Z,u;if(typeof o=="string")return o;const s=o||{},N=s.url??s.urls??((Z=s.data)==null?void 0:Z.url)??((u=s.data)==null?void 0:u.urls)??"";return Array.isArray(N)?N[0]||"":N||""}function T(o){const s=I(o);s&&a("updateImg",s),a("success",B(),o)}function j(o){a("error",o)}function H(o,s){a("remove",o,s)}function F(){var o,s;(s=(o=m.value)==null?void 0:o.openFileDialog)==null||s.call(o)}function Y(){var o,s;(s=(o=m.value)==null?void 0:o.clearFiles)==null||s.call(o)}function U(){var o,s;return((s=(o=m.value)==null?void 0:o.getPathList)==null?void 0:s.call(o))||[]}const J=e.computed(()=>U()),z=e.computed(()=>U());function w(){return U()}function B(){const o=U();return t.multiple?o:o[0]||""}return $({openFileDialog:F,clearFiles:Y,getPathList:U,getFullPathList:w,fullPathList:J,pathList:z,getValue:B}),(o,s)=>(e.openBlock(),e.createBlock(Zt,e.mergeProps({ref_key:"uploadRef",ref:m},e.unref(P),{"model-value":Q.value,"value-format":"array",api:n.api,name:n.name,multiple:n.multiple,disabled:n.disabled,"file-type":D.value,"file-size":n.fileSize,limit:V.value,"is-show-tip":n.isShowTip,"token-key":n.tokenKey,"support-video":n.supportVideo,size:n.size,"disable-drag":n.disableDrag,"call-back":n.callBack,"extra-data":n.extraData,"upload-request":n.uploadRequest,"show-text":!1,"show-paste-input":n.showPasteInput,"paste-placeholder":n.pastePlaceholder,"onUpdate:modelValue":O,onChange:L,onSuccess:T,onError:j,onRemove:H}),null,16,["model-value","api","name","multiple","disabled","file-type","file-size","limit","is-show-tip","token-key","support-video","size","disable-drag","call-back","extra-data","upload-request","show-paste-input","paste-placeholder"]))}}),uo={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},co={key:0},fo={key:1},mo={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},po={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},yo={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},go={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},ho={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},vo={class:"flex items-center gap-2"},wo={class:"text-sm text-gray-700 truncate max-w-[200px]"},bo={class:"flex items-center gap-2"},Kt=5,xe=2e3,_e=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!1},title:{default:""},width:{default:"50%"},showFooter:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},confirmText:{default:"确 认"},cancelText:{default:"取 消"},confirmLoading:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},top:{default:"15vh"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},size:{default:"default"},zIndex:{default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(n,{expose:$,emit:K}){let t=0;const a=n,P=e.useSlots(),m=e.ref(!0),y=e.ref(!1),p=e.ref(xe),Q=e.ref(null),D=Ut.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),A=e.computed(()=>{const f=[];return a.showCancel&&f.push("cancel"),a.showConfirm&&f.push("confirm"),f}),E=e.computed(()=>({CancelButton:e.createVNode(se),ConfirmButton:e.createVNode(ne)})),O=e.computed(()=>!!(P.footer||a.showFooter)),L=e.ref(!1),I=e.ref(!1);let T=!1,j=document.activeElement instanceof HTMLElement?document.activeElement:null;const H=e.ref(a.showFullscreen&&D?!0:a.fullscreen),F=K,Y=e.computed(()=>a.open);e.watchEffect(()=>{Y.value&&(L.value=!1)}),e.watch(()=>a.open,(f,k)=>{if(f){L.value=!1,I.value=!1,j=document.activeElement instanceof HTMLElement?document.activeElement:j,k===!1&&F("open-change",!0);return}k&&!L.value&&(L.value=!0,F("open-change",!1),F("close","external"))}),e.watch(()=>a.confirmLoading,f=>{f?T=!0:T&&(T=!1,I.value=!1)}),$({handleMinimize:v});const U=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,J=e.ref(!1);let z=!1;const w=e.ref(null),{x:B,y:o}=Ut.useDraggable(w,{initialValue:{x:5,y:window.innerHeight-100-t*60},onMove(f){var k;(k=w.value)==null||k.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),B.value=Math.max(0,Math.min(window.innerWidth-300,f.x)),o.value=Math.max(0,Math.min(window.innerHeight-50,f.y))},onEnd(){var f;(f=w.value)==null||f.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),s=e.computed(()=>({transform:`translate(${B.value}px, ${o.value}px)`,willChange:"transform"}));function N(f){const k=f.target,{scrollTop:ee,scrollHeight:G,clientHeight:ce}=k;m.value=ee<=Kt,y.value=G-(ee+ce)<=Kt}function Z(){const f=document.querySelector(`.${U}.el-dialog`);f&&(Q.value=f,f.addEventListener("scroll",N)),W(),F("opened")}function u(){H.value=!H.value,W()}function h(f){a.confirmLoading&&f!=="external"||L.value||(L.value=!0,r(),F("update:open",!1),F("open-change",!1),(f==="cancel"||f==="header")&&F("cancel"),F("close",f))}function _(){F("closed"),e.nextTick(()=>{j!=null&&j.isConnected&&j.focus()})}function q(f){a.showFullscreen&&f.detail>=2&&u()}function ne(){return e.h(C.ElButton,{type:"primary",class:"dialog__footerBtn",loading:a.confirmLoading,disabled:a.confirmDisabled||a.confirmLoading||I.value,onClick:le},()=>a.confirmText)}function le(){I.value||a.confirmLoading||a.confirmDisabled||(I.value=!0,F("confirm"),a.closeOnConfirm&&h("confirm"))}function se(){return e.h(C.ElButton,{class:"dialog__footerBtn",onClick:()=>h("cancel")},()=>a.cancelText)}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=xe),W(),document.addEventListener("keydown",me),document.addEventListener("mousedown",g)});function ue(){var G,ce;const f=(G=document.querySelector(`.${U}`))==null?void 0:G.closest(".el-overlay");if(!f)return!1;const ee=Array.from(document.querySelectorAll(".el-overlay")).filter(ae=>window.getComputedStyle(ae).display!=="none").map((ae,de)=>({overlay:ae,order:de,zIndex:Number.parseInt(window.getComputedStyle(ae).zIndex||"0",10)}));return ee.sort((ae,de)=>ae.zIndex-de.zIndex||ae.order-de.order),((ce=ee.at(-1))==null?void 0:ce.overlay)===f}function me(f){f.key!=="Escape"||!a.open||!a.closeOnEscape||a.confirmLoading||!ue()||(f.preventDefault(),h("escape"))}function g(f){if(!a.open||!a.closeOnOverlay||a.confirmLoading||!ue()||!(f.target instanceof Node))return;const k=document.querySelector(`.${U}.el-dialog`),ee=k==null?void 0:k.closest(".el-overlay");!k||!ee||!ee.contains(f.target)||k.contains(f.target)||h("overlay")}function W(){var de;const f=Array.from(document.querySelectorAll(".el-overlay")).filter(ye=>window.getComputedStyle(ye).display!=="none"&&!ye.classList.contains("is-message")),k=(de=document.querySelector(`.${U}`))==null?void 0:de.closest(".el-overlay"),ee=document.querySelector(`.${U}.el-dialog`);if(!k||!ee)return;const G=xe;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||G;const ae=Math.max(window.qyDialogMaxZIndex,...f.map(ye=>parseInt(window.getComputedStyle(ye).zIndex||G.toString())))+2;window.qyDialogMaxZIndex=ae,e.nextTick(()=>{k.style.zIndex=ae.toString(),ee.style.zIndex=(ae+1).toString(),p.value=ae+1})}e.onUnmounted(()=>{var f;document.removeEventListener("keydown",me),document.removeEventListener("mousedown",g),(f=Q.value)==null||f.removeEventListener("scroll",N),r()});function r(){if(!z){J.value=!1;return}z=!1,t=Math.max(0,t-1),J.value=!1}function v(){var k;const f=(k=document.querySelector(`.${U}`))==null?void 0:k.closest(".el-overlay");!f||!a.open||(J.value?(J.value=!1,f.style.display="block",z&&(z=!1,t=Math.max(0,t-1)),W()):(J.value=!0,f.style.display="none",z=!0,t+=1,o.value=window.innerHeight-50-t*60))}return(f,k)=>{const ee=pe.ElIcon,G=pe.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(G,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[a.size==="small"&&"[&_.el-dialog__header]:!hidden",U]]),"model-value":Y.value,title:a.title,width:a.width,top:a.top,"align-center":"","append-to-body":"","destroy-on-close":a.destroyOnClose,"lock-scroll":a.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,fullscreen:H.value,"z-index":p.value,onClosed:_,onOpened:Z,draggable:a.draggable},e.createSlots({header:e.withCtx(()=>[a.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:m.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:q},[e.createElementVNode("div",uo,[e.unref(P).header?e.unref(P).header?(e.openBlock(),e.createElementBlock("div",fo,[e.renderSlot(f.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",co,e.toDisplayString(a.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},[a.size==="default"&&a.minimizable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(v,["stop"]),onMousedown:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},[...k[7]||(k[7]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)])],32)):e.createCommentVNode("",!0),a.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(u,["stop"]),onMousedown:k[1]||(k[1]=e.withModifiers(()=>{},["stop"]))},[H.value?(e.openBlock(),e.createElementBlock("span",po)):(e.openBlock(),e.createElementBlock("span",mo))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:k[2]||(k[2]=e.withModifiers(ce=>h("header"),["stop"])),onMousedown:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},[...k[8]||(k[8]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)])],32)],32)],36)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(tn)(H.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:O.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:a.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[a.size==="small"?(e.openBlock(),e.createElementBlock("div",yo,[e.createVNode(ee,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:k[5]||(k[5]=ce=>h("header"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Close))]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default")],6)]),_:2},[a.showFooter&&!f.$slots.footer&&Array.isArray(A.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",go,[e.createElementVNode("div",null,[e.renderSlot(f.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":y.value},"qy-dialog__footer flex items-center justify-end"])},[A.value.includes("cancel")?(e.openBlock(),e.createBlock(se,{key:0})):e.createCommentVNode("",!0),A.value.includes("confirm")?(e.openBlock(),e.createBlock(ne,{key:1})):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"footer-append")],2)])]),key:"0"}:O.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":y.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(f.$slots,"footer",{layouts:E.value,layoutsNode:Object.values(E.value)})],2)]),key:"1"}:void 0]),1032,["class","model-value","title","width","top","destroy-on-close","lock-scroll","fullscreen","z-index","draggable"]),e.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:w,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([s.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",ho,[e.createElementVNode("div",vo,[k[9]||(k[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",wo,e.toDisplayString(a.title),1)]),e.createElementVNode("div",bo,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(v,["stop"])},[...k[10]||(k[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:k[6]||(k[6]=e.withModifiers(ce=>h("header"),["stop"]))},[...k[11]||(k[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,J.value]])])}}});function Qe(n){const $=n==null?void 0:n.match(/(\[url\:(.*?)\])(.*)/);return $?{imageUrl:$[2],text:$[3]}:{imageUrl:"",text:n||""}}function Gt(n){const $=String(n||"").match(/(\[url\:.*?\])([\s\S]*)/);return $?$[2]:n}function Ie(n,$){return $?`[url:${$}]${n}`:n}const ko={class:"qy-remark-image__field"},xo={key:1,class:"qy-remark-image__divider"},So={class:"qy-remark-image__upload-anchor"},Co={key:0,class:"icon-[line-md--loading-twotone-loop]",role:"img","aria-hidden":"true"},Vo={key:1,class:"icon-[ion--cloud-upload-outline]",role:"img","aria-hidden":"true"},Bo={key:2,class:"icon-[ph--images-thin]",role:"img","aria-hidden":"true"},_o={class:"qy-remark-image__popover"},Qo=["src"],Io={class:"qy-remark-image__popover-footer"},qo=e.defineComponent({__name:"index",props:{defaultValue:{default:""},defaultImage:{default:""},rows:{default:6},width:{default:""},autosize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"粘贴图片上传"},type:{default:"textarea"},layout:{default:"default"},selectValue:{type:[String,Number,Boolean],default:""},selectOptions:{default:()=>[]},selectDisabled:{type:Boolean,default:!1},api:{default:"/permission-api/common/uploads"},tokenKey:{default:"Admin-Token"},uploadName:{default:"files"},uploadRequest:{}},emits:["change","update:selectValue","select-change"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=e.ref(""),p=e.ref(""),Q=e.ref(!1),V=e.computed(()=>t.layout==="select-prefix"),D=e.computed(()=>({"qy-remark-image--select-prefix":V.value})),A=e.computed(()=>V.value||t.type==="text"?"text":"textarea"),E=e.computed(()=>{if(t.width)return{width:typeof t.width=="number"?`${t.width}px`:t.width}});e.watch(()=>t.defaultValue,w=>{const B=Qe(w||"");y.value=B.text,p.value=B.imageUrl||t.defaultImage||""},{immediate:!0}),e.watch(()=>t.defaultImage,w=>{w!==void 0&&!Qe(t.defaultValue||"").imageUrl&&(p.value=w||"")},{immediate:!0}),e.onMounted(()=>{e.nextTick(L)}),e.onUnmounted(()=>{const w=O();w&&w.removeEventListener("paste",F)});function O(){var w,B;return((w=m.value)==null?void 0:w.textarea)||((B=m.value)==null?void 0:B.input)||null}function L(){const w=O();w&&(w.removeEventListener("paste",F),w.addEventListener("paste",F))}function I(w){y.value=Gt(w||"")}function T(w){a("update:selectValue",w),a("select-change",w)}function j(){p.value="",z()}function H(){y.value="",p.value="",z()}async function F(w){var s;const o=Array.from(((s=w.clipboardData)==null?void 0:s.files)||[]).find(N=>N.type.startsWith("image/"));o&&(w.preventDefault(),await Y({file:o,onError:()=>{},onProgress:()=>{},onSuccess:()=>{}}))}async function Y(w){var B,o;if(w.file.size>51200*1e3)return C.ElMessage.error("图片过大"),!1;Q.value=!0;try{const s=await U(w);return p.value=J(s),z(),C.ElMessage.success("上传图片成功"),(B=w.onSuccess)==null||B.call(w,s),!0}catch(s){return(o=w.onError)==null||o.call(w,s),C.ElMessage.error("上传失败"),!1}finally{Q.value=!1}}async function U(w){const B=new FormData;if(B.append(t.uploadName,w.file),t.uploadRequest)return t.uploadRequest({file:w.file,formData:B,options:w,api:t.api,tokenKey:t.tokenKey});const o=Wt.get(t.tokenKey);return(await fetch(t.api,{method:"POST",body:B,credentials:"include",headers:o?{Authorization:`Bearer ${o}`}:void 0})).json()}function J(w){var s,N;if(typeof w=="string")return w;const B=w,o=(B==null?void 0:B.urls)??((s=B==null?void 0:B.data)==null?void 0:s.urls)??((N=B==null?void 0:B.data)==null?void 0:N.url)??(B==null?void 0:B.url)??"";return Array.isArray(o)?o[0]||"":o||""}function z(){a("change",Ie(y.value||"",p.value||""),p.value||"")}return $({deleteImage:j,clearContent:H,getValue:()=>({text:y.value||"",imageUrl:p.value||"",value:Ie(y.value||"",p.value||"")})}),(w,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-remark-image",D.value]),style:e.normalizeStyle(E.value)},[e.createElementVNode("div",ko,[V.value?(e.openBlock(),e.createBlock(e.unref(C.ElSelect),{key:0,class:"qy-remark-image__prefix-select","model-value":n.selectValue,options:n.selectOptions,disabled:n.disabled||n.selectDisabled,size:"small","onUpdate:modelValue":T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectOptions,o=>(e.openBlock(),e.createBlock(e.unref(C.ElOption),{key:String(o.value),label:o.label,value:o.value,disabled:o.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","options","disabled"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("span",xo)):e.createCommentVNode("",!0),e.createVNode(e.unref(C.ElInput),e.mergeProps({ref_key:"inputRef",ref:m,"model-value":y.value,type:A.value,rows:n.rows,autosize:n.autosize,disabled:n.disabled,placeholder:n.placeholder},e.unref(P),{"onUpdate:modelValue":I,onBlur:z}),null,16,["model-value","type","rows","autosize","disabled","placeholder"]),e.createVNode(e.unref(C.ElPopover),{placement:"top-start",width:400,trigger:"hover",disabled:!p.value},{reference:e.withCtx(()=>[e.createElementVNode("div",So,[e.createVNode(e.unref(C.ElUpload),{disabled:Q.value||n.disabled,class:"qy-remark-image__upload","show-file-list":!1,"http-request":Y},{default:e.withCtx(()=>[Q.value?(e.openBlock(),e.createElementBlock("span",Co)):p.value?(e.openBlock(),e.createElementBlock("span",Bo)):(e.openBlock(),e.createElementBlock("span",Vo))]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",_o,[e.createElementVNode("img",{src:p.value,class:"qy-remark-image__preview-img"},null,8,Qo),e.createElementVNode("div",Io,[B[1]||(B[1]=e.createElementVNode("span",{class:"qy-remark-image__popover-tip"},"再次点击按钮可更换图片",-1)),e.createVNode(e.unref(C.ElButton),{link:"",size:"small",type:"danger",disabled:n.disabled,onClick:j},{default:e.withCtx(()=>[...B[0]||(B[0]=[e.createTextVNode(" 删除图片 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["disabled"])])],6))}}),$o=he._export_sfc(qo,[["__scopeId","data-v-47f20c2b"]]),Eo=e.defineComponent({name:"QyMoneyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},precision:{default:2},min:{default:void 0},max:{default:void 0},allowNegative:{type:Boolean,default:!1},formatTrigger:{default:"blur"},emptyValue:{default:""}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=e.ref(Q(t.modelValue)),p=e.computed(()=>Q(t.modelValue));e.watch(()=>t.modelValue,o=>{y.value=Q(o)});function Q(o){return o==null?"":String(o)}function V(o){return Number.isFinite(o)?Math.max(0,Math.floor(o)):2}function D(o){const s=Q(o);let N="",Z=!1,u=!1;const h=V(t.precision);for(let _=0;_<s.length;_+=1){const q=s[_];if(q>="0"&&q<="9"){N+=q;continue}if(q==="."&&h>0&&!Z){N+=q,Z=!0;continue}q==="-"&&t.allowNegative&&_===0&&!u&&(N+=q,u=!0)}if(h>0&&Z){const[_,q=""]=N.split(".");return`${_}.${q.slice(0,h)}`}return N}function A(o){let s=o;return typeof t.min=="number"&&Number.isFinite(t.min)&&(s=Math.max(s,t.min)),typeof t.max=="number"&&Number.isFinite(t.max)&&(s=Math.min(s,t.max)),s}function E(o){const s=D(o);if(!s||s==="-"||s===".")return Q(t.emptyValue);const N=Number(s);if(Number.isNaN(N))return Q(t.emptyValue);const Z=V(t.precision);return A(N).toFixed(Z)}function O(o){y.value=o,a("update:modelValue",o)}function L(o){const s=D(o);O(s)}function I(o){const s=D(o);y.value=s,a("input",s)}function T(o){const s=t.formatTrigger==="change"?E(o):D(o);s!==Q(t.modelValue)&&O(s),a("change",s)}function j(o){a("focus",o)}function H(o){if(t.formatTrigger==="blur"){const s=E(y.value);s!==Q(t.modelValue)&&O(s)}a("blur",o)}function F(){const o=Q(t.emptyValue);y.value=o,a("update:modelValue",o),a("clear")}function Y(o){a("enter",o)}function U(){var o,s;(s=(o=m.value)==null?void 0:o.focus)==null||s.call(o)}function J(){var o,s;(s=(o=m.value)==null?void 0:o.blur)==null||s.call(o)}function z(){var o,s;(s=(o=m.value)==null?void 0:o.select)==null||s.call(o)}function w(){var o,s;(s=(o=m.value)==null?void 0:o.clear)==null||s.call(o)}function B(){var o;return((o=m.value)==null?void 0:o.input)||null}return $({focus:U,blur:J,select:z,clear:w,getNativeInput:B}),(o,s)=>(e.openBlock(),e.createBlock(e.unref(C.ElInput),e.mergeProps({ref_key:"inputRef",ref:m},e.unref(P),{"model-value":p.value,inputmode:"decimal","onUpdate:modelValue":L,onInput:I,onChange:T,onFocus:j,onBlur:H,onClear:F,onKeydown:e.withKeys(Y,["enter"])}),e.createSlots({_:2},[o.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"prefix")]),key:"0"}:void 0,o.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"suffix")]),key:"1"}:void 0,o.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"prepend")]),key:"2"}:void 0,o.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}}),No=e.defineComponent({name:"QyRemoteSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Array,null],default:void 0},fetchMethod:{},defaultOptions:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},autoSelectSingle:{type:Boolean,default:!1},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},fitInputWidth:{type:Boolean,default:!0},popperClass:{default:""},debounce:{default:300},minLength:{default:1},remoteOnFocus:{type:Boolean,default:!1},remoteShowSuffix:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},reserveSelectedOption:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},commitOnBlur:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","visible-change","focus","blur","options-change","loading-change","error"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=e.ref([]),p=e.ref(new Map),Q=e.ref(!1),V=e.ref(""),D=e.ref("");let A=0,E=null;const O=e.computed(()=>t.loading||Q.value),L=e.ref(!1),I=e.computed(()=>V.value!==""),T=e.computed(()=>{if(I.value)return y.value;const g=new Map,W=r=>{g.set(j(r),r)};return t.defaultOptions.forEach(W),t.reserveSelectedOption&&p.value.forEach(r=>W(r)),y.value.forEach(W),Array.from(g.values())});e.watch(()=>t.defaultOptions,g=>{g.forEach(F)},{immediate:!0}),e.watch(()=>t.modelValue,()=>{T.value.forEach(F)},{immediate:!0});function j(g){return(g==null?void 0:g[t.valueKey])??(g==null?void 0:g.value)??(g==null?void 0:g.label)}function H(g){return Array.isArray(t.modelValue)?t.modelValue.includes(g):t.modelValue===g}function F(g){if(!t.reserveSelectedOption)return;const W=j(g);H(W)&&p.value.set(W,g)}function Y(g){return t.disabled?!1:g?g.length>=t.minLength:t.remoteOnFocus}function U(g){Q.value!==g&&(Q.value=g,a("loading-change",g))}async function J(g){const W=ne(g),r=++A;if(le(W),!Y(W)){y.value=[],U(!1),a("options-change",T.value);return}U(!0);try{const v=await t.fetchMethod(W);if(r!==A)return;y.value=Array.isArray(v)?v:[],y.value.forEach(F),a("options-change",T.value)}catch(v){if(r!==A)return;y.value=[],a("error",v),a("options-change",T.value)}finally{r===A&&U(!1)}}function z(){L.value||(L.value=!0,J(""))}function w(g){const W=ne(g);D.value=W,A+=1,le(W),E&&(clearTimeout(E),E=null),E=setTimeout(()=>{J(W)},t.debounce)}function B(){L.value=!0,J("")}function o(){J(V.value)}function s(g){D.value="",a("update:modelValue",g)}function N(g){D.value="",T.value.forEach(F),a("change",g)}function Z(){D.value="",a("clear")}function u(g){g&&t.remoteOnFocus&&!V.value&&z(),a("visible-change",g)}function h(g){t.remoteOnFocus&&!V.value&&z(),a("focus",g)}function _(g){q(),a("blur",g)}function q(){if(!t.allowCreate||!t.commitOnBlur||t.disabled)return;const g=D.value;g.trim()&&(D.value="",a("update:modelValue",g),a("change",g))}function ne(g){return String(g??"")}function le(g){V.value=g,y.value=[],a("options-change",T.value)}function se(){var g,W;(W=(g=m.value)==null?void 0:g.focus)==null||W.call(g)}function ue(){var g,W;(W=(g=m.value)==null?void 0:g.blur)==null||W.call(g)}function me(){a("update:modelValue",t.multiple?[]:""),a("clear")}return e.onBeforeUnmount(()=>{E&&clearTimeout(E)}),$({focus:se,blur:ue,clear:me,retryFetch:o,fetchDefaultOptions:B}),(g,W)=>(e.openBlock(),e.createBlock(qe.Select,e.mergeProps({ref_key:"selectRef",ref:m},e.unref(P),{"model-value":n.modelValue,options:T.value,"label-key":n.labelKey,"value-key":n.valueKey,"disabled-key":n.disabledKey,placeholder:n.placeholder,disabled:n.disabled,clearable:n.clearable,filterable:!0,multiple:n.multiple,"collapse-tags":n.collapseTags,"collapse-tags-tooltip":n.collapseTagsTooltip,"auto-select-single":n.autoSelectSingle,size:n.size,teleported:n.teleported,"append-to":n.appendTo,"fit-input-width":n.fitInputWidth,"popper-class":n.popperClass,remote:"",debounce:0,"remote-show-suffix":n.remoteShowSuffix,"remote-method":w,loading:O.value,"onUpdate:modelValue":s,onChange:N,onClear:Z,onVisibleChange:u,onFocus:h,onBlur:_}),e.createSlots({default:e.withCtx(()=>[g.$slots.default?e.renderSlot(g.$slots,"default",{},void 0,void 0,0):e.createCommentVNode("",!0)]),_:2},[g.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"prefix")]),key:"0"}:void 0,g.$slots.empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"empty")]),key:"1"}:void 0,g.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"loading")]),key:"2"}:void 0,g.$slots.tag?{name:"tag",fn:e.withCtx(r=>[e.renderSlot(g.$slots,"tag",e.normalizeProps(e.guardReactiveProps(r)))]),key:"3"}:void 0]),1040,["model-value","options","label-key","value-key","disabled-key","placeholder","disabled","clearable","multiple","collapse-tags","collapse-tags-tooltip","auto-select-single","size","teleported","append-to","fit-input-width","popper-class","remote-show-suffix","loading"]))}}),To={class:"qy-search-input__item"},Mo=["innerHTML"],Ao={key:0,class:"qy-search-input__item-description"},zo=e.defineComponent({name:"QySearchInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入搜索内容"},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"},clearable:{type:Boolean,default:!0},showButton:{type:Boolean,default:!0},buttonText:{default:"搜索"},buttonProps:{default:()=>({})},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},triggerOnFocus:{type:Boolean,default:!1},searchOnEnter:{type:Boolean,default:!0},searchOnSelect:{type:Boolean,default:!1},highlightKeyword:{type:Boolean,default:!0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},popperClass:{default:""},fitInputWidth:{type:Boolean,default:!0}},emits:["update:modelValue","search","clear","input","change","focus","blur","enter","select","visible-change","suggestions-change","error"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=e.ref(A(t.modelValue)),p=e.computed(()=>A(t.modelValue)),Q=e.computed(()=>["qy-search-input__popper",t.popperClass].filter(Boolean).join(" ")),V=e.computed(()=>A(t.modelValue)),D=e.ref("");e.watch(()=>t.modelValue,r=>{y.value=A(r)});function A(r){return r==null?"":String(r)}function E(r){return t.removeSpace?r.replace(/\s+/g,""):r}function O(r,v){return t.trimMode!==v?r:r.trim()}function L(r){return E(A(r))}function I(r){y.value=r,a("update:modelValue",r)}function T(r,v=""){return{...r,label:r.label||r.value,value:r.value||r.label,description:r.description||v}}function j(r=[]){return r.flatMap(v=>{if(Array.isArray(v.items)){const f=v;return f.items.map(k=>T(k,f.groupLabel))}return T(v)})}function H(r){const v=r.toLowerCase();return f=>[f.label,f.value,f.description].filter(Boolean).some(k=>String(k).toLowerCase().includes(v))}function F(r){return r?r.length>=t.minLength:t.triggerOnFocus}function Y(r){a("suggestions-change",r),a("visible-change",r.length>0)}async function U(r){if(!F(r))return Y([]),[];if(t.fetchSuggestionsMethod){const k=await new Promise(ee=>{var G;(G=t.fetchSuggestionsMethod)==null||G.call(t,r,ce=>{ee(j(ce))})});return Y(k),k}if(t.fetchSuggestions){const k=await t.fetchSuggestions(r),ee=j(Array.isArray(k)?k:[]);return Y(ee),ee}const v=j(t.suggestions),f=r?v.filter(H(r)):v;return Y(f),f}async function J(r,v){D.value=r;try{const f=await U(r);v(f)}catch(f){a("error",f),Y([]),v([])}}function z(){var r,v;D.value&&((v=(r=m.value)==null?void 0:r.getData)==null||v.call(r,D.value))}function w(r){const v=L(r);I(v)}function B(r){const v=L(r);y.value=v,a("input",v)}function o(r){const v=O(L(r),"change");v!==A(t.modelValue)&&I(v),a("change",v)}function s(r){a("focus",r)}function N(r){const v=O(y.value,"blur");v!==A(t.modelValue)&&I(v),a("blur",r),a("visible-change",!1)}function Z(){y.value="",a("update:modelValue",""),a("clear"),Y([])}function u(r){a("enter",r),t.searchOnEnter&&h()}function h(){a("search",A(t.modelValue))}function _(r){a("select",r),t.searchOnSelect&&a("search",r.value)}function q(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ne(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function le(r){const v=q(r||"");if(!t.highlightKeyword||!p.value)return v;const f=ne(q(p.value));return f?v.replace(new RegExp(`(${f})`,"ig"),'<mark class="qy-search-input__mark">$1</mark>'):v}function se(){var r,v;(v=(r=m.value)==null?void 0:r.focus)==null||v.call(r)}function ue(){var r,v;(v=(r=m.value)==null?void 0:r.blur)==null||v.call(r)}function me(){var r,v,f;(f=(v=(r=m.value)==null?void 0:r.inputRef)==null?void 0:v.select)==null||f.call(v)}function g(){var r,v;(v=(r=m.value)==null?void 0:r.clear)==null||v.call(r)}function W(){var r,v;(v=(r=m.value)==null?void 0:r.close)==null||v.call(r)}return $({focus:se,blur:ue,select:me,clear:g,closePanel:W,retryFetch:z}),(r,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-search-input",{"is-disabled":n.disabled}])},[e.createVNode(e.unref(C.ElAutocomplete),e.mergeProps({ref_key:"autocompleteRef",ref:m},e.unref(P),{"model-value":V.value,disabled:n.disabled,placeholder:n.placeholder,clearable:n.clearable,debounce:n.debounce,"fetch-suggestions":J,"trigger-on-focus":n.triggerOnFocus,teleported:n.teleported,"fit-input-width":n.fitInputWidth,"popper-class":Q.value,"append-to":n.appendTo,"value-key":"value","onUpdate:modelValue":w,onInput:B,onChange:o,onFocus:s,onBlur:N,onClear:Z,onSelect:_,onKeydown:e.withKeys(u,["enter"])}),e.createSlots({default:e.withCtx(({item:f})=>[e.renderSlot(r.$slots,"item",{item:f,keyword:p.value},()=>[e.createElementVNode("div",To,[e.createElementVNode("div",{class:"qy-search-input__item-label",innerHTML:le(f.label||f.value||"")},null,8,Mo),f.description?(e.openBlock(),e.createElementBlock("div",Ao,e.toDisplayString(f.description),1)):e.createCommentVNode("",!0)])],!0)]),_:2},[r.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,r.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,r.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"prepend",{},void 0,!0)]),key:"2"}:void 0,r.$slots.append||n.showButton?{name:"append",fn:e.withCtx(()=>[r.$slots.append?e.renderSlot(r.$slots,"append",{},void 0,!0,0):(e.openBlock(),e.createBlock(e.unref(C.ElButton),e.mergeProps({key:1},n.buttonProps,{loading:n.loading,disabled:n.disabled,onClick:h}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.buttonText),1)]),_:1},16,["loading","disabled"]))]),key:"3"}:void 0]),1040,["model-value","disabled","placeholder","clearable","debounce","trigger-on-focus","teleported","fit-input-width","popper-class","append-to"])],2))}}),Xt=he._export_sfc(zo,[["__scopeId","data-v-33980cea"]]),Do={class:"qy-record-quote-search"},Fo={key:0,class:"qy-record-quote-search__header"},Ro={key:0,class:"qy-record-quote-search__label"},Po={key:1,class:"qy-record-quote-search__description"},Oo=e.defineComponent({name:"QyRecordQuoteSearch",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入报价单号"},buttonText:{default:"查询报价单"},autoNormalize:{type:Boolean,default:!0},showStatus:{type:Boolean,default:!0},status:{default:"default"},statusText:{default:""},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},searchOnSelect:{type:Boolean,default:!0},searchMethod:{type:[Function,null],default:null},extractMethod:{type:[Function,null],default:null},normalizeMethod:{type:[Function,null],default:null},label:{default:"报价单号"},description:{default:""},trimMode:{default:"blur"}},emits:["update:modelValue","search","clear","normalize","enter","select","error","success"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=e.ref(!1),p=e.computed(()=>t.statusText||""),Q=e.computed(()=>t.loading||y.value);function V(o){return o==null?"":String(o)}function D(o){const s=V(o).trim(),N=A(s),Z=N.match(/BJ\d{8}[A-Z0-9]{4}/i);return Z?Z[0]:N}function A(o){return V(o).replace(/\s+/g,"").trim().toUpperCase()}function E(o){return t.extractMethod?t.extractMethod(o):D(o)}function O(o){return t.normalizeMethod?t.normalizeMethod(o):A(o)}function L(o,s){const N=V(o),Z=E(N),u=t.autoNormalize?O(Z):Z;return a("normalize",{rawValue:N,code:u}),{rawValue:N,code:u,item:s}}function I(o){a("update:modelValue",o)}async function T(o){if(a("search",o),!!t.searchMethod){y.value=!0;try{const s=await t.searchMethod(o);a("success",s)}catch(s){a("error",s)}finally{y.value=!1}}}function j(o){const s=L(o);s.code!==V(t.modelValue)&&a("update:modelValue",s.code),T(s)}function H(){a("clear")}function F(o){a("enter",o)}function Y(o){if(a("select",o),!t.searchOnSelect)return;const s=L(o.value,o);s.code!==V(t.modelValue)&&a("update:modelValue",s.code),T(s)}function U(o){a("error",o)}function J(){var o,s;(s=(o=m.value)==null?void 0:o.focus)==null||s.call(o)}function z(){var o,s;(s=(o=m.value)==null?void 0:o.blur)==null||s.call(o)}function w(){var o,s;(s=(o=m.value)==null?void 0:o.select)==null||s.call(o)}function B(){var o,s;(s=(o=m.value)==null?void 0:o.clear)==null||s.call(o)}return $({focus:J,blur:z,select:w,clear:B,extractQuoteOrderCode:E,normalizeQuoteOrderCode:O}),(o,s)=>(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(o.$slots,"label",{},()=>[n.label||n.description?(e.openBlock(),e.createElementBlock("div",Fo,[n.label?(e.openBlock(),e.createElementBlock("div",Ro,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0),n.description?(e.openBlock(),e.createElementBlock("div",Po,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],!0),e.createVNode(Xt,e.mergeProps({ref_key:"searchRef",ref:m},e.unref(P),{"model-value":n.modelValue,loading:Q.value,disabled:n.disabled,placeholder:n.placeholder,"remove-space":!0,"trim-mode":n.trimMode,"button-text":n.buttonText,suggestions:n.suggestions,"fetch-suggestions":n.fetchSuggestions,"fetch-suggestions-method":n.fetchSuggestionsMethod,debounce:n.debounce,"min-length":n.minLength,"search-on-select":!1,"onUpdate:modelValue":I,onSearch:j,onClear:H,onEnter:F,onSelect:Y,onError:U}),e.createSlots({_:2},[o.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,o.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,o.$slots.item?{name:"item",fn:e.withCtx(N=>[e.renderSlot(o.$slots,"item",e.normalizeProps(e.guardReactiveProps(N)),void 0,!0)]),key:"2"}:void 0,o.$slots.empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"empty",{},void 0,!0)]),key:"3"}:void 0,o.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"loading",{},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","loading","disabled","placeholder","trim-mode","button-text","suggestions","fetch-suggestions","fetch-suggestions-method","debounce","min-length"]),n.showStatus&&p.value?e.renderSlot(o.$slots,"status",{status:n.status,statusText:p.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-record-quote-search__status",`is-${n.status}`])},e.toDisplayString(p.value),3)],!0,0):e.createCommentVNode("",!0)]))}}),Lo=he._export_sfc(Oo,[["__scopeId","data-v-3a314f64"]]),Uo={class:"qy-selection-dialog"},Ko={class:"qy-selection-dialog__main"},jo={key:0,class:"qy-selection-dialog__selected"},Ho={class:"qy-selection-dialog__selected-tags"},Wo={key:0,class:"qy-selection-dialog__selected-actions"},Zo={key:1,class:"qy-selection-dialog__search-row"},Go={key:0,class:"qy-selection-dialog__toolbar"},Xo={key:2,class:"qy-selection-dialog__pagination"},Jo={class:"qy-selection-dialog__paste-actions"},Yo=e.defineComponent({name:"QySelectionDialog",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},open:{type:Boolean,default:!0},title:{default:"选择数据"},width:{default:"1200px"},fetchMethod:{type:Function,default:void 0},query:{type:Function,default:void 0},responseFormatter:{type:Function,default:void 0},selectionMode:{default:void 0},selection:{default:"single"},selected:{default:()=>[]},rowKey:{default:"id"},mainKey:{default:void 0},labelKey:{default:"name"},tagName:{default:void 0},searchKey:{default:"conditions"},queryParams:{default:()=>({})},category:{type:[Array,Function,Boolean],default:!1},categoryFormatter:{type:[Function,Array],default:void 0},categoryOptions:{default:()=>[]},categoryFetchMethod:{type:[Function,null],default:null},type:{type:[Array,Boolean],default:!1},typeOptions:{default:()=>[]},typeSelectionProps:{default:()=>({})},typeSelectProps:{default:()=>({})},tableProps:{default:()=>({})},showSelected:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},showCopyPaste:{type:Boolean,default:!1},append:{type:Boolean,default:!1},showAppend:{type:Boolean,default:!1},pageSizes:{default:()=>[10,20,50,100]}},emits:["update:modelValue","selection-change","confirm","submit","cancel","close","append","loaded"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.useSlots(),y=e.getCurrentInstance(),p=e.ref(null),Q=e.ref([]),V=e.ref([]),D=e.ref([]),A=e.ref(!1),E=e.ref(0),O=e.ref(!1),L=e.ref(""),I=e.reactive({category:[],type:"",page:1,pageSize:10,...t.searchKey?{[t.searchKey]:""}:{},...t.queryParams}),T=e.computed(()=>t.selectionMode?t.selectionMode:t.selection==="multi"?"multiple":t.selection),j=e.computed(()=>t.mainKey||t.rowKey),H=e.computed(()=>t.tagName||t.labelKey),F=e.computed(()=>t.typeOptions.length?t.typeOptions:t.type||[]),Y=e.computed(()=>({...t.typeSelectionProps,...t.typeSelectProps})),U=e.computed(()=>t.tableProps||{}),J=e.computed(()=>t.showSearch||!!P["search-visible"]),z=e.computed(()=>t.showAppend||t.append),w=e.computed(()=>z.value||!!m.toolbar||!!m.bar),B=e.computed(()=>t.fetchMethod||t.query),o=e.computed(()=>s()?t.modelValue:t.selected);function s(){const c=(y==null?void 0:y.vnode.props)||{};return Object.prototype.hasOwnProperty.call(c,"modelValue")||Object.prototype.hasOwnProperty.call(c,"model-value")||Object.prototype.hasOwnProperty.call(c,"onUpdate:modelValue")}e.watch([()=>t.modelValue,()=>t.selected,()=>t.open],()=>{t.open&&(V.value=ge(o.value),f())},{immediate:!0,deep:!0}),e.watch([()=>t.categoryOptions,()=>t.category],c=>{if(Array.isArray(t.category)&&t.category.length){D.value=t.category;return}D.value=t.categoryOptions||[]},{immediate:!0}),e.watch(O,c=>{c||(L.value="")});async function N(){V.value=ge(o.value),await Z(),await u(),f()}async function Z(){const c=t.categoryFetchMethod||(typeof t.category=="function"?t.category:null);if(!c)return;const d=await c();D.value=se(d)}async function u(){if(B.value){A.value=!0;try{const c=await B.value(me()),d=t.responseFormatter?await t.responseFormatter(c):c,{rows:R,total:l}=le(d);return Q.value=R,E.value=l,a("loaded",R),f(),d}finally{A.value=!1}}}function h(){return I.page=1,u()}function _(){return I.page=1,u()}function q(){return Object.assign(I,{category:[],type:"",page:1,pageSize:I.pageSize,...t.searchKey?{[t.searchKey]:""}:{},...t.queryParams}),u()}function ne(){a("append")}function le(c){if(Array.isArray(c))return{rows:c,total:c.length};const d=c==null?void 0:c.data;if(Array.isArray(d))return{rows:d,total:(c==null?void 0:c.total)??d.length};const R=(c==null?void 0:c.records)||(c==null?void 0:c.rows)||(d==null?void 0:d.records)||[],l=(c==null?void 0:c.total)??(d==null?void 0:d.total)??R.length;return{rows:R,total:l}}function se(c){const d=(c==null?void 0:c.data)??c;if(!Array.isArray(d))return[];if(typeof t.categoryFormatter=="function")return t.categoryFormatter(d);if(Array.isArray(t.categoryFormatter)){const[R,l]=t.categoryFormatter;return d.map(i=>({...i,label:i[R],value:i[l],children:Array.isArray(i.children)?ue(i.children,R,l):i.children}))}return d}function ue(c,d,R){return c.map(l=>({...l,label:l[d],value:l[R],children:Array.isArray(l.children)?ue(l.children,d,R):l.children}))}function me(){const c={...t.queryParams,...I};return t.searchKey&&(c[t.searchKey]=String(c[t.searchKey]||"").trim()),c.category=g(),c}function g(){if(Object.prototype.hasOwnProperty.call(t.queryParams,"category"))return t.queryParams.category;const c=I.category;return Array.isArray(c)?c:c?[c]:[]}function W(c){var d,R;if(T.value!=="none"){if(T.value==="single"){V.value=[c],(d=p.value)==null||d.setCurrentRow(c),de();return}k(c)&&((R=p.value)==null||R.toggleRowSelection(c,!ee(c)))}}function r(c){if(T.value!=="multiple")return;const d=new Set(Q.value.map(G)),R=new Set(c.map(G));V.value=V.value.filter(l=>!d.has(G(l))||R.has(G(l))),c.forEach(l=>{ee(l)||V.value.push(l)}),de()}function v(c){var R,l;V.value=V.value.filter(i=>G(i)!==G(c));const d=Q.value.find(i=>G(i)===G(c));d&&(T.value==="multiple"?(R=p.value)==null||R.toggleRowSelection(d,!1):(l=p.value)==null||l.setCurrentRow()),de()}function f(){e.nextTick(()=>{var c;if(p.value){if(T.value==="single"){const[d]=V.value,R=Q.value.find(l=>d&&G(l)===G(d));(c=p.value)==null||c.setCurrentRow(R);return}T.value==="multiple"&&Q.value.forEach(d=>{var R;(R=p.value)==null||R.toggleRowSelection(d,ee(d))})}})}function k(c){var R;const d=(R=U.value)==null?void 0:R.selectable;return typeof d=="function"?d(c)!==!1:!0}function ee(c){return V.value.some(d=>G(d)===G(c))}function G(c){return ae(c,j.value)}function ce(c){return ae(c,H.value)??G(c)}function ae(c,d){if(!(!c||!d))return d.split(".").reduce((R,l)=>R==null?void 0:R[l],c)}function de(){const c=ge(V.value);a("selection-change",c)}function ye(){const c=ge(V.value);a("update:modelValue",c),a("confirm",c),a("submit",{selection:c,rows:c,query:{...I}})}function we(){V.value=ge(o.value),a("cancel"),a("close")}async function ke(){var d;const c=JSON.stringify(V.value);await((d=navigator.clipboard)==null?void 0:d.writeText(c)),C.ElMessage.success("复制成功")}function ve(){try{const c=JSON.parse(L.value);if(!Array.isArray(c)){C.ElMessage.error("粘贴内容需要是数组");return}c.forEach(d=>{ee(d)||V.value.push(d)}),O.value=!1,de(),f()}catch(c){C.ElMessage.error(`粘贴错误: ${(c==null?void 0:c.message)||"内容格式错误"}`)}}function ge(c=[]){return c.map(d=>({...d}))}return $({search:h,handleSearch:u,handleQuerySearch:h,resetSearch:q,getTableRef:()=>p.value,getTableData:()=>Q.value,getSelection:()=>ge(V.value)}),(c,d)=>{const R=pe.ElLoadingDirective;return e.openBlock(),e.createBlock(_e,{open:n.open,title:n.title,width:n.width,onOpened:N,onConfirm:ye,onCancel:we},{default:e.withCtx(()=>[e.createElementVNode("div",Uo,[e.renderSlot(c.$slots,"side",{},void 0,!0),e.createElementVNode("div",Ko,[n.showSelected?(e.openBlock(),e.createElementBlock("div",jo,[d[12]||(d[12]=e.createElementVNode("span",{class:"qy-selection-dialog__selected-label"},"已选项",-1)),e.createElementVNode("div",Ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,l=>(e.openBlock(),e.createBlock(Ce.Tag,{key:G(l),closable:"",class:"qy-selection-dialog__selected-tag",onClose:i=>v(l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ce(l)),1)]),_:2},1032,["onClose"]))),128)),V.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.Tag,{key:0,tone:"info"},{default:e.withCtx(()=>[...d[9]||(d[9]=[e.createTextVNode("无",-1)])]),_:1}))]),n.showCopyPaste?(e.openBlock(),e.createElementBlock("div",Wo,[e.createVNode(e.unref(C.ElButton),{size:"small",onClick:ke},{default:e.withCtx(()=>[...d[10]||(d[10]=[e.createTextVNode("复制",-1)])]),_:1}),e.createVNode(e.unref(C.ElButton),{size:"small",onClick:d[0]||(d[0]=l=>O.value=!0)},{default:e.withCtx(()=>[...d[11]||(d[11]=[e.createTextVNode("粘贴",-1)])]),_:1})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),J.value?(e.openBlock(),e.createElementBlock("div",Zo,[e.createVNode(e.unref(C.ElForm),{class:"qy-selection-dialog__search",inline:"",model:I},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"search",{query:I,search:h,reset:q},()=>[D.value.length?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0,label:"分类"},{default:e.withCtx(()=>[e.createVNode(jt.TreeSelect,{modelValue:I.category,"onUpdate:modelValue":d[1]||(d[1]=l=>I.category=l),class:"qy-selection-dialog__category",options:D.value,clearable:"",filterable:"","check-strictly":"","render-after-expand":!1,onChange:h},null,8,["modelValue","options"])]),_:1})):e.createCommentVNode("",!0),F.value.length?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:1,label:"类型"},{default:e.withCtx(()=>[e.createVNode(qe.Select,e.mergeProps({modelValue:I.type,"onUpdate:modelValue":d[2]||(d[2]=l=>I.type=l),class:"qy-selection-dialog__type",options:F.value,placeholder:"请选择类型",clearable:""},Y.value,{onChange:h}),null,16,["modelValue","options"])]),_:1})):e.createCommentVNode("",!0),n.searchKey?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:2,label:"搜索"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:I[n.searchKey],"onUpdate:modelValue":d[3]||(d[3]=l=>I[n.searchKey]=l),clearable:"",placeholder:"请输入",class:"qy-selection-dialog__search-input",onKeydown:e.withKeys(e.withModifiers(h,["prevent"]),["enter"])},null,8,["modelValue","onKeydown"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(C.ElFormItem),null,{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:h},{default:e.withCtx(()=>[...d[13]||(d[13]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(e.unref(C.ElButton),{onClick:q},{default:e.withCtx(()=>[...d[14]||(d[14]=[e.createTextVNode("重置",-1)])]),_:1})]),_:1})],!0)]),_:3},8,["model"]),w.value?(e.openBlock(),e.createElementBlock("div",Go,[z.value?(e.openBlock(),e.createBlock(e.unref(C.ElButton),{key:0,type:"primary",onClick:ne},{default:e.withCtx(()=>[...d[15]||(d[15]=[e.createTextVNode(" 新增 ",-1)])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"toolbar",{query:I,search:h},void 0,!0),e.renderSlot(c.$slots,"bar",{query:I,search:h},void 0,!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(e.unref(C.ElTable),e.mergeProps({ref_key:"tableRef",ref:p,data:Q.value,"row-key":j.value,border:"","highlight-current-row":"","max-height":"550px"},U.value,{onSelectionChange:r,onRowClick:W}),{default:e.withCtx(()=>{var l;return[T.value==="multiple"?(e.openBlock(),e.createBlock(e.unref(C.ElTableColumn),{key:0,type:"selection","reserve-selection":"",width:"42",selectable:(l=U.value)==null?void 0:l.selectable},null,8,["selectable"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"columns",{},void 0,!0),e.renderSlot(c.$slots,"cols",{},void 0,!0)]}),_:3},16,["data","row-key"])),[[R,A.value]]),n.showPagination&&E.value>0?(e.openBlock(),e.createElementBlock("div",Xo,[e.createVNode(e.unref(C.ElPagination),{"current-page":I.page,"onUpdate:currentPage":d[4]||(d[4]=l=>I.page=l),"page-size":I.pageSize,"onUpdate:pageSize":d[5]||(d[5]=l=>I.pageSize=l),total:E.value,"page-sizes":n.pageSizes,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:_,onCurrentChange:u},null,8,["current-page","page-size","total","page-sizes"])])):e.createCommentVNode("",!0)])]),e.createVNode(_e,{open:O.value,title:"粘贴数据","show-footer":!1,width:"560px","onUpdate:open":d[8]||(d[8]=l=>O.value=l)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:L.value,"onUpdate:modelValue":d[6]||(d[6]=l=>L.value=l),type:"textarea",rows:8},null,8,["modelValue"]),e.createElementVNode("div",Jo,[e.createVNode(e.unref(C.ElButton),{onClick:d[7]||(d[7]=l=>O.value=!1)},{default:e.withCtx(()=>[...d[16]||(d[16]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:ve},{default:e.withCtx(()=>[...d[17]||(d[17]=[e.createTextVNode("确认",-1)])]),_:1})])]),_:1},8,["open"])]),_:3},8,["open","title","width"])}}}),Jt=he._export_sfc(Yo,[["__scopeId","data-v-6348c54b"]]),el=e.defineComponent({name:"QyLegacySelectionDialog",inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!0},title:{default:"选择数据"},width:{default:"1200px"},query:{type:Function,default:void 0},responseFormatter:{type:Function,default:void 0},selection:{default:"single"},selected:{default:()=>[]},mainKey:{default:""},tagName:{default:""},searchKey:{default:"conditions"},queryParams:{default:()=>({})},category:{type:[Array,Function,Boolean],default:!1},categoryFormatter:{type:[Function,Array],default:void 0},type:{type:[Array,Boolean],default:!1},typeSelectionProps:{default:()=>({})},tableProps:{default:()=>({})},append:{type:Boolean,default:!1},delete:{type:Boolean,default:!1},select:{default:null}},emits:["close","submit","openDialog","changeIndexShow"],setup(n,{expose:$,emit:K}){const t=n,a=K,P=e.useAttrs(),m=e.ref(null),y=e.reactive({category:[],code:"",...t.searchKey?{[t.searchKey]:""}:{},page:1,pageSize:10,type:"",...t.queryParams}),p=e.reactive({total:0,tableData:[],open:!1,selection:[],categories:[],types:[],tableRef:null,drag:!1,dialogOpen:!1,pasteData:"",pasteDataDialog:!1}),Q=e.computed(()=>t.type||[]),V=e.computed(()=>p.categories),D=async u=>{if(!t.query)return{data:{records:[],total:0}};const h=await t.query(Y(u)),_=t.responseFormatter?await t.responseFormatter(h):h;return p.total=N(_),_};e.watch(()=>t.open,u=>{p.open=u},{immediate:!0}),e.watch(Q,u=>{p.types=[...u]},{immediate:!0,deep:!0}),e.watch([()=>t.selected,()=>t.open],()=>{t.open&&(p.selection=Z(t.selected))},{immediate:!0,deep:!0}),e.watch(()=>t.queryParams,()=>{Object.assign(y,t.queryParams)},{deep:!0}),e.watch(()=>p.pasteDataDialog,u=>{u||(p.pasteData="")}),e.watch(()=>t.select,async()=>{t.select&&await F(t.select)},{deep:!0}),e.watch(()=>t.open,async u=>{u&&(p.dialogOpen=!1,await A())},{immediate:!0});async function A(){if(!t.category){p.categories=[];return}const u=typeof t.category=="function"?await t.category():t.category;p.categories=w(u)}async function E(){var u;return await e.nextTick(),(u=m.value)==null?void 0:u.handleQuerySearch()}function O(u){p.selection=Z(u)}function L(u){var h;p.tableData=u,p.tableRef=(h=m.value)==null?void 0:h.getTableRef()}function I(u){p.selection=Z(u),a("submit",p)}function T(){a("close")}function j(){p.dialogOpen=!0,a("openDialog")}function H(u){a("changeIndexShow",u)}async function F(u){if(!t.query||!t.searchKey||!t.mainKey)return;const h=await t.query({...y,[t.searchKey]:u[t.mainKey],category:[]}),_=t.responseFormatter?await t.responseFormatter(h):h,[q]=s(_);q&&(t.selection==="multi"?(p.selection=p.selection.filter(ne=>ne[t.mainKey]!==q[t.mainKey]),p.selection.push(q)):p.selection=[q])}function Y(u={}){y.page=u.page??y.page,y.pageSize=u.pageSize??y.pageSize;const h={...y,category:U()};return t.searchKey&&(h[t.searchKey]=String(h[t.searchKey]||"").trim()),h}function U(){if(t.queryParams.category)return t.queryParams.category;const u=y.category;if(Array.isArray(u))return u;if(!u)return[];const h=J(p.categories,u);return h?z(h):[u]}function J(u,h){for(const _ of u||[]){if(_.value===h)return _;const q=J(_.children||[],h);if(q)return q}}function z(u){return[u.value,...(u.children||[]).flatMap(z)]}function w(u){const h=(u==null?void 0:u.data)??u;if(!Array.isArray(h))return[];if(typeof t.categoryFormatter=="function")return t.categoryFormatter(h);if(Array.isArray(t.categoryFormatter)){const[_,q]=t.categoryFormatter;return o(B(h,q),_,q)}return h}function B(u,h){const _=u.map(ne=>({...ne})),q=[];return _.forEach(ne=>{const le=ne.parentCateCode;if(!le){q.push(ne);return}const se=_.find(ue=>ue[h]===le);se?(se.children||(se.children=[])).push(ne):q.push(ne)}),q}function o(u,h,_){return u.map(q=>({...q,label:q[h],value:q[_],children:Array.isArray(q.children)?o(q.children,h,_):q.children}))}function s(u){if(Array.isArray(u))return u;const h=u==null?void 0:u.data;return Array.isArray(h)?h:(u==null?void 0:u.records)||(u==null?void 0:u.rows)||(h==null?void 0:h.records)||[]}function N(u){if(Array.isArray(u))return u.length;const h=s(u),_=u==null?void 0:u.data;return(u==null?void 0:u.total)??(Array.isArray(_)?_.length:_==null?void 0:_.total)??h.length}function Z(u=[]){return u.map(h=>({...h}))}return $({search:E,handleSearch:E,handleConditionChange:E,getTableRef:()=>p.tableRef,getTableData:()=>p.tableData,getSelection:()=>Z(p.selection)}),(u,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Jt,e.mergeProps({ref_key:"selectionDialogRef",ref:m},e.unref(P),{modelValue:p.selection,"onUpdate:modelValue":h[3]||(h[3]=_=>p.selection=_),open:n.open,title:n.title,width:n.width,query:D,"response-formatter":n.responseFormatter,selection:n.selection,"row-key":n.mainKey,"label-key":n.tagName,"search-key":n.searchKey,"query-params":{},"category-options":V.value,"type-options":Q.value,"type-select-props":n.typeSelectionProps,"table-props":n.tableProps,"show-copy-paste":!0,"show-append":n.append,onSelectionChange:O,onConfirm:I,onCancel:T,onAppend:j,onLoaded:L}),{side:e.withCtx(()=>[e.renderSlot(u.$slots,"side",{state:p,cate:p.categories,form:y,query:y,getData:E,search:E,changeIndexShow:H},void 0,!0)]),search:e.withCtx(()=>[e.createVNode(e.unref(C.ElForm),{inline:"",model:y},{default:e.withCtx(()=>[p.categories.length?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0,label:"分类"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElTreeSelect),{modelValue:y.category,"onUpdate:modelValue":h[0]||(h[0]=_=>y.category=_),class:"qy-legacy-selection-dialog__category",data:p.categories,clearable:"",filterable:"","check-strictly":"","render-after-expand":!1,onChange:E},null,8,["modelValue","data"])]),_:1})):e.createCommentVNode("",!0),Q.value.length?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:1,label:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElSelect),e.mergeProps({modelValue:y.type,"onUpdate:modelValue":h[1]||(h[1]=_=>y.type=_),clearable:""},n.typeSelectionProps,{onChange:E}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,_=>(e.openBlock(),e.createBlock(e.unref(C.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue"])]),_:1})):e.createCommentVNode("",!0),n.searchKey?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:2,label:"搜索"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:y[n.searchKey],"onUpdate:modelValue":h[2]||(h[2]=_=>y[n.searchKey]=_),clearable:"",class:"qy-legacy-selection-dialog__search-input",onKeydown:e.withKeys(e.withModifiers(E,["prevent"]),["enter"])},null,8,["modelValue","onKeydown"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(C.ElFormItem),null,{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:E},{default:e.withCtx(()=>[...h[4]||(h[4]=[e.createTextVNode("查询",-1)])]),_:1})]),_:1})]),_:1},8,["model"])]),toolbar:e.withCtx(()=>[e.renderSlot(u.$slots,"bar",{query:y,search:E},void 0,!0)]),columns:e.withCtx(()=>[e.renderSlot(u.$slots,"cols",{},void 0,!0),e.renderSlot(u.$slots,"columns",{},void 0,!0)]),_:3},16,["modelValue","open","title","width","response-formatter","selection","row-key","label-key","search-key","category-options","type-options","type-select-props","table-props","show-append"]),e.renderSlot(u.$slots,"dialog",{state:p,form:y,getData:E},void 0,!0)],64))}}),tl=he._export_sfc(el,[["__scopeId","data-v-b54ca11b"]]),nl={class:"qy-form-section__heading"},ol={key:0,class:"qy-form-section__title"},ll={key:0,class:"qy-form-section__description"},al={class:"qy-form-section__actions"},rl=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(n,{emit:$}){const K=n,t=$,a=e.ref(K.defaultExpanded);e.watch(()=>K.defaultExpanded,y=>{a.value=y});function P(){K.collapsible&&(a.value=!a.value,t("toggle",a.value))}function m(){K.collapsible&&P()}return(y,p)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${n.background}`,{"is-bordered":n.bordered,"is-collapsible":n.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",n.headerClass]),onClick:m},[e.createElementVNode("div",nl,[e.renderSlot(y.$slots,"title",{},()=>[n.title?(e.openBlock(),e.createElementBlock("div",ol,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(y.$slots,"description",{},()=>[n.description?(e.openBlock(),e.createElementBlock("div",ll,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",al,[e.renderSlot(y.$slots,"actions",{},void 0,!0),n.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(P,["stop"])},e.toDisplayString(a.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",n.bodyClass])},[e.renderSlot(y.$slots,"tip",{},()=>[n.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${n.tipType}`])},e.toDisplayString(n.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(y.$slots,"default",{},void 0,!0)],2),[[e.vShow,a.value]])],2))}}),il=he._export_sfc(rl,[["__scopeId","data-v-8149aa01"]]),sl={key:0,class:"qy-action-bar__left"},ul={key:1,class:"qy-action-bar__center"},cl={key:2,class:"qy-action-bar__right"},dl=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,default:!0},offsetBottom:{default:0},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0},justify:{default:"between"},background:{default:"#fff"}},setup(n){const $=n,K=e.computed(()=>({bottom:`${$.offsetBottom}px`,background:$.background}));return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${n.justify}`,{"is-sticky":n.sticky,"is-bordered":n.bordered,"is-shadow":n.shadow,"is-wrap":n.wrap}]]),style:e.normalizeStyle(K.value)},[t.$slots.left?(e.openBlock(),e.createElementBlock("div",sl,[e.renderSlot(t.$slots,"left",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("div",ul,[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",cl,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),fl=he._export_sfc(dl,[["__scopeId","data-v-ecba8f49"]]),$e=b.withInstall(Zt,"QyUpload"),Ee=b.withInstall(Yt.Image,"QyImage"),Ne=b.withInstall(en._sfc_main,"QyImagePreview"),Te=b.withInstall(so,"QyImageUpload"),Me=b.withInstall(_e,"QyDialog"),Ae=b.withInstall($o,"QyRemarkImage"),ze=b.withInstall(nn.Button,"QyButton"),De=b.withInstall(on.Dropdown,"QyDropdown"),Fe=b.withInstall(ln._sfc_main,"QyInput"),Re=b.withInstall(an._sfc_main,"QyInputNumber"),Pe=b.withInstall(Eo,"QyMoneyInput"),Oe=b.withInstall(rn._sfc_main,"QyDatePicker"),Le=b.withInstall(sn.Checkbox,"QyCheckbox"),Ue=b.withInstall(un._sfc_main,"QyCheckboxGroup"),Ke=b.withInstall(cn.Radio,"QyRadio"),je=b.withInstall(dn._sfc_main,"QyAutocomplete"),He=b.withInstall(fn.MenuActions,"QyMenuActions"),We=b.withInstall(mn.TableColumnSettings,"QyTableColumnSettings"),Ze=b.withInstall(pn._sfc_main,"QyRadioGroup"),Ge=b.withInstall(No,"QyRemoteSelect"),Xe=b.withInstall(Xt,"QySearchInput"),Je=b.withInstall(Lo,"QyRecordQuoteSearch"),Ye=b.withInstall(qe.Select,"QySelect"),et=b.withInstall(jt.TreeSelect,"QyTreeSelect"),tt=b.withInstall(Jt,"QySelectionDialog"),nt=b.withInstall(tl,"QyLegacySelectionDialog"),ot=b.withInstall(il,"QyFormSection"),lt=b.withInstall(fl,"QyActionBar"),at=b.withInstall(yn.FilePicker,"QyFilePicker"),rt=b.withInstall(gn.Switch,"QySwitch"),it=b.withInstall(Ce.Tag,"QyTag"),st=b.withInstall(hn._sfc_main,"QyBadge"),ut=b.withInstall(vn._sfc_main,"QyCascader"),ct=b.withInstall(wn._sfc_main,"QyTooltip"),dt=b.withInstall(bn._sfc_main,"QyPopover"),ft=b.withInstall(kn._sfc_main,"QySkeleton"),mt=b.withInstall(xn._sfc_main,"QySkeletonItem"),pt=b.withInstall(Sn._sfc_main,"QyTabs"),yt=b.withInstall(Cn._sfc_main,"QyTabPane"),gt=b.withInstall(Vn._sfc_main,"QySteps"),ht=b.withInstall(Bn._sfc_main,"QyStep"),vt=b.withInstall(_n.Fullscreen,"QyFullscreen"),wt=b.withInstall(In._sfc_main,"QyRow"),bt=b.withInstall(qn._sfc_main,"QyCol"),kt=b.withInstall($n._sfc_main,"QyContainer"),xt=b.withInstall(En._sfc_main,"QyAside"),St=b.withInstall(Nn._sfc_main,"QyMain"),Ct=b.withInstall(Tn._sfc_main,"QyDescriptions"),Vt=b.withInstall(Mn._sfc_main,"QyDescriptionsItem"),Bt=b.withInstall(An._sfc_main,"QyCollapse"),_t=b.withInstall(zn._sfc_main,"QyCollapseItem"),Qt=b.withInstall(Dn._sfc_main,"QyLink"),It=b.withInstall(Fn._sfc_main,"QyDivider"),qt=b.withInstall(Rn._sfc_main,"QyEmpty"),$t=b.withInstall(Pn._sfc_main,"QyAlert"),Et=b.withInstall(On._sfc_main,"QyCard"),Nt=b.withInstall(Ln._sfc_main,"QyResult"),Tt=b.withInstall(Un._sfc_main,"QyScrollbar"),Mt=b.withInstall(Kn._sfc_main,"QyProgress"),At=b.withInstall(jn._sfc_main,"QyStatistic"),zt=b.withInstall(Hn._sfc_main,"QyAvatar"),Dt=b.withInstall(Wn._sfc_main,"QyTree"),Ft=b.withInstall(Qn._sfc_main,"QyIconPicker"),Rt=b.withInstall(Zn._sfc_main,"QyDrawer"),ml=n=>{Ve.QyLoading.install(n),n.component("QyDialog",Me),n.component("QyDrawer",Rt),n.component("QyUpload",$e),n.component("QyImage",Ee),n.component("QyImagePreview",Ne),n.component("QyImageUpload",Te),n.component("QyRemarkImage",Ae),n.component("QyButton",ze),n.component("QyDropdown",De),n.component("QyInput",Fe),n.component("QyInputNumber",Re),n.component("QyMoneyInput",Pe),n.component("QyDatePicker",Oe),n.component("QyCheckbox",Le),n.component("QyCheckboxGroup",Ue),n.component("QyRadio",Ke),n.component("QyAutocomplete",je),n.component("QyMenuActions",He),n.component("QyTableColumnSettings",We),n.component("QyRadioGroup",Ze),n.component("QyRemoteSelect",Ge),n.component("QySearchInput",Xe),n.component("QyRecordQuoteSearch",Je),n.component("QySelect",Ye),n.component("QyTreeSelect",et),n.component("QySelectionDialog",tt),n.component("QyLegacySelectionDialog",nt),n.component("QyFormSection",ot),n.component("QyActionBar",lt),n.component("QyFilePicker",at),n.component("QySwitch",rt),n.component("QyTag",it),n.component("QyBadge",st),n.component("QyCascader",ut),n.component("QyTooltip",ct),n.component("QyPopover",dt),n.component("QySkeleton",ft),n.component("QySkeletonItem",mt),n.component("QyTabs",pt),n.component("QyTabPane",yt),n.component("QySteps",gt),n.component("QyStep",ht),n.component("QyFullscreen",vt),n.component("QyIcon",Ht.QyIcon),n.component("QyIconPicker",Ft),n.component("QyRow",wt),n.component("QyCol",bt),n.component("QyContainer",kt),n.component("QyAside",xt),n.component("QyMain",St),n.component("QyDescriptions",Ct),n.component("QyDescriptionsItem",Vt),n.component("QyCollapse",Bt),n.component("QyCollapseItem",_t),n.component("QyLink",Qt),n.component("QyDivider",It),n.component("QyEmpty",qt),n.component("QyAlert",$t),n.component("QyCard",Et),n.component("QyResult",Nt),n.component("QyScrollbar",Tt),n.component("QyProgress",Mt),n.component("QyStatistic",At),n.component("QyAvatar",zt),n.component("QyTree",Dt)},pl={install:ml,QyUpload:$e,QyImage:Ee,QyImagePreview:Ne,openQyImagePreview:Gn.openQyImagePreview,QyImageUpload:Te,QyDialog:Me,QyButton:ze,QyDropdown:De,QyInput:Fe,QyInputNumber:Re,QyMoneyInput:Pe,QyDatePicker:Oe,QyCheckbox:Le,QyCheckboxGroup:Ue,QyRadio:Ke,QyAutocomplete:je,QyMenuActions:He,QyTableColumnSettings:We,QyRadioGroup:Ze,QyRemoteSelect:Ge,QySearchInput:Xe,QyRecordQuoteSearch:Je,QySelect:Ye,QyTreeSelect:et,QySelectionDialog:tt,QyLegacySelectionDialog:nt,QyFormSection:ot,QyActionBar:lt,QyFilePicker:at,QySwitch:rt,QyTag:it,QyBadge:st,QyCascader:ut,QyTooltip:ct,QyPopover:dt,QySkeleton:ft,QySkeletonItem:mt,QyTabs:pt,QyTabPane:yt,QySteps:gt,QyStep:ht,QyFullscreen:vt,QyDrawer:Rt,QyIcon:Ht.QyIcon,QyIconPicker:Ft,QyRow:wt,QyCol:bt,QyContainer:kt,QyAside:xt,QyMain:St,QyDescriptions:Ct,QyDescriptionsItem:Vt,QyCollapse:Bt,QyCollapseItem:_t,QyLink:Qt,QyDivider:It,QyEmpty:qt,QyAlert:$t,QyCard:Et,QyResult:Nt,QyScrollbar:Tt,QyProgress:Mt,QyStatistic:At,QyAvatar:zt,QyTree:Dt,QyRemarkImage:Ae,QyLoading:Ve.QyLoading,vQyLoading:Ve.vQyLoading,openQyLoading:Xn.openQyLoading};exports.QyActionBar=lt;exports.QyAlert=$t;exports.QyAside=xt;exports.QyAutocomplete=je;exports.QyAvatar=zt;exports.QyBadge=st;exports.QyButton=ze;exports.QyCard=Et;exports.QyCascader=ut;exports.QyCheckbox=Le;exports.QyCheckboxGroup=Ue;exports.QyCol=bt;exports.QyCollapse=Bt;exports.QyCollapseItem=_t;exports.QyContainer=kt;exports.QyDatePicker=Oe;exports.QyDescriptions=Ct;exports.QyDescriptionsItem=Vt;exports.QyDialog=Me;exports.QyDivider=It;exports.QyDrawer=Rt;exports.QyDropdown=De;exports.QyEmpty=qt;exports.QyFilePicker=at;exports.QyFormSection=ot;exports.QyFullscreen=vt;exports.QyIconPicker=Ft;exports.QyImage=Ee;exports.QyImagePreview=Ne;exports.QyImageUpload=Te;exports.QyInput=Fe;exports.QyInputNumber=Re;exports.QyLegacySelectionDialog=nt;exports.QyLink=Qt;exports.QyMain=St;exports.QyMenuActions=He;exports.QyMoneyInput=Pe;exports.QyPopover=dt;exports.QyProgress=Mt;exports.QyRadio=Ke;exports.QyRadioGroup=Ze;exports.QyRecordQuoteSearch=Je;exports.QyRemarkImage=Ae;exports.QyRemoteSelect=Ge;exports.QyResult=Nt;exports.QyRow=wt;exports.QyScrollbar=Tt;exports.QySearchInput=Xe;exports.QySelect=Ye;exports.QySelectionDialog=tt;exports.QySkeleton=ft;exports.QySkeletonItem=mt;exports.QyStatistic=At;exports.QyStep=ht;exports.QySteps=gt;exports.QySwitch=rt;exports.QyTabPane=yt;exports.QyTableColumnSettings=We;exports.QyTabs=pt;exports.QyTag=it;exports.QyTooltip=ct;exports.QyTree=Dt;exports.QyTreeSelect=et;exports.QyUpload=$e;exports.formatRemarkText=Gt;exports.index=pl;exports.parseRemarkText=Qe;exports.parseRemarkWithImage=Ie;
|
package/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type QyTabsComponent from './qy-tabs'
|
|
|
18
18
|
import type QyTabPaneComponent from './qy-tab-pane'
|
|
19
19
|
import type QyStepsComponent from './qy-steps'
|
|
20
20
|
import type QyStepComponent from './qy-step'
|
|
21
|
-
import type QyFullscreenComponent from './qy-fullscreen'
|
|
22
|
-
import type QyDrawerComponent from './qy-drawer'
|
|
21
|
+
import type QyFullscreenComponent from './qy-fullscreen'
|
|
22
|
+
import type QyDrawerComponent from './qy-drawer'
|
|
23
23
|
import type QyIconComponent from './qy-icon'
|
|
24
24
|
import type QyIconPickerComponent from './qy-icon-picker'
|
|
25
25
|
import type QyRowComponent from './qy-row'
|
|
@@ -33,11 +33,12 @@ import type QyCollapseComponent from './qy-collapse'
|
|
|
33
33
|
import type QyCollapseItemComponent from './qy-collapse-item'
|
|
34
34
|
import type QyLinkComponent from './qy-link'
|
|
35
35
|
import type QyDividerComponent from './qy-divider'
|
|
36
|
-
import type QyEmptyComponent from './qy-empty'
|
|
37
|
-
import type QyAlertComponent from './qy-alert'
|
|
38
|
-
import type QyCardComponent from './qy-card'
|
|
39
|
-
import type QyResultComponent from './qy-result'
|
|
40
|
-
import type
|
|
36
|
+
import type QyEmptyComponent from './qy-empty'
|
|
37
|
+
import type QyAlertComponent from './qy-alert'
|
|
38
|
+
import type QyCardComponent from './qy-card'
|
|
39
|
+
import type QyResultComponent from './qy-result'
|
|
40
|
+
import type QyDialogComponent from './qy-dialog'
|
|
41
|
+
import type QyScrollbarComponent from './qy-scrollbar'
|
|
41
42
|
import type QyProgressComponent from './qy-progress'
|
|
42
43
|
import type QyStatisticComponent from './qy-statistic'
|
|
43
44
|
import type QyAvatarComponent from './qy-avatar'
|
|
@@ -176,6 +177,11 @@ export type {
|
|
|
176
177
|
QyPopoverProps,
|
|
177
178
|
QyPopoverTrigger
|
|
178
179
|
} from './qy-popover'
|
|
180
|
+
export type {
|
|
181
|
+
QyDialogCloseReason,
|
|
182
|
+
QyDialogEmits,
|
|
183
|
+
QyDialogProps
|
|
184
|
+
} from './qy-dialog'
|
|
179
185
|
export type {
|
|
180
186
|
QySkeletonAttrs,
|
|
181
187
|
QySkeletonProps,
|
|
@@ -237,22 +243,22 @@ export type {
|
|
|
237
243
|
QyFullscreenProps,
|
|
238
244
|
QyFullscreenSize,
|
|
239
245
|
QyFullscreenSlots
|
|
240
|
-
} from './qy-fullscreen'
|
|
241
|
-
export type {
|
|
242
|
-
QyLoadingDirectiveOptions,
|
|
243
|
-
QyLoadingDirectiveValue,
|
|
244
|
-
QyLoadingHandle,
|
|
245
|
-
QyLoadingServiceOptions
|
|
246
|
-
} from './qy-loading'
|
|
247
|
-
export type {
|
|
248
|
-
QyDrawerCloseReason,
|
|
249
|
-
QyDrawerEmits,
|
|
250
|
-
QyDrawerPlacement,
|
|
251
|
-
QyDrawerProps,
|
|
252
|
-
QyDrawerSlotProps,
|
|
253
|
-
QyDrawerSlots
|
|
254
|
-
} from './qy-drawer'
|
|
255
|
-
export type {
|
|
246
|
+
} from './qy-fullscreen'
|
|
247
|
+
export type {
|
|
248
|
+
QyLoadingDirectiveOptions,
|
|
249
|
+
QyLoadingDirectiveValue,
|
|
250
|
+
QyLoadingHandle,
|
|
251
|
+
QyLoadingServiceOptions
|
|
252
|
+
} from './qy-loading'
|
|
253
|
+
export type {
|
|
254
|
+
QyDrawerCloseReason,
|
|
255
|
+
QyDrawerEmits,
|
|
256
|
+
QyDrawerPlacement,
|
|
257
|
+
QyDrawerProps,
|
|
258
|
+
QyDrawerSlotProps,
|
|
259
|
+
QyDrawerSlots
|
|
260
|
+
} from './qy-drawer'
|
|
261
|
+
export type {
|
|
256
262
|
QyIconPickerEmits,
|
|
257
263
|
QyIconPickerExposed,
|
|
258
264
|
QyIconPickerModelValue,
|
|
@@ -353,20 +359,20 @@ export type {
|
|
|
353
359
|
QyAlertSlots,
|
|
354
360
|
QyAlertType
|
|
355
361
|
} from './qy-alert'
|
|
356
|
-
export type {
|
|
357
|
-
QyCardAttrs,
|
|
358
|
-
QyCardEmits,
|
|
359
|
-
QyCardProps,
|
|
360
|
-
QyCardShadow,
|
|
361
|
-
QyCardSlots
|
|
362
|
-
} from './qy-card'
|
|
363
|
-
export type {
|
|
364
|
-
QyResultAttrs,
|
|
365
|
-
QyResultProps,
|
|
366
|
-
QyResultSlots,
|
|
367
|
-
QyResultStatus
|
|
368
|
-
} from './qy-result'
|
|
369
|
-
export type {
|
|
362
|
+
export type {
|
|
363
|
+
QyCardAttrs,
|
|
364
|
+
QyCardEmits,
|
|
365
|
+
QyCardProps,
|
|
366
|
+
QyCardShadow,
|
|
367
|
+
QyCardSlots
|
|
368
|
+
} from './qy-card'
|
|
369
|
+
export type {
|
|
370
|
+
QyResultAttrs,
|
|
371
|
+
QyResultProps,
|
|
372
|
+
QyResultSlots,
|
|
373
|
+
QyResultStatus
|
|
374
|
+
} from './qy-result'
|
|
375
|
+
export type {
|
|
370
376
|
QyScrollbarAttrs,
|
|
371
377
|
QyScrollbarDirection,
|
|
372
378
|
QyScrollbarEmits,
|
|
@@ -440,7 +446,7 @@ export const QyUpload: Plugin
|
|
|
440
446
|
export const QyImage: Plugin
|
|
441
447
|
export const QyImagePreview: Plugin
|
|
442
448
|
export const QyImageUpload: Plugin
|
|
443
|
-
export const QyDialog:
|
|
449
|
+
export const QyDialog: typeof QyDialogComponent
|
|
444
450
|
export const QyButton: Plugin
|
|
445
451
|
export const QyDropdown: Plugin
|
|
446
452
|
export const QyInput: typeof QyInputComponent
|
|
@@ -475,13 +481,13 @@ export const QySkeletonItem: typeof QySkeletonItemComponent
|
|
|
475
481
|
export const QyTabs: typeof QyTabsComponent
|
|
476
482
|
export const QyTabPane: typeof QyTabPaneComponent
|
|
477
483
|
export const QySteps: typeof QyStepsComponent
|
|
478
|
-
export const QyStep: typeof QyStepComponent
|
|
479
|
-
export const QyFullscreen: typeof QyFullscreenComponent
|
|
480
|
-
export const QyDrawer: typeof QyDrawerComponent
|
|
481
|
-
export const QyLoading: Plugin
|
|
482
|
-
export const vQyLoading: typeof import('./qy-loading').vQyLoading
|
|
483
|
-
export const openQyLoading: typeof import('./qy-loading').openQyLoading
|
|
484
|
-
export const QyIcon: typeof QyIconComponent
|
|
484
|
+
export const QyStep: typeof QyStepComponent
|
|
485
|
+
export const QyFullscreen: typeof QyFullscreenComponent
|
|
486
|
+
export const QyDrawer: typeof QyDrawerComponent
|
|
487
|
+
export const QyLoading: Plugin
|
|
488
|
+
export const vQyLoading: typeof import('./qy-loading').vQyLoading
|
|
489
|
+
export const openQyLoading: typeof import('./qy-loading').openQyLoading
|
|
490
|
+
export const QyIcon: typeof QyIconComponent
|
|
485
491
|
export const QyIconPicker: typeof QyIconPickerComponent
|
|
486
492
|
export const QyRow: typeof QyRowComponent
|
|
487
493
|
export const QyCol: typeof QyColComponent
|
|
@@ -494,11 +500,11 @@ export const QyCollapse: typeof QyCollapseComponent
|
|
|
494
500
|
export const QyCollapseItem: typeof QyCollapseItemComponent
|
|
495
501
|
export const QyLink: typeof QyLinkComponent
|
|
496
502
|
export const QyDivider: typeof QyDividerComponent
|
|
497
|
-
export const QyEmpty: typeof QyEmptyComponent
|
|
498
|
-
export const QyAlert: typeof QyAlertComponent
|
|
499
|
-
export const QyCard: typeof QyCardComponent
|
|
500
|
-
export const QyResult: typeof QyResultComponent
|
|
501
|
-
export const QyScrollbar: typeof QyScrollbarComponent
|
|
503
|
+
export const QyEmpty: typeof QyEmptyComponent
|
|
504
|
+
export const QyAlert: typeof QyAlertComponent
|
|
505
|
+
export const QyCard: typeof QyCardComponent
|
|
506
|
+
export const QyResult: typeof QyResultComponent
|
|
507
|
+
export const QyScrollbar: typeof QyScrollbarComponent
|
|
502
508
|
export const QyProgress: typeof QyProgressComponent
|
|
503
509
|
export const QyStatistic: typeof QyStatisticComponent
|
|
504
510
|
export const QyAvatar: typeof QyAvatarComponent
|
|
@@ -559,14 +565,14 @@ declare const _default: Plugin & {
|
|
|
559
565
|
QySkeletonItem: typeof QySkeletonItemComponent
|
|
560
566
|
QyTabs: typeof QyTabsComponent
|
|
561
567
|
QyTabPane: typeof QyTabPaneComponent
|
|
562
|
-
QySteps: typeof QyStepsComponent
|
|
563
|
-
QyStep: typeof QyStepComponent
|
|
564
|
-
QyFullscreen: typeof QyFullscreenComponent
|
|
565
|
-
QyDrawer: typeof QyDrawerComponent
|
|
566
|
-
QyLoading: typeof QyLoading
|
|
567
|
-
vQyLoading: typeof vQyLoading
|
|
568
|
-
openQyLoading: typeof openQyLoading
|
|
569
|
-
QyIcon: typeof QyIconComponent
|
|
568
|
+
QySteps: typeof QyStepsComponent
|
|
569
|
+
QyStep: typeof QyStepComponent
|
|
570
|
+
QyFullscreen: typeof QyFullscreenComponent
|
|
571
|
+
QyDrawer: typeof QyDrawerComponent
|
|
572
|
+
QyLoading: typeof QyLoading
|
|
573
|
+
vQyLoading: typeof vQyLoading
|
|
574
|
+
openQyLoading: typeof openQyLoading
|
|
575
|
+
QyIcon: typeof QyIconComponent
|
|
570
576
|
QyIconPicker: typeof QyIconPickerComponent
|
|
571
577
|
QyRow: typeof QyRowComponent
|
|
572
578
|
QyCol: typeof QyColComponent
|
|
@@ -579,11 +585,11 @@ declare const _default: Plugin & {
|
|
|
579
585
|
QyCollapseItem: typeof QyCollapseItemComponent
|
|
580
586
|
QyLink: typeof QyLinkComponent
|
|
581
587
|
QyDivider: typeof QyDividerComponent
|
|
582
|
-
QyEmpty: typeof QyEmptyComponent
|
|
583
|
-
QyAlert: typeof QyAlertComponent
|
|
584
|
-
QyCard: typeof QyCardComponent
|
|
585
|
-
QyResult: typeof QyResultComponent
|
|
586
|
-
QyScrollbar: typeof QyScrollbarComponent
|
|
588
|
+
QyEmpty: typeof QyEmptyComponent
|
|
589
|
+
QyAlert: typeof QyAlertComponent
|
|
590
|
+
QyCard: typeof QyCardComponent
|
|
591
|
+
QyResult: typeof QyResultComponent
|
|
592
|
+
QyScrollbar: typeof QyScrollbarComponent
|
|
587
593
|
QyProgress: typeof QyProgressComponent
|
|
588
594
|
QyStatistic: typeof QyStatisticComponent
|
|
589
595
|
QyAvatar: typeof QyAvatarComponent
|