@qynpm/ui 1.0.4 → 1.0.5

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 (82) hide show
  1. package/README.md +228 -59
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.mjs +19 -15
  4. package/dist/lib/dialog/index.vue.cjs +1 -1
  5. package/dist/lib/dialog/index.vue.mjs +24 -25
  6. package/dist/lib/dialog/index.vue3.cjs +1 -0
  7. package/dist/lib/dialog/index.vue3.mjs +5 -0
  8. package/dist/lib/index.cjs +1 -1
  9. package/dist/lib/index.mjs +43 -30
  10. package/dist/lib/qy-action-bar/index.vue.cjs +1 -1
  11. package/dist/lib/qy-action-bar/index.vue.mjs +4 -53
  12. package/dist/lib/qy-action-bar/index.vue2.cjs +1 -0
  13. package/dist/lib/qy-action-bar/index.vue2.mjs +55 -0
  14. package/dist/lib/qy-form-section/index.vue.cjs +1 -1
  15. package/dist/lib/qy-form-section/index.vue.mjs +4 -86
  16. package/dist/lib/qy-form-section/index.vue2.cjs +1 -0
  17. package/dist/lib/qy-form-section/index.vue2.mjs +87 -0
  18. package/dist/lib/qy-input/index.vue.mjs +2 -1
  19. package/dist/lib/qy-input/index.vue2.cjs +1 -0
  20. package/dist/lib/qy-input/index.vue2.mjs +4 -0
  21. package/dist/lib/qy-money-input/index.vue.cjs +1 -0
  22. package/dist/lib/qy-money-input/index.vue.mjs +171 -0
  23. package/dist/lib/qy-money-input/index.vue2.cjs +1 -0
  24. package/dist/lib/qy-money-input/index.vue2.mjs +4 -0
  25. package/dist/lib/qy-radio-group/index.vue.cjs +1 -0
  26. package/dist/lib/qy-radio-group/index.vue.mjs +90 -0
  27. package/dist/lib/qy-radio-group/index.vue2.cjs +1 -0
  28. package/dist/lib/qy-radio-group/index.vue2.mjs +4 -0
  29. package/dist/lib/qy-record-quote-search/index.vue.cjs +1 -1
  30. package/dist/lib/qy-record-quote-search/index.vue.mjs +4 -203
  31. package/dist/lib/qy-record-quote-search/index.vue2.cjs +1 -0
  32. package/dist/lib/qy-record-quote-search/index.vue2.mjs +204 -0
  33. package/dist/lib/qy-remote-select/index.vue.cjs +1 -0
  34. package/dist/lib/qy-remote-select/index.vue.mjs +214 -0
  35. package/dist/lib/qy-remote-select/index.vue2.cjs +1 -0
  36. package/dist/lib/qy-remote-select/index.vue2.mjs +4 -0
  37. package/dist/lib/qy-search-input/index.vue.cjs +1 -1
  38. package/dist/lib/qy-search-input/index.vue.mjs +4 -274
  39. package/dist/lib/qy-search-input/index.vue2.cjs +1 -0
  40. package/dist/lib/qy-search-input/index.vue2.mjs +276 -0
  41. package/dist/lib/qy-select/index.vue.cjs +1 -1
  42. package/dist/lib/qy-select/index.vue.mjs +80 -55
  43. package/dist/lib/qy-select/index.vue2.cjs +1 -0
  44. package/dist/lib/qy-select/index.vue2.mjs +4 -0
  45. package/dist/lib/qy-voucher-upload/index.vue.cjs +1 -0
  46. package/dist/lib/qy-voucher-upload/index.vue.mjs +123 -0
  47. package/dist/lib/remark-image/index.vue.cjs +1 -1
  48. package/dist/lib/remark-image/index.vue.mjs +4 -195
  49. package/dist/lib/remark-image/index.vue2.cjs +1 -0
  50. package/dist/lib/remark-image/index.vue2.mjs +197 -0
  51. package/dist/lib/upload/index.vue.cjs +1 -1
  52. package/dist/lib/upload/index.vue.mjs +317 -217
  53. package/dist/lib/utils/auth.cjs +1 -1
  54. package/dist/lib/utils/auth.mjs +1 -1
  55. package/dist/node_modules/.pnpm/{js-cookie@3.0.1 → js-cookie@3.0.5}/node_modules/js-cookie/dist/js.cookie.cjs +1 -1
  56. package/dist/node_modules/.pnpm/{js-cookie@3.0.1 → js-cookie@3.0.5}/node_modules/js-cookie/dist/js.cookie.mjs +6 -6
  57. package/dist/qy-dialog/index.cjs +1 -1
  58. package/dist/qy-dialog/index.mjs +3 -2
  59. package/dist/qy-input/index.cjs +1 -1
  60. package/dist/qy-money-input/index.cjs +1 -0
  61. package/dist/qy-money-input/index.mjs +6 -0
  62. package/dist/qy-radio-group/index.cjs +1 -0
  63. package/dist/qy-radio-group/index.mjs +6 -0
  64. package/dist/qy-remark-image/index.cjs +1 -1
  65. package/dist/qy-remark-image/index.mjs +1 -1
  66. package/dist/qy-remote-select/index.cjs +1 -0
  67. package/dist/qy-remote-select/index.mjs +6 -0
  68. package/dist/qy-select/index.cjs +1 -1
  69. package/dist/qy-voucher-upload/index.cjs +1 -0
  70. package/dist/qy-voucher-upload/index.mjs +6 -0
  71. package/index.d.ts +20 -11
  72. package/package.json +25 -1
  73. package/qy-money-input/index.d.ts +12 -0
  74. package/qy-money-input/index.js +15 -0
  75. package/qy-radio-group/index.d.ts +12 -0
  76. package/qy-radio-group/index.js +15 -0
  77. package/qy-remote-select/index.d.ts +12 -0
  78. package/qy-remote-select/index.js +15 -0
  79. package/qy-voucher-upload/index.d.ts +12 -0
  80. package/qy-voucher-upload/index.js +15 -0
  81. /package/dist/_virtual/{plugin-vue_export-helper.cjs → _plugin-vue_export-helper.cjs} +0 -0
  82. /package/dist/_virtual/{plugin-vue_export-helper.mjs → _plugin-vue_export-helper.mjs} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const y=require("./upload/index.vue.cjs"),s=require("./dialog/index.vue.cjs"),d=require("./remark-image/index.vue.cjs"),m=require("./qy-input/index.vue.cjs"),I=require("./qy-search-input/index.vue.cjs"),S=require("./qy-record-quote-search/index.vue.cjs"),h=require("./qy-select/index.vue.cjs"),f=require("./qy-form-section/index.vue.cjs"),q=require("./qy-action-bar/index.vue.cjs"),t=require("./utils/install.cjs"),n=t.withInstall(y.default,"QyUpload"),o=t.withInstall(s.default,"QyDialog"),c=t.withInstall(d.default,"QyRemarkImage"),r=t.withInstall(m.default,"QyInput"),l=t.withInstall(I.default,"QySearchInput"),i=t.withInstall(S.default,"QyRecordQuoteSearch"),a=t.withInstall(h.default,"QySelect"),Q=t.withInstall(f.default,"QyFormSection"),u=t.withInstall(q.default,"QyActionBar"),g=e=>{e.component("QyDialog",o),e.component("QyUpload",n),e.component("QyRemarkImage",c),e.component("QyInput",r),e.component("QySearchInput",l),e.component("QyRecordQuoteSearch",i),e.component("QySelect",a),e.component("QyFormSection",Q),e.component("QyActionBar",u)},x={install:g,QyUpload:n,QyDialog:o,QyInput:r,QySearchInput:l,QyRecordQuoteSearch:i,QySelect:a,QyFormSection:Q,QyActionBar:u,QyRemarkImage:c};exports.QyActionBar=u;exports.QyDialog=o;exports.QyFormSection=Q;exports.QyInput=r;exports.QyRecordQuoteSearch=i;exports.QyRemarkImage=c;exports.QySearchInput=l;exports.QySelect=a;exports.QyUpload=n;exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const p=require("./upload/index.vue.cjs"),m=require("./qy-voucher-upload/index.vue.cjs"),I=require("./dialog/index.vue.cjs");;/* empty css */const h=require("./remark-image/index.vue.cjs"),S=require("./qy-input/index.vue.cjs"),g=require("./qy-money-input/index.vue.cjs"),q=require("./qy-radio-group/index.vue.cjs"),R=require("./qy-remote-select/index.vue.cjs"),f=require("./qy-search-input/index.vue.cjs"),v=require("./qy-record-quote-search/index.vue.cjs"),x=require("./qy-select/index.vue.cjs"),w=require("./qy-form-section/index.vue.cjs"),$=require("./qy-action-bar/index.vue.cjs"),t=require("./utils/install.cjs"),n=t.withInstall(p.default,"QyUpload"),o=t.withInstall(m.default,"QyVoucherUpload"),u=t.withInstall(I.default,"QyDialog"),c=t.withInstall(h.default,"QyRemarkImage"),r=t.withInstall(S.default,"QyInput"),l=t.withInstall(g.default,"QyMoneyInput"),i=t.withInstall(q.default,"QyRadioGroup"),a=t.withInstall(R.default,"QyRemoteSelect"),y=t.withInstall(f.default,"QySearchInput"),s=t.withInstall(v.default,"QyRecordQuoteSearch"),Q=t.withInstall(x.default,"QySelect"),d=t.withInstall(w.default,"QyFormSection"),_=t.withInstall($.default,"QyActionBar"),U=e=>{e.component("QyDialog",u),e.component("QyUpload",n),e.component("QyVoucherUpload",o),e.component("QyRemarkImage",c),e.component("QyInput",r),e.component("QyMoneyInput",l),e.component("QyRadioGroup",i),e.component("QyRemoteSelect",a),e.component("QySearchInput",y),e.component("QyRecordQuoteSearch",s),e.component("QySelect",Q),e.component("QyFormSection",d),e.component("QyActionBar",_)},M={install:U,QyUpload:n,QyVoucherUpload:o,QyDialog:u,QyInput:r,QyMoneyInput:l,QyRadioGroup:i,QyRemoteSelect:a,QySearchInput:y,QyRecordQuoteSearch:s,QySelect:Q,QyFormSection:d,QyActionBar:_,QyRemarkImage:c};exports.QyActionBar=_;exports.QyDialog=u;exports.QyFormSection=d;exports.QyInput=r;exports.QyMoneyInput=l;exports.QyRadioGroup=i;exports.QyRecordQuoteSearch=s;exports.QyRemarkImage=c;exports.QyRemoteSelect=a;exports.QySearchInput=y;exports.QySelect=Q;exports.QyUpload=n;exports.QyVoucherUpload=o;exports.default=M;
@@ -1,40 +1,53 @@
1
1
  /* empty css */
2
- import s from "./upload/index.vue.mjs";
3
- import p from "./dialog/index.vue.mjs";
4
- import l from "./remark-image/index.vue.mjs";
5
- import S from "./qy-input/index.vue.mjs";
6
- import f from "./qy-search-input/index.vue.mjs";
7
- import u from "./qy-record-quote-search/index.vue.mjs";
8
- import I from "./qy-select/index.vue.mjs";
9
- import d from "./qy-form-section/index.vue.mjs";
10
- import h from "./qy-action-bar/index.vue.mjs";
2
+ import u from "./upload/index.vue.mjs";
3
+ import S from "./qy-voucher-upload/index.vue.mjs";
4
+ import d from "./dialog/index.vue.mjs";
5
+ /* empty css */
6
+ import I from "./remark-image/index.vue.mjs";
7
+ import R from "./qy-input/index.vue.mjs";
8
+ import _ from "./qy-money-input/index.vue.mjs";
9
+ import h from "./qy-radio-group/index.vue.mjs";
10
+ import $ from "./qy-remote-select/index.vue.mjs";
11
+ import g from "./qy-search-input/index.vue.mjs";
12
+ import U from "./qy-record-quote-search/index.vue.mjs";
13
+ import k from "./qy-select/index.vue.mjs";
14
+ import A from "./qy-form-section/index.vue.mjs";
15
+ import B from "./qy-action-bar/index.vue.mjs";
11
16
  import { withInstall as t } from "./utils/install.mjs";
12
- const n = t(s, "QyUpload"), c = t(p, "QyDialog"), e = t(l, "QyRemarkImage"), r = t(S, "QyInput"), m = t(f, "QySearchInput"), Q = t(
13
- u,
17
+ const n = t(u, "QyUpload"), e = t(S, "QyVoucherUpload"), m = t(d, "QyDialog"), c = t(I, "QyRemarkImage"), r = t(R, "QyInput"), Q = t(_, "QyMoneyInput"), y = t(h, "QyRadioGroup"), i = t($, "QyRemoteSelect"), a = t(g, "QySearchInput"), p = t(
18
+ U,
14
19
  "QyRecordQuoteSearch"
15
- ), y = t(I, "QySelect"), i = t(d, "QyFormSection"), a = t(h, "QyActionBar"), R = (o) => {
16
- o.component("QyDialog", c), o.component("QyUpload", n), o.component("QyRemarkImage", e), o.component("QyInput", r), o.component("QySearchInput", m), o.component("QyRecordQuoteSearch", Q), o.component("QySelect", y), o.component("QyFormSection", i), o.component("QyActionBar", a);
17
- }, b = {
18
- install: R,
20
+ ), s = t(k, "QySelect"), f = t(A, "QyFormSection"), l = t(B, "QyActionBar"), F = (o) => {
21
+ o.component("QyDialog", m), o.component("QyUpload", n), o.component("QyVoucherUpload", e), o.component("QyRemarkImage", c), o.component("QyInput", r), o.component("QyMoneyInput", Q), o.component("QyRadioGroup", y), o.component("QyRemoteSelect", i), o.component("QySearchInput", a), o.component("QyRecordQuoteSearch", p), o.component("QySelect", s), o.component("QyFormSection", f), o.component("QyActionBar", l);
22
+ }, L = {
23
+ install: F,
19
24
  QyUpload: n,
20
- QyDialog: c,
25
+ QyVoucherUpload: e,
26
+ QyDialog: m,
21
27
  QyInput: r,
22
- QySearchInput: m,
23
- QyRecordQuoteSearch: Q,
24
- QySelect: y,
25
- QyFormSection: i,
26
- QyActionBar: a,
27
- QyRemarkImage: e
28
+ QyMoneyInput: Q,
29
+ QyRadioGroup: y,
30
+ QyRemoteSelect: i,
31
+ QySearchInput: a,
32
+ QyRecordQuoteSearch: p,
33
+ QySelect: s,
34
+ QyFormSection: f,
35
+ QyActionBar: l,
36
+ QyRemarkImage: c
28
37
  };
29
38
  export {
30
- a as QyActionBar,
31
- c as QyDialog,
32
- i as QyFormSection,
39
+ l as QyActionBar,
40
+ m as QyDialog,
41
+ f as QyFormSection,
33
42
  r as QyInput,
34
- Q as QyRecordQuoteSearch,
35
- e as QyRemarkImage,
36
- m as QySearchInput,
37
- y as QySelect,
43
+ Q as QyMoneyInput,
44
+ y as QyRadioGroup,
45
+ p as QyRecordQuoteSearch,
46
+ c as QyRemarkImage,
47
+ i as QyRemoteSelect,
48
+ a as QySearchInput,
49
+ s as QySelect,
38
50
  n as QyUpload,
39
- b as default
51
+ e as QyVoucherUpload,
52
+ L as default
40
53
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const s=require("../../_virtual/plugin-vue_export-helper.cjs"),l={key:0,class:"qy-action-bar__left"},n={key:1,class:"qy-action-bar__center"},d={key:2,class:"qy-action-bar__right"},i=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,default:!0},offsetBottom:{default:0},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0},justify:{default:"between"},background:{default:"#fff"}},setup(r){const o=r,a=e.computed(()=>({bottom:`${o.offsetBottom}px`,background:o.background}));return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${t.justify}`,{"is-sticky":t.sticky,"is-bordered":t.bordered,"is-shadow":t.shadow,"is-wrap":t.wrap}]]),style:e.normalizeStyle(a.value)},[t.$slots.left?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"left",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),u=s.default(i,[["__scopeId","data-v-86002d5a"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-52704203"]]);exports.default=u;
@@ -1,56 +1,7 @@
1
- import { defineComponent as i, computed as n, createElementBlock as t, openBlock as o, normalizeStyle as u, normalizeClass as f, createCommentVNode as s, renderSlot as a } from "vue";
1
+ import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
- import c from "../../_virtual/plugin-vue_export-helper.mjs";
4
- const p = {
5
- key: 0,
6
- class: "qy-action-bar__left"
7
- }, y = {
8
- key: 1,
9
- class: "qy-action-bar__center"
10
- }, m = {
11
- key: 2,
12
- class: "qy-action-bar__right"
13
- }, b = i({
14
- name: "QyActionBar",
15
- __name: "index",
16
- props: {
17
- sticky: { type: Boolean, default: !0 },
18
- offsetBottom: { default: 0 },
19
- bordered: { type: Boolean, default: !0 },
20
- shadow: { type: Boolean, default: !1 },
21
- wrap: { type: Boolean, default: !0 },
22
- justify: { default: "between" },
23
- background: { default: "#fff" }
24
- },
25
- setup(d) {
26
- const r = d, l = n(() => ({
27
- bottom: `${r.offsetBottom}px`,
28
- background: r.background
29
- }));
30
- return (e, k) => (o(), t("div", {
31
- class: f(["qy-action-bar", [
32
- `is-justify-${e.justify}`,
33
- {
34
- "is-sticky": e.sticky,
35
- "is-bordered": e.bordered,
36
- "is-shadow": e.shadow,
37
- "is-wrap": e.wrap
38
- }
39
- ]]),
40
- style: u(l.value)
41
- }, [
42
- e.$slots.left ? (o(), t("div", p, [
43
- a(e.$slots, "left", {}, void 0, !0)
44
- ])) : s("", !0),
45
- e.$slots.default ? (o(), t("div", y, [
46
- a(e.$slots, "default", {}, void 0, !0)
47
- ])) : s("", !0),
48
- e.$slots.right ? (o(), t("div", m, [
49
- a(e.$slots, "right", {}, void 0, !0)
50
- ])) : s("", !0)
51
- ], 6));
52
- }
53
- }), v = /* @__PURE__ */ c(b, [["__scopeId", "data-v-86002d5a"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-52704203"]]);
54
5
  export {
55
- v as default
6
+ p as default
56
7
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a={key:0,class:"qy-action-bar__left"},l={key:1,class:"qy-action-bar__center"},n={key:2,class:"qy-action-bar__right"},d=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,default:!0},offsetBottom:{default:0},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0},justify:{default:"between"},background:{default:"#fff"}},setup(r){const o=r,s=e.computed(()=>({bottom:`${o.offsetBottom}px`,background:o.background}));return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${t.justify}`,{"is-sticky":t.sticky,"is-bordered":t.bordered,"is-shadow":t.shadow,"is-wrap":t.wrap}]]),style:e.normalizeStyle(s.value)},[t.$slots.left?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(t.$slots,"left",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}});exports.default=d;
@@ -0,0 +1,55 @@
1
+ import { defineComponent as i, computed as n, createElementBlock as t, openBlock as o, normalizeStyle as u, normalizeClass as f, createCommentVNode as s, renderSlot as a } from "vue";
2
+ const y = {
3
+ key: 0,
4
+ class: "qy-action-bar__left"
5
+ }, c = {
6
+ key: 1,
7
+ class: "qy-action-bar__center"
8
+ }, p = {
9
+ key: 2,
10
+ class: "qy-action-bar__right"
11
+ }, k = /* @__PURE__ */ i({
12
+ name: "QyActionBar",
13
+ __name: "index",
14
+ props: {
15
+ sticky: { type: Boolean, default: !0 },
16
+ offsetBottom: { default: 0 },
17
+ bordered: { type: Boolean, default: !0 },
18
+ shadow: { type: Boolean, default: !1 },
19
+ wrap: { type: Boolean, default: !0 },
20
+ justify: { default: "between" },
21
+ background: { default: "#fff" }
22
+ },
23
+ setup(l) {
24
+ const r = l, d = n(() => ({
25
+ // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
26
+ bottom: `${r.offsetBottom}px`,
27
+ background: r.background
28
+ }));
29
+ return (e, m) => (o(), t("div", {
30
+ class: f(["qy-action-bar", [
31
+ `is-justify-${e.justify}`,
32
+ {
33
+ "is-sticky": e.sticky,
34
+ "is-bordered": e.bordered,
35
+ "is-shadow": e.shadow,
36
+ "is-wrap": e.wrap
37
+ }
38
+ ]]),
39
+ style: u(d.value)
40
+ }, [
41
+ e.$slots.left ? (o(), t("div", y, [
42
+ a(e.$slots, "left", {}, void 0, !0)
43
+ ])) : s("", !0),
44
+ e.$slots.default ? (o(), t("div", c, [
45
+ a(e.$slots, "default", {}, void 0, !0)
46
+ ])) : s("", !0),
47
+ e.$slots.right ? (o(), t("div", p, [
48
+ a(e.$slots, "right", {}, void 0, !0)
49
+ ])) : s("", !0)
50
+ ], 6));
51
+ }
52
+ });
53
+ export {
54
+ k as default
55
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const d=require("../../_virtual/plugin-vue_export-helper.cjs"),c={class:"qy-form-section__heading"},u={key:0,class:"qy-form-section__title"},p={key:0,class:"qy-form-section__description"},m={class:"qy-form-section__actions"},f=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(i,{emit:a}){const l=i,r=a,o=e.ref(l.defaultExpanded);e.watch(()=>l.defaultExpanded,t=>{o.value=t});function s(){l.collapsible&&(o.value=!o.value,r("toggle",o.value))}function n(){l.collapsible&&s()}return(t,b)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:n},[e.createElementVNode("div",c,[e.renderSlot(t.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",p,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",m,[e.renderSlot(t.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(s,["stop"])},e.toDisplayString(o.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(t.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[e.vShow,o.value]])],2))}}),y=d.default(f,[["__scopeId","data-v-0185ba6c"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-f66fb30e"]]);exports.default=u;
@@ -1,89 +1,7 @@
1
- import { defineComponent as y, ref as b, watch as v, createElementBlock as o, openBlock as s, normalizeClass as a, createElementVNode as d, withDirectives as h, renderSlot as i, createCommentVNode as n, toDisplayString as r, withModifiers as _, vShow as g } from "vue";
1
+ import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
- import k from "../../_virtual/plugin-vue_export-helper.mjs";
4
- const C = { class: "qy-form-section__heading" }, q = {
5
- key: 0,
6
- class: "qy-form-section__title"
7
- }, $ = {
8
- key: 0,
9
- class: "qy-form-section__description"
10
- }, E = { class: "qy-form-section__actions" }, w = y({
11
- name: "QyFormSection",
12
- __name: "index",
13
- props: {
14
- title: { default: "" },
15
- description: { default: "" },
16
- tip: { default: "" },
17
- tipType: { default: "info" },
18
- collapsible: { type: Boolean, default: !1 },
19
- defaultExpanded: { type: Boolean, default: !0 },
20
- bordered: { type: Boolean, default: !0 },
21
- background: { default: "white" },
22
- bodyClass: { default: "" },
23
- headerClass: { default: "" }
24
- },
25
- emits: ["toggle"],
26
- setup(c, { emit: p }) {
27
- const l = c, f = p, t = b(l.defaultExpanded);
28
- v(
29
- () => l.defaultExpanded,
30
- (e) => {
31
- t.value = e;
32
- }
33
- );
34
- function u() {
35
- l.collapsible && (t.value = !t.value, f("toggle", t.value));
36
- }
37
- function m() {
38
- l.collapsible && u();
39
- }
40
- return (e, B) => (s(), o("section", {
41
- class: a(["qy-form-section", [
42
- `is-bg-${e.background}`,
43
- {
44
- "is-bordered": e.bordered,
45
- "is-collapsible": e.collapsible
46
- }
47
- ]])
48
- }, [
49
- d("header", {
50
- class: a(["qy-form-section__header", e.headerClass]),
51
- onClick: m
52
- }, [
53
- d("div", C, [
54
- i(e.$slots, "title", {}, () => [
55
- e.title ? (s(), o("div", q, r(e.title), 1)) : n("", !0)
56
- ], !0),
57
- i(e.$slots, "description", {}, () => [
58
- e.description ? (s(), o("div", $, r(e.description), 1)) : n("", !0)
59
- ], !0)
60
- ]),
61
- d("div", E, [
62
- i(e.$slots, "actions", {}, void 0, !0),
63
- e.collapsible ? (s(), o("button", {
64
- key: 0,
65
- type: "button",
66
- class: "qy-form-section__toggle",
67
- onClick: _(u, ["stop"])
68
- }, r(t.value ? "收起" : "展开"), 1)) : n("", !0)
69
- ])
70
- ], 2),
71
- h(d("div", {
72
- class: a(["qy-form-section__body", e.bodyClass])
73
- }, [
74
- i(e.$slots, "tip", {}, () => [
75
- e.tip ? (s(), o("div", {
76
- key: 0,
77
- class: a(["qy-form-section__tip", `is-${e.tipType}`])
78
- }, r(e.tip), 3)) : n("", !0)
79
- ], !0),
80
- i(e.$slots, "default", {}, void 0, !0)
81
- ], 2), [
82
- [g, t.value]
83
- ])
84
- ], 2));
85
- }
86
- }), N = /* @__PURE__ */ k(w, [["__scopeId", "data-v-0185ba6c"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f66fb30e"]]);
87
5
  export {
88
- N as default
6
+ e as default
89
7
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={class:"qy-form-section__heading"},c={key:0,class:"qy-form-section__title"},u={key:0,class:"qy-form-section__description"},p={class:"qy-form-section__actions"},m=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(i,{emit:a}){const l=i,n=a,o=e.ref(l.defaultExpanded);e.watch(()=>l.defaultExpanded,t=>{o.value=t});function s(){l.collapsible&&(o.value=!o.value,n("toggle",o.value))}function r(){l.collapsible&&s()}return(t,f)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:r},[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",c,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",p,[e.renderSlot(t.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(s,["stop"])},e.toDisplayString(o.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(t.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[e.vShow,o.value]])],2))}});exports.default=m;
@@ -0,0 +1,87 @@
1
+ import { defineComponent as y, ref as b, watch as h, createElementBlock as o, openBlock as s, normalizeClass as a, createElementVNode as d, withDirectives as v, renderSlot as i, createCommentVNode as n, toDisplayString as r, withModifiers as g, vShow as _ } from "vue";
2
+ const k = { class: "qy-form-section__heading" }, C = {
3
+ key: 0,
4
+ class: "qy-form-section__title"
5
+ }, q = {
6
+ key: 0,
7
+ class: "qy-form-section__description"
8
+ }, $ = { class: "qy-form-section__actions" }, B = /* @__PURE__ */ y({
9
+ name: "QyFormSection",
10
+ __name: "index",
11
+ props: {
12
+ title: { default: "" },
13
+ description: { default: "" },
14
+ tip: { default: "" },
15
+ tipType: { default: "info" },
16
+ collapsible: { type: Boolean, default: !1 },
17
+ defaultExpanded: { type: Boolean, default: !0 },
18
+ bordered: { type: Boolean, default: !0 },
19
+ background: { default: "white" },
20
+ bodyClass: { default: "" },
21
+ headerClass: { default: "" }
22
+ },
23
+ emits: ["toggle"],
24
+ setup(c, { emit: p }) {
25
+ const l = c, f = p, t = b(l.defaultExpanded);
26
+ h(
27
+ () => l.defaultExpanded,
28
+ (e) => {
29
+ t.value = e;
30
+ }
31
+ );
32
+ function u() {
33
+ l.collapsible && (t.value = !t.value, f("toggle", t.value));
34
+ }
35
+ function m() {
36
+ l.collapsible && u();
37
+ }
38
+ return (e, E) => (s(), o("section", {
39
+ class: a(["qy-form-section", [
40
+ `is-bg-${e.background}`,
41
+ {
42
+ "is-bordered": e.bordered,
43
+ "is-collapsible": e.collapsible
44
+ }
45
+ ]])
46
+ }, [
47
+ d("header", {
48
+ class: a(["qy-form-section__header", e.headerClass]),
49
+ onClick: m
50
+ }, [
51
+ d("div", k, [
52
+ i(e.$slots, "title", {}, () => [
53
+ e.title ? (s(), o("div", C, r(e.title), 1)) : n("", !0)
54
+ ], !0),
55
+ i(e.$slots, "description", {}, () => [
56
+ e.description ? (s(), o("div", q, r(e.description), 1)) : n("", !0)
57
+ ], !0)
58
+ ]),
59
+ d("div", $, [
60
+ i(e.$slots, "actions", {}, void 0, !0),
61
+ e.collapsible ? (s(), o("button", {
62
+ key: 0,
63
+ type: "button",
64
+ class: "qy-form-section__toggle",
65
+ onClick: g(u, ["stop"])
66
+ }, r(t.value ? "收起" : "展开"), 1)) : n("", !0)
67
+ ])
68
+ ], 2),
69
+ v(d("div", {
70
+ class: a(["qy-form-section__body", e.bodyClass])
71
+ }, [
72
+ i(e.$slots, "tip", {}, () => [
73
+ e.tip ? (s(), o("div", {
74
+ key: 0,
75
+ class: a(["qy-form-section__tip", `is-${e.tipType}`])
76
+ }, r(e.tip), 3)) : n("", !0)
77
+ ], !0),
78
+ i(e.$slots, "default", {}, void 0, !0)
79
+ ], 2), [
80
+ [_, t.value]
81
+ ])
82
+ ], 2));
83
+ }
84
+ });
85
+ export {
86
+ B as default
87
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as F, useAttrs as K, ref as d, computed as R, watch as U, createBlock as N, openBlock as P, unref as p, mergeProps as Q, withKeys as j, createSlots as q, withCtx as r, renderSlot as i } from "vue";
2
2
  import { ElInput as D } from "element-plus";
3
- const J = F({
3
+ const J = /* @__PURE__ */ F({
4
4
  name: "QyInput",
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -86,6 +86,7 @@ const J = F({
86
86
  return ((e = u.value) == null ? void 0 : e.textarea) || null;
87
87
  }
88
88
  return V({
89
+ // 暴露 Element Plus 常用输入框方法,方便业务弹窗做聚焦、选中和 textarea 重算高度。
89
90
  focus: z,
90
91
  blur: B,
91
92
  select: w,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),q=require("element-plus"),E=t.defineComponent({name:"QyMoneyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},precision:{default:2},min:{default:void 0},max:{default:void 0},allowNegative:{type:Boolean,default:!1},formatTrigger:{default:"blur"},emptyValue:{default:""}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(v,{expose:x,emit:y}){const u=v,i=y,b=t.useAttrs(),r=t.ref(null),f=t.ref(o(u.modelValue)),M=t.computed(()=>o(u.modelValue));t.watch(()=>u.modelValue,e=>{f.value=o(e)});function o(e){return e==null?"":String(e)}function h(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function d(e){const n=o(e);let a="",c=!1,g=!1;const p=h(u.precision);for(let s=0;s<n.length;s+=1){const l=n[s];if(l>="0"&&l<="9"){a+=l;continue}if(l==="."&&p>0&&!c){a+=l,c=!0;continue}l==="-"&&u.allowNegative&&s===0&&!g&&(a+=l,g=!0)}if(p>0&&c){const[s,l=""]=a.split(".");return`${s}.${l.slice(0,p)}`}return a}function N(e){let n=e;return typeof u.min=="number"&&Number.isFinite(u.min)&&(n=Math.max(n,u.min)),typeof u.max=="number"&&Number.isFinite(u.max)&&(n=Math.min(n,u.max)),n}function V(e){const n=d(e);if(!n||n==="-"||n===".")return o(u.emptyValue);const a=Number(n);if(Number.isNaN(a))return o(u.emptyValue);const c=h(u.precision);return N(a).toFixed(c)}function m(e){f.value=e,i("update:modelValue",e)}function $(e){const n=d(e);m(n)}function w(e){const n=d(e);f.value=n,i("input",n)}function C(e){const n=u.formatTrigger==="change"?V(e):d(e);n!==o(u.modelValue)&&m(n),i("change",n)}function S(e){i("focus",e)}function k(e){if(u.formatTrigger==="blur"){const n=V(f.value);n!==o(u.modelValue)&&m(n)}i("blur",e)}function F(){const e=o(u.emptyValue);f.value=e,i("update:modelValue",e),i("clear")}function I(e){i("enter",e)}function B(){var e,n;(n=(e=r.value)==null?void 0:e.focus)==null||n.call(e)}function P(){var e,n;(n=(e=r.value)==null?void 0:e.blur)==null||n.call(e)}function T(){var e,n;(n=(e=r.value)==null?void 0:e.select)==null||n.call(e)}function z(){var e,n;(n=(e=r.value)==null?void 0:e.clear)==null||n.call(e)}function A(){var e;return((e=r.value)==null?void 0:e.input)||null}return x({focus:B,blur:P,select:T,clear:z,getNativeInput:A}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(q.ElInput),t.mergeProps({ref_key:"inputRef",ref:r},t.unref(b),{"model-value":M.value,inputmode:"decimal","onUpdate:modelValue":$,onInput:w,onChange:C,onFocus:S,onBlur:k,onClear:F,onKeydown:t.withKeys(I,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}});exports.default=E;
@@ -0,0 +1,171 @@
1
+ import { defineComponent as U, useAttrs as D, ref as v, computed as Q, watch as j, createBlock as q, openBlock as G, unref as x, mergeProps as H, withKeys as J, createSlots as L, withCtx as m, renderSlot as p } from "vue";
2
+ import { ElInput as O } from "element-plus";
3
+ const Y = /* @__PURE__ */ U({
4
+ name: "QyMoneyInput",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ modelValue: { default: "" },
9
+ precision: { default: 2 },
10
+ min: { default: void 0 },
11
+ max: { default: void 0 },
12
+ allowNegative: { type: Boolean, default: !1 },
13
+ formatTrigger: { default: "blur" },
14
+ emptyValue: { default: "" }
15
+ },
16
+ emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
17
+ setup(b, { expose: N, emit: $ }) {
18
+ const t = b, l = $, M = D(), i = v(null), s = v(o(t.modelValue)), k = Q(() => o(t.modelValue));
19
+ j(
20
+ () => t.modelValue,
21
+ (e) => {
22
+ s.value = o(e);
23
+ }
24
+ );
25
+ function o(e) {
26
+ return e == null ? "" : String(e);
27
+ }
28
+ function V(e) {
29
+ return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 2;
30
+ }
31
+ function c(e) {
32
+ const n = o(e);
33
+ let a = "", f = !1, y = !1;
34
+ const h = V(t.precision);
35
+ for (let r = 0; r < n.length; r += 1) {
36
+ const u = n[r];
37
+ if (u >= "0" && u <= "9") {
38
+ a += u;
39
+ continue;
40
+ }
41
+ if (u === "." && h > 0 && !f) {
42
+ a += u, f = !0;
43
+ continue;
44
+ }
45
+ u === "-" && t.allowNegative && r === 0 && !y && (a += u, y = !0);
46
+ }
47
+ if (h > 0 && f) {
48
+ const [r, u = ""] = a.split(".");
49
+ return `${r}.${u.slice(0, h)}`;
50
+ }
51
+ return a;
52
+ }
53
+ function w(e) {
54
+ let n = e;
55
+ 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;
56
+ }
57
+ function g(e) {
58
+ const n = c(e);
59
+ if (!n || n === "-" || n === ".")
60
+ return o(t.emptyValue);
61
+ const a = Number(n);
62
+ if (Number.isNaN(a)) return o(t.emptyValue);
63
+ const f = V(t.precision);
64
+ return w(a).toFixed(f);
65
+ }
66
+ function d(e) {
67
+ s.value = e, l("update:modelValue", e);
68
+ }
69
+ function C(e) {
70
+ const n = c(e);
71
+ d(n);
72
+ }
73
+ function F(e) {
74
+ const n = c(e);
75
+ s.value = n, l("input", n);
76
+ }
77
+ function I(e) {
78
+ const n = t.formatTrigger === "change" ? g(e) : c(e);
79
+ n !== o(t.modelValue) && d(n), l("change", n);
80
+ }
81
+ function B(e) {
82
+ l("focus", e);
83
+ }
84
+ function z(e) {
85
+ if (t.formatTrigger === "blur") {
86
+ const n = g(s.value);
87
+ n !== o(t.modelValue) && d(n);
88
+ }
89
+ l("blur", e);
90
+ }
91
+ function A() {
92
+ const e = o(t.emptyValue);
93
+ s.value = e, l("update:modelValue", e), l("clear");
94
+ }
95
+ function S(e) {
96
+ l("enter", e);
97
+ }
98
+ function T() {
99
+ var e, n;
100
+ (n = (e = i.value) == null ? void 0 : e.focus) == null || n.call(e);
101
+ }
102
+ function E() {
103
+ var e, n;
104
+ (n = (e = i.value) == null ? void 0 : e.blur) == null || n.call(e);
105
+ }
106
+ function K() {
107
+ var e, n;
108
+ (n = (e = i.value) == null ? void 0 : e.select) == null || n.call(e);
109
+ }
110
+ function P() {
111
+ var e, n;
112
+ (n = (e = i.value) == null ? void 0 : e.clear) == null || n.call(e);
113
+ }
114
+ function R() {
115
+ var e;
116
+ return ((e = i.value) == null ? void 0 : e.input) || null;
117
+ }
118
+ return N({
119
+ focus: T,
120
+ blur: E,
121
+ select: K,
122
+ clear: P,
123
+ getNativeInput: R
124
+ }), (e, n) => (G(), q(x(O), H({
125
+ ref_key: "inputRef",
126
+ ref: i
127
+ }, x(M), {
128
+ "model-value": k.value,
129
+ inputmode: "decimal",
130
+ "onUpdate:modelValue": C,
131
+ onInput: F,
132
+ onChange: I,
133
+ onFocus: B,
134
+ onBlur: z,
135
+ onClear: A,
136
+ onKeydown: J(S, ["enter"])
137
+ }), L({ _: 2 }, [
138
+ e.$slots.prefix ? {
139
+ name: "prefix",
140
+ fn: m(() => [
141
+ p(e.$slots, "prefix")
142
+ ]),
143
+ key: "0"
144
+ } : void 0,
145
+ e.$slots.suffix ? {
146
+ name: "suffix",
147
+ fn: m(() => [
148
+ p(e.$slots, "suffix")
149
+ ]),
150
+ key: "1"
151
+ } : void 0,
152
+ e.$slots.prepend ? {
153
+ name: "prepend",
154
+ fn: m(() => [
155
+ p(e.$slots, "prepend")
156
+ ]),
157
+ key: "2"
158
+ } : void 0,
159
+ e.$slots.append ? {
160
+ name: "append",
161
+ fn: m(() => [
162
+ p(e.$slots, "append")
163
+ ]),
164
+ key: "3"
165
+ } : void 0
166
+ ]), 1040, ["model-value"]));
167
+ }
168
+ });
169
+ export {
170
+ Y as default
171
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),r=require("element-plus"),k=l.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:"default"},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{expose:f,emit:b}){const a=n,s=b,m=l.useAttrs(),t=l.ref(null),c=l.computed(()=>a.type==="button"?r.ElRadioButton:r.ElRadio),v=l.computed(()=>(a.options||[]).map(e=>({raw:e,label:(e==null?void 0:e[a.labelKey])??(e==null?void 0:e.label)??(e==null?void 0:e.value)??"",value:(e==null?void 0:e[a.valueKey])??(e==null?void 0:e.value)??(e==null?void 0:e.label),disabled:!!(e!=null&&e[a.disabledKey])})));function y(e){const d={value:e.value,label:e.value,disabled:e.disabled};return a.type==="button"?d:{...d,border:a.border}}function i(e,d){return`${String(e.value??e.label??"")}-${d}`}function o(e){s("update:modelValue",e)}function g(e){s("change",e)}function B(){return t.value}return f({getRadioGroupInstance:B}),(e,d)=>(l.openBlock(),l.createBlock(l.unref(r.ElRadioGroup),l.mergeProps({ref_key:"radioGroupRef",ref:t},l.unref(m),{"model-value":e.modelValue,disabled:e.disabled,size:e.size,name:e.name,"onUpdate:modelValue":o,onChange:g}),{default:l.withCtx(()=>[e.$slots.default?l.renderSlot(e.$slots,"default",{key:0}):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(v.value,(u,h)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.value),l.mergeProps({key:i(u,h)},{ref_for:!0},y(u)),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"option",{option:u.raw,label:u.label,value:u.value,disabled:u.disabled},()=>[l.createTextVNode(l.toDisplayString(u.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports.default=k;