@qynpm/ui 1.0.24 → 1.0.26

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.
Files changed (96) hide show
  1. package/README.md +229 -229
  2. package/dist/index.cjs +11 -11
  3. package/dist/index.mjs +11 -11
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-checkbox/index.cjs +1 -1
  7. package/dist/qy-checkbox/index.mjs +1 -1
  8. package/dist/qy-checkbox-group/index.cjs +1 -1
  9. package/dist/qy-checkbox-group/index.mjs +1 -1
  10. package/dist/qy-dialog/index.cjs +1 -1
  11. package/dist/qy-dialog/index.mjs +1 -1
  12. package/dist/qy-file-picker/index.cjs +1 -1
  13. package/dist/qy-file-picker/index.mjs +1 -1
  14. package/dist/qy-form-section/index.cjs +1 -1
  15. package/dist/qy-form-section/index.mjs +1 -1
  16. package/dist/qy-image/index.cjs +1 -1
  17. package/dist/qy-image/index.mjs +1 -1
  18. package/dist/qy-image-upload/index.cjs +1 -1
  19. package/dist/qy-image-upload/index.mjs +1 -1
  20. package/dist/qy-input-number/index.cjs +2 -0
  21. package/dist/qy-input-number/index.mjs +2 -0
  22. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  23. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  24. package/dist/qy-menu-actions/index.cjs +1 -1
  25. package/dist/qy-menu-actions/index.mjs +1 -1
  26. package/dist/qy-money-input/index.cjs +1 -1
  27. package/dist/qy-money-input/index.mjs +1 -1
  28. package/dist/qy-radio/index.cjs +1 -1
  29. package/dist/qy-radio/index.mjs +1 -1
  30. package/dist/qy-radio-group/index.cjs +1 -1
  31. package/dist/qy-radio-group/index.mjs +1 -1
  32. package/dist/qy-record-quote-search/index.cjs +1 -1
  33. package/dist/qy-record-quote-search/index.mjs +1 -1
  34. package/dist/qy-remark-image/index.cjs +1 -1
  35. package/dist/qy-remark-image/index.mjs +1 -1
  36. package/dist/qy-remote-select/index.cjs +1 -1
  37. package/dist/qy-remote-select/index.mjs +1 -1
  38. package/dist/qy-search-input/index.cjs +1 -1
  39. package/dist/qy-search-input/index.mjs +1 -1
  40. package/dist/qy-select/index.cjs +1 -1
  41. package/dist/qy-select/index.mjs +1 -1
  42. package/dist/qy-selection-dialog/index.cjs +1 -1
  43. package/dist/qy-selection-dialog/index.mjs +1 -1
  44. package/dist/qy-switch/index.cjs +1 -1
  45. package/dist/qy-switch/index.mjs +1 -1
  46. package/dist/qy-table-column-settings/index.cjs +1 -1
  47. package/dist/qy-table-column-settings/index.mjs +1 -1
  48. package/dist/qy-tag/index.cjs +1 -1
  49. package/dist/qy-tag/index.mjs +1 -1
  50. package/dist/qy-upload/index.cjs +1 -1
  51. package/dist/qy-upload/index.mjs +1 -1
  52. package/dist/shared/{index-B_mI-37S.cjs → index-9v7CIwzO.cjs} +1 -1
  53. package/dist/shared/{index-DJnmpqCc.mjs → index-B7uyWUhS.mjs} +2 -2
  54. package/dist/shared/{index-ClmefDi6.cjs → index-BF1_Rib_.cjs} +1 -1
  55. package/dist/shared/{index-BYme5QGm.cjs → index-BTPk2zzq.cjs} +1 -1
  56. package/dist/shared/{index-dEWJKTS-.cjs → index-BcCZMWAj.cjs} +1 -1
  57. package/dist/shared/{index-aiJ7R6G-.cjs → index-C1YwUATr.cjs} +1 -1
  58. package/dist/shared/{index-fBuu4V3A.mjs → index-C6jcSQSF.mjs} +1 -1
  59. package/dist/shared/{index-c7lnX4vT.mjs → index-C98mN7sQ.mjs} +14 -14
  60. package/dist/shared/{index-DixSXWJj.mjs → index-CbCpXtYr.mjs} +5 -5
  61. package/dist/shared/{index-BrV6CR4H.mjs → index-Cl5cuyVG.mjs} +1 -1
  62. package/dist/shared/{index-wIXCDvwC.cjs → index-CuusBxhR.cjs} +1 -1
  63. package/dist/shared/{index-DMGXEAyl.mjs → index-DZroPZ8B.mjs} +8 -8
  64. package/dist/shared/{index-M4vEHYZ_.cjs → index-DmhpD4Cp.cjs} +1 -1
  65. package/dist/shared/{index-8u4DJZwd.mjs → index-DrJuMzr1.mjs} +1 -1
  66. package/dist/shared/{index-CczrP1H7.mjs → index-Du2IqeCI.mjs} +1 -1
  67. package/dist/shared/{index-C8CA7nkO.cjs → index-EGnVOaC9.cjs} +1 -1
  68. package/dist/shared/{index-9WJeVamR.cjs → index-QQkDJv3q.cjs} +1 -1
  69. package/dist/shared/{index-DYohs_aV.mjs → index-R5B1rjXo.mjs} +1 -1
  70. package/dist/shared/{index-BDFscU3G.mjs → index-yf2Ijz_G.mjs} +5 -5
  71. package/dist/shared/{index-CTtAQ1LD.cjs → index-zJN0M-bx.cjs} +1 -1
  72. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-tyM4_aoa.cjs → index.vue_vue_type_script_setup_true_lang-C3F8M9sD.cjs} +1 -1
  73. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DmmW8UUK.mjs → index.vue_vue_type_script_setup_true_lang-CKZHI_y-.mjs} +1 -1
  74. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BF82tses.cjs → index.vue_vue_type_script_setup_true_lang-CsKjCWIN.cjs} +1 -1
  75. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BNjoxcAR.mjs → index.vue_vue_type_script_setup_true_lang-N12Nn2uu.mjs} +1 -1
  76. package/index.d.ts +155 -155
  77. package/package.json +1 -1
  78. package/qy-autocomplete/index.d.ts +5 -5
  79. package/qy-checkbox/index.d.ts +45 -45
  80. package/qy-checkbox-group/index.d.ts +48 -48
  81. package/qy-date-picker/index.d.ts +140 -140
  82. package/qy-file-picker/index.d.ts +49 -49
  83. package/qy-image/index.d.ts +28 -28
  84. package/qy-image-preview/index.d.ts +20 -20
  85. package/qy-input/index.d.ts +50 -50
  86. package/qy-input-number/index.d.ts +45 -45
  87. package/qy-menu-actions/index.d.ts +29 -29
  88. package/qy-popover/index.d.ts +63 -63
  89. package/qy-radio/index.d.ts +44 -44
  90. package/qy-radio-group/index.d.ts +60 -60
  91. package/qy-select/index.d.ts +67 -67
  92. package/qy-switch/index.d.ts +46 -46
  93. package/qy-table-column-settings/index.d.ts +18 -18
  94. package/qy-tag/index.d.ts +44 -44
  95. package/qy-tooltip/index.d.ts +54 -54
  96. package/qy-tree-select/index.d.ts +5 -5
@@ -3,7 +3,7 @@ import { ref as q, onMounted as Xe, computed as F, watch as fe, nextTick as De,
3
3
  import { Plus as ma, InfoFilled as ya } from "@element-plus/icons-vue";
4
4
  import { ElMessage as be, ElLoading as ga, ElButton as qe, ElSelect as ht, ElOption as bt, ElInput as Oe, ElPopover as va, ElUpload as ha, ElAutocomplete as ba, ElForm as wt, ElFormItem as ze, ElTable as wa, ElTableColumn as Sa, ElPagination as ka, ElTreeSelect as xa } from "element-plus";
5
5
  import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- import { I as Va } from "./index-DMGXEAyl.mjs";
6
+ import { I as Va } from "./index-DZroPZ8B.mjs";
7
7
  import { _ as Ca } from "./index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs";
8
8
  import $a from "clsx";
9
9
  import { useBreakpoints as qa, useDraggable as Ba } from "@vueuse/core";
@@ -12,18 +12,18 @@ import { D as Aa } from "./index-BYLXkIxS.mjs";
12
12
  import { _ as za } from "./index.vue_vue_type_style_index_0_lang-aqtfjdVm.mjs";
13
13
  import { _ as Ra } from "./index.vue_vue_type_style_index_0_lang-DVqGYfD9.mjs";
14
14
  import { _ as Ia } from "./index.vue_vue_type_style_index_0_lang-CJhIFeBC.mjs";
15
- import { C as Fa } from "./index-BDFscU3G.mjs";
16
- import { _ as Ta } from "./index.vue_vue_type_script_setup_true_lang-BNjoxcAR.mjs";
17
- import { R as Pa } from "./index-8u4DJZwd.mjs";
15
+ import { C as Fa } from "./index-yf2Ijz_G.mjs";
16
+ import { _ as Ta } from "./index.vue_vue_type_script_setup_true_lang-N12Nn2uu.mjs";
17
+ import { R as Pa } from "./index-DrJuMzr1.mjs";
18
18
  import { _ as Ma } from "./index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs";
19
- import { M as Oa } from "./index-CczrP1H7.mjs";
20
- import { T as Da } from "./index-DJnmpqCc.mjs";
21
- import { _ as Ua } from "./index.vue_vue_type_script_setup_true_lang-DmmW8UUK.mjs";
22
- import { S as tt } from "./index-DYohs_aV.mjs";
19
+ import { M as Oa } from "./index-Du2IqeCI.mjs";
20
+ import { T as Da } from "./index-B7uyWUhS.mjs";
21
+ import { _ as Ua } from "./index.vue_vue_type_script_setup_true_lang-CKZHI_y-.mjs";
22
+ import { S as tt } from "./index-R5B1rjXo.mjs";
23
23
  import { _ as St } from "./index.vue_vue_type_script_setup_true_lang-C-Pf9TJ0.mjs";
24
- import { T as We } from "./index-BrV6CR4H.mjs";
25
- import { F as Ka } from "./index-fBuu4V3A.mjs";
26
- import { S as La } from "./index-DixSXWJj.mjs";
24
+ import { T as We } from "./index-Cl5cuyVG.mjs";
25
+ import { F as Ka } from "./index-C6jcSQSF.mjs";
26
+ import { S as La } from "./index-CbCpXtYr.mjs";
27
27
  import { _ as Ea } from "./index.vue_vue_type_style_index_0_lang-DSur831A.mjs";
28
28
  import { _ as ja } from "./index.vue_vue_type_style_index_0_lang-ztD-It-2.mjs";
29
29
  import { w as _ } from "./install-CxBnxbuN.mjs";
@@ -1386,7 +1386,7 @@ const yl = { class: "qy-remark-image__field" }, gl = {
1386
1386
  ])
1387
1387
  ], 6));
1388
1388
  }
1389
- }), Cl = /* @__PURE__ */ Re(Vl, [["__scopeId", "data-v-3158c066"]]), $l = /* @__PURE__ */ Be({
1389
+ }), Cl = /* @__PURE__ */ Re(Vl, [["__scopeId", "data-v-47f20c2b"]]), $l = /* @__PURE__ */ Be({
1390
1390
  name: "QyMoneyInput",
1391
1391
  inheritAttrs: !1,
1392
1392
  __name: "index",
@@ -2049,7 +2049,7 @@ const yl = { class: "qy-remark-image__field" }, gl = {
2049
2049
  ]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
2050
2050
  ], 2));
2051
2051
  }
2052
- }), Vt = /* @__PURE__ */ Re(zl, [["__scopeId", "data-v-cd7f5dfc"]]), Rl = { class: "qy-record-quote-search" }, Il = {
2052
+ }), Vt = /* @__PURE__ */ Re(zl, [["__scopeId", "data-v-33980cea"]]), Rl = { class: "qy-record-quote-search" }, Il = {
2053
2053
  key: 0,
2054
2054
  class: "qy-record-quote-search__header"
2055
2055
  }, Fl = {
@@ -2782,7 +2782,7 @@ const yl = { class: "qy-remark-image__field" }, gl = {
2782
2782
  }, 16, ["model-value", "title", "width"]);
2783
2783
  };
2784
2784
  }
2785
- }), Ct = /* @__PURE__ */ Re(Zl, [["__scopeId", "data-v-e59770ef"]]), _l = /* @__PURE__ */ Be({
2785
+ }), Ct = /* @__PURE__ */ Re(Zl, [["__scopeId", "data-v-31ee3945"]]), _l = /* @__PURE__ */ Be({
2786
2786
  name: "QyLegacySelectionDialog",
2787
2787
  inheritAttrs: !1,
2788
2788
  __name: "index",
@@ -35,10 +35,10 @@ const V = /* @__PURE__ */ s({
35
35
  function u(a) {
36
36
  t("blur", a);
37
37
  }
38
- function c(a) {
38
+ function o(a) {
39
39
  e.disabled || e.loading || t("update:modelValue", a);
40
40
  }
41
- function o(a) {
41
+ function c(a) {
42
42
  e.disabled || e.loading || t("change", a);
43
43
  }
44
44
  return (a, B) => (f(), v(b(x), h(n.value, {
@@ -56,13 +56,13 @@ const V = /* @__PURE__ */ s({
56
56
  id: e.id,
57
57
  tabindex: e.tabindex,
58
58
  "aria-label": e.ariaLabel,
59
- "onUpdate:modelValue": c,
60
- onChange: o,
59
+ "onUpdate:modelValue": o,
60
+ onChange: c,
61
61
  onFocusin: d,
62
62
  onFocusout: u
63
63
  }), null, 16, ["model-value", "active-value", "inactive-value", "disabled", "loading", "size", "active-text", "inactive-text", "inline-prompt", "name", "id", "tabindex", "aria-label"]));
64
64
  }
65
- }), z = /* @__PURE__ */ g(V, [["__scopeId", "data-v-5ec5d1c7"]]);
65
+ }), z = /* @__PURE__ */ g(V, [["__scopeId", "data-v-35d68835"]]);
66
66
  export {
67
67
  z as S
68
68
  };
@@ -48,7 +48,7 @@ const T = /* @__PURE__ */ u({
48
48
  _: 3
49
49
  }, 16, ["class", "type", "size", "effect", "closable", "round"]));
50
50
  }
51
- }), j = /* @__PURE__ */ B(T, [["__scopeId", "data-v-335c865b"]]);
51
+ }), j = /* @__PURE__ */ B(T, [["__scopeId", "data-v-0c5d7c85"]]);
52
52
  export {
53
53
  j as T
54
54
  };
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),r=require("element-plus"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=a.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number],default:!1},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},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:l}){const i=l,n=a.useAttrs(),u=a.computed(()=>Object.fromEntries(Object.entries(n).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function d(t){i("focus",t)}function c(t){i("blur",t)}function o(t){e.disabled||e.loading||i("update:modelValue",t)}function s(t){e.disabled||e.loading||i("change",t)}return(t,b)=>(a.openBlock(),a.createBlock(a.unref(r.ElSwitch),a.mergeProps(u.value,{class:"qy-switch","model-value":e.modelValue,"active-value":e.activeValue,"inactive-value":e.inactiveValue,disabled:e.disabled,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":o,onChange:s,onFocusin:d,onFocusout:c}),null,16,["model-value","active-value","inactive-value","disabled","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"]))}}),v=f._export_sfc(m,[["__scopeId","data-v-5ec5d1c7"]]);exports.Switch=v;
1
+ "use strict";const a=require("vue"),r=require("element-plus"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=a.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number],default:!1},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},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:l}){const i=l,n=a.useAttrs(),u=a.computed(()=>Object.fromEntries(Object.entries(n).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function d(t){i("focus",t)}function c(t){i("blur",t)}function o(t){e.disabled||e.loading||i("update:modelValue",t)}function s(t){e.disabled||e.loading||i("change",t)}return(t,b)=>(a.openBlock(),a.createBlock(a.unref(r.ElSwitch),a.mergeProps(u.value,{class:"qy-switch","model-value":e.modelValue,"active-value":e.activeValue,"inactive-value":e.inactiveValue,disabled:e.disabled,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":o,onChange:s,onFocusin:d,onFocusout:c}),null,16,["model-value","active-value","inactive-value","disabled","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"]))}}),v=f._export_sfc(m,[["__scopeId","data-v-35d68835"]]);exports.Switch=v;
@@ -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
- })), 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));
32
+ })), b = a(() => e.placeholder || l.value), y = a(() => e.preview && !!f.value), k = a(() => (e.previewList.length ? e.previewList : [e.src]).map((r) => I(r)).filter(Boolean));
33
33
  P(
34
34
  () => [e.src, e.compressor],
35
- E,
35
+ B,
36
36
  {
37
37
  immediate: !0,
38
38
  deep: !0
39
39
  }
40
40
  );
41
- async function E() {
41
+ async function B() {
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 b(t) {
55
+ function E(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: B.value,
63
+ urlList: k.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: b,
81
+ onLoad: E,
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"])) : k.value ? p(t.$slots, "empty", {}, () => [
104
+ }, 8, ["src", "fit", "lazy"])) : b.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-02c4930c"]]);
116
+ }), W = /* @__PURE__ */ R(G, [["__scopeId", "data-v-c58a417b"]]);
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-D2KAQCCB.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
+ "use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),s=require("./utils-D2KAQCCB.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-c58a417b"]]);exports.Image=x;
@@ -84,7 +84,7 @@ const q = /* @__PURE__ */ g({
84
84
  _: 3
85
85
  }, 16, ["model-value", "value", "label", "disabled", "size", "name", "border", "id", "tabindex", "aria-label", "aria-controls"]));
86
86
  }
87
- }), j = /* @__PURE__ */ k(q, [["__scopeId", "data-v-8ee19ef0"]]);
87
+ }), j = /* @__PURE__ */ k(q, [["__scopeId", "data-v-b75376cc"]]);
88
88
  export {
89
89
  j as R
90
90
  };
@@ -143,7 +143,7 @@ const N = { class: "qy-menu-actions__panel" }, U = ["disabled", "data-action-key
143
143
  ]))
144
144
  ], 2));
145
145
  }
146
- }), R = /* @__PURE__ */ E(j, [["__scopeId", "data-v-18227456"]]);
146
+ }), R = /* @__PURE__ */ E(j, [["__scopeId", "data-v-44454ac9"]]);
147
147
  export {
148
148
  R as M
149
149
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=["accept","disabled"],D=["tabindex","aria-disabled","onKeydown"],z={class:"qy-file-picker__label"},B={key:0,class:"qy-file-picker__hint"},q=["disabled"],E=e.defineComponent({name:"QyFilePicker",__name:"index",props:{modelValue:{default:null},extensions:{default:()=>[]},maxSizeMb:{default:20},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0},placeholder:{default:"请选择文件"}},emits:["update:modelValue","change","clear","invalid"],setup(a,{expose:h,emit:b}){const i=a,o=b,d=e.ref(null),s=e.ref(!1),c=e.computed(()=>i.extensions.map(t=>t.trim().replace(/^\./,"").toLowerCase()).filter(Boolean)),g=e.computed(()=>c.value.map(t=>`.${t}`).join(","));function u(){var t;i.disabled||(t=d.value)==null||t.click()}function p(){f(),o("update:modelValue",null),o("change",null),o("clear")}function k(){i.disabled||p()}function y(t){var r;const l=(r=t.target.files)==null?void 0:r[0];if(i.disabled||!l){f();return}v(l)}function m(){!i.disabled&&i.drag&&(s.value=!0)}function x(){s.value=!1}function w(t){var l,r;if(s.value=!1,i.disabled||!i.drag)return;const n=(r=(l=t.dataTransfer)==null?void 0:l.files)==null?void 0:r[0];n&&v(n)}function v(t){const n=C(t);if(f(),n){o("invalid",n);return}o("update:modelValue",t),o("change",t)}function C(t){return c.value.length>0&&!c.value.includes(_(t.name))?{code:"extension",file:t,message:`文件后缀必须为 ${c.value.map(n=>`.${n}`).join("、")}`}:i.maxSizeMb>0&&t.size>i.maxSizeMb*1024*1024?{code:"size",file:t,message:`文件大小不能超过 ${i.maxSizeMb}MB`}:null}function _(t){const n=t.lastIndexOf(".");return n<=0||n===t.length-1?"":t.slice(n+1).toLowerCase()}function f(){d.value&&(d.value.value="")}return h({openFileDialog:u,clear:p}),(t,n)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-file-picker",{"is-disabled":a.disabled,"is-dragover":s.value}])},[e.createElementVNode("input",{ref_key:"inputRef",ref:d,class:"qy-file-picker__input",type:"file",accept:g.value,disabled:a.disabled,onChange:y},null,40,V),e.createElementVNode("div",{class:e.normalizeClass(["qy-file-picker__dropzone",{"is-click-only":!a.drag}]),role:"button",tabindex:a.disabled?-1:0,"aria-disabled":a.disabled?"true":void 0,onClick:u,onKeydown:[e.withKeys(e.withModifiers(u,["prevent"]),["enter"]),e.withKeys(e.withModifiers(u,["prevent"]),["space"])],onDragenter:e.withModifiers(m,["prevent"]),onDragover:e.withModifiers(m,["prevent"]),onDragleave:e.withModifiers(x,["prevent"]),onDrop:e.withModifiers(w,["prevent"])},[e.createElementVNode("span",z,e.toDisplayString(((l=a.modelValue)==null?void 0:l.name)||a.placeholder),1),a.drag?(e.openBlock(),e.createElementBlock("span",B," 点击选择或拖拽单个文件到此处 ")):e.createCommentVNode("",!0)],42,D),a.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,class:"qy-file-picker__clear",type:"button",disabled:a.disabled,onClick:e.withModifiers(k,["stop"])}," 清空 ",8,q)):e.createCommentVNode("",!0)],2)}}}),F=M._export_sfc(E,[["__scopeId","data-v-bedd0c11"]]);exports.FilePicker=F;
1
+ "use strict";const e=require("vue"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=["accept","disabled"],D=["tabindex","aria-disabled","onKeydown"],z={class:"qy-file-picker__label"},B={key:0,class:"qy-file-picker__hint"},q=["disabled"],E=e.defineComponent({name:"QyFilePicker",__name:"index",props:{modelValue:{default:null},extensions:{default:()=>[]},maxSizeMb:{default:20},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0},placeholder:{default:"请选择文件"}},emits:["update:modelValue","change","clear","invalid"],setup(a,{expose:h,emit:b}){const i=a,o=b,d=e.ref(null),s=e.ref(!1),c=e.computed(()=>i.extensions.map(t=>t.trim().replace(/^\./,"").toLowerCase()).filter(Boolean)),g=e.computed(()=>c.value.map(t=>`.${t}`).join(","));function u(){var t;i.disabled||(t=d.value)==null||t.click()}function p(){f(),o("update:modelValue",null),o("change",null),o("clear")}function k(){i.disabled||p()}function y(t){var r;const l=(r=t.target.files)==null?void 0:r[0];if(i.disabled||!l){f();return}v(l)}function m(){!i.disabled&&i.drag&&(s.value=!0)}function x(){s.value=!1}function w(t){var l,r;if(s.value=!1,i.disabled||!i.drag)return;const n=(r=(l=t.dataTransfer)==null?void 0:l.files)==null?void 0:r[0];n&&v(n)}function v(t){const n=C(t);if(f(),n){o("invalid",n);return}o("update:modelValue",t),o("change",t)}function C(t){return c.value.length>0&&!c.value.includes(_(t.name))?{code:"extension",file:t,message:`文件后缀必须为 ${c.value.map(n=>`.${n}`).join("、")}`}:i.maxSizeMb>0&&t.size>i.maxSizeMb*1024*1024?{code:"size",file:t,message:`文件大小不能超过 ${i.maxSizeMb}MB`}:null}function _(t){const n=t.lastIndexOf(".");return n<=0||n===t.length-1?"":t.slice(n+1).toLowerCase()}function f(){d.value&&(d.value.value="")}return h({openFileDialog:u,clear:p}),(t,n)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-file-picker",{"is-disabled":a.disabled,"is-dragover":s.value}])},[e.createElementVNode("input",{ref_key:"inputRef",ref:d,class:"qy-file-picker__input",type:"file",accept:g.value,disabled:a.disabled,onChange:y},null,40,V),e.createElementVNode("div",{class:e.normalizeClass(["qy-file-picker__dropzone",{"is-click-only":!a.drag}]),role:"button",tabindex:a.disabled?-1:0,"aria-disabled":a.disabled?"true":void 0,onClick:u,onKeydown:[e.withKeys(e.withModifiers(u,["prevent"]),["enter"]),e.withKeys(e.withModifiers(u,["prevent"]),["space"])],onDragenter:e.withModifiers(m,["prevent"]),onDragover:e.withModifiers(m,["prevent"]),onDragleave:e.withModifiers(x,["prevent"]),onDrop:e.withModifiers(w,["prevent"])},[e.createElementVNode("span",z,e.toDisplayString(((l=a.modelValue)==null?void 0:l.name)||a.placeholder),1),a.drag?(e.openBlock(),e.createElementBlock("span",B," 点击选择或拖拽单个文件到此处 ")):e.createCommentVNode("",!0)],42,D),a.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,class:"qy-file-picker__clear",type:"button",disabled:a.disabled,onClick:e.withModifiers(k,["stop"])}," 清空 ",8,q)):e.createCommentVNode("",!0)],2)}}}),F=M._export_sfc(E,[["__scopeId","data-v-dd254c99"]]);exports.FilePicker=F;
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),g=require("element-plus"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number]},value:{type:[Boolean,String,Number],default:!0},label:{},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{},border:{type:Boolean,default:!1},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const t=s,o=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),l=a.computed(()=>t.value),u=a.ref(null);let r=null;const b=a.computed(()=>t.modelValue!==void 0?t.modelValue:l.value===!0?!1:l.value===!1?!0:typeof l.value=="string"?`__qy-radio-unselected__${l.value}`:Number.NaN);a.onMounted(()=>{var e;r=((e=u.value)==null?void 0:e.$el.querySelector("input.el-radio__original"))??null,r==null||r.addEventListener("keydown",d)}),a.onBeforeUnmount(()=>{r==null||r.removeEventListener("keydown",d)});function i(){return!t.disabled&&t.modelValue!==l.value}function p(){i()&&o("update:modelValue",l.value)}function v(){i()&&o("change",l.value)}function d(e){if(e.key!==" "&&e.code!=="Space")return;const n=e.target;!n||n.tagName!=="INPUT"||n.type!=="radio"||n.disabled||n.checked||(e.preventDefault(),n.click())}function _(e){o("focus",e)}function h(e){o("blur",e)}return(e,n)=>(a.openBlock(),a.createBlock(a.unref(g.ElRadio),a.mergeProps({ref_key:"radioRef",ref:u},m.value,{class:"qy-radio","model-value":b.value,value:l.value,label:t.label,disabled:t.disabled,size:t.size,name:t.name,border:t.border,id:t.id,tabindex:t.tabindex,"aria-label":t.ariaLabel,"aria-controls":t.ariaControls,"onUpdate:modelValue":p,onChange:v,onFocusCapture:_,onBlurCapture:h}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"]))}}),x=y._export_sfc(V,[["__scopeId","data-v-8ee19ef0"]]);exports.Radio=x;
1
+ "use strict";const a=require("vue"),g=require("element-plus"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number]},value:{type:[Boolean,String,Number],default:!0},label:{},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{},border:{type:Boolean,default:!1},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const t=s,o=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),l=a.computed(()=>t.value),u=a.ref(null);let r=null;const b=a.computed(()=>t.modelValue!==void 0?t.modelValue:l.value===!0?!1:l.value===!1?!0:typeof l.value=="string"?`__qy-radio-unselected__${l.value}`:Number.NaN);a.onMounted(()=>{var e;r=((e=u.value)==null?void 0:e.$el.querySelector("input.el-radio__original"))??null,r==null||r.addEventListener("keydown",d)}),a.onBeforeUnmount(()=>{r==null||r.removeEventListener("keydown",d)});function i(){return!t.disabled&&t.modelValue!==l.value}function p(){i()&&o("update:modelValue",l.value)}function v(){i()&&o("change",l.value)}function d(e){if(e.key!==" "&&e.code!=="Space")return;const n=e.target;!n||n.tagName!=="INPUT"||n.type!=="radio"||n.disabled||n.checked||(e.preventDefault(),n.click())}function _(e){o("focus",e)}function h(e){o("blur",e)}return(e,n)=>(a.openBlock(),a.createBlock(a.unref(g.ElRadio),a.mergeProps({ref_key:"radioRef",ref:u},m.value,{class:"qy-radio","model-value":b.value,value:l.value,label:t.label,disabled:t.disabled,size:t.size,name:t.name,border:t.border,id:t.id,tabindex:t.tabindex,"aria-label":t.ariaLabel,"aria-controls":t.ariaControls,"onUpdate:modelValue":p,onChange:v,onFocusCapture:_,onBlurCapture:h}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"]))}}),x=y._export_sfc(V,[["__scopeId","data-v-b75376cc"]]);exports.Radio=x;
@@ -219,7 +219,7 @@ const de = /* @__PURE__ */ D({
219
219
  } : void 0
220
220
  ]), 1040, ["model-value", "placeholder", "disabled", "clearable", "filterable", "loading", "multiple", "collapse-tags", "collapse-tags-tooltip", "size", "teleported", "fit-input-width", "popper-class", "append-to", "value-key"]));
221
221
  }
222
- }), me = /* @__PURE__ */ se(de, [["__scopeId", "data-v-f5464318"]]);
222
+ }), me = /* @__PURE__ */ se(de, [["__scopeId", "data-v-3d7d9a0a"]]);
223
223
  export {
224
224
  me as S
225
225
  };
@@ -37,10 +37,10 @@ const S = /* @__PURE__ */ b({
37
37
  function c(e) {
38
38
  a.disabled || t("change", l(e === !0));
39
39
  }
40
- function m(e) {
40
+ function f(e) {
41
41
  t("focus", e);
42
42
  }
43
- function f(e) {
43
+ function m(e) {
44
44
  t("blur", e);
45
45
  }
46
46
  return (e, y) => (h(), v(x(g), V(s.value, {
@@ -57,8 +57,8 @@ const S = /* @__PURE__ */ b({
57
57
  "aria-controls": a.ariaControls,
58
58
  "onUpdate:modelValue": d,
59
59
  onChange: c,
60
- onFocusin: m,
61
- onFocusout: f
60
+ onFocusin: f,
61
+ onFocusout: m
62
62
  }), {
63
63
  default: C(() => [
64
64
  _(e.$slots, "default", {}, void 0, !0)
@@ -66,7 +66,7 @@ const S = /* @__PURE__ */ b({
66
66
  _: 3
67
67
  }, 16, ["model-value", "value", "indeterminate", "disabled", "size", "name", "id", "tabindex", "aria-label", "aria-controls"]));
68
68
  }
69
- }), F = /* @__PURE__ */ B(S, [["__scopeId", "data-v-1886b81c"]]);
69
+ }), F = /* @__PURE__ */ B(S, [["__scopeId", "data-v-33fb88db"]]);
70
70
  export {
71
71
  F as C
72
72
  };
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),f=require("element-plus"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=t.defineComponent({name:"QyTag",inheritAttrs:!1,__name:"index",props:{tone:{default:"neutral"},size:{default:"md"},effect:{default:"light"},closable:{type:Boolean,default:!1},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click","close"],setup(e,{emit:n}){const s=n,c=t.useAttrs(),i=t.computed(()=>{const l=Object.fromEntries(Object.entries(c).filter(([a])=>a==="class"||a==="style"||a==="title"||a==="role"||a.startsWith("data-")||a.startsWith("aria-")));return e.disabled&&(l["aria-disabled"]="true"),l}),o=t.computed(()=>e.tone==="neutral"?"info":e.tone),d=t.computed(()=>({sm:"small",md:"default",lg:"large"})[e.size]);function u(l){e.disabled||s("click",l)}function r(l){e.disabled||s("close",l)}return(l,a)=>(t.openBlock(),t.createBlock(t.unref(f.ElTag),t.mergeProps(i.value,{class:["qy-tag",[`qy-tag--${e.tone}`,{"qy-tag--disabled":e.disabled}]],type:o.value,size:d.value,effect:e.effect,closable:e.closable&&!e.disabled,round:e.round,onClick:u,onClose:r}),{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["class","type","size","effect","closable","round"]))}}),g=m._export_sfc(b,[["__scopeId","data-v-335c865b"]]);exports.Tag=g;
1
+ "use strict";const t=require("vue"),f=require("element-plus"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=t.defineComponent({name:"QyTag",inheritAttrs:!1,__name:"index",props:{tone:{default:"neutral"},size:{default:"md"},effect:{default:"light"},closable:{type:Boolean,default:!1},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click","close"],setup(e,{emit:n}){const s=n,c=t.useAttrs(),i=t.computed(()=>{const l=Object.fromEntries(Object.entries(c).filter(([a])=>a==="class"||a==="style"||a==="title"||a==="role"||a.startsWith("data-")||a.startsWith("aria-")));return e.disabled&&(l["aria-disabled"]="true"),l}),o=t.computed(()=>e.tone==="neutral"?"info":e.tone),d=t.computed(()=>({sm:"small",md:"default",lg:"large"})[e.size]);function u(l){e.disabled||s("click",l)}function r(l){e.disabled||s("close",l)}return(l,a)=>(t.openBlock(),t.createBlock(t.unref(f.ElTag),t.mergeProps(i.value,{class:["qy-tag",[`qy-tag--${e.tone}`,{"qy-tag--disabled":e.disabled}]],type:o.value,size:d.value,effect:e.effect,closable:e.closable&&!e.disabled,round:e.round,onClick:u,onClose:r}),{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["class","type","size","effect","closable","round"]))}}),g=m._export_sfc(b,[["__scopeId","data-v-0c5d7c85"]]);exports.Tag=g;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),m=require("element-plus"),f=require("./index-dEWJKTS-.cjs"),b=e.defineComponent({name:"QyCheckboxGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},options:{default:()=>[]},disabled:{type:Boolean,default:!1},min:{},max:{},size:{default:void 0},ariaLabel:{}},emits:["update:modelValue","change"],setup(d,{emit:i}){const l=d,s=i,o=e.useAttrs(),n=e.computed(()=>Object.fromEntries(Object.entries(o).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a==="id"||a.startsWith("data-")||a.startsWith("aria-"))));function r(a){s("update:modelValue",a.slice())}function u(a){s("change",a.slice())}return(a,p)=>(e.openBlock(),e.createBlock(e.unref(m.ElCheckboxGroup),e.mergeProps(n.value,{"model-value":l.modelValue,disabled:l.disabled,min:l.min,max:l.max,size:l.size,"aria-label":l.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(l.options,(t,c)=>(e.openBlock(),e.createBlock(f.Checkbox,{key:`${String(t.value)}-${c}`,"model-value":l.modelValue.includes(t.value),value:t.value,disabled:l.disabled||t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["model-value","value","disabled"]))),128))]),_:3},16,["model-value","disabled","min","max","size","aria-label"]))}});exports._sfc_main=b;
1
+ "use strict";const e=require("vue"),m=require("element-plus"),f=require("./index-BcCZMWAj.cjs"),b=e.defineComponent({name:"QyCheckboxGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},options:{default:()=>[]},disabled:{type:Boolean,default:!1},min:{},max:{},size:{default:void 0},ariaLabel:{}},emits:["update:modelValue","change"],setup(d,{emit:i}){const l=d,s=i,o=e.useAttrs(),n=e.computed(()=>Object.fromEntries(Object.entries(o).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a==="id"||a.startsWith("data-")||a.startsWith("aria-"))));function r(a){s("update:modelValue",a.slice())}function u(a){s("change",a.slice())}return(a,p)=>(e.openBlock(),e.createBlock(e.unref(m.ElCheckboxGroup),e.mergeProps(n.value,{"model-value":l.modelValue,disabled:l.disabled,min:l.min,max:l.max,size:l.size,"aria-label":l.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(l.options,(t,c)=>(e.openBlock(),e.createBlock(f.Checkbox,{key:`${String(t.value)}-${c}`,"model-value":l.modelValue.includes(t.value),value:t.value,disabled:l.disabled||t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["model-value","value","disabled"]))),128))]),_:3},16,["model-value","disabled","min","max","size","aria-label"]))}});exports._sfc_main=b;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, useAttrs as G, computed as d, ref as S, openBlock as o, createBlock as u, unref as $, mergeProps as i, withCtx as f, renderSlot as m, createElementBlock as E, Fragment as O, renderList as w, resolveDynamicComponent as x, createTextVNode as A, toDisplayString as P } from "vue";
2
2
  import { ElRadioButton as j, ElRadioGroup as D } from "element-plus";
3
- import { R as N } from "./index-8u4DJZwd.mjs";
3
+ import { R as N } from "./index-DrJuMzr1.mjs";
4
4
  const I = /* @__PURE__ */ C({
5
5
  name: "QyRadioGroup",
6
6
  inheritAttrs: !1,
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),u=require("element-plus"),R=require("./index-9WJeVamR.cjs"),_=a.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{expose:i,emit:c}){const l=s,d=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=a.ref(null),b=a.computed(()=>l.type==="button"?u.ElRadioButton:R.Radio),p=a.computed(()=>l.options.map(e=>{const r=e[l.labelKey],t=e[l.valueKey],o=v(t)?t:e.value??e.label??"";return{raw:e,label:String(r??e.label??e.value??""),value:o,disabled:!!e[l.disabledKey]}}));function v(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function y(e){const r={modelValue:l.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled,size:l.size,name:l.name};return l.type==="button"?r:{...r,border:l.border}}function g(e,r){return`${String(e.value??e.label)}-${r}`}function h(e){d("update:modelValue",e)}function V(e){d("change",e)}function B(){return n.value}return i({getRadioGroupInstance:B}),(e,r)=>(a.openBlock(),a.createBlock(a.unref(u.ElRadioGroup),a.mergeProps({ref_key:"radioGroupRef",ref:n},m.value,{"model-value":l.modelValue,disabled:l.disabled,size:l.size,name:l.name,"onUpdate:modelValue":h,onChange:V}),{default:a.withCtx(()=>[e.$slots.default?a.renderSlot(e.$slots,"default",{},void 0,void 0,0):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,(t,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.value),a.mergeProps({key:g(t,o)},{ref_for:!0},y(t)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[a.createTextVNode(a.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports._sfc_main=_;
1
+ "use strict";const a=require("vue"),u=require("element-plus"),R=require("./index-QQkDJv3q.cjs"),_=a.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{expose:i,emit:c}){const l=s,d=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=a.ref(null),b=a.computed(()=>l.type==="button"?u.ElRadioButton:R.Radio),p=a.computed(()=>l.options.map(e=>{const r=e[l.labelKey],t=e[l.valueKey],o=v(t)?t:e.value??e.label??"";return{raw:e,label:String(r??e.label??e.value??""),value:o,disabled:!!e[l.disabledKey]}}));function v(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function y(e){const r={modelValue:l.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled,size:l.size,name:l.name};return l.type==="button"?r:{...r,border:l.border}}function g(e,r){return`${String(e.value??e.label)}-${r}`}function h(e){d("update:modelValue",e)}function V(e){d("change",e)}function B(){return n.value}return i({getRadioGroupInstance:B}),(e,r)=>(a.openBlock(),a.createBlock(a.unref(u.ElRadioGroup),a.mergeProps({ref_key:"radioGroupRef",ref:n},m.value,{"model-value":l.modelValue,disabled:l.disabled,size:l.size,name:l.name,"onUpdate:modelValue":h,onChange:V}),{default:a.withCtx(()=>[e.$slots.default?a.renderSlot(e.$slots,"default",{},void 0,void 0,0):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,(t,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.value),a.mergeProps({key:g(t,o)},{ref_for:!0},y(t)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[a.createTextVNode(a.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports._sfc_main=_;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useAttrs as b, computed as h, openBlock as t, createBlock as s, unref as v, mergeProps as x, withCtx as i, renderSlot as g, createElementBlock as C, Fragment as V, renderList as _, createTextVNode as z, toDisplayString as B } from "vue";
2
2
  import { ElCheckboxGroup as $ } from "element-plus";
3
- import { C as A } from "./index-BDFscU3G.mjs";
3
+ import { C as A } from "./index-yf2Ijz_G.mjs";
4
4
  const k = /* @__PURE__ */ p({
5
5
  name: "QyCheckboxGroup",
6
6
  inheritAttrs: !1,