@qynpm/ui 1.0.34 → 1.0.35
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 +28 -28
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +6 -6
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/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-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-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/{index-IXbvJ9d7.mjs → index-4SkLDBra.mjs} +1 -1
- package/dist/shared/{index-fh9l84rU.mjs → index-BekN1g_r.mjs} +10 -10
- package/dist/shared/{index-n04hARNG.cjs → index-Bli6Gx5d.cjs} +1 -1
- package/dist/shared/{index-BBZQowyp.mjs → index-BuUtJrIy.mjs} +9 -9
- package/dist/shared/{index-Dyyp1ix9.cjs → index-C7lRQtzs.cjs} +1 -1
- package/dist/shared/{index-C_adKysL.mjs → index-CdnHMuo3.mjs} +1 -1
- package/dist/shared/{index-Dw5upK-A.cjs → index-Ce_hvR--.cjs} +1 -1
- package/dist/shared/{index-D6-K5xSD.cjs → index-DlGwHshu.cjs} +1 -1
- package/dist/shared/{index-BeubtXXl.cjs → index-DnHfk7NM.cjs} +1 -1
- package/dist/shared/{index-ccugL1Ie.mjs → index-Dr-Q5krU.mjs} +4 -4
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs → index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs} +9 -9
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs → index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs} +19 -17
- package/dist/shared/utils-BjEXwY3L.cjs +1 -0
- package/dist/shared/utils-DoyI5oM8.mjs +148 -0
- package/index.d.ts +31 -31
- package/package.json +1 -1
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +63 -63
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +21 -20
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-5gku7Zwv.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs +0 -1
- package/dist/shared/utils-D2KAQCCB.cjs +0 -1
- package/dist/shared/utils-DUntDntI.mjs +0 -112
|
@@ -3,8 +3,8 @@ import { ref as B, onMounted as Xe, computed as z, watch as fe, nextTick as _e,
|
|
|
3
3
|
import { Plus as Wa, InfoFilled as Za, Close as Ga } from "@element-plus/icons-vue";
|
|
4
4
|
import { ElMessage as we, ElLoading as Ja, ElButton as Be, ElSelect as vt, ElOption as ht, ElInput as Ue, ElPopover as Xa, ElUpload as Ya, ElAutocomplete as eo, ElForm as bt, ElFormItem as ze, ElTable as to, ElTableColumn as ao, ElPagination as oo, ElTreeSelect as no } from "element-plus";
|
|
5
5
|
import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
import { I as lo } from "./index-
|
|
7
|
-
import { _ as ro } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { I as lo } from "./index-BuUtJrIy.mjs";
|
|
7
|
+
import { _ as ro } from "./index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs";
|
|
8
8
|
import io from "clsx";
|
|
9
9
|
import { useBreakpoints as so, useDraggable as uo } from "@vueuse/core";
|
|
10
10
|
import { B as co } from "./index-Od6HC8Un.mjs";
|
|
@@ -16,18 +16,18 @@ import { C as go } from "./index-B1b3BksF.mjs";
|
|
|
16
16
|
import { _ as vo } from "./index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs";
|
|
17
17
|
import { R as ho } from "./index-DK0hjfWr.mjs";
|
|
18
18
|
import { _ as bo } from "./index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs";
|
|
19
|
-
import { M as wo } from "./index-
|
|
19
|
+
import { M as wo } from "./index-CdnHMuo3.mjs";
|
|
20
20
|
import { T as So } from "./index-Dwf-JfXM.mjs";
|
|
21
21
|
import { _ as ko } from "./index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs";
|
|
22
22
|
import { S as tt } from "./index-DZRFSGxO.mjs";
|
|
23
|
-
import { T as wt } from "./index-
|
|
23
|
+
import { T as wt } from "./index-4SkLDBra.mjs";
|
|
24
24
|
import { T as Ze } from "./index-D8E_xu0N.mjs";
|
|
25
25
|
import { F as Qo } from "./index-C_1KP3l9.mjs";
|
|
26
26
|
import { S as xo } from "./index-DcohgM8A.mjs";
|
|
27
27
|
import { _ as $o } from "./index.vue_vue_type_script_lang-DIKHRo0o.mjs";
|
|
28
28
|
import { _ as Co } from "./index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs";
|
|
29
29
|
import { _ as Vo } from "./index.vue_vue_type_style_index_0_lang-DSur831A.mjs";
|
|
30
|
-
import { _ as Bo } from "./index.vue_vue_type_style_index_0_lang-
|
|
30
|
+
import { _ as Bo } from "./index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs";
|
|
31
31
|
import { _ as qo } from "./index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs";
|
|
32
32
|
import { _ as Io } from "./index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs";
|
|
33
33
|
import { _ as Ao } from "./index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs";
|
|
@@ -49,7 +49,7 @@ import { _ as jo } from "./index.vue_vue_type_script_lang-chBiq2cG.mjs";
|
|
|
49
49
|
import { _ as No } from "./index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs";
|
|
50
50
|
import { _ as Ho } from "./index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs";
|
|
51
51
|
import { _ as Wo } from "./index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs";
|
|
52
|
-
import { I as Zo } from "./index-
|
|
52
|
+
import { I as Zo } from "./index-Dr-Q5krU.mjs";
|
|
53
53
|
import { _ as Go } from "./index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs";
|
|
54
54
|
import { _ as Jo } from "./index.vue_vue_type_script_lang-D7nzeBUR.mjs";
|
|
55
55
|
import { _ as Xo } from "./index.vue_vue_type_script_lang-C9X0V5AK.mjs";
|
|
@@ -64,7 +64,7 @@ import { _ as rn } from "./index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs";
|
|
|
64
64
|
import { w as h } from "./install-CxBnxbuN.mjs";
|
|
65
65
|
import { v as sn, Q as kt } from "./index-B1zDCCqy.mjs";
|
|
66
66
|
import { _ as un } from "./index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs";
|
|
67
|
-
import { o as cn } from "./utils-
|
|
67
|
+
import { o as cn } from "./utils-DoyI5oM8.mjs";
|
|
68
68
|
import { openQyLoading as dn } from "@qynpm/hooks";
|
|
69
69
|
/*! js-cookie v3.0.8 | MIT */
|
|
70
70
|
function Ee(t) {
|
|
@@ -1500,7 +1500,7 @@ const Fn = { class: "qy-remark-image__field" }, Pn = {
|
|
|
1500
1500
|
])
|
|
1501
1501
|
], 6));
|
|
1502
1502
|
}
|
|
1503
|
-
}), jn = /* @__PURE__ */ Pe(En, [["__scopeId", "data-v-
|
|
1503
|
+
}), jn = /* @__PURE__ */ Pe(En, [["__scopeId", "data-v-3158c066"]]), Nn = /* @__PURE__ */ Ae({
|
|
1504
1504
|
name: "QyMoneyInput",
|
|
1505
1505
|
inheritAttrs: !1,
|
|
1506
1506
|
__name: "index",
|
|
@@ -2164,7 +2164,7 @@ const Fn = { class: "qy-remark-image__field" }, Pn = {
|
|
|
2164
2164
|
]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
|
|
2165
2165
|
], 2));
|
|
2166
2166
|
}
|
|
2167
|
-
}), $t = /* @__PURE__ */ Pe(Jn, [["__scopeId", "data-v-
|
|
2167
|
+
}), $t = /* @__PURE__ */ Pe(Jn, [["__scopeId", "data-v-cd7f5dfc"]]), Xn = { class: "qy-record-quote-search" }, Yn = {
|
|
2168
2168
|
key: 0,
|
|
2169
2169
|
class: "qy-record-quote-search__header"
|
|
2170
2170
|
}, el = {
|
|
@@ -2893,7 +2893,7 @@ const Fn = { class: "qy-remark-image__field" }, Pn = {
|
|
|
2893
2893
|
}, 8, ["open", "title", "width"]);
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
|
-
}), Ct = /* @__PURE__ */ Pe(ml, [["__scopeId", "data-v-
|
|
2896
|
+
}), Ct = /* @__PURE__ */ Pe(ml, [["__scopeId", "data-v-cf39627e"]]), yl = /* @__PURE__ */ Ae({
|
|
2897
2897
|
name: "QyLegacySelectionDialog",
|
|
2898
2898
|
inheritAttrs: !1,
|
|
2899
2899
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),re=require("element-plus"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=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:"请选择"},disabled:{type:Boolean,default:!1},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:D,emit:E}){const u=Symbol("invalid-tree-select-value"),o=a,c=E,O=n.useAttrs(),v=n.ref(null),y=n.computed(()=>o.data===void 0?o.options:o.data),M=n.ref(o.defaultExpandedKeys?[...o.defaultExpandedKeys]:void 0),j=n.ref(o.defaultCheckedKeys?[...o.defaultCheckedKeys]:void 0);let C=new WeakSet,p=new Set;n.watch(y,e=>{C=new WeakSet,p=new Set,S(e)},{immediate:!0,deep:!1});const T=n.computed(()=>Object.fromEntries(Object.entries(O).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),z=n.computed(()=>["qy-tree-select__popper",o.popperClass].filter(Boolean).join(" ")),$=n.computed(()=>{const e=x(o.modelValue);if(e!==u&&F(e)&&!o.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===u?void 0:ae(e)}),R=n.computed(()=>{const e=o.props??{};return{value:h(e.value??o.nodeKey??o.valueKey),label:h(e.label??o.labelKey),children:h(e.children??o.childrenKey),disabled:h(e.disabled??o.disabledKey),isLeaf:h(e.isLeaf),class:q(e.class)}});function k(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function K(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:k(e)?n.toRaw(e):u}function x(e){return e==null?e:Array.isArray(e)?e.every(t=>K(t)!==u)?e:u:K(e)}function F(e){return Array.isArray(e)?e.some(k):k(e)}function b(e){return k(e)?n.toRaw(e):null}function S(e){for(const t of e??[])w(t)}function w(e){const t=n.toRaw(e);C.add(t),p.add(t);const l=m("children",t);if(Array.isArray(l))for(const d of l){const r=b(d);r&&w(r)}}function i(e){const t=b(e);return t!==null&&C.has(t)}function m(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 h(e){return typeof e=="function"?t=>e(t):e}function q(e){return typeof e!="function"?e:(t,l)=>{const d=s(l);return d&&i(t)?e(t,d):""}}function g(e){return typeof e=="string"||typeof e=="number"?e:null}function s(e){var l;if(!e||!i(e.data))return null;const t=b(e.data);return t?Object.freeze({key:g(e.key),parentKey:g((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(m("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 W(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 I(e,t,l){const d=s(l);return!d||!i(t)?!1:o.filterNodeMethod?o.filterNodeMethod(e,t,d):String(d.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function P(e,t,l){if(!o.load)return t([]);const d=e.level===0||e.data===void 0||e.data===null,r=y.value,f=s(e)??(d?W(e):null);if(!f)return l();o.load(f,L=>{(d?y.value!==r:!i(f.data))||(S(L),t(L))},l)}function U(e){const t=x(N(e));t!==u&&c("update:modelValue",t)}function Q(e){const t=x(N(e));t!==u&&c("change",t)}function H(){c("clear")}function G(e){c("visible-change",e)}function J(e){c("focus",e)}function X(e){c("blur",e)}function Y(e,t){const l=s(t);l&&i(e)&&c("node-click",e,l)}function Z(e,t){const l=s(t);l&&i(e)&&c("node-expand",e,l)}function _(e,t){const l=s(t);l&&i(e)&&c("node-collapse",e,l)}function ee(e,t,l){i(e)&&c("check-change",e,t,l)}function B(e){return(e??[]).map(b).filter(t=>t!==null&&i(t))}function A(e){return(e??[]).map(g).filter(t=>t!==null)}function te(e,t){i(e)&&c("check",e,{checkedKeys:A(t==null?void 0:t.checkedKeys),checkedNodes:B(t==null?void 0:t.checkedNodes),halfCheckedKeys:A(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:B(t==null?void 0:t.halfCheckedNodes)})}function V(e){for(const t of p)if(Object.is(n.toRaw(m("value",t)),n.toRaw(e)))return t}function le(e){if(o.nodeKey){for(const t of p)if(Object.is(t[o.nodeKey],e))return t}}function ae(e){if(!o.nodeKey||e===null||e===void 0)return e;const t=l=>{const d=V(l);return(d?g(d[o.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function N(e){if(!o.nodeKey)return e;const t=l=>{const d=le(l);return d?m("value",d):l};return Array.isArray(e)?e.map(t):t(e)}function ne(e,t){return(e??[]).flatMap(l=>{const d=K(N(l.value));if(d===u)return[];const r=V(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 oe(){var e,t;(t=(e=v.value)==null?void 0:e.focus)==null||t.call(e)}function de(){var e,t;(t=(e=v.value)==null?void 0:e.blur)==null||t.call(e)}return D({focus:oe,blur:de}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(re.ElTreeSelect),n.mergeProps({ref_key:"treeSelectRef",ref:v,class:"qy-tree-select"},T.value,{"model-value":$.value,data:y.value,props:R.value,"node-key":a.nodeKey,placeholder:a.placeholder,disabled:a.disabled,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":M.value,"default-checked-keys":j.value,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:P,"cache-data":a.cacheData,"filter-node-method":I,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":z.value,"onUpdate:modelValue":U,onChange:Q,onClear:H,onVisibleChange:G,onFocus:J,onBlur:X,onNodeClick:Y,onNodeExpand:Z,onNodeCollapse:_,onCheckChange:ee,onCheck:te}),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:ne(l.data,l.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","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"]))}}),ue=ce._export_sfc(ie,[["__scopeId","data-v-
|
|
1
|
+
"use strict";const n=require("vue"),re=require("element-plus"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=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:"请选择"},disabled:{type:Boolean,default:!1},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:D,emit:E}){const u=Symbol("invalid-tree-select-value"),o=a,c=E,O=n.useAttrs(),v=n.ref(null),y=n.computed(()=>o.data===void 0?o.options:o.data),M=n.ref(o.defaultExpandedKeys?[...o.defaultExpandedKeys]:void 0),j=n.ref(o.defaultCheckedKeys?[...o.defaultCheckedKeys]:void 0);let C=new WeakSet,p=new Set;n.watch(y,e=>{C=new WeakSet,p=new Set,S(e)},{immediate:!0,deep:!1});const T=n.computed(()=>Object.fromEntries(Object.entries(O).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),z=n.computed(()=>["qy-tree-select__popper",o.popperClass].filter(Boolean).join(" ")),$=n.computed(()=>{const e=x(o.modelValue);if(e!==u&&F(e)&&!o.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===u?void 0:ae(e)}),R=n.computed(()=>{const e=o.props??{};return{value:h(e.value??o.nodeKey??o.valueKey),label:h(e.label??o.labelKey),children:h(e.children??o.childrenKey),disabled:h(e.disabled??o.disabledKey),isLeaf:h(e.isLeaf),class:q(e.class)}});function k(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function K(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:k(e)?n.toRaw(e):u}function x(e){return e==null?e:Array.isArray(e)?e.every(t=>K(t)!==u)?e:u:K(e)}function F(e){return Array.isArray(e)?e.some(k):k(e)}function b(e){return k(e)?n.toRaw(e):null}function S(e){for(const t of e??[])w(t)}function w(e){const t=n.toRaw(e);C.add(t),p.add(t);const l=m("children",t);if(Array.isArray(l))for(const d of l){const r=b(d);r&&w(r)}}function i(e){const t=b(e);return t!==null&&C.has(t)}function m(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 h(e){return typeof e=="function"?t=>e(t):e}function q(e){return typeof e!="function"?e:(t,l)=>{const d=s(l);return d&&i(t)?e(t,d):""}}function g(e){return typeof e=="string"||typeof e=="number"?e:null}function s(e){var l;if(!e||!i(e.data))return null;const t=b(e.data);return t?Object.freeze({key:g(e.key),parentKey:g((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(m("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 W(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 I(e,t,l){const d=s(l);return!d||!i(t)?!1:o.filterNodeMethod?o.filterNodeMethod(e,t,d):String(d.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function P(e,t,l){if(!o.load)return t([]);const d=e.level===0||e.data===void 0||e.data===null,r=y.value,f=s(e)??(d?W(e):null);if(!f)return l();o.load(f,L=>{(d?y.value!==r:!i(f.data))||(S(L),t(L))},l)}function U(e){const t=x(N(e));t!==u&&c("update:modelValue",t)}function Q(e){const t=x(N(e));t!==u&&c("change",t)}function H(){c("clear")}function G(e){c("visible-change",e)}function J(e){c("focus",e)}function X(e){c("blur",e)}function Y(e,t){const l=s(t);l&&i(e)&&c("node-click",e,l)}function Z(e,t){const l=s(t);l&&i(e)&&c("node-expand",e,l)}function _(e,t){const l=s(t);l&&i(e)&&c("node-collapse",e,l)}function ee(e,t,l){i(e)&&c("check-change",e,t,l)}function B(e){return(e??[]).map(b).filter(t=>t!==null&&i(t))}function A(e){return(e??[]).map(g).filter(t=>t!==null)}function te(e,t){i(e)&&c("check",e,{checkedKeys:A(t==null?void 0:t.checkedKeys),checkedNodes:B(t==null?void 0:t.checkedNodes),halfCheckedKeys:A(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:B(t==null?void 0:t.halfCheckedNodes)})}function V(e){for(const t of p)if(Object.is(n.toRaw(m("value",t)),n.toRaw(e)))return t}function le(e){if(o.nodeKey){for(const t of p)if(Object.is(t[o.nodeKey],e))return t}}function ae(e){if(!o.nodeKey||e===null||e===void 0)return e;const t=l=>{const d=V(l);return(d?g(d[o.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function N(e){if(!o.nodeKey)return e;const t=l=>{const d=le(l);return d?m("value",d):l};return Array.isArray(e)?e.map(t):t(e)}function ne(e,t){return(e??[]).flatMap(l=>{const d=K(N(l.value));if(d===u)return[];const r=V(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 oe(){var e,t;(t=(e=v.value)==null?void 0:e.focus)==null||t.call(e)}function de(){var e,t;(t=(e=v.value)==null?void 0:e.blur)==null||t.call(e)}return D({focus:oe,blur:de}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(re.ElTreeSelect),n.mergeProps({ref_key:"treeSelectRef",ref:v,class:"qy-tree-select"},T.value,{"model-value":$.value,data:y.value,props:R.value,"node-key":a.nodeKey,placeholder:a.placeholder,disabled:a.disabled,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":M.value,"default-checked-keys":j.value,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:P,"cache-data":a.cacheData,"filter-node-method":I,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":z.value,"onUpdate:modelValue":U,onChange:Q,onClear:H,onVisibleChange:G,onFocus:J,onBlur:X,onNodeClick:Y,onNodeExpand:Z,onNodeCollapse:_,onCheckChange:ee,onCheck:te}),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:ne(l.data,l.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","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"]))}}),ue=ce._export_sfc(ie,[["__scopeId","data-v-daef2030"]]);exports.TreeSelect=ue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as L, ref as g, computed as a, watch as P, openBlock as _, createElementBlock as $, normalizeStyle as N, normalizeClass as Q, createBlock as V, unref as i, withCtx as n, renderSlot as p, createElementVNode as c, createVNode as u, createCommentVNode as j } from "vue";
|
|
2
2
|
import { ElImage as D, ElIcon as w } from "element-plus";
|
|
3
3
|
import { PictureFilled as z } from "@element-plus/icons-vue";
|
|
4
|
-
import { n as I, r as F, o as O } from "./utils-
|
|
4
|
+
import { n as I, r as F, o as O } from "./utils-DoyI5oM8.mjs";
|
|
5
5
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-image__state qy-image__state--empty" }, G = /* @__PURE__ */ L({
|
|
7
7
|
name: "QyImage",
|
|
@@ -29,16 +29,16 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
29
29
|
})), S = a(() => ({
|
|
30
30
|
width: h(v.value.width),
|
|
31
31
|
height: h(v.value.height)
|
|
32
|
-
})),
|
|
32
|
+
})), k = a(() => e.placeholder || l.value), y = a(() => e.preview && !!f.value), B = a(() => (e.previewList.length ? e.previewList : [e.src]).map((r) => I(r)).filter(Boolean));
|
|
33
33
|
P(
|
|
34
34
|
() => [e.src, e.compressor],
|
|
35
|
-
|
|
35
|
+
E,
|
|
36
36
|
{
|
|
37
37
|
immediate: !0,
|
|
38
38
|
deep: !0
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
async function
|
|
41
|
+
async function E() {
|
|
42
42
|
const t = ++m;
|
|
43
43
|
if (o.value = "", l.value = !1, !!e.src)
|
|
44
44
|
try {
|
|
@@ -52,7 +52,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
52
52
|
l.value = !1, o.value = f.value;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function b(t) {
|
|
56
56
|
s("load", t);
|
|
57
57
|
}
|
|
58
58
|
function x(t) {
|
|
@@ -60,7 +60,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
60
60
|
}
|
|
61
61
|
function C() {
|
|
62
62
|
y.value && (O({
|
|
63
|
-
urlList:
|
|
63
|
+
urlList: B.value,
|
|
64
64
|
initialIndex: e.initialIndex
|
|
65
65
|
}), s("preview", f.value));
|
|
66
66
|
}
|
|
@@ -78,7 +78,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
78
78
|
src: o.value,
|
|
79
79
|
fit: d.fit,
|
|
80
80
|
lazy: d.lazy,
|
|
81
|
-
onLoad:
|
|
81
|
+
onLoad: b,
|
|
82
82
|
onError: x
|
|
83
83
|
}, {
|
|
84
84
|
placeholder: n(() => [
|
|
@@ -101,7 +101,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
101
101
|
], !0)
|
|
102
102
|
]),
|
|
103
103
|
_: 3
|
|
104
|
-
}, 8, ["src", "fit", "lazy"])) :
|
|
104
|
+
}, 8, ["src", "fit", "lazy"])) : k.value ? p(t.$slots, "empty", {}, () => [
|
|
105
105
|
c("div", A, [
|
|
106
106
|
u(i(w), { size: 20 }, {
|
|
107
107
|
default: n(() => [
|
|
@@ -113,7 +113,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
113
113
|
], !0, 1) : j("", !0)
|
|
114
114
|
], 6));
|
|
115
115
|
}
|
|
116
|
-
}), W = /* @__PURE__ */ R(G, [["__scopeId", "data-v-
|
|
116
|
+
}), W = /* @__PURE__ */ R(G, [["__scopeId", "data-v-02c4930c"]]);
|
|
117
117
|
export {
|
|
118
118
|
W as I
|
|
119
119
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),s=require("./utils-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),s=require("./utils-BjEXwY3L.cjs"),E=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={class:"qy-image__state qy-image__state--error"},V={class:"qy-image__state qy-image__state--empty"},k=e.defineComponent({name:"QyImage",__name:"index",props:{src:{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(n,{emit:h}){const t=n,i=h,l=e.ref(!1),o=e.ref("");let c=0;const u=e.computed(()=>s.normalizeImageSrc(t.src)),m=e.computed(()=>({width:t.width??t.size,height:t.height??t.size})),y=e.computed(()=>({width:f(m.value.width),height:f(m.value.height)})),g=e.computed(()=>t.placeholder||l.value),p=e.computed(()=>t.preview&&!!u.value),w=e.computed(()=>(t.previewList.length?t.previewList:[t.src]).map(a=>s.normalizeImageSrc(a)).filter(Boolean));e.watch(()=>[t.src,t.compressor],_,{immediate:!0,deep:!0});async function _(){const r=++c;if(o.value="",l.value=!1,!!t.src)try{const a=await s.resolveQyImageDisplaySrc(t.src,{compressor:t.compressor});if(r!==c)return;o.value=a.src,a.source==="fallback"&&i("fallback",a.src)}catch{if(r!==c)return;l.value=!1,o.value=u.value}}function z(r){i("load",r)}function I(r){l.value=!0,i("error",r)}function q(){p.value&&(s.openQyImagePreview({urlList:w.value,initialIndex:t.initialIndex}),i("preview",u.value))}function f(r){return typeof r=="number"?`${r}px`:r}return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-image",{"qy-image--previewable":p.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,fit:n.fit,lazy:n.lazy,onLoad:z,onError:I},{placeholder:e.withCtx(()=>[e.renderSlot(r.$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(r.$slots,"error",{},()=>[e.createElementVNode("div",S,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0)]),_:3},8,["src","fit","lazy"])):g.value?e.renderSlot(r.$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,1):e.createCommentVNode("",!0)],6))}}),x=E._export_sfc(k,[["__scopeId","data-v-02c4930c"]]);exports.Image=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as h, ref as w, onBeforeUnmount as I, openBlock as o, createElementBlock as s, normalizeClass as v, createBlock as $, withCtx as T, createElementVNode as l, Fragment as b, renderList as C, normalizeStyle as M, createCommentVNode as m, toDisplayString as y } from "vue";
|
|
2
|
-
import { _ as D } from "./index.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as D } from "./index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs";
|
|
3
3
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const N = { class: "qy-menu-actions__panel" }, U = ["disabled", "data-action-key", "onClick"], W = {
|
|
5
5
|
key: 0,
|