@qynpm/ui 1.0.43 → 1.0.45
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 +2 -0
- package/dist/index.cjs +12 -12
- package/dist/index.mjs +13 -13
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +1 -1
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/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-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +2 -2
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/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-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/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-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +1 -1
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/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-select/index.cjs +1 -1
- package/dist/qy-select/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-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/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-BNssRW4d.mjs → index-9G8dxxVx.mjs} +13 -13
- package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
- package/dist/shared/{index-CiE6qJCJ.mjs → index-BcDt1tKY.mjs} +151 -143
- package/dist/shared/index-BfA7ZJnJ.cjs +1 -0
- package/dist/shared/index-BfXhDFFn.cjs +1 -0
- package/dist/shared/index-Bfmf0msc.mjs +71 -0
- package/dist/shared/index-BhpomD_C.cjs +1 -0
- package/dist/shared/index-BvXyRAhX.cjs +1 -0
- package/dist/shared/index-Bz9WjKdL.cjs +1 -0
- package/dist/shared/{index-Co84fsS5.mjs → index-C5hzCMaD.mjs} +88 -80
- package/dist/shared/index-CPW3gKgP.mjs +2429 -0
- package/dist/shared/index-CUwUz-Le.cjs +1 -0
- package/dist/shared/index-CjImIyvI.mjs +124 -0
- package/dist/shared/{index-gMrQlV5n.cjs → index-CsfcDlq4.cjs} +1 -1
- package/dist/shared/{index-DAztNKSp.cjs → index-D359jZg_.cjs} +1 -1
- package/dist/shared/{index-DvFMgAcu.mjs → index-DEoy2IfN.mjs} +1 -1
- package/dist/shared/{index-BjqJCq-6.mjs → index-DM0zanTb.mjs} +3 -3
- package/dist/shared/index-DOpfxPDq.cjs +1 -0
- package/dist/shared/index-DPqFEuPp.mjs +798 -0
- package/dist/shared/index-DWBkjY5O.cjs +1 -0
- package/dist/shared/index-DaUdmOjn.cjs +1 -0
- package/dist/shared/index-MEzLM_rM.cjs +1 -0
- package/dist/shared/index-MyPNS-OR.cjs +1 -0
- package/dist/shared/{index-C4F8hXzQ.mjs → index-XSV-GmR2.mjs} +90 -81
- package/dist/shared/index-_e-HwHF0.mjs +79 -0
- package/dist/shared/{index-DXZ6Y6wd.mjs → index-uMEKxoXj.mjs} +1 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BNKC9382.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Byp7e--Y.mjs +63 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-Bypkl4Ty.mjs} +20 -18
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CPm8gzId.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CYaK3oDY.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs → index.vue_vue_type_script_setup_true_lang-DkMm40Ac.mjs} +50 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-qXBKqHCs.mjs +40 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BI4abIsm.mjs +219 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BNBJu1Mq.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BZZ8vhEf.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-Bpe6LkvL.mjs} +24 -18
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CYIUfOy9.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D2iiEHqM.mjs +413 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Dt19xolk.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DzvboHR2.mjs +176 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-E92uiH6Q.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-W44zpeKW.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-shJS7iXC.mjs} +59 -57
- package/dist/shared/index.vue_vue_type_style_index_0_lang-z2Unl0WQ.mjs +142 -0
- package/dist/shared/overlay-stack-CFFRngnU.mjs +34 -0
- package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
- package/dist/shared/{utils-DoyI5oM8.mjs → utils-CUXINmHY.mjs} +63 -49
- package/dist/shared/utils-DpkN3Zat.cjs +1 -0
- package/index.d.ts +44 -12
- package/package.json +2 -3
- package/qy-action-bar/index.d.ts +16 -4
- package/qy-autocomplete/index.d.ts +43 -2
- package/qy-checkbox/index.d.ts +1 -0
- package/qy-checkbox-group/index.d.ts +1 -0
- package/qy-date-picker/index.d.ts +1 -0
- package/qy-dialog/index.d.ts +4 -0
- package/qy-form-section/index.d.ts +22 -4
- package/qy-image/index.d.ts +1 -0
- package/qy-image-preview/index.d.ts +8 -4
- package/qy-menu-actions/index.d.ts +21 -2
- package/qy-money-input/index.d.ts +1 -0
- package/qy-pagination/index.d.ts +4 -0
- package/qy-popover/index.d.ts +4 -0
- package/qy-radio-group/index.d.ts +1 -0
- package/qy-record-quote-search/index.d.ts +53 -4
- package/qy-remark-image/index.d.ts +44 -4
- package/qy-remote-select/index.d.ts +53 -2
- package/qy-search-input/index.d.ts +66 -4
- package/qy-select/index.d.ts +4 -0
- package/qy-selection-dialog/index.d.ts +63 -2
- package/qy-switch/index.d.ts +1 -0
- package/qy-table-column-settings/index.d.ts +19 -2
- package/qy-tooltip/index.d.ts +5 -0
- package/qy-tree-select/index.d.ts +1 -0
- package/dist/shared/index-7MG12FbD.mjs +0 -2362
- package/dist/shared/index-BEcS8y8g.mjs +0 -68
- package/dist/shared/index-BSTMCPDj.mjs +0 -72
- package/dist/shared/index-BhvOSOfi.mjs +0 -766
- package/dist/shared/index-CGq7Q_hV.mjs +0 -119
- package/dist/shared/index-CVYNG8Fc.cjs +0 -1
- package/dist/shared/index-CbNd9JEx.cjs +0 -1
- package/dist/shared/index-CmgTSaFS.cjs +0 -1
- package/dist/shared/index-CnVhquq5.cjs +0 -1
- package/dist/shared/index-D27mwR57.cjs +0 -1
- package/dist/shared/index-DKw-seoh.cjs +0 -1
- package/dist/shared/index-DRugp8x0.cjs +0 -1
- package/dist/shared/index-DTbGlDqr.cjs +0 -1
- package/dist/shared/index-MyDDX-zj.cjs +0 -1
- package/dist/shared/index-d76Z3yrB.cjs +0 -1
- package/dist/shared/index-rSrDnOpu.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
- package/dist/shared/utils-BjEXwY3L.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),y=require("element-plus"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");var x={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",quarterTablePrompt:"使用方向键与 Enter 键可选择季度",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},input:{characters:"{count} / {max} 个字符"},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"},inputOTP:{groupLabel:"一次性密码输入框",defaultLabel:"请输入第 {index} 位 OTP 字符"}}};const S=e.defineComponent({__name:"ElementPaginationRenderer",props:{total:{},currentPage:{},pageSize:{},pageSizes:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},layout:{},pagerCount:{}},emits:["page-change","page-size-change"],setup(r,{emit:v}){const t=r,m=v,c=e.computed(()=>t.disabled||t.loading),u=e.computed(()=>t.layout!==void 0?t.layout.join(", "):t.pageSizes.length>1?"sizes, prev, pager, next":"prev, pager, next"),d=e.computed(()=>{const n=t.pagerCount??7;return Number.isInteger(n)&&n>=5&&n<=21&&n%2===1?n:7}),p=e.ref(null),i=e.ref(null);let g=0;function h(){var n,s;(s=(n=i.value)==null?void 0:n.querySelector('.el-pagination__sizes [role="combobox"]'))==null||s.setAttribute("aria-label","每页条数")}e.onMounted(h),e.onUpdated(h);function b(n){if(!c.value){if(p.value!==null){p.value=null;return}n!==t.currentPage&&m("page-change",n)}}function f(n){if(c.value)return;p.value=n;const s=++g;Promise.resolve().then(()=>{g===s&&(p.value=null)}),m("page-size-change",n)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rendererRef",ref:i,class:"qy-pagination-element-renderer","data-testid":"qy-pagination-element-renderer"},[e.createVNode(e.unref(y.ElConfigProvider),{locale:e.unref(x)},{default:e.withCtx(()=>[e.createVNode(e.unref(y.ElPagination),{layout:u.value,total:r.total,"current-page":r.currentPage,"page-size":r.pageSize,"page-sizes":[...r.pageSizes],"pager-count":d.value,disabled:c.value,teleported:!1,"onUpdate:currentPage":b,"onUpdate:pageSize":f},null,8,["layout","total","current-page","page-size","page-sizes","pager-count","disabled"])]),_:1},8,["locale"])],512))}}),C=_._export_sfc(S,[["__scopeId","data-v-4815a52b"]]),N=["aria-busy"],D={class:"qy-pagination__info"},T={class:"qy-pagination__total"},w={class:"qy-pagination__summary"},E={class:"qy-pagination__controls"},L=e.defineComponent({__name:"index",props:{layout:{},pagerCount:{},total:{},page:{},pageSize:{},pageSizeOptions:{default:()=>[10,20,50]},hideOnSinglePage:{type:Boolean,default:!1},disabled:{type:Boolean},loading:{type:Boolean},binding:{}},emits:["page-change","page-size-change"],setup(r,{emit:v}){const t=r,m=v;function c(a,o){const l=Number(a);return Number.isInteger(l)&&l>0?l:o}const u=e.computed(()=>{var o;const a=Number(t.total??((o=t.binding)==null?void 0:o.total)??0);return Number.isFinite(a)&&a>=0?a:0}),d=e.computed(()=>{var a;return c(t.pageSize??((a=t.binding)==null?void 0:a.pageSize),10)}),p=e.computed(()=>{const o=(Array.isArray(t.pageSizeOptions)?t.pageSizeOptions:[]).map(l=>Number(l)).filter(l=>Number.isInteger(l)&&l>0);return[...new Set([...o,d.value])].sort((l,P)=>l-P)}),i=e.computed(()=>Math.max(1,Math.ceil(u.value/d.value))),g=e.computed(()=>{var a;return Math.min(Math.max(1,c(t.page??((a=t.binding)==null?void 0:a.page),1)),i.value)}),h=e.computed(()=>{var a;return!!(t.disabled??((a=t.binding)==null?void 0:a.disabled))}),b=e.computed(()=>{var a;return!!(t.loading??((a=t.binding)==null?void 0:a.loading))}),f=e.computed(()=>h.value||b.value),n=e.computed(()=>u.value>0&&(!t.hideOnSinglePage||i.value>1));function s(a){var o;f.value||!Number.isInteger(a)||a<1||a>i.value||a===g.value||((o=t.binding)==null||o.setPage(a),m("page-change",a))}function z(a){var o;f.value||!Number.isInteger(a)||a<=0||a===d.value||((o=t.binding)==null||o.setPageSize(a),m("page-size-change",a))}return(a,o)=>n.value?(e.openBlock(),e.createElementBlock("nav",{key:0,class:"qy-pagination","data-testid":"qy-pagination","aria-label":"分页","aria-busy":b.value?"true":void 0},[e.createElementVNode("div",D,[e.createElementVNode("span",T,"共 "+e.toDisplayString(u.value)+" 条",1),e.createElementVNode("span",w," 第 "+e.toDisplayString(g.value)+" / "+e.toDisplayString(i.value)+" 页 ",1)]),e.createElementVNode("div",E,[e.createVNode(C,{total:u.value,"current-page":g.value,"page-size":d.value,"page-sizes":p.value,disabled:h.value,loading:b.value,layout:t.layout,"pager-count":t.pagerCount,onPageChange:s,onPageSizeChange:z},null,8,["total","current-page","page-size","page-sizes","disabled","loading","layout","pager-count"])])],8,N)):e.createCommentVNode("",!0)}}),k=_._export_sfc(L,[["__scopeId","data-v-0a5f9304"]]);exports.Pagination=k;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as f, useAttrs as m, computed as v, openBlock as b, createBlock as h, unref as l, mergeProps as x } from "vue";
|
|
2
|
+
import { useFormDisabled as g, ElSwitch as V } from "element-plus";
|
|
3
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const S = /* @__PURE__ */ f({
|
|
5
|
+
name: "QySwitch",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, Boolean], default: !1 },
|
|
10
|
+
activeValue: { type: [String, Number, Boolean], default: !0 },
|
|
11
|
+
inactiveValue: { type: [String, Number, Boolean], default: !1 },
|
|
12
|
+
disabled: { type: Boolean, default: () => {
|
|
13
|
+
} },
|
|
14
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
15
|
+
loading: { type: Boolean, default: !1 },
|
|
16
|
+
size: {},
|
|
17
|
+
activeText: { default: "" },
|
|
18
|
+
inactiveText: { default: "" },
|
|
19
|
+
inlinePrompt: { type: Boolean, default: !1 },
|
|
20
|
+
name: { default: "" },
|
|
21
|
+
id: {},
|
|
22
|
+
tabindex: {},
|
|
23
|
+
ariaLabel: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
26
|
+
setup(e, { emit: n }) {
|
|
27
|
+
const a = n, i = g(), u = m(), d = v(
|
|
28
|
+
() => Object.fromEntries(
|
|
29
|
+
Object.entries(u).filter(
|
|
30
|
+
([t]) => t === "class" || t === "style" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-")
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
function o(t) {
|
|
35
|
+
a("focus", t);
|
|
36
|
+
}
|
|
37
|
+
function c(t) {
|
|
38
|
+
a("blur", t);
|
|
39
|
+
}
|
|
40
|
+
function r(t) {
|
|
41
|
+
i.value || e.loading || a("update:modelValue", t === !0 ? e.activeValue : e.inactiveValue);
|
|
42
|
+
}
|
|
43
|
+
function s(t) {
|
|
44
|
+
i.value || e.loading || a("change", t === !0 ? e.activeValue : e.inactiveValue);
|
|
45
|
+
}
|
|
46
|
+
return (t, y) => (b(), h(l(V), x(d.value, {
|
|
47
|
+
class: "qy-switch",
|
|
48
|
+
"model-value": e.modelValue === e.activeValue,
|
|
49
|
+
"active-value": !0,
|
|
50
|
+
"inactive-value": !1,
|
|
51
|
+
disabled: l(i),
|
|
52
|
+
"validate-event": e.validateEvent,
|
|
53
|
+
loading: e.loading,
|
|
54
|
+
size: e.size,
|
|
55
|
+
"active-text": e.activeText,
|
|
56
|
+
"inactive-text": e.inactiveText,
|
|
57
|
+
"inline-prompt": e.inlinePrompt,
|
|
58
|
+
name: e.name,
|
|
59
|
+
id: e.id,
|
|
60
|
+
tabindex: e.tabindex,
|
|
61
|
+
"aria-label": e.ariaLabel,
|
|
62
|
+
"onUpdate:modelValue": r,
|
|
63
|
+
onChange: s,
|
|
64
|
+
onFocusin: o,
|
|
65
|
+
onFocusout: c
|
|
66
|
+
}), null, 16, ["model-value", "disabled", "validate-event", "loading", "size", "active-text", "inactive-text", "inline-prompt", "name", "id", "tabindex", "aria-label"]));
|
|
67
|
+
}
|
|
68
|
+
}), F = /* @__PURE__ */ B(S, [["__scopeId", "data-v-3e42c7f5"]]);
|
|
69
|
+
export {
|
|
70
|
+
F as S
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),g=require("element-plus"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean]},value:{type:[String,Number,Boolean],default:!0},label:{},disabled:{type:Boolean,default:void 0},size:{default:void 0},name:{},border:{type:Boolean,default:!1},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const t=s,n=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),l=a.computed(()=>t.value),u=a.ref(null);let r=null;const b=a.computed(()=>t.modelValue!==void 0?t.modelValue:l.value===!0?!1:l.value===!1?!0:typeof l.value=="string"?`__qy-radio-unselected__${l.value}`:Number.NaN);a.onMounted(()=>{var e;r=((e=u.value)==null?void 0:e.$el.querySelector("input.el-radio__original"))??null,r==null||r.addEventListener("keydown",d)}),a.onBeforeUnmount(()=>{r==null||r.removeEventListener("keydown",d)});function i(){return!t.disabled&&t.modelValue!==l.value}function p(){i()&&n("update:modelValue",l.value)}function v(){i()&&n("change",l.value)}function d(e){if(e.key!==" "&&e.code!=="Space")return;const o=e.target;!o||o.tagName!=="INPUT"||o.type!=="radio"||o.disabled||o.checked||(e.preventDefault(),o.click())}function _(e){n("focus",e)}function h(e){n("blur",e)}return(e,o)=>(a.openBlock(),a.createBlock(a.unref(g.ElRadio),a.mergeProps({ref_key:"radioRef",ref:u},m.value,{class:"qy-radio","model-value":b.value,value:l.value,label:t.label,disabled:t.disabled,size:t.size,name:t.name,border:t.border,id:t.id,tabindex:t.tabindex,"aria-label":t.ariaLabel,"aria-controls":t.ariaControls,"onUpdate:modelValue":p,onChange:v,onFocusCapture:_,onBlurCapture:h}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"]))}}),x=y._export_sfc(V,[["__scopeId","data-v-66184801"]]);exports.Radio=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const F=require("element-plus"),n=require("vue"),xe=require("@element-plus/icons-vue"),y=require("element-plus"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");/*! js-cookie v3.0.8 | MIT */function L(s){for(var k=1;k<arguments.length;k++){var U=arguments[k];for(var a in U)a!=="__proto__"&&(s[a]=U[a])}return s}var He={read:function(s){return s[0]==='"'&&(s=s.slice(1,-1)),s.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(s){return encodeURIComponent(s).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function G(s,k){function U(u,b,f){if(!(typeof document>"u")){f=L({},k,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var w="";for(var r in f)f[r]&&(w+="; "+r,f[r]!==!0&&(w+="="+f[r].split(";")[0]));return document.cookie=u+"="+s.write(b,u)+w}}function a(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var b=document.cookie?document.cookie.split("; "):[],f={},w=0;w<b.length;w++){var r=b[w].split("="),T=r.slice(1).join("=");try{var B=decodeURIComponent(r[0]);if(B in f||(f[B]=s.read(T,B)),u===B)break}catch{}}return u?f[u]:f}}return Object.create({set:U,get:a,remove:function(u,b){U(u,"",L({},b,{expires:-1}))},withAttributes:function(u){return G(this.converter,L({},this.attributes,u))},withConverter:function(u){return G(L({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(k)},converter:{value:Object.freeze(s)}})}var Ve=G(He,{path:"/"});const Je="Admin-Token";function Qe(s=Je){return Ve.get(s)}const Ge=["accept","multiple","disabled"],Ye=["disabled"],Ze={class:"qy-upload__hint"},et=["placeholder","disabled"],tt=["src"],nt={key:1,class:"qy-upload__tip"},lt={class:"error"},ot={class:"error"},at=Object.assign({name:"QyUpload"},{__name:"index",props:{modelValue:{type:[Object,Array,String],default:void 0},selectedFiles:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},variant:{type:String,default:"media-card"},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:void 0},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","update:selectedFiles","selectedFilesChange","change","success","error","remove","invalid"],setup(s,{expose:k,emit:U}){const a=s,u=U,b=n.ref(null),f=n.ref(null),w=n.ref(null),r=n.ref([]),T=n.ref(null),B=n.ref(null),M=new Map,Y=new WeakMap;let P=Date.now(),O=!1;const $=n.ref(!1),K=n.ref([]),Z=n.ref(0),R=n.ref(!1),ee=n.ref(""),te=n.ref(""),j=new Set,N=new Map;function z(e){j.delete(e)&&URL.revokeObjectURL(e)}function ne(){for(const e of j)z(e)}function I(e){const t=N.get(e);t&&(N.delete(e),t.close())}function le(){for(const e of N.keys())I(e)}function oe(e){var t;(t=M.get(e))==null||t()}function ae(){for(const e of M.values())e()}const _=n.ref(!1),x=n.ref(""),W=n.ref(!1);n.onMounted(()=>{a.modelValue!==void 0||!a.autoUpload||ue(a.defaultValue)});const ke=n.computed(()=>({large:"160px",default:"140px",small:"80px"})[a.size]??a.size),h=y.useFormDisabled(),be=n.computed(()=>r.value.some(e=>e.status==="uploading")),Ce=n.computed(()=>a.variant==="file-list"||a.supportVideo?"text":"picture-card"),ie=n.computed(()=>a.supportVideo?1:!a.autoUpload&&!a.multiple?2:a.limit),Ue=n.computed(()=>{var e;return a.isShowTip&&(a.fileSize||((e=V.value)==null?void 0:e.length))}),V=n.computed(()=>{var e;return(e=a.fileType)!=null&&e.length?a.fileType.map(t=>String(t).trim().replace(/^\./,"").toLowerCase()).filter(Boolean):a.variant==="file-list"?[]:a.supportVideo?["mp4","mov","avi"]:["jpg","jpeg","png","gif","webp"]}),E=n.computed(()=>{if(!a.autoUpload&&!a.multiple)return!1;const e=a.supportVideo?1:a.limit;return r.value.length>=e}),re=n.computed(()=>V.value.map(e=>`.${e}`).join(",")),Be=n.computed(()=>({"qy-upload--reached-limit":E.value,"qy-upload--disabled":h.value,"qy-upload--video":a.supportVideo,"qy-upload--without-text":!a.showText&&!a.showPasteInput}));n.watch(x,()=>{O||q()}),n.watch(()=>a.modelValue,e=>{a.autoUpload&&e!==void 0&&ue(e)},{immediate:!0,deep:!0}),n.watch(()=>[a.autoUpload,a.selectedFiles],([e,t])=>{e||(r.value=S(t))},{immediate:!0,deep:!0});function se(e){return Array.isArray(e)?e.filter(Boolean):e?String(e).split(",").filter(Boolean):[]}function Fe(e){return Array.isArray(e)?{files:e,text:""}:typeof e=="string"?{files:se(e),text:""}:e&&typeof e=="object"?{files:se(e.files),text:e.text??""}:{files:[],text:""}}function Me(e=[]){return e.map((t,l)=>({name:String(t).split("/").pop()||`file-${l}`,url:t,status:"success",uid:y.genFileId()}))}function S(e=[]){return e.filter(Boolean).map((t,l)=>{const o=n.toRaw(t);return{name:o.name,raw:o,status:"ready",uid:Re(o,l)}})}function Re(e,t){if(e.uid!=null)return e.uid;const l=Y.get(e);return l??(P+=t+1,Y.set(e,P),P)}function X(e=r.value){return e.map(t=>{const l=t.raw??(t instanceof File?t:null);return l?n.toRaw(l):null}).filter(Boolean)}function A(e){u("update:selectedFiles",e),u("selectedFilesChange",e)}function Ne(e,t){if(a.autoUpload)return;const l=e==null?void 0:e.raw;if(l&&!H(l)){r.value=S(a.selectedFiles);return}const o=X(t);l&&!o.includes(l)&&o.push(l);const i=a.multiple?o:o.slice(-1);r.value=S(i),A(i)}function Se(e){const t=new Set(e.map(o=>o.url)),l=r.value.filter(o=>(o.status==="ready"||o.status==="uploading")&&!t.has(o.url));return[...e,...l]}function ue(e){const t=Fe(e);O=!0,x.value=t.text,r.value=Se(Me(t.files)),n.nextTick(()=>{O=!1})}function de(e){return a.valueFormat==="array"?e.files:a.valueFormat==="string"?e.files.join(","):e}function qe(){var e;(e=T.value)==null||e.focus()}function De(e){e.target.value=""}function q(e){const o={files:(e??r.value).filter(i=>i.status==="success"&&i.url).map(i=>i.url),text:x.value};u("update:modelValue",de(o)),u("change",o),a.callBack&&a.callBack(o)}function Te(e,t){if(I(e.uid),oe(e.uid),z(e.url),!a.autoUpload){const l=X(t);r.value=S(l),A(l),u("remove",e,t);return}q(t),u("remove",e,t)}function ce(e){var l;const t=(e==null?void 0:e.name)||"";return t.includes(".")&&((l=t.split(".").pop())==null?void 0:l.toLowerCase())||""}function pe(e){var i,c,d;const t=((c=(i=e==null?void 0:e.type)==null?void 0:i.toLowerCase)==null?void 0:c.call(i))||"",l={"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(l[t])return l[t];const o=(d=t.split("/")[1])==null?void 0:d.split("+")[0];return o?[o]:[]}function je(e){if(!V.value.length)return!0;const t=ce(e),l=pe(e);return[t,...l].some(o=>V.value.includes(o))}function H(e){if(a.fileSize>0&&e.size>a.fileSize*1024*1024){const l={code:"size",file:e,message:`文件大小不能超过${a.fileSize}M`};return y.ElMessage.warning(l.message),u("invalid",l),!1}if(!je(e)){const l={code:"extension",file:e,message:`格式不支持,仅允许: ${V.value.join("/")}`};return y.ElMessage.warning(l.message),u("invalid",l),!1}return!0}async function ze(e,t,l,o,i){const c=fe(e),d={close:()=>o.close()};N.set(i,d);const m=()=>N.get(i)===d;try{const p=await a.uploadRequest({file:e,formData:c,api:a.api,name:a.name,tokenKey:a.tokenKey,extraData:a.extraData});if(!m())return;const v=Ie(p);if(!v){const C=new Error("上传失败,未返回文件地址");y.ElMessage.error(C.message),u("error",C),l==null||l(C);return}y.ElMessage.success("上传成功"),t==null||t({...typeof p=="object"&&p?p:{},url:v})}catch(p){if(!m())return;y.ElMessage.error("上传失败"),u("error",p),l==null||l(p)}finally{m()&&I(i)}}function fe(e){const t=new FormData;return t.append(a.name,e),a.extraData&&Object.entries(a.extraData).forEach(([l,o])=>t.append(l,o)),t}function Ie(e){var o,i;if(typeof e=="string")return e;const t=e||{},l=t.urls??t.url??((o=t.data)==null?void 0:o.urls)??((i=t.data)==null?void 0:i.url)??"";return Array.isArray(l)?l[0]||"":l||""}function me(e,t,l,o,i=e.uid){const c=y.ElLoading.service({target:f.value,text:"上传中",background:"rgba(255,255,255,0.7)"});if(a.uploadRequest){ze(e,l,o,c,i);return}const d=a.api.startsWith("http")?a.api:window.location.origin+a.api.replace(/^([^/])/,"/$1"),m=fe(e),p=new XMLHttpRequest;let v=!1;const C=()=>v?!1:(v=!0,M.delete(i),c.close(),!0);M.set(i,()=>{C()&&p.abort()}),p.onabort=C,p.open("POST",d);const we=Qe(a.tokenKey);we&&p.setRequestHeader("Authorization",`Bearer ${we}`),p.upload.onprogress=g=>{!v&&g.total>0&&(t==null||t({percent:g.loaded/g.total*100}))},p.onload=()=>{if(C()){if(p.status<200||p.status>=300){const g=`上传失败 (HTTP ${p.status})`;y.ElMessage.error(g),u("error",{msg:g,status:p.status}),o==null||o(new Error(g));return}try{const g=JSON.parse(p.responseText);g.code===200&&g.urls?(y.ElMessage.success("上传成功"),l==null||l({...g,url:g.urls})):(y.ElMessage.error(g.msg||"上传失败"),u("error",g),o==null||o(g))}catch{y.ElMessage.error("上传失败,响应格式错误"),u("error",new Error("Response parse error")),o==null||o(new Error("Response parse error"))}}},p.onerror=()=>{C()&&(y.ElMessage.error("上传失败,网络异常"),u("error",new Error("Network error")),o==null||o(new Error("Network error")))},p.send(m)}function ve(e){return h.value?!1:H(e)}function _e(e,t){const l=r.value.find(o=>{var i;return o.uid===(e==null?void 0:e.uid)||((i=o.raw)==null?void 0:i.uid)===(e==null?void 0:e.uid)});l&&(l.url=t,l.status="success")}function Ee(e){me(e.file,e.onProgress,t=>{_e(e.file,t.url),e.onSuccess(t),q(),u("success",t)},t=>e.onError(t))}function Ae(e){var o;if(!e.url)return;const t=((o=e.url.split(".").pop())==null?void 0:o.toLowerCase())||"";if(["mp4","mov","avi","webm"].includes(t)){ee.value=e.url,te.value=e.name||"视频预览",R.value=!0;return}const l=r.value.filter(i=>{var c;return i.status==="success"&&i.url&&!["mp4","mov","avi","webm"].includes((c=i.url.split(".").pop())==null?void 0:c.toLowerCase())});K.value=l.map(i=>i.url),Z.value=l.findIndex(i=>i.uid===e.uid)||0,$.value=!0}function Le(){$.value=!1,K.value=[]}function Pe(e,t){if(e.name&&ce(e))return e;const l=pe(e).find(o=>V.value.includes(o));return l?new File([e],`paste-${Date.now()+t}.${l}`,{type:e.type,lastModified:e.lastModified}):e}function J(e){if(!a.autoUpload){const t=X(),l=e.filter(i=>H(i));if(!l.length)return;const o=a.multiple?[...t,...l].slice(0,a.limit):l.slice(-1);r.value=S(o),A(o);return}for(let t=0;t<e.length&&!(r.value.length>=ie.value);t++){const l=Pe(e[t],t);if(!ve(l))continue;const o=y.genFileId(),i=URL.createObjectURL(l);j.add(i),r.value.push({uid:o,name:l.name||`file-${o}`,status:"uploading",percentage:0,url:i}),me(l,c=>{const d=r.value.find(m=>m.uid===o);d&&(d.percentage=c.percent)},c=>{const d=r.value.find(m=>m.uid===o);d&&(d.url!==c.url&&z(d.url),d.status="success",d.url=c.url,q(),u("success",c))},()=>Ke(o),o)}}function Oe(e){const t=e.target,l=Array.from(t.files||[]);if(t.value="",h.value||!l.length)return;const o=a.supportVideo||!a.multiple?l.slice(0,1):l;J(o)}function $e(e){const t=Array.from((e==null?void 0:e.files)||[]).filter(c=>{var d;return(d=c.type)==null?void 0:d.startsWith("image/")});if(t.length)return t;const l=e==null?void 0:e.items;if(!l)return[];const o=[],i=new Set;for(let c=0;c<l.length;c++){const d=l[c];if(d.kind==="file"&&d.type.startsWith("image/")){const m=d.getAsFile();m&&!i.has(m)&&(i.add(m),o.push(m))}}return o}function D(e){if(h.value)return;const t=$e(e.clipboardData);t.length&&(e.preventDefault(),J(t))}function ge(){h.value||a.disableDrag||(_.value=!0)}function ye(){_.value=!1}function he(e){var l;if(_.value=!1,h.value||a.disableDrag||E.value)return;const t=Array.from(((l=e.dataTransfer)==null?void 0:l.files)||[]);t.length&&J(t)}function Ke(e){I(e),oe(e);const t=r.value.findIndex(l=>l.uid===e);t!==-1&&(z(r.value[t].url),r.value.splice(t,1))}n.onBeforeUnmount(()=>{le(),ae(),ne()});function Q(){var e;h.value||E.value||(e=w.value)==null||e.click()}function We(){var e;le(),ae();for(const t of r.value)(e=t.url)!=null&&e.startsWith("blob:")&&j.add(t.url);ne(),r.value=[],x.value="",A([]),a.autoUpload&&q()}return k({openFileDialog:Q,getPathList:()=>r.value.filter(e=>e.status==="success").map(e=>e.url),clearFiles:We,getValue:()=>({files:r.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:x.value}),getModelValue:()=>de({files:r.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:x.value})}),(e,t)=>{var p;const l=F.ElIcon,o=F.ElInput,i=F.ElPopover,c=F.ElUpload,d=F.ElImageViewer,m=F.ElDialog;return n.openBlock(),n.createElementBlock("div",{ref_key:"rootRef",ref:f,class:n.normalizeClass(["qy-upload",Be.value]),style:n.normalizeStyle({"--qy-upload-size":ke.value})},[n.createElementVNode("input",{ref_key:"nativeInputRef",ref:w,class:"qy-upload__native-input",type:"file",accept:re.value,multiple:s.supportVideo?!1:s.multiple,disabled:n.unref(h),onChange:Oe},null,40,Ge),n.createVNode(c,{ref_key:"uploadRef",ref:b,"file-list":r.value,"onUpdate:fileList":t[7]||(t[7]=v=>r.value=v),action:"#",multiple:s.supportVideo?!1:s.multiple,limit:ie.value,"auto-upload":s.autoUpload,"list-type":Ce.value,accept:re.value,disabled:n.unref(h),"http-request":Ee,"before-upload":ve,"on-change":Ne,"on-preview":Ae,"on-remove":Te},n.createSlots({default:n.withCtx(()=>[s.variant!=="file-list"&&!E.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["qy-upload__trigger",{"is-dragover":_.value}]),onPaste:D,onDragover:n.withModifiers(ge,["prevent"]),onDragleave:n.withModifiers(ye,["prevent"]),onDrop:n.withModifiers(he,["prevent"])},[n.createVNode(l,{class:"qy-upload__icon"},{default:n.withCtx(()=>[n.createVNode(n.unref(xe.Plus))]),_:1}),s.supportVideo?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[10]||(t[10]=n.createElementVNode("span",{class:"qy-upload__label"},"点击上传视频",-1)),n.createElementVNode("span",Ze,"支持 "+n.toDisplayString(V.value.join(" / "))+",不超过 "+n.toDisplayString(s.fileSize)+"MB",1)],64)):n.createCommentVNode("",!0),s.showText?(n.openBlock(),n.createElementBlock("div",{key:1,class:"qy-upload__text",onClick:t[4]||(t[4]=n.withModifiers(()=>{},["stop"])),onPaste:n.withModifiers(D,["stop"])},[n.createVNode(i,{visible:W.value,"onUpdate:visible":t[3]||(t[3]=v=>W.value=v),placement:"bottom-start",width:220,trigger:"click","popper-class":"qy-upload__text-popover",onAfterEnter:qe},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["qy-upload__text-preview",{"is-placeholder":!x.value}])},n.toDisplayString(x.value||s.pastePlaceholder),3)]),default:n.withCtx(()=>[n.createVNode(o,{ref_key:"inputRef",ref:T,modelValue:x.value,"onUpdate:modelValue":t[1]||(t[1]=v=>x.value=v),type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:s.pastePlaceholder,disabled:n.unref(h),onBlur:t[2]||(t[2]=v=>W.value=!1),onPaste:n.withModifiers(D,["stop"])},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["visible"])],32)):s.showPasteInput?(n.openBlock(),n.createElementBlock("div",{key:2,class:"qy-upload__text",onClick:t[6]||(t[6]=n.withModifiers(()=>{},["stop"])),onPaste:n.withModifiers(D,["stop"])},[n.createElementVNode("input",{ref_key:"pasteInputRef",ref:B,class:"qy-upload__paste-input",placeholder:s.pastePlaceholder,disabled:n.unref(h),onPaste:n.withModifiers(D,["stop"]),onInput:De,onClick:t[5]||(t[5]=n.withModifiers(()=>{},["stop"]))},null,40,et)],32)):n.createCommentVNode("",!0)],34)):n.createCommentVNode("",!0)]),_:2},[s.variant==="file-list"?{name:"trigger",fn:n.withCtx(()=>[n.createElementVNode("div",{class:"qy-upload__file-trigger",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"])),onDragover:n.withModifiers(ge,["prevent"]),onDragleave:n.withModifiers(ye,["prevent"]),onDrop:n.withModifiers(he,["prevent"])},[n.renderSlot(e.$slots,"trigger",{open:Q,disabled:n.unref(h),uploading:be.value},()=>[n.createElementVNode("button",{class:"qy-upload__file-button",type:"button",disabled:n.unref(h),onClick:Q}," 选择文件 ",8,Ye)],!0)],32)]),key:"0"}:void 0]),1032,["file-list","multiple","limit","auto-upload","list-type","accept","disabled"]),$.value?(n.openBlock(),n.createBlock(d,{key:0,"url-list":K.value,"initial-index":Z.value,onClose:Le},null,8,["url-list","initial-index"])):n.createCommentVNode("",!0),n.createVNode(m,{modelValue:R.value,"onUpdate:modelValue":t[8]||(t[8]=v=>R.value=v),title:te.value,width:"640px","append-to-body":"","destroy-on-close":"",onClose:t[9]||(t[9]=v=>R.value=!1)},{default:n.withCtx(()=>[R.value?(n.openBlock(),n.createElementBlock("video",{key:0,src:ee.value,controls:"",autoplay:"",style:{width:"100%","max-height":"400px","border-radius":"4px"}},null,8,tt)):n.createCommentVNode("",!0)]),_:1},8,["modelValue","title"]),Ue.value?(n.openBlock(),n.createElementBlock("div",nt,[n.createVNode(l,null,{default:n.withCtx(()=>[n.createVNode(n.unref(xe.InfoFilled))]),_:1}),n.createElementVNode("span",null,[t[13]||(t[13]=n.createTextVNode(" 请上传 ",-1)),s.fileSize?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[11]||(t[11]=n.createTextVNode("大小不超过 ",-1)),n.createElementVNode("b",lt,n.toDisplayString(s.fileSize)+"MB",1)],64)):n.createCommentVNode("",!0),(p=V.value)!=null&&p.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[12]||(t[12]=n.createTextVNode(",格式为 ",-1)),n.createElementVNode("b",ot,n.toDisplayString(V.value.join("/")),1)],64)):n.createCommentVNode("",!0),t[14]||(t[14]=n.createTextVNode(" 的文件。 ",-1))])])):n.createCommentVNode("",!0)],6)}}}),it=Xe._export_sfc(at,[["__scopeId","data-v-b2517f27"]]);exports.Upload=it;exports.api=Ve;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),x={class:"qy-dropdown__trigger-label"},N=["aria-hidden"],$=["disabled","title","data-qy-dropdown-key","data-danger","data-active","data-disabled","aria-disabled","onClick"],z={key:0,class:"qy-dropdown__item-icon","aria-hidden":"true"},L={class:"qy-dropdown__item-label"},P={key:1,class:"qy-dropdown__empty"},T=e.defineComponent({name:"QyDropdown",inheritAttrs:!1,__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},placement:{default:"bottom-end"},trigger:{default:"click"},closeOnSelect:{type:Boolean,default:!0},panelWidth:{},width:{},maxHeight:{},modelValue:{type:Boolean,default:void 0},ariaLabel:{}},emits:["select","open-change","update:modelValue"],setup(l,{emit:g}){const o=l,i=g,y=e.useAttrs(),s=e.ref(null),u=e.ref(!1),c=e.computed(()=>o.modelValue!==void 0),n=e.computed(()=>o.disabled?!1:c.value?!!o.modelValue:u.value),p=e.computed(()=>o.items.filter(t=>!t.hidden)),b=e.computed(()=>o.panelWidth??o.width),k=e.computed(()=>[`qy-dropdown--${o.placement}`,{"is-open":n.value,"is-disabled":o.disabled}]),h=e.computed(()=>({width:v(b.value),maxHeight:v(o.maxHeight),overflowX:"hidden",overflowY:o.maxHeight?"auto":void 0})),f=e.computed(()=>({class:["qy-dropdown__trigger",{"is-open":n.value,"is-disabled":o.disabled}],type:"button",disabled:o.disabled||void 0,"aria-haspopup":"menu","aria-expanded":n.value?"true":"false","aria-label":o.ariaLabel||void 0,onClick:_,onContextmenu:w,onKeydown:B}));function v(t){return typeof t=="number"?`${t}px`:t}function d(t){o.disabled||t===n.value||(c.value||(u.value=t),i("update:modelValue",t),i("open-change",t))}function _(t){o.trigger!=="click"||o.disabled||(t.stopPropagation(),d(!n.value))}function w(t){o.trigger!=="contextmenu"||o.disabled||(t.preventDefault(),t.stopPropagation(),d(!0))}function B(t){o.disabled||o.trigger==="click"&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),d(!n.value))}async function q(t){var r,a;t.key!=="Escape"||!n.value||(t.preventDefault(),t.stopPropagation(),d(!1),await e.nextTick(),n.value||(a=(r=s.value)==null?void 0:r.querySelector(".qy-dropdown__trigger"))==null||a.focus())}function C(t,r){if(t.disabled){r.preventDefault();return}i("select",t),o.closeOnSelect&&d(!1)}function E(t){return{"is-disabled":t.disabled,"is-danger":t.danger,"is-active":t.active,"is-divided":t.divided}}function S(t){return t?e.markRaw(e.toRaw(t)):void 0}function m(t){var a;const r=t.target;!n.value||!(r instanceof Node)||(a=s.value)!=null&&a.contains(r)||d(!1)}return e.onMounted(()=>{document.addEventListener("click",m)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",m)}),(t,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"rootRef",ref:s},e.unref(y),{class:["qy-dropdown",k.value],onKeydown:q}),[e.renderSlot(t.$slots,"trigger",{open:n.value,disabled:l.disabled,attrs:f.value},()=>[e.createElementVNode("button",e.normalizeProps(e.guardReactiveProps(f.value)),[e.createElementVNode("span",x,e.toDisplayString(l.ariaLabel||"更多"),1)],16)],!0),e.withDirectives(e.createElementVNode("div",{class:"qy-dropdown__panel",style:e.normalizeStyle(h.value),"aria-hidden":n.value?void 0:"true",role:"menu"},[e.renderSlot(t.$slots,"header",{},void 0,!0),p.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,a=>(e.openBlock(),e.createElementBlock("button",{key:a.key,type:"button",class:e.normalizeClass(["qy-dropdown__item",E(a)]),disabled:a.disabled,title:a.title,"data-qy-dropdown-key":a.key,"data-danger":a.danger?"true":void 0,"data-active":a.active?"true":void 0,"data-disabled":a.disabled?"true":void 0,"aria-disabled":a.disabled?"true":void 0,role:"menuitem",onClick:V=>C(a,V)},[a.icon?(e.openBlock(),e.createElementBlock("span",z,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(a.icon))))])):e.createCommentVNode("",!0),e.createElementVNode("span",L,[e.renderSlot(t.$slots,"item",{item:a},()=>[e.createTextVNode(e.toDisplayString(a.label),1)],!0)])],10,$))),128)):(e.openBlock(),e.createElementBlock("div",P,[e.renderSlot(t.$slots,"empty",{},()=>[r[0]||(r[0]=e.createTextVNode("暂无数据",-1))],!0)])),e.renderSlot(t.$slots,"footer",{},void 0,!0)],12,N),[[e.vShow,n.value]])],16))}}),H=D._export_sfc(T,[["__scopeId","data-v-f0689274"]]);exports.Dropdown=H;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElSelect as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as Q, useAttrs as G, useSlots as J, ref as X, computed as s, Comment as Y, Text as Z, Fragment as C, isVNode as k, watch as _, onMounted as ee, onUpdated as te, openBlock as S, createBlock as K, unref as V, mergeProps as le, createSlots as ae, withCtx as c, renderSlot as p, createElementBlock as oe, renderList as ne, normalizeProps as re, guardReactiveProps as ie } from "vue";
|
|
2
|
+
import { useFormDisabled as ue, ElSelect as se, ElOption as de } from "element-plus";
|
|
3
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const ce = /* @__PURE__ */ Q({
|
|
5
5
|
name: "QySelect",
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "index",
|
|
@@ -13,9 +13,13 @@ const de = /* @__PURE__ */ D({
|
|
|
13
13
|
objectIdentityKey: { default: void 0 },
|
|
14
14
|
disabledKey: { default: "disabled" },
|
|
15
15
|
placeholder: { default: "请选择" },
|
|
16
|
-
disabled: { type: Boolean, default:
|
|
16
|
+
disabled: { type: Boolean, default: void 0 },
|
|
17
17
|
clearable: { type: Boolean, default: !0 },
|
|
18
18
|
filterable: { type: Boolean, default: !1 },
|
|
19
|
+
filterMethod: {},
|
|
20
|
+
multipleLimit: { default: 0 },
|
|
21
|
+
allowCreate: { type: Boolean, default: !1 },
|
|
22
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
19
23
|
loading: { type: Boolean, default: !1 },
|
|
20
24
|
multiple: { type: Boolean, default: !1 },
|
|
21
25
|
collapseTags: { type: Boolean, default: !1 },
|
|
@@ -28,163 +32,167 @@ const de = /* @__PURE__ */ D({
|
|
|
28
32
|
popperClass: { default: "" }
|
|
29
33
|
},
|
|
30
34
|
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur"],
|
|
31
|
-
setup(
|
|
32
|
-
const r = Symbol("invalid-select-value"), l =
|
|
35
|
+
setup(a, { expose: j, emit: I }) {
|
|
36
|
+
const r = Symbol("invalid-select-value"), l = a, n = I, O = G(), m = ue(), w = J(), y = X(null), $ = s(
|
|
33
37
|
() => Object.fromEntries(
|
|
34
|
-
Object.entries(
|
|
38
|
+
Object.entries(O).filter(
|
|
35
39
|
([e]) => e === "class" || e === "style" || e === "id" || e === "name" || e === "role" || e === "title" || e === "tabindex" || e === "remote" || e === "remoteMethod" || e === "remote-method" || e === "debounce" || e === "remoteShowSuffix" || e === "remote-show-suffix" || e.startsWith("data-") || e.startsWith("aria-")
|
|
36
40
|
)
|
|
37
41
|
)
|
|
38
42
|
), T = s(
|
|
39
43
|
() => ["qy-select__popper", l.popperClass].filter(Boolean).join(" ")
|
|
40
|
-
),
|
|
44
|
+
), B = s(() => {
|
|
41
45
|
const e = g(l.modelValue);
|
|
42
46
|
return e === r ? void 0 : e;
|
|
43
47
|
}), d = s(
|
|
44
48
|
() => l.options.map((e) => ({
|
|
45
49
|
raw: e,
|
|
46
50
|
label: x(e),
|
|
47
|
-
value:
|
|
51
|
+
value: M(e),
|
|
48
52
|
disabled: !!e[l.disabledKey]
|
|
49
53
|
}))
|
|
50
54
|
), b = s(() => {
|
|
51
|
-
const e =
|
|
52
|
-
return e ? e().some(
|
|
53
|
-
}),
|
|
55
|
+
const e = w.default;
|
|
56
|
+
return e ? e().some(A) : !1;
|
|
57
|
+
}), E = s(() => {
|
|
54
58
|
if (!l.objectIdentityKey) return;
|
|
55
|
-
const e =
|
|
56
|
-
return t ||
|
|
59
|
+
const e = B.value, t = Array.isArray(e) ? e.some(f) : f(e), o = !b.value && d.value.some((u) => f(u.value));
|
|
60
|
+
return t || o ? l.objectIdentityKey : void 0;
|
|
57
61
|
});
|
|
58
|
-
function
|
|
59
|
-
return e.type ===
|
|
62
|
+
function A(e) {
|
|
63
|
+
return e.type === Y ? !1 : e.type === Z ? typeof e.children == "string" && e.children.trim() !== "" : e.type !== C || !Array.isArray(e.children) ? !0 : e.children.some((t) => k(t) ? A(t) : typeof t == "string" ? t.trim() !== "" : t != null);
|
|
60
64
|
}
|
|
61
65
|
function f(e) {
|
|
62
66
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
63
67
|
}
|
|
64
|
-
function
|
|
68
|
+
function v(e) {
|
|
65
69
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || f(e) ? e : r;
|
|
66
70
|
}
|
|
67
71
|
function g(e) {
|
|
68
72
|
if (e == null) return e;
|
|
69
73
|
if (Array.isArray(e)) {
|
|
70
74
|
const t = e;
|
|
71
|
-
return t.every((
|
|
75
|
+
return t.every((o) => v(o) !== r) ? t : r;
|
|
72
76
|
}
|
|
73
|
-
return
|
|
77
|
+
return v(e);
|
|
74
78
|
}
|
|
75
79
|
function x(e) {
|
|
76
80
|
const t = e[l.labelKey] ?? e.label ?? e.value ?? "";
|
|
77
81
|
return typeof t == "string" || typeof t == "number" ? t : typeof t == "boolean" ? String(t) : "";
|
|
78
82
|
}
|
|
79
|
-
function
|
|
80
|
-
const t = e[l.valueKey] ?? e.value ?? e.label,
|
|
81
|
-
return
|
|
83
|
+
function M(e) {
|
|
84
|
+
const t = e[l.valueKey] ?? e.value ?? e.label, o = v(t);
|
|
85
|
+
return o === r ? void 0 : o;
|
|
82
86
|
}
|
|
83
|
-
function
|
|
87
|
+
function z(e) {
|
|
84
88
|
return Array.isArray(e) ? e.length === 0 : e === "" || e === null || e === void 0;
|
|
85
89
|
}
|
|
86
90
|
let i = null;
|
|
87
|
-
|
|
91
|
+
_(
|
|
88
92
|
[
|
|
89
93
|
d,
|
|
90
94
|
() => l.modelValue,
|
|
91
95
|
() => l.autoSelectSingle,
|
|
92
|
-
|
|
96
|
+
m,
|
|
93
97
|
() => l.multiple
|
|
94
98
|
],
|
|
95
|
-
([e]) =>
|
|
99
|
+
([e]) => h(e),
|
|
96
100
|
{ flush: "post" }
|
|
97
|
-
),
|
|
98
|
-
function
|
|
99
|
-
if (!
|
|
101
|
+
), ee(() => h(d.value)), te(() => h(d.value));
|
|
102
|
+
function h(e) {
|
|
103
|
+
if (!z(l.modelValue)) {
|
|
100
104
|
i = null;
|
|
101
105
|
return;
|
|
102
106
|
}
|
|
103
|
-
if (!l.autoSelectSingle ||
|
|
107
|
+
if (!l.autoSelectSingle || m.value || b.value || e.length !== 1) return;
|
|
104
108
|
const [t] = e;
|
|
105
109
|
if (t.disabled || t.value === void 0) return;
|
|
106
|
-
const
|
|
107
|
-
if (i && i.identityKey === l.objectIdentityKey && i.multiple === l.multiple && Object.is(i.candidate,
|
|
110
|
+
const o = L(t.value);
|
|
111
|
+
if (i && i.identityKey === l.objectIdentityKey && i.multiple === l.multiple && Object.is(i.candidate, o))
|
|
108
112
|
return;
|
|
109
113
|
i = {
|
|
110
|
-
candidate:
|
|
114
|
+
candidate: o,
|
|
111
115
|
identityKey: l.objectIdentityKey,
|
|
112
116
|
multiple: l.multiple
|
|
113
117
|
};
|
|
114
118
|
const u = l.multiple ? [t.value] : t.value;
|
|
115
|
-
|
|
119
|
+
n("update:modelValue", u), n("change", u);
|
|
116
120
|
}
|
|
117
|
-
function
|
|
121
|
+
function L(e) {
|
|
118
122
|
return !f(e) || !l.objectIdentityKey ? e : e[l.objectIdentityKey] ?? e;
|
|
119
123
|
}
|
|
120
|
-
function
|
|
124
|
+
function D(e, t) {
|
|
121
125
|
return `${String(e.value ?? e.label ?? "")}-${t}`;
|
|
122
126
|
}
|
|
123
|
-
function
|
|
127
|
+
function F(e) {
|
|
124
128
|
const t = g(e);
|
|
125
|
-
t !== r &&
|
|
129
|
+
t !== r && n("update:modelValue", t);
|
|
126
130
|
}
|
|
127
|
-
function
|
|
131
|
+
function P(e) {
|
|
128
132
|
const t = g(e);
|
|
129
|
-
t !== r &&
|
|
133
|
+
t !== r && n("change", t);
|
|
130
134
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
135
|
+
function U() {
|
|
136
|
+
n("clear");
|
|
133
137
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
138
|
+
function W(e) {
|
|
139
|
+
n("visible-change", e);
|
|
136
140
|
}
|
|
137
141
|
function H(e) {
|
|
138
|
-
|
|
142
|
+
n("focus", e);
|
|
139
143
|
}
|
|
140
144
|
function N(e) {
|
|
141
|
-
|
|
145
|
+
n("blur", e);
|
|
142
146
|
}
|
|
143
147
|
function R() {
|
|
144
148
|
var e, t;
|
|
145
|
-
(t = (e =
|
|
149
|
+
(t = (e = y.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
146
150
|
}
|
|
147
151
|
function q() {
|
|
148
152
|
var e, t;
|
|
149
|
-
(t = (e =
|
|
153
|
+
(t = (e = y.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
150
154
|
}
|
|
151
155
|
return j({
|
|
152
156
|
// 仅暴露业务常用焦点方法,复杂下拉行为仍交给 Element Plus 自身处理。
|
|
153
157
|
focus: R,
|
|
154
158
|
blur: q
|
|
155
|
-
}), (e, t) => (
|
|
159
|
+
}), (e, t) => (S(), K(V(se), le({
|
|
156
160
|
ref_key: "selectRef",
|
|
157
|
-
ref:
|
|
161
|
+
ref: y,
|
|
158
162
|
class: "qy-select"
|
|
159
163
|
}, $.value, {
|
|
160
|
-
"model-value":
|
|
161
|
-
placeholder:
|
|
162
|
-
disabled:
|
|
163
|
-
clearable:
|
|
164
|
-
filterable:
|
|
165
|
-
|
|
166
|
-
multiple:
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"
|
|
164
|
+
"model-value": B.value,
|
|
165
|
+
placeholder: a.placeholder,
|
|
166
|
+
disabled: V(m),
|
|
167
|
+
clearable: a.clearable,
|
|
168
|
+
filterable: a.filterable,
|
|
169
|
+
"filter-method": a.filterMethod,
|
|
170
|
+
"multiple-limit": a.multipleLimit,
|
|
171
|
+
"allow-create": a.allowCreate,
|
|
172
|
+
"validate-event": a.validateEvent,
|
|
173
|
+
loading: a.loading,
|
|
174
|
+
multiple: a.multiple,
|
|
175
|
+
"collapse-tags": a.collapseTags,
|
|
176
|
+
"collapse-tags-tooltip": a.collapseTagsTooltip,
|
|
177
|
+
size: a.size,
|
|
178
|
+
teleported: a.teleported,
|
|
179
|
+
"fit-input-width": a.fitInputWidth,
|
|
172
180
|
"popper-class": T.value,
|
|
173
|
-
"append-to":
|
|
174
|
-
"value-key":
|
|
175
|
-
"onUpdate:modelValue":
|
|
176
|
-
onChange:
|
|
177
|
-
onClear:
|
|
178
|
-
onVisibleChange:
|
|
181
|
+
"append-to": a.appendTo,
|
|
182
|
+
"value-key": E.value,
|
|
183
|
+
"onUpdate:modelValue": F,
|
|
184
|
+
onChange: P,
|
|
185
|
+
onClear: U,
|
|
186
|
+
onVisibleChange: W,
|
|
179
187
|
onFocus: H,
|
|
180
188
|
onBlur: N
|
|
181
|
-
}),
|
|
189
|
+
}), ae({
|
|
182
190
|
default: c(() => [
|
|
183
|
-
b.value ? p(e.$slots, "default", {}, void 0, !0, 0) : (
|
|
184
|
-
key:
|
|
185
|
-
label:
|
|
186
|
-
value:
|
|
187
|
-
disabled:
|
|
191
|
+
b.value ? p(e.$slots, "default", {}, void 0, !0, 0) : (S(!0), oe(C, { key: 1 }, ne(d.value, (o, u) => (S(), K(V(de), {
|
|
192
|
+
key: D(o, u),
|
|
193
|
+
label: o.label,
|
|
194
|
+
value: o.value,
|
|
195
|
+
disabled: o.disabled
|
|
188
196
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
189
197
|
]),
|
|
190
198
|
_: 2
|
|
@@ -212,14 +220,14 @@ const de = /* @__PURE__ */ D({
|
|
|
212
220
|
} : void 0,
|
|
213
221
|
e.$slots.tag ? {
|
|
214
222
|
name: "tag",
|
|
215
|
-
fn: c((
|
|
216
|
-
p(e.$slots, "tag",
|
|
223
|
+
fn: c((o) => [
|
|
224
|
+
p(e.$slots, "tag", re(ie(o)), void 0, !0)
|
|
217
225
|
]),
|
|
218
226
|
key: "3"
|
|
219
227
|
} : void 0
|
|
220
|
-
]), 1040, ["model-value", "placeholder", "disabled", "clearable", "filterable", "loading", "multiple", "collapse-tags", "collapse-tags-tooltip", "size", "teleported", "fit-input-width", "popper-class", "append-to", "value-key"]));
|
|
228
|
+
]), 1040, ["model-value", "placeholder", "disabled", "clearable", "filterable", "filter-method", "multiple-limit", "allow-create", "validate-event", "loading", "multiple", "collapse-tags", "collapse-tags-tooltip", "size", "teleported", "fit-input-width", "popper-class", "append-to", "value-key"]));
|
|
221
229
|
}
|
|
222
|
-
}),
|
|
230
|
+
}), be = /* @__PURE__ */ fe(ce, [["__scopeId", "data-v-5b3c33aa"]]);
|
|
223
231
|
export {
|
|
224
|
-
|
|
232
|
+
be as S
|
|
225
233
|
};
|