@qynpm/ui 1.0.44 → 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-BweLwi2_.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-DNnWRAFl.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 +1 -1
- 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-5dxbpQb_.cjs +0 -1
- package/dist/shared/index-BEcS8y8g.mjs +0 -68
- package/dist/shared/index-BSTMCPDj.mjs +0 -72
- package/dist/shared/index-Bh9hxVFh.mjs +0 -766
- package/dist/shared/index-CGq7Q_hV.mjs +0 -119
- package/dist/shared/index-CVYNG8Fc.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-afOuq3YX.cjs +0 -1
- package/dist/shared/index-rSrDnOpu.cjs +0 -1
- package/dist/shared/index-rjciSHaR.mjs +0 -2362
- 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 n=require("vue"),ce=require("element-plus"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),se=n.defineComponent({name:"QyTreeSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],default:void 0},data:{default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},childrenKey:{default:"children"},disabledKey:{default:"disabled"},props:{default:()=>({})},nodeKey:{default:void 0},placeholder:{default:"请选择"},validateEvent:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},filterMethod:{type:Function,default:void 0},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:void 0},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleLimit:{default:0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!1},renderAfterExpand:{type:Boolean,default:!0},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},defaultExpandedKeys:{default:void 0},defaultCheckedKeys:{default:void 0},accordion:{type:Boolean,default:!1},indent:{default:18},highlightCurrent:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},load:{type:Function,default:void 0},cacheData:{default:()=>[]},filterNodeMethod:{type:Function,default:void 0},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:void 0},fitInputWidth:{type:Boolean,default:!1},popperClass:{default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur","node-click","node-expand","node-collapse","check-change","check"],setup(a,{expose:M,emit:O}){const u=Symbol("invalid-tree-select-value"),o=a,i=O,j=n.useAttrs(),K=n.ref(null),A=n.computed(()=>o.data===void 0?o.options:o.data),T=n.ref(o.defaultExpandedKeys?[...o.defaultExpandedKeys]:void 0),z=n.ref(o.defaultCheckedKeys?[...o.defaultCheckedKeys]:void 0);let y=new WeakSet,k=new Set;const h=new Map;let x=0;n.watch(A,(e,t)=>{x++,e!==t&&h.clear(),y=new WeakSet,k=new Set,v(e),v(h.get(null));for(const l of h.keys())l&&!y.has(l)&&h.delete(l)},{immediate:!0,deep:!0});const $=n.computed(()=>Object.fromEntries(Object.entries(j).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),R=n.computed(()=>["qy-tree-select__popper",o.popperClass].filter(Boolean).join(" ")),F=n.computed(()=>{const e=w(o.modelValue);if(e!==u&&W(e)&&!o.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===u?void 0:oe(e)}),q=n.computed(()=>{const e=o.props??{};return{value:p(e.value??o.nodeKey??o.valueKey),label:p(e.label??o.labelKey),children:p(e.children??o.childrenKey),disabled:p(e.disabled??o.disabledKey),isLeaf:p(e.isLeaf),class:I(e.class)}});function b(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:b(e)?n.toRaw(e):u}function w(e){return e==null?e:Array.isArray(e)?e.every(t=>N(t)!==u)?e:u:N(e)}function W(e){return Array.isArray(e)?e.some(b):b(e)}function m(e){return b(e)?n.toRaw(e):null}function v(e){for(const t of e??[])V(t)}function V(e){const t=n.toRaw(e);if(y.has(t))return;y.add(t),k.add(t);const l=g("children",t);if(Array.isArray(l))for(const d of l){const r=m(d);r&&V(r)}v(h.get(t))}function c(e){const t=m(e);return t!==null&&y.has(t)}function g(e,t){var f;const l=(f=o.props)==null?void 0:f[e],d=e==="value"?o.valueKey:e==="label"?o.labelKey:e==="children"?o.childrenKey:e==="disabled"?o.disabledKey:void 0,r=l??d;return typeof r=="function"?r(t):typeof r=="string"?t[r]:void 0}function p(e){return typeof e=="function"?t=>e(t):e}function I(e){return typeof e!="function"?e:(t,l)=>{const d=s(l);return d&&c(t)?e(t,d):""}}function C(e){return typeof e=="string"||typeof e=="number"?e:null}function s(e){var l;if(!e||!c(e.data))return null;const t=m(e.data);return t?Object.freeze({key:C(e.key),parentKey:C((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(g("label",t)??""),level:typeof e.level=="number"?e.level:0,expanded:e.expanded===!0,checked:e.checked===!0,indeterminate:e.indeterminate===!0,disabled:e.disabled===!0,leaf:e.isLeaf===!0,visible:e.visible!==!1,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0}):null}function P(e){return Object.freeze({key:null,parentKey:null,data:{},label:"",level:0,expanded:!1,checked:!1,indeterminate:!1,disabled:!1,leaf:!1,visible:!0,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0})}function U(e,t,l){const d=s(l);return!d||!c(t)?!1:o.filterNodeMethod?o.filterNodeMethod(e,t,d):String(d.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function Q(e,t,l){if(!o.load)return t([]);const d=e.level===0||e.data===void 0||e.data===null,r=x,f=s(e)??(d?P(e):null);if(!f)return l();o.load(f,B=>{(d?x!==r:!c(f.data))||(h.set(d?null:f.data,B),v(B),t(B))},l)}function H(e){const t=w(S(e));t!==u&&i("update:modelValue",t)}function G(e){const t=w(S(e));t!==u&&i("change",t)}function J(){i("clear")}function X(e){i("visible-change",e)}function Y(e){i("focus",e)}function Z(e){i("blur",e)}function _(e,t){const l=s(t);l&&c(e)&&i("node-click",e,l)}function ee(e,t){const l=s(t);l&&c(e)&&i("node-expand",e,l)}function te(e,t){const l=s(t);l&&c(e)&&i("node-collapse",e,l)}function le(e,t,l){c(e)&&i("check-change",e,t,l)}function E(e){return(e??[]).map(m).filter(t=>t!==null&&c(t))}function L(e){return(e??[]).map(C).filter(t=>t!==null)}function ae(e,t){c(e)&&i("check",e,{checkedKeys:L(t==null?void 0:t.checkedKeys),checkedNodes:E(t==null?void 0:t.checkedNodes),halfCheckedKeys:L(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:E(t==null?void 0:t.halfCheckedNodes)})}function D(e){for(const t of k)if(Object.is(n.toRaw(g("value",t)),n.toRaw(e)))return t}function ne(e){if(o.nodeKey){for(const t of k)if(Object.is(t[o.nodeKey],e))return t}}function oe(e){if(!o.nodeKey||e===null||e===void 0)return e;const t=l=>{const d=D(l);return(d?C(d[o.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function S(e){if(!o.nodeKey)return e;const t=l=>{const d=ne(l);return d?g("value",d):l};return Array.isArray(e)?e.map(t):t(e)}function de(e,t){return(e??[]).flatMap(l=>{const d=N(S(l.value));if(d===u)return[];const r=D(d);return[Object.freeze({value:d,label:typeof l.currentLabel=="string"?l.currentLabel:String(l.currentLabel??""),data:r?n.toRaw(r):void 0,closable:l.isDisabled!==!0,remove:()=>t==null?void 0:t(new MouseEvent("click"),l)})]})}function re(){var e,t;(t=(e=K.value)==null?void 0:e.focus)==null||t.call(e)}function ie(){var e,t;(t=(e=K.value)==null?void 0:e.blur)==null||t.call(e)}return M({focus:re,blur:ie}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(ce.ElTreeSelect),n.mergeProps({ref_key:"treeSelectRef",ref:K,class:"qy-tree-select"},$.value,{"model-value":F.value,data:A.value,props:q.value,"node-key":a.nodeKey,placeholder:a.placeholder,disabled:a.disabled,"validate-event":a.validateEvent,clearable:a.clearable,filterable:a.filterable,"filter-method":a.filterMethod,remote:a.remote,"remote-method":a.remoteMethod,"remote-show-suffix":a.remoteShowSuffix,loading:a.loading,multiple:a.multiple,"multiple-limit":a.multipleLimit,"collapse-tags":a.collapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"default-expand-all":a.defaultExpandAll,"render-after-expand":a.renderAfterExpand,"expand-on-click-node":a.expandOnClickNode,"check-on-click-node":a.checkOnClickNode,"check-on-click-leaf":a.checkOnClickLeaf,"check-descendants":a.checkDescendants,"default-expanded-keys":T.value,"default-checked-keys":z.value,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:Q,"cache-data":a.cacheData,"filter-node-method":U,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":R.value,"onUpdate:modelValue":H,onChange:G,onClear:J,onVisibleChange:X,onFocus:Y,onBlur:Z,onNodeClick:_,onNodeExpand:ee,onNodeCollapse:te,onCheckChange:le,onCheck:ae}),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,e.$slots.default?{name:"default",fn:n.withCtx(l=>[n.renderSlot(e.$slots,"default",{data:l.data,node:s(l.node)},void 0,!0)]),key:"3"}:void 0,e.$slots.tag?{name:"tag",fn:n.withCtx(l=>[n.renderSlot(e.$slots,"tag",{data:de(l.data,l.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","validate-event","clearable","filterable","filter-method","remote","remote-method","remote-show-suffix","loading","multiple","multiple-limit","collapse-tags","collapse-tags-tooltip","check-strictly","show-checkbox","default-expand-all","render-after-expand","expand-on-click-node","check-on-click-node","check-on-click-leaf","check-descendants","default-expanded-keys","default-checked-keys","accordion","indent","highlight-current","lazy","cache-data","size","teleported","append-to","fit-input-width","popper-class"]))}}),fe=ue._export_sfc(se,[["__scopeId","data-v-1cee15d2"]]);exports.TreeSelect=fe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),g=require("element-plus"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=t.defineComponent({name:"QySelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},objectIdentityKey:{default:void 0},disabledKey:{default:"disabled"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},filterMethod:{},multipleLimit:{default:0},allowCreate:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},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:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur"],setup(o,{expose:V,emit:B}){const i=Symbol("invalid-select-value"),a=o,r=B,C=t.useAttrs(),f=g.useFormDisabled(),A=t.useSlots(),p=t.ref(null),K=t.computed(()=>Object.fromEntries(Object.entries(C).filter(([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-")))),j=t.computed(()=>["qy-select__popper",a.popperClass].filter(Boolean).join(" ")),h=t.computed(()=>{const e=b(a.modelValue);return e===i?void 0:e}),s=t.computed(()=>a.options.map(e=>({raw:e,label:I(e),value:O(e),disabled:!!e[a.disabledKey]}))),m=t.computed(()=>{const e=A.default;return e?e().some(S):!1}),w=t.computed(()=>{if(!a.objectIdentityKey)return;const e=h.value,l=Array.isArray(e)?e.some(c):c(e),n=!m.value&&s.value.some(d=>c(d.value));return l||n?a.objectIdentityKey:void 0});function S(e){return e.type===t.Comment?!1:e.type===t.Text?typeof e.children=="string"&&e.children.trim()!=="":e.type!==t.Fragment||!Array.isArray(e.children)?!0:e.children.some(l=>t.isVNode(l)?S(l):typeof l=="string"?l.trim()!=="":l!=null)}function c(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||c(e)?e:i}function b(e){if(e==null)return e;if(Array.isArray(e)){const l=e;return l.every(n=>y(n)!==i)?l:i}return y(e)}function I(e){const l=e[a.labelKey]??e.label??e.value??"";return typeof l=="string"||typeof l=="number"?l:typeof l=="boolean"?String(l):""}function O(e){const l=e[a.valueKey]??e.value??e.label,n=y(l);return n===i?void 0:n}function x(e){return Array.isArray(e)?e.length===0:e===""||e===null||e===void 0}let u=null;t.watch([s,()=>a.modelValue,()=>a.autoSelectSingle,f,()=>a.multiple],([e])=>v(e),{flush:"post"}),t.onMounted(()=>v(s.value)),t.onUpdated(()=>v(s.value));function v(e){if(!x(a.modelValue)){u=null;return}if(!a.autoSelectSingle||f.value||m.value||e.length!==1)return;const[l]=e;if(l.disabled||l.value===void 0)return;const n=$(l.value);if(u&&u.identityKey===a.objectIdentityKey&&u.multiple===a.multiple&&Object.is(u.candidate,n))return;u={candidate:n,identityKey:a.objectIdentityKey,multiple:a.multiple};const d=a.multiple?[l.value]:l.value;r("update:modelValue",d),r("change",d)}function $(e){return!c(e)||!a.objectIdentityKey?e:e[a.objectIdentityKey]??e}function T(e,l){return`${String(e.value??e.label??"")}-${l}`}function E(e){const l=b(e);l!==i&&r("update:modelValue",l)}function M(e){const l=b(e);l!==i&&r("change",l)}function z(){r("clear")}function L(e){r("visible-change",e)}function q(e){r("focus",e)}function F(e){r("blur",e)}function P(){var e,l;(l=(e=p.value)==null?void 0:e.focus)==null||l.call(e)}function D(){var e,l;(l=(e=p.value)==null?void 0:e.blur)==null||l.call(e)}return V({focus:P,blur:D}),(e,l)=>(t.openBlock(),t.createBlock(t.unref(g.ElSelect),t.mergeProps({ref_key:"selectRef",ref:p,class:"qy-select"},K.value,{"model-value":h.value,placeholder:o.placeholder,disabled:t.unref(f),clearable:o.clearable,filterable:o.filterable,"filter-method":o.filterMethod,"multiple-limit":o.multipleLimit,"allow-create":o.allowCreate,"validate-event":o.validateEvent,loading:o.loading,multiple:o.multiple,"collapse-tags":o.collapseTags,"collapse-tags-tooltip":o.collapseTagsTooltip,size:o.size,teleported:o.teleported,"fit-input-width":o.fitInputWidth,"popper-class":j.value,"append-to":o.appendTo,"value-key":w.value,"onUpdate:modelValue":E,onChange:M,onClear:z,onVisibleChange:L,onFocus:q,onBlur:F}),t.createSlots({default:t.withCtx(()=>[m.value?t.renderSlot(e.$slots,"default",{},void 0,!0,0):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(s.value,(n,d)=>(t.openBlock(),t.createBlock(t.unref(g.ElOption),{key:T(n,d),label:n.label,value:n.value,disabled:n.disabled},null,8,["label","value","disabled"]))),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,e.$slots.tag?{name:"tag",fn:t.withCtx(n=>[t.renderSlot(e.$slots,"tag",t.normalizeProps(t.guardReactiveProps(n)),void 0,!0)]),key:"3"}:void 0]),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"]))}}),W=H._export_sfc(U,[["__scopeId","data-v-5b3c33aa"]]);exports.Select=W;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),n=require("element-plus"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=a.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:!1},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:()=>{}},validateEvent:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},size:{},activeText:{default:""},inactiveText:{default:""},inlinePrompt:{type:Boolean,default:!1},name:{default:""},id:{},tabindex:{},ariaLabel:{}},emits:["update:modelValue","change","focus","blur"],setup(e,{emit:u}){const i=u,l=n.useFormDisabled(),d=a.useAttrs(),c=a.computed(()=>Object.fromEntries(Object.entries(d).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function o(t){i("focus",t)}function r(t){i("blur",t)}function s(t){l.value||e.loading||i("update:modelValue",t===!0?e.activeValue:e.inactiveValue)}function v(t){l.value||e.loading||i("change",t===!0?e.activeValue:e.inactiveValue)}return(t,h)=>(a.openBlock(),a.createBlock(a.unref(n.ElSwitch),a.mergeProps(c.value,{class:"qy-switch","model-value":e.modelValue===e.activeValue,"active-value":!0,"inactive-value":!1,disabled:a.unref(l),"validate-event":e.validateEvent,loading:e.loading,size:e.size,"active-text":e.activeText,"inactive-text":e.inactiveText,"inline-prompt":e.inlinePrompt,name:e.name,id:e.id,tabindex:e.tabindex,"aria-label":e.ariaLabel,"onUpdate:modelValue":s,onChange:v,onFocusin:o,onFocusout:r}),null,16,["model-value","disabled","validate-event","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"]))}}),b=f._export_sfc(m,[["__scopeId","data-v-3e42c7f5"]]);exports.Switch=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),c=require("./utils-DpkN3Zat.cjs"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E={class:"qy-image__state qy-image__state--error"},V={class:"qy-image__state qy-image__state--empty"},B=e.defineComponent({name:"QyImage",__name:"index",props:{src:{default:""},alt:{default:""},width:{},height:{},size:{default:64},fit:{default:"cover"},placeholder:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},compressor:{type:[Boolean,Object],default:!0},preview:{type:Boolean,default:!1},previewList:{default:()=>[]},initialIndex:{default:0}},emits:["load","error","fallback","preview"],setup(i,{emit:h}){const r=i,s=h,l=e.ref(!1),o=e.ref("");let n=0;e.onBeforeUnmount(()=>{n+=1});const u=e.computed(()=>c.normalizeImageSrc(r.src)),m=e.computed(()=>({width:r.width??r.size,height:r.height??r.size})),y=e.computed(()=>({width:p(m.value.width),height:p(m.value.height)})),g=e.computed(()=>r.placeholder||l.value),f=e.computed(()=>r.preview&&!!u.value),w=e.computed(()=>(r.previewList.length?r.previewList:[r.src]).map(a=>c.normalizeImageSrc(a)).filter(Boolean));e.watch(()=>[r.src,r.compressor],_,{immediate:!0,deep:!0});async function _(){const t=++n;if(o.value="",l.value=!1,!!r.src)try{const a=await c.resolveQyImageDisplaySrc(r.src,{compressor:r.compressor});if(t!==n)return;o.value=a.src,a.source==="fallback"&&s("fallback",a.src)}catch{if(t!==n)return;l.value=!1,o.value=u.value}}function z(t){s("load",t)}function I(t){l.value=!0,s("error",t)}function q(){f.value&&(c.openQyImagePreview({urlList:w.value,initialIndex:r.initialIndex}),s("preview",u.value))}function p(t){return typeof t=="number"?`${t}px`:t}return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-image",{"qy-image--previewable":f.value}]),style:e.normalizeStyle(y.value),onClick:q},[o.value&&!l.value?(e.openBlock(),e.createBlock(e.unref(d.ElImage),{key:0,class:"qy-image__inner",src:o.value,alt:i.alt,fit:i.fit,lazy:i.lazy,onLoad:z,onError:I},{placeholder:e.withCtx(()=>[e.renderSlot(t.$slots,"placeholder",{},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"qy-image__state"},[e.createElementVNode("span",{class:"qy-image__loading"})],-1))],!0)]),error:e.withCtx(()=>[e.renderSlot(t.$slots,"error",{},()=>[e.createElementVNode("div",E,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0)]),_:3},8,["src","alt","fit","lazy"])):l.value&&t.$slots.error?e.renderSlot(t.$slots,"error",{},void 0,!0,1):g.value?e.renderSlot(t.$slots,"empty",{},()=>[e.createElementVNode("div",V,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0,2):e.createCommentVNode("",!0)],6))}}),k=S._export_sfc(B,[["__scopeId","data-v-7efa59d9"]]);exports.Image=k;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElConfigProvider as
|
|
1
|
+
import { defineComponent as S, computed as o, ref as x, onMounted as k, onUpdated as N, openBlock as C, createElementBlock as T, createVNode as _, unref as z, withCtx as E, createElementVNode as f, toDisplayString as P, createCommentVNode as I } from "vue";
|
|
2
|
+
import { ElConfigProvider as B, ElPagination as q } from "element-plus";
|
|
3
3
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
var M = {
|
|
5
5
|
name: "zh-cn",
|
|
@@ -183,7 +183,7 @@ var M = {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
-
const R = /* @__PURE__ */
|
|
186
|
+
const R = /* @__PURE__ */ S({
|
|
187
187
|
__name: "ElementPaginationRenderer",
|
|
188
188
|
props: {
|
|
189
189
|
total: {},
|
|
@@ -191,65 +191,72 @@ const R = /* @__PURE__ */ x({
|
|
|
191
191
|
pageSize: {},
|
|
192
192
|
pageSizes: {},
|
|
193
193
|
disabled: { type: Boolean, default: !1 },
|
|
194
|
-
loading: { type: Boolean, default: !1 }
|
|
194
|
+
loading: { type: Boolean, default: !1 },
|
|
195
|
+
layout: {},
|
|
196
|
+
pagerCount: {}
|
|
195
197
|
},
|
|
196
198
|
emits: ["page-change", "page-size-change"],
|
|
197
|
-
setup(
|
|
198
|
-
const a =
|
|
199
|
-
() => a.pageSizes.length > 1 ? "sizes, prev, pager, next" : "prev, pager, next"
|
|
200
|
-
),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
setup(i, { emit: y }) {
|
|
200
|
+
const a = i, m = y, c = o(() => a.disabled || a.loading), u = o(
|
|
201
|
+
() => a.layout !== void 0 ? a.layout.join(", ") : a.pageSizes.length > 1 ? "sizes, prev, pager, next" : "prev, pager, next"
|
|
202
|
+
), d = o(() => {
|
|
203
|
+
const t = a.pagerCount ?? 7;
|
|
204
|
+
return Number.isInteger(t) && t >= 5 && t <= 21 && t % 2 === 1 ? t : 7;
|
|
205
|
+
}), g = x(null), r = x(null);
|
|
206
|
+
let p = 0;
|
|
207
|
+
function h() {
|
|
208
|
+
var t, s;
|
|
209
|
+
(s = (t = r.value) == null ? void 0 : t.querySelector('.el-pagination__sizes [role="combobox"]')) == null || s.setAttribute("aria-label", "每页条数");
|
|
205
210
|
}
|
|
206
|
-
k(
|
|
207
|
-
function b(
|
|
208
|
-
if (!
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
+
k(h), N(h);
|
|
212
|
+
function b(t) {
|
|
213
|
+
if (!c.value) {
|
|
214
|
+
if (g.value !== null) {
|
|
215
|
+
g.value = null;
|
|
211
216
|
return;
|
|
212
217
|
}
|
|
213
|
-
|
|
218
|
+
t !== a.currentPage && m("page-change", t);
|
|
214
219
|
}
|
|
215
220
|
}
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
221
|
+
function v(t) {
|
|
222
|
+
if (c.value)
|
|
218
223
|
return;
|
|
219
|
-
|
|
220
|
-
const
|
|
224
|
+
g.value = t;
|
|
225
|
+
const s = ++p;
|
|
221
226
|
Promise.resolve().then(() => {
|
|
222
|
-
|
|
223
|
-
}),
|
|
227
|
+
p === s && (g.value = null);
|
|
228
|
+
}), m("page-size-change", t);
|
|
224
229
|
}
|
|
225
|
-
return (
|
|
230
|
+
return (t, s) => (C(), T("div", {
|
|
226
231
|
ref_key: "rendererRef",
|
|
227
|
-
ref:
|
|
232
|
+
ref: r,
|
|
228
233
|
class: "qy-pagination-element-renderer",
|
|
229
234
|
"data-testid": "qy-pagination-element-renderer"
|
|
230
235
|
}, [
|
|
231
|
-
_(z(
|
|
232
|
-
default:
|
|
236
|
+
_(z(B), { locale: z(M) }, {
|
|
237
|
+
default: E(() => [
|
|
233
238
|
_(z(q), {
|
|
234
|
-
layout:
|
|
235
|
-
total:
|
|
236
|
-
"current-page":
|
|
237
|
-
"page-size":
|
|
238
|
-
"page-sizes": [...
|
|
239
|
-
"pager-count":
|
|
240
|
-
disabled:
|
|
239
|
+
layout: u.value,
|
|
240
|
+
total: i.total,
|
|
241
|
+
"current-page": i.currentPage,
|
|
242
|
+
"page-size": i.pageSize,
|
|
243
|
+
"page-sizes": [...i.pageSizes],
|
|
244
|
+
"pager-count": d.value,
|
|
245
|
+
disabled: c.value,
|
|
241
246
|
teleported: !1,
|
|
242
247
|
"onUpdate:currentPage": b,
|
|
243
|
-
"onUpdate:pageSize":
|
|
244
|
-
}, null, 8, ["layout", "total", "current-page", "page-size", "page-sizes", "disabled"])
|
|
248
|
+
"onUpdate:pageSize": v
|
|
249
|
+
}, null, 8, ["layout", "total", "current-page", "page-size", "page-sizes", "pager-count", "disabled"])
|
|
245
250
|
]),
|
|
246
251
|
_: 1
|
|
247
252
|
}, 8, ["locale"])
|
|
248
253
|
], 512));
|
|
249
254
|
}
|
|
250
|
-
}), O = /* @__PURE__ */ w(R, [["__scopeId", "data-v-
|
|
255
|
+
}), O = /* @__PURE__ */ w(R, [["__scopeId", "data-v-4815a52b"]]), F = ["aria-busy"], A = { class: "qy-pagination__info" }, U = { class: "qy-pagination__total" }, j = { class: "qy-pagination__summary" }, V = { class: "qy-pagination__controls" }, Y = /* @__PURE__ */ S({
|
|
251
256
|
__name: "index",
|
|
252
257
|
props: {
|
|
258
|
+
layout: {},
|
|
259
|
+
pagerCount: {},
|
|
253
260
|
total: {},
|
|
254
261
|
page: {},
|
|
255
262
|
pageSize: {},
|
|
@@ -260,79 +267,81 @@ const R = /* @__PURE__ */ x({
|
|
|
260
267
|
binding: {}
|
|
261
268
|
},
|
|
262
269
|
emits: ["page-change", "page-size-change"],
|
|
263
|
-
setup(
|
|
264
|
-
const a =
|
|
265
|
-
function
|
|
270
|
+
setup(i, { emit: y }) {
|
|
271
|
+
const a = i, m = y;
|
|
272
|
+
function c(e, n) {
|
|
266
273
|
const l = Number(e);
|
|
267
|
-
return Number.isInteger(l) && l > 0 ? l :
|
|
274
|
+
return Number.isInteger(l) && l > 0 ? l : n;
|
|
268
275
|
}
|
|
269
|
-
const
|
|
270
|
-
var
|
|
271
|
-
const e = Number(a.total ?? ((
|
|
276
|
+
const u = o(() => {
|
|
277
|
+
var n;
|
|
278
|
+
const e = Number(a.total ?? ((n = a.binding) == null ? void 0 : n.total) ?? 0);
|
|
272
279
|
return Number.isFinite(e) && e >= 0 ? e : 0;
|
|
273
|
-
}),
|
|
280
|
+
}), d = o(
|
|
274
281
|
() => {
|
|
275
282
|
var e;
|
|
276
|
-
return
|
|
283
|
+
return c(a.pageSize ?? ((e = a.binding) == null ? void 0 : e.pageSize), 10);
|
|
277
284
|
}
|
|
278
|
-
),
|
|
279
|
-
const
|
|
280
|
-
return [.../* @__PURE__ */ new Set([...
|
|
281
|
-
(l,
|
|
285
|
+
), g = o(() => {
|
|
286
|
+
const n = (Array.isArray(a.pageSizeOptions) ? a.pageSizeOptions : []).map((l) => Number(l)).filter((l) => Number.isInteger(l) && l > 0);
|
|
287
|
+
return [.../* @__PURE__ */ new Set([...n, d.value])].sort(
|
|
288
|
+
(l, D) => l - D
|
|
282
289
|
);
|
|
283
|
-
}),
|
|
284
|
-
() => Math.max(1, Math.ceil(
|
|
285
|
-
),
|
|
290
|
+
}), r = o(
|
|
291
|
+
() => Math.max(1, Math.ceil(u.value / d.value))
|
|
292
|
+
), p = o(
|
|
286
293
|
() => {
|
|
287
294
|
var e;
|
|
288
295
|
return Math.min(
|
|
289
|
-
Math.max(1,
|
|
290
|
-
|
|
296
|
+
Math.max(1, c(a.page ?? ((e = a.binding) == null ? void 0 : e.page), 1)),
|
|
297
|
+
r.value
|
|
291
298
|
);
|
|
292
299
|
}
|
|
293
|
-
),
|
|
300
|
+
), h = o(() => {
|
|
294
301
|
var e;
|
|
295
302
|
return !!(a.disabled ?? ((e = a.binding) == null ? void 0 : e.disabled));
|
|
296
|
-
}),
|
|
303
|
+
}), b = o(() => {
|
|
297
304
|
var e;
|
|
298
305
|
return !!(a.loading ?? ((e = a.binding) == null ? void 0 : e.loading));
|
|
299
|
-
}),
|
|
300
|
-
() =>
|
|
306
|
+
}), v = o(() => h.value || b.value), t = o(
|
|
307
|
+
() => u.value > 0 && (!a.hideOnSinglePage || r.value > 1)
|
|
301
308
|
);
|
|
302
|
-
function
|
|
303
|
-
var
|
|
304
|
-
|
|
309
|
+
function s(e) {
|
|
310
|
+
var n;
|
|
311
|
+
v.value || !Number.isInteger(e) || e < 1 || e > r.value || e === p.value || ((n = a.binding) == null || n.setPage(e), m("page-change", e));
|
|
305
312
|
}
|
|
306
|
-
function
|
|
307
|
-
var
|
|
308
|
-
|
|
313
|
+
function L(e) {
|
|
314
|
+
var n;
|
|
315
|
+
v.value || !Number.isInteger(e) || e <= 0 || e === d.value || ((n = a.binding) == null || n.setPageSize(e), m("page-size-change", e));
|
|
309
316
|
}
|
|
310
|
-
return (e,
|
|
317
|
+
return (e, n) => t.value ? (C(), T("nav", {
|
|
311
318
|
key: 0,
|
|
312
319
|
class: "qy-pagination",
|
|
313
320
|
"data-testid": "qy-pagination",
|
|
314
321
|
"aria-label": "分页",
|
|
315
|
-
"aria-busy":
|
|
322
|
+
"aria-busy": b.value ? "true" : void 0
|
|
316
323
|
}, [
|
|
317
324
|
f("div", A, [
|
|
318
|
-
f("span", U, "共 " + P(
|
|
319
|
-
f("span", j, " 第 " + P(
|
|
325
|
+
f("span", U, "共 " + P(u.value) + " 条", 1),
|
|
326
|
+
f("span", j, " 第 " + P(p.value) + " / " + P(r.value) + " 页 ", 1)
|
|
320
327
|
]),
|
|
321
328
|
f("div", V, [
|
|
322
329
|
_(O, {
|
|
323
|
-
total:
|
|
324
|
-
"current-page":
|
|
325
|
-
"page-size":
|
|
326
|
-
"page-sizes":
|
|
327
|
-
disabled:
|
|
328
|
-
loading:
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
total: u.value,
|
|
331
|
+
"current-page": p.value,
|
|
332
|
+
"page-size": d.value,
|
|
333
|
+
"page-sizes": g.value,
|
|
334
|
+
disabled: h.value,
|
|
335
|
+
loading: b.value,
|
|
336
|
+
layout: a.layout,
|
|
337
|
+
"pager-count": a.pagerCount,
|
|
338
|
+
onPageChange: s,
|
|
339
|
+
onPageSizeChange: L
|
|
340
|
+
}, null, 8, ["total", "current-page", "page-size", "page-sizes", "disabled", "loading", "layout", "pager-count"])
|
|
332
341
|
])
|
|
333
|
-
], 8, F)) :
|
|
342
|
+
], 8, F)) : I("", !0);
|
|
334
343
|
}
|
|
335
|
-
}), G = /* @__PURE__ */ w(Y, [["__scopeId", "data-v-
|
|
344
|
+
}), G = /* @__PURE__ */ w(Y, [["__scopeId", "data-v-0a5f9304"]]);
|
|
336
345
|
export {
|
|
337
346
|
G as P
|
|
338
347
|
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as x, useAttrs as C, computed as o, inject as V, openBlock as _, createBlock as g, unref as B, mergeProps as k, withCtx as y, renderSlot as E, nextTick as S } from "vue";
|
|
2
|
+
import { checkboxGroupContextKey as z, ElCheckbox as N } from "element-plus";
|
|
3
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const A = /* @__PURE__ */ x({
|
|
5
|
+
name: "QyCheckbox",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, Boolean], default: !1 },
|
|
10
|
+
value: { type: [String, Number, Boolean] },
|
|
11
|
+
indeterminate: { type: Boolean, default: !1 },
|
|
12
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
13
|
+
disabled: { type: Boolean, default: !1 },
|
|
14
|
+
size: { default: void 0 },
|
|
15
|
+
trueValue: { type: [String, Number, Boolean], default: !0 },
|
|
16
|
+
falseValue: { type: [String, Number, Boolean], default: !1 },
|
|
17
|
+
name: {},
|
|
18
|
+
id: {},
|
|
19
|
+
tabindex: {},
|
|
20
|
+
ariaLabel: {},
|
|
21
|
+
ariaControls: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
24
|
+
setup(d, { emit: s }) {
|
|
25
|
+
const e = d, t = s, c = C(), f = o(
|
|
26
|
+
() => Object.fromEntries(
|
|
27
|
+
Object.entries(c).filter(
|
|
28
|
+
([a]) => a === "class" || a === "style" || a === "role" || a === "title" || a.startsWith("data-") || a.startsWith("aria-")
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
), n = V(z, void 0), i = o(() => e.modelValue === e.trueValue), m = o(() => n ? e.value !== void 0 && n.modelValue.value.includes(e.value) : i.value);
|
|
32
|
+
function r(a) {
|
|
33
|
+
return a ? e.trueValue : e.falseValue;
|
|
34
|
+
}
|
|
35
|
+
function p(a) {
|
|
36
|
+
e.disabled || t("update:modelValue", r(a === !0));
|
|
37
|
+
}
|
|
38
|
+
function b(a, l) {
|
|
39
|
+
if (e.disabled) return;
|
|
40
|
+
t("change", r(a === !0));
|
|
41
|
+
const u = l == null ? void 0 : l.target;
|
|
42
|
+
u instanceof HTMLInputElement && S(() => {
|
|
43
|
+
u.checked = m.value;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function v(a) {
|
|
47
|
+
t("focus", a);
|
|
48
|
+
}
|
|
49
|
+
function h(a) {
|
|
50
|
+
t("blur", a);
|
|
51
|
+
}
|
|
52
|
+
return (a, l) => (_(), g(B(N), k(f.value, {
|
|
53
|
+
class: "qy-checkbox",
|
|
54
|
+
"model-value": i.value,
|
|
55
|
+
value: e.value,
|
|
56
|
+
indeterminate: e.indeterminate,
|
|
57
|
+
disabled: e.disabled || void 0,
|
|
58
|
+
"validate-event": e.validateEvent,
|
|
59
|
+
size: e.size,
|
|
60
|
+
name: e.name,
|
|
61
|
+
id: e.id,
|
|
62
|
+
tabindex: e.tabindex,
|
|
63
|
+
"aria-label": e.ariaLabel,
|
|
64
|
+
"aria-controls": e.ariaControls,
|
|
65
|
+
"onUpdate:modelValue": p,
|
|
66
|
+
onChange: b,
|
|
67
|
+
onFocusin: v,
|
|
68
|
+
onFocusout: h
|
|
69
|
+
}), {
|
|
70
|
+
default: y(() => [
|
|
71
|
+
E(a.$slots, "default", {}, void 0, !0)
|
|
72
|
+
]),
|
|
73
|
+
_: 3
|
|
74
|
+
}, 16, ["model-value", "value", "indeterminate", "disabled", "validate-event", "size", "name", "id", "tabindex", "aria-label", "aria-controls"]));
|
|
75
|
+
}
|
|
76
|
+
}), G = /* @__PURE__ */ j(A, [["__scopeId", "data-v-34dd31e3"]]);
|
|
77
|
+
export {
|
|
78
|
+
G as C
|
|
79
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, ref as p, computed as B, openBlock as c, createElementBlock as u, normalizeClass as g, createVNode as S, withCtx as I, createElementVNode as h, withModifiers as t, withKeys as y, toDisplayString as K, createCommentVNode as k } from "vue";
|
|
2
|
-
import { U as M } from "./index-
|
|
2
|
+
import { U as M } from "./index-DPqFEuPp.mjs";
|
|
3
3
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const U = ["tabindex", "aria-disabled", "onClick", "onKeydown"], _ = { class: "qy-file-picker__label" }, E = {
|
|
5
5
|
key: 0,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),T=require("element-plus"),q=n.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:""},placeholder:{default:void 0},clearable:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},id:{default:void 0},autocomplete:{default:void 0},autofocus:{type:Boolean,default:!1},maxlength:{default:void 0},minlength:{default:void 0},tabindex:{default:void 0},ariaLabel:{default:void 0}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(l,{expose:y,emit:g}){const a=l,o=g,V=n.useAttrs(),d=n.ref(null),s=n.ref(i(a.modelValue)),B=n.computed(()=>i(a.modelValue));n.watch(()=>a.modelValue,e=>{s.value=i(e)});function i(e){return e==null?"":String(e)}function v(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function m(e){const t=i(e);let r="",c=!1,x=!1;const h=v(a.precision);for(let f=0;f<t.length;f+=1){const u=t[f];if(u>="0"&&u<="9"){r+=u;continue}if(u==="."&&h>0&&!c){r+=u,c=!0;continue}u==="-"&&a.allowNegative&&f===0&&!x&&(r+=u,x=!0)}if(h>0&&c){const[f,u=""]=r.split(".");return`${f}.${u.slice(0,h)}`}return r}function N(e){let t=e;return typeof a.min=="number"&&Number.isFinite(a.min)&&(t=Math.max(t,a.min)),typeof a.max=="number"&&Number.isFinite(a.max)&&(t=Math.min(t,a.max)),t}function b(e){const t=m(e);if(!t||t==="-"||t===".")return i(a.emptyValue);const r=Number(t);if(Number.isNaN(r))return i(a.emptyValue);const c=v(a.precision);return N(r).toFixed(c)}function p(e){s.value=e,o("update:modelValue",e)}function $(e){const t=m(e);p(t)}function w(e){const t=m(e);s.value=t,o("input",t)}function C(e){const t=a.formatTrigger==="change"?b(e):m(e);t!==i(a.modelValue)&&p(t),o("change",t)}function M(e){o("focus",e)}function k(e){if(a.formatTrigger==="blur"){const t=b(s.value);t!==i(a.modelValue)&&p(t)}o("blur",e)}function z(){const e=i(a.emptyValue);s.value=e,o("update:modelValue",e),o("clear")}function F(e){o("enter",e)}function I(){var e,t;(t=(e=d.value)==null?void 0:e.focus)==null||t.call(e)}function S(){var e,t;(t=(e=d.value)==null?void 0:e.blur)==null||t.call(e)}function E(){var e,t;(t=(e=d.value)==null?void 0:e.select)==null||t.call(e)}function A(){var e,t;(t=(e=d.value)==null?void 0:e.clear)==null||t.call(e)}function P(){var e;return((e=d.value)==null?void 0:e.input)||null}return y({focus:I,blur:S,select:E,clear:A,getNativeInput:P}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(T.ElInput),n.mergeProps({ref_key:"inputRef",ref:d},n.unref(V),{"model-value":B.value,inputmode:"decimal",placeholder:l.placeholder,clearable:l.clearable,disabled:l.disabled,"validate-event":l.validateEvent,readonly:l.readonly,size:l.size,name:l.name,id:l.id,autocomplete:l.autocomplete,autofocus:l.autofocus,maxlength:l.maxlength,minlength:l.minlength,tabindex:l.tabindex,"aria-label":l.ariaLabel,"onUpdate:modelValue":$,onInput:w,onChange:C,onFocus:M,onBlur:k,onClear:z,onKeydown:n.withKeys(F,["enter"])}),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value","placeholder","clearable","disabled","validate-event","readonly","size","name","id","autocomplete","autofocus","maxlength","minlength","tabindex","aria-label"]))}});exports._sfc_main=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),m=require("element-plus"),v=require("./index-BfA7ZJnJ.cjs"),f=e.defineComponent({name:"QyCheckboxGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},options:{default:()=>[]},validateEvent:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},min:{},max:{},size:{default:void 0},ariaLabel:{}},emits:["update:modelValue","change"],setup(d,{emit:n}){const t=d,i=n,s=e.useAttrs(),o=e.computed(()=>Object.fromEntries(Object.entries(s).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a==="id"||a.startsWith("data-")||a.startsWith("aria-"))));function r(a){i("update:modelValue",a.slice())}function u(a){i("change",a.slice())}return(a,p)=>(e.openBlock(),e.createBlock(e.unref(m.ElCheckboxGroup),e.mergeProps(o.value,{"model-value":t.modelValue,disabled:t.disabled,"validate-event":t.validateEvent,min:t.min,max:t.max,size:t.size,"aria-label":t.ariaLabel,"onUpdate:modelValue":r,onChange:u}),{default:e.withCtx(()=>[a.$slots.default?e.renderSlot(a.$slots,"default",{},void 0,void 0,0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,(l,c)=>(e.openBlock(),e.createBlock(v.Checkbox,{key:`${String(l.value)}-${c}`,value:l.value,"validate-event":t.validateEvent,disabled:t.disabled||l.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1032,["value","validate-event","disabled"]))),128))]),_:3},16,["model-value","disabled","validate-event","min","max","size","aria-label"]))}});exports._sfc_main=f;
|
|
@@ -14,7 +14,8 @@ const Y = /* @__PURE__ */ R({
|
|
|
14
14
|
emptyValue: { default: "" },
|
|
15
15
|
placeholder: { default: void 0 },
|
|
16
16
|
clearable: { type: Boolean, default: !1 },
|
|
17
|
-
|
|
17
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
18
|
+
disabled: { type: Boolean, default: void 0 },
|
|
18
19
|
readonly: { type: Boolean, default: !1 },
|
|
19
20
|
size: { default: void 0 },
|
|
20
21
|
name: { default: void 0 },
|
|
@@ -27,8 +28,8 @@ const Y = /* @__PURE__ */ R({
|
|
|
27
28
|
ariaLabel: { default: void 0 }
|
|
28
29
|
},
|
|
29
30
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
|
|
30
|
-
setup(a, { expose:
|
|
31
|
-
const t = a,
|
|
31
|
+
setup(a, { expose: B, emit: N }) {
|
|
32
|
+
const t = a, i = N, $ = U(), d = x(null), f = x(l(t.modelValue)), M = D(() => l(t.modelValue));
|
|
32
33
|
Q(
|
|
33
34
|
() => t.modelValue,
|
|
34
35
|
(e) => {
|
|
@@ -38,46 +39,46 @@ const Y = /* @__PURE__ */ R({
|
|
|
38
39
|
function l(e) {
|
|
39
40
|
return e == null ? "" : String(e);
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function b(e) {
|
|
42
43
|
return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 2;
|
|
43
44
|
}
|
|
44
45
|
function c(e) {
|
|
45
46
|
const n = l(e);
|
|
46
|
-
let
|
|
47
|
-
const
|
|
48
|
-
for (let
|
|
49
|
-
const o = n[
|
|
47
|
+
let u = "", s = !1, g = !1;
|
|
48
|
+
const v = b(t.precision);
|
|
49
|
+
for (let r = 0; r < n.length; r += 1) {
|
|
50
|
+
const o = n[r];
|
|
50
51
|
if (o >= "0" && o <= "9") {
|
|
51
|
-
|
|
52
|
+
u += o;
|
|
52
53
|
continue;
|
|
53
54
|
}
|
|
54
|
-
if (o === "." &&
|
|
55
|
-
|
|
55
|
+
if (o === "." && v > 0 && !s) {
|
|
56
|
+
u += o, s = !0;
|
|
56
57
|
continue;
|
|
57
58
|
}
|
|
58
|
-
o === "-" && t.allowNegative &&
|
|
59
|
+
o === "-" && t.allowNegative && r === 0 && !g && (u += o, g = !0);
|
|
59
60
|
}
|
|
60
|
-
if (
|
|
61
|
-
const [
|
|
62
|
-
return `${
|
|
61
|
+
if (v > 0 && s) {
|
|
62
|
+
const [r, o = ""] = u.split(".");
|
|
63
|
+
return `${r}.${o.slice(0, v)}`;
|
|
63
64
|
}
|
|
64
|
-
return
|
|
65
|
+
return u;
|
|
65
66
|
}
|
|
66
67
|
function k(e) {
|
|
67
68
|
let n = e;
|
|
68
69
|
return typeof t.min == "number" && Number.isFinite(t.min) && (n = Math.max(n, t.min)), typeof t.max == "number" && Number.isFinite(t.max) && (n = Math.min(n, t.max)), n;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function y(e) {
|
|
71
72
|
const n = c(e);
|
|
72
73
|
if (!n || n === "-" || n === ".")
|
|
73
74
|
return l(t.emptyValue);
|
|
74
|
-
const
|
|
75
|
-
if (Number.isNaN(
|
|
76
|
-
const s =
|
|
77
|
-
return k(
|
|
75
|
+
const u = Number(n);
|
|
76
|
+
if (Number.isNaN(u)) return l(t.emptyValue);
|
|
77
|
+
const s = b(t.precision);
|
|
78
|
+
return k(u).toFixed(s);
|
|
78
79
|
}
|
|
79
80
|
function h(e) {
|
|
80
|
-
f.value = e,
|
|
81
|
+
f.value = e, i("update:modelValue", e);
|
|
81
82
|
}
|
|
82
83
|
function z(e) {
|
|
83
84
|
const n = c(e);
|
|
@@ -85,64 +86,65 @@ const Y = /* @__PURE__ */ R({
|
|
|
85
86
|
}
|
|
86
87
|
function w(e) {
|
|
87
88
|
const n = c(e);
|
|
88
|
-
f.value = n,
|
|
89
|
+
f.value = n, i("input", n);
|
|
89
90
|
}
|
|
90
91
|
function C(e) {
|
|
91
|
-
const n = t.formatTrigger === "change" ?
|
|
92
|
-
n !== l(t.modelValue) && h(n),
|
|
92
|
+
const n = t.formatTrigger === "change" ? y(e) : c(e);
|
|
93
|
+
n !== l(t.modelValue) && h(n), i("change", n);
|
|
93
94
|
}
|
|
94
95
|
function F(e) {
|
|
95
|
-
|
|
96
|
+
i("focus", e);
|
|
96
97
|
}
|
|
97
98
|
function I(e) {
|
|
98
99
|
if (t.formatTrigger === "blur") {
|
|
99
|
-
const n =
|
|
100
|
+
const n = y(f.value);
|
|
100
101
|
n !== l(t.modelValue) && h(n);
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
+
i("blur", e);
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function E() {
|
|
105
106
|
const e = l(t.emptyValue);
|
|
106
|
-
f.value = e,
|
|
107
|
+
f.value = e, i("update:modelValue", e), i("clear");
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
109
|
+
function A(e) {
|
|
110
|
+
i("enter", e);
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function S() {
|
|
112
113
|
var e, n;
|
|
113
|
-
(n = (e =
|
|
114
|
+
(n = (e = d.value) == null ? void 0 : e.focus) == null || n.call(e);
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function T() {
|
|
116
117
|
var e, n;
|
|
117
|
-
(n = (e =
|
|
118
|
+
(n = (e = d.value) == null ? void 0 : e.blur) == null || n.call(e);
|
|
118
119
|
}
|
|
119
120
|
function K() {
|
|
120
121
|
var e, n;
|
|
121
|
-
(n = (e =
|
|
122
|
+
(n = (e = d.value) == null ? void 0 : e.select) == null || n.call(e);
|
|
122
123
|
}
|
|
123
124
|
function L() {
|
|
124
125
|
var e, n;
|
|
125
|
-
(n = (e =
|
|
126
|
+
(n = (e = d.value) == null ? void 0 : e.clear) == null || n.call(e);
|
|
126
127
|
}
|
|
127
128
|
function P() {
|
|
128
129
|
var e;
|
|
129
|
-
return ((e =
|
|
130
|
+
return ((e = d.value) == null ? void 0 : e.input) || null;
|
|
130
131
|
}
|
|
131
|
-
return
|
|
132
|
-
focus:
|
|
133
|
-
blur:
|
|
132
|
+
return B({
|
|
133
|
+
focus: S,
|
|
134
|
+
blur: T,
|
|
134
135
|
select: K,
|
|
135
136
|
clear: L,
|
|
136
137
|
getNativeInput: P
|
|
137
138
|
}), (e, n) => (j(), q(V(O), G({
|
|
138
139
|
ref_key: "inputRef",
|
|
139
|
-
ref:
|
|
140
|
-
}, V(
|
|
140
|
+
ref: d
|
|
141
|
+
}, V($), {
|
|
141
142
|
"model-value": M.value,
|
|
142
143
|
inputmode: "decimal",
|
|
143
144
|
placeholder: a.placeholder,
|
|
144
145
|
clearable: a.clearable,
|
|
145
146
|
disabled: a.disabled,
|
|
147
|
+
"validate-event": a.validateEvent,
|
|
146
148
|
readonly: a.readonly,
|
|
147
149
|
size: a.size,
|
|
148
150
|
name: a.name,
|
|
@@ -158,8 +160,8 @@ const Y = /* @__PURE__ */ R({
|
|
|
158
160
|
onChange: C,
|
|
159
161
|
onFocus: F,
|
|
160
162
|
onBlur: I,
|
|
161
|
-
onClear:
|
|
162
|
-
onKeydown: H(
|
|
163
|
+
onClear: E,
|
|
164
|
+
onKeydown: H(A, ["enter"])
|
|
163
165
|
}), J({ _: 2 }, [
|
|
164
166
|
e.$slots.prefix ? {
|
|
165
167
|
name: "prefix",
|
|
@@ -189,7 +191,7 @@ const Y = /* @__PURE__ */ R({
|
|
|
189
191
|
]),
|
|
190
192
|
key: "3"
|
|
191
193
|
} : void 0
|
|
192
|
-
]), 1040, ["model-value", "placeholder", "clearable", "disabled", "readonly", "size", "name", "id", "autocomplete", "autofocus", "maxlength", "minlength", "tabindex", "aria-label"]));
|
|
194
|
+
]), 1040, ["model-value", "placeholder", "clearable", "disabled", "validate-event", "readonly", "size", "name", "id", "autocomplete", "autofocus", "maxlength", "minlength", "tabindex", "aria-label"]));
|
|
193
195
|
}
|
|
194
196
|
});
|
|
195
197
|
export {
|