@lingshugroup/web-plus 1.0.29 → 1.0.30

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 (45) hide show
  1. package/README.md +3 -1
  2. package/lib/index.css +1 -1
  3. package/lib/index.css.br +0 -0
  4. package/lib/index.css.gz +0 -0
  5. package/lib/packages/ls-components/components/_hooks/useTableListHook/index.cjs +1 -1
  6. package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js +72 -67
  7. package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js.br +0 -0
  8. package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js.gz +0 -0
  9. package/lib/packages/ls-components/components/button/Button.vue/index.cjs +1 -1
  10. package/lib/packages/ls-components/components/button/Button.vue/index.js +1 -1
  11. package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
  12. package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
  13. package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
  14. package/lib/packages/ls-components/components/form/Form.vue/index2.js +105 -91
  15. package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
  16. package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
  17. package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
  18. package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
  19. package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
  20. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +98 -99
  21. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
  22. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
  23. package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
  24. package/lib/packages/ls-components/components/form/types/index.js +4 -0
  25. package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
  26. package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
  27. package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
  28. package/lib/packages/ls-components/components/list/List.vue/index.js +2 -2
  29. package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
  30. package/lib/packages/ls-components/components/list/List.vue/index2.js +133 -127
  31. package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
  32. package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
  33. package/lib/packages/ls-components/components/table/Table.vue/index.cjs +1 -1
  34. package/lib/packages/ls-components/components/table/Table.vue/index.js +2 -2
  35. package/lib/packages/ls-components/components/table/Table.vue/index2.cjs +1 -1
  36. package/lib/packages/ls-components/components/table/Table.vue/index2.js +145 -136
  37. package/lib/packages/ls-components/components/table/Table.vue/index2.js.br +0 -0
  38. package/lib/packages/ls-components/components/table/Table.vue/index2.js.gz +0 -0
  39. package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
  40. package/lib/packages/ls-components/components/upload/Index.vue/index.js +2 -2
  41. package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
  42. package/lib/packages/ls-components/components/upload/Index.vue/index2.js +1 -1
  43. package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
  44. package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
  45. package/package.json +1 -1
package/lib/index.css.br CHANGED
Binary file
package/lib/index.css.gz CHANGED
Binary file
@@ -1 +1 @@
1
- "use strict";var E=Object.defineProperty;var t=(u,r)=>E(u,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../useDelayLoader/index.cjs"),l=require("vue");function O(u,r,P){const{currentPageProp:d=1,pageSizeProp:g=10,pageSizesProp:F=[10,20,30,40,50,100],isDelayLoader:y=!1,delayLoaderTime:N=300,isFullDose:D=!1,autoFetch:_=!0,hasPanigation:m=!0,dealParams:w,dealData:S,callbackAfter:h}=P||{},p=l.ref(!0),c=l.ref(!1),n=l.ref(d),i=l.ref(g),x=l.ref(F),o=l.ref([]),T=l.ref([]),s=l.ref(0),L=t(e=>{if(m){if(D){const a=e||[];o.value=a||[],T.value=a,s.value=Number(a.length)}else if(S&&typeof S=="function"){const{data:a,total:v=0}=S(e);o.value=a||[],s.value=Number(v||0)}else{const{records:a=[],total:v}=e||{};o.value=a||[],s.value=Number(v)}h&&h(e,{tableData:o,total:s})}else o.value=e,h&&h(e,{})},"disposeResponseData"),k=t(()=>new Promise((e,a)=>{if(!u){a(new Error("requestFn is required"));return}const v=(typeof r=="function"?r():r)||{};let z={currentPage:m?n.value:null,pageSize:m?i.value:null,...v};w&&(z=w(z)),u(z).then(b=>{y||L(b),e(b)}).catch(b=>{a(b)}).finally(()=>{c.value=!1,setTimeout(()=>{p.value=!1},400)})}),"requestData"),C=H.default(N||300,e=>{L(e)}),f=t((e=!0,a=!1)=>{if(u&&!(e&&c.value)){if(e&&(c.value=!0),a&&(p.value=!0),y){C.loadData(k);return}k().finally(()=>{c.value=!1})}},"loadData");l.watch(n,e=>{M(e)}),l.watch(i,e=>{R(e)});const M=t(e=>{n.value=e,D?q(o,T,s,n,i):f()},"handleCurrentPageChange"),R=t(e=>{i.value=e,n.value=1,D?q(o,T,s,n,i):f()},"handleSizeChange"),A=t(()=>{n.value=1,l.nextTick(()=>{f()})},"handleReset");return l.onMounted(()=>{_&&(p.value=!0,f())}),{isFirst:p,loading:y?C.loading:c,pageSize:i,pageSizes:x,currentPage:n,tableData:o,total:s,handleCurrentPageChange:M,handleSizeChange:R,handleReset:A,loadData:f}}t(O,"useTableListHook");function q(u,r,P,d,g){u.value=r.value.slice((d.value-1)*g.value,d.value*g.value),P.value=u.value.length}t(q,"sliceTableData");exports.default=O;
1
+ "use strict";var E=Object.defineProperty;var l=(c,f)=>E(c,"name",{value:f,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../useDelayLoader/index.cjs"),t=require("vue");function O(c,f,M){const{currentPageProp:N=1,pageSizeProp:R=10,pageSizesProp:q=[10,20,30,40,50,100],isDelayLoader:y=!1,delayLoaderTime:F=300,isFullDose:P=!1,autoFetch:_=!0,hasPanigation:S=!0,dealParams:D,dealData:o,callbackAfter:h}=M||{},b=t.ref(!0),v=t.ref(!1),u=t.ref(N),r=t.ref(R),x=t.ref(q),i=t.ref([]),T=t.ref([]),d=t.ref(0),z=l(e=>{if(S){if(P){let a=e||[],n=a.length;if(o&&typeof o=="function"){const{data:p,total:s=0}=o(e);a=p||[],n=Number(s||0)}T.value=a,d.value=n,m()}else if(o&&typeof o=="function"){const{data:a,total:n=0}=o(e);i.value=a||[],d.value=Number(n||0)}else{const{records:a=[],total:n}=e||{};i.value=a||[],d.value=Number(n)}h&&h(e,{tableData:i,total:d})}else i.value=e,h&&h(e,{})},"disposeResponseData"),w=l(()=>new Promise((e,a)=>{if(!c){a(new Error("requestFn is required"));return}const n=(typeof f=="function"?f():f)||{};let p={currentPage:S?u.value:null,pageSize:S?r.value:null,...n};D&&(p=D(p)),c(p).then(s=>{y||z(s),e(s)}).catch(s=>{a(s)}).finally(()=>{v.value=!1,setTimeout(()=>{b.value=!1},400)})}),"requestData"),L=H.default(F||300,e=>{z(e)});function m(){i.value=T.value.slice((u.value-1)*r.value,u.value*r.value)}l(m,"sliceTableData");const g=l((e=!0,a=!1)=>{if(c&&!(e&&v.value)){if(e&&(v.value=!0),a&&(b.value=!0),y){L.loadData(w);return}w().finally(()=>{v.value=!1})}},"loadData");t.watch(u,e=>{k(e)}),t.watch(r,e=>{C(e)});const k=l(e=>{u.value=e,P?m():g()},"handleCurrentPageChange"),C=l(e=>{r.value=e,u.value=1,P?m():g()},"handleSizeChange"),A=l(()=>{u.value=1,t.nextTick(()=>{g()})},"handleReset");return t.onMounted(()=>{_&&(b.value=!0,g())}),{isFirst:b,loading:y?L.loading:v,pageSize:r,pageSizes:x,currentPage:u,tableData:i,total:d,handleCurrentPageChange:k,handleSizeChange:C,handleReset:A,loadData:g}}l(O,"useTableListHook");exports.default=O;
@@ -1,103 +1,108 @@
1
1
  var B = Object.defineProperty;
2
- var l = (t, s) => B(t, "name", { value: s, configurable: !0 });
2
+ var t = (c, f) => B(c, "name", { value: f, configurable: !0 });
3
3
  import G from "../useDelayLoader/index.js";
4
- import { ref as o, watch as F, onMounted as I, nextTick as J } from "vue";
5
- function U(t, s, D) {
4
+ import { ref as n, watch as N, onMounted as I, nextTick as J } from "vue";
5
+ function U(c, f, R) {
6
6
  const {
7
- currentPageProp: d = 1,
8
- pageSizeProp: g = 10,
7
+ currentPageProp: x = 1,
8
+ pageSizeProp: F = 10,
9
9
  pageSizesProp: A = [10, 20, 30, 40, 50, 100],
10
- isDelayLoader: P = !1,
10
+ isDelayLoader: y = !1,
11
11
  delayLoaderTime: E = 300,
12
- isFullDose: b = !1,
12
+ isFullDose: P = !1,
13
13
  autoFetch: H = !0,
14
- hasPanigation: y = !0,
15
- dealParams: L,
16
- dealData: S,
17
- callbackAfter: p
18
- } = D || {}, h = o(!0), c = o(!1), u = o(d), r = o(g), M = o(A), n = o([]), z = o([]), i = o(0), k = /* @__PURE__ */ l((e) => {
19
- if (y) {
20
- if (b) {
21
- const a = e || [];
22
- n.value = a || [], z.value = a, i.value = Number(a.length);
23
- } else if (S && typeof S == "function") {
24
- const { data: a, total: v = 0 } = S(e);
25
- n.value = a || [], i.value = Number(v || 0);
14
+ hasPanigation: b = !0,
15
+ dealParams: S,
16
+ dealData: u,
17
+ callbackAfter: m
18
+ } = R || {}, h = n(!0), v = n(!1), l = n(x), i = n(F), M = n(A), s = n([]), z = n([]), d = n(0), T = /* @__PURE__ */ t((e) => {
19
+ if (b) {
20
+ if (P) {
21
+ let a = e || [], o = a.length;
22
+ if (u && typeof u == "function") {
23
+ const { data: g, total: r = 0 } = u(e);
24
+ a = g || [], o = Number(r || 0);
25
+ }
26
+ z.value = a, d.value = o, D();
27
+ } else if (u && typeof u == "function") {
28
+ const { data: a, total: o = 0 } = u(e);
29
+ s.value = a || [], d.value = Number(o || 0);
26
30
  } else {
27
- const { records: a = [], total: v } = e || {};
28
- n.value = a || [], i.value = Number(v);
31
+ const { records: a = [], total: o } = e || {};
32
+ s.value = a || [], d.value = Number(o);
29
33
  }
30
- p && p(e, { tableData: n, total: i });
34
+ m && m(e, { tableData: s, total: d });
31
35
  } else
32
- n.value = e, p && p(e, {});
33
- }, "disposeResponseData"), w = /* @__PURE__ */ l(() => new Promise((e, a) => {
34
- if (!t) {
36
+ s.value = e, m && m(e, {});
37
+ }, "disposeResponseData"), w = /* @__PURE__ */ t(() => new Promise((e, a) => {
38
+ if (!c) {
35
39
  a(new Error("requestFn is required"));
36
40
  return;
37
41
  }
38
- const v = (typeof s == "function" ? s() : s) || {};
39
- let T = {
40
- currentPage: y ? u.value : null,
41
- pageSize: y ? r.value : null,
42
- ...v
42
+ const o = (typeof f == "function" ? f() : f) || {};
43
+ let g = {
44
+ currentPage: b ? l.value : null,
45
+ pageSize: b ? i.value : null,
46
+ ...o
43
47
  };
44
- L && (T = L(T)), t(T).then((m) => {
45
- P || k(m), e(m);
46
- }).catch((m) => {
47
- a(m);
48
+ S && (g = S(g)), c(g).then((r) => {
49
+ y || T(r), e(r);
50
+ }).catch((r) => {
51
+ a(r);
48
52
  }).finally(() => {
49
- c.value = !1, setTimeout(() => {
53
+ v.value = !1, setTimeout(() => {
50
54
  h.value = !1;
51
55
  }, 400);
52
56
  });
53
- }), "requestData"), C = G(E || 300, (e) => {
54
- k(e);
55
- }), f = /* @__PURE__ */ l((e = !0, a = !1) => {
56
- if (t && !(e && c.value)) {
57
- if (e && (c.value = !0), a && (h.value = !0), P) {
58
- C.loadData(w);
57
+ }), "requestData"), L = G(E || 300, (e) => {
58
+ T(e);
59
+ });
60
+ function D() {
61
+ s.value = z.value.slice((l.value - 1) * i.value, l.value * i.value);
62
+ }
63
+ t(D, "sliceTableData");
64
+ const p = /* @__PURE__ */ t((e = !0, a = !1) => {
65
+ if (c && !(e && v.value)) {
66
+ if (e && (v.value = !0), a && (h.value = !0), y) {
67
+ L.loadData(w);
59
68
  return;
60
69
  }
61
70
  w().finally(() => {
62
- c.value = !1;
71
+ v.value = !1;
63
72
  });
64
73
  }
65
74
  }, "loadData");
66
- F(u, (e) => {
67
- R(e);
68
- }), F(r, (e) => {
69
- x(e);
75
+ N(l, (e) => {
76
+ k(e);
77
+ }), N(i, (e) => {
78
+ C(e);
70
79
  });
71
- const R = /* @__PURE__ */ l((e) => {
72
- u.value = e, b ? N(n, z, i, u, r) : f();
73
- }, "handleCurrentPageChange"), x = /* @__PURE__ */ l((e) => {
74
- r.value = e, u.value = 1, b ? N(n, z, i, u, r) : f();
75
- }, "handleSizeChange"), q = /* @__PURE__ */ l(() => {
76
- u.value = 1, J(() => {
77
- f();
80
+ const k = /* @__PURE__ */ t((e) => {
81
+ l.value = e, P ? D() : p();
82
+ }, "handleCurrentPageChange"), C = /* @__PURE__ */ t((e) => {
83
+ i.value = e, l.value = 1, P ? D() : p();
84
+ }, "handleSizeChange"), q = /* @__PURE__ */ t(() => {
85
+ l.value = 1, J(() => {
86
+ p();
78
87
  });
79
88
  }, "handleReset");
80
89
  return I(() => {
81
- H && (h.value = !0, f());
90
+ H && (h.value = !0, p());
82
91
  }), {
83
92
  isFirst: h,
84
- loading: P ? C.loading : c,
85
- pageSize: r,
93
+ loading: y ? L.loading : v,
94
+ pageSize: i,
86
95
  pageSizes: M,
87
- currentPage: u,
88
- tableData: n,
89
- total: i,
90
- handleCurrentPageChange: R,
91
- handleSizeChange: x,
96
+ currentPage: l,
97
+ tableData: s,
98
+ total: d,
99
+ handleCurrentPageChange: k,
100
+ handleSizeChange: C,
92
101
  handleReset: q,
93
- loadData: f
102
+ loadData: p
94
103
  };
95
104
  }
96
- l(U, "useTableListHook");
97
- function N(t, s, D, d, g) {
98
- t.value = s.value.slice((d.value - 1) * g.value, d.value * g.value), D.value = t.value.length;
99
- }
100
- l(N, "sliceTableData");
105
+ t(U, "useTableListHook");
101
106
  export {
102
107
  U as default
103
108
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-c59c6ed3"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-e70ddbd2"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c59c6ed3"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e70ddbd2"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-f107e914"]]);exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-61d73833"]]);exports.default=r;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f107e914"]]);
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-61d73833"]]);
5
5
  export {
6
- p as default
6
+ _ as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var _=Object.defineProperty;var i=(f,m)=>_(f,"name",{value:m,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),B=,/* empty css */T=,/* empty css */L=,/* empty css */d=,/* empty css */D=,/* empty css */I=,/* empty css */O=,/* empty css */M=,/* empty css */q=,/* empty css */z=,/* empty css */A={class:"ls-form"},U=e.defineComponent({name:"LSForm"}),j=e.defineComponent({...U,props:T.lsFormProps,emits:["submit","reset","update:form-data","onChange"],setup(f,{expose:m,emit:S}){const $=f,k=S,l=e.useAttrs(),F=e.computed(()=>l&&l.hasOwnProperty("inline")?typeof l.inline=="boolean"&&l.inline===!1?{}:l&&l["label-position"]==="top"?{class:"form-item-buttons "}:{}:l&&l["label-position"]==="top"?{"label-position":"top"}:{label:" "}),s=e.ref(),b=["label","input","textarea","number","radio","checkbox","select","date","datetimerange","timePicker","timeSelect","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"];let t=e.reactive({});function C(o){o&&(o.resetFields(),k("reset",t))}i(C,"resetForm");async function g(o){o&&await o.validate((n,a)=>{n?k("submit",t):console.warn("error submit!",a)})}i(g,"submitForm");function E(){return new Promise((o,n)=>{if(!s.value)return o(!1);s.value.validate((a,c)=>{a?o(t):(console.warn("error submit!",c),n(c))})})}i(E,"validate");function u(o,n){D.default(t,o,n)}i(u,"updateFormData"),e.watch(()=>$.formData,o=>{t=o||{}},{deep:!0,immediate:!0});function h(o,n,a){k("onChange",o,n,a)}return i(h,"onChange"),m({FormRef:s,validate:E,submitForm:g,resetForm:C}),(o,n)=>{const a=I.ElCol,c=O.ElRow,w=M.ElButton,P=q.ElFormItem,R=q.ElForm,N=z.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",A,[e.createVNode(N,{locale:e.unref(L.default),"value-on-clear":void 0,"empty-values":[void 0,null]},{default:e.withCtx(()=>[e.createVNode(R,e.mergeProps({ref_key:"FormRef",ref:s,"label-position":"left","require-asterisk-position":"right","label-width":o.labelWidth,"hide-required-asterisk":!!o.read},o.$attrs,{model:e.unref(t),disabled:o.loading||o.disabled,class:[o.read&&o.hasDefReadStyle?"show-label":""]}),{default:e.withCtx(()=>[o.column>1?(e.openBlock(),e.createBlock(c,{key:0,gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formItems,(r,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.prop},[r.hideColumn?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,span:r.isRow?24:24/o.column},{default:e.withCtx(()=>[r.type==="slot"?e.renderSlot(o.$slots,r.prop,{key:0,slotRow:{...r},value:e.unref(d.default)(e.unref(t),r.prop),updateFormData:u},void 0,!0):b.includes(r.type)?(e.openBlock(),e.createBlock(B.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(d.default)(e.unref(t),r.prop),colon:o.colon,read:o.read,"label-empty":o.labelEmpty,index:y,ref_for:!0},r,{"onUpdate:value":u,onOnChange:h}),e.createSlots({_:2},[e.renderList(o.$slots,(V,p)=>({name:p,fn:e.withCtx(v=>[e.renderSlot(o.$slots,p,e.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040,["value","colon","read","label-empty","index"])):e.renderSlot(o.$slots,r.type,{key:2,slotRow:{...r},value:e.unref(d.default)(e.unref(t),r.prop),updateFormData:u},void 0,!0)]),_:2},1032,["span"]))],64))),128))]),_:3})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.formItems,(r,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.prop},[r.hideColumn?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.type==="slot"?e.renderSlot(o.$slots,r.prop,{key:0,slotRow:{...r},value:e.unref(d.default)(e.unref(t),r.prop),updateFormData:u},void 0,!0):b.includes(r.type)?(e.openBlock(),e.createBlock(B.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(d.default)(e.unref(t),r.prop),colon:o.colon,read:o.read,"label-empty":o.labelEmpty,index:y,ref_for:!0},r,{"onUpdate:value":u,onOnChange:h}),e.createSlots({_:2},[e.renderList(o.$slots,(V,p)=>({name:p,fn:e.withCtx(v=>[e.renderSlot(o.$slots,p,e.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040,["value","colon","read","label-empty","index"])):e.renderSlot(o.$slots,r.type,{key:2,slotRow:{...r},value:e.unref(d.default)(e.unref(t),r.prop),updateFormData:u},void 0,!0)],64))],64))),128)),e.renderSlot(o.$slots,"default",{},void 0,!0),o.showButtons?(e.openBlock(),e.createBlock(P,e.mergeProps({key:2},e.unref(F),{class:o.buttonsClass}),{default:e.withCtx(()=>[o.$slots["buttons-prepend"]?e.renderSlot(o.$slots,"buttons-prepend",{key:0},void 0,!0):e.createCommentVNode("",!0),o.showSubmit?(e.openBlock(),e.createBlock(w,{key:1,type:"primary",class:e.normalizeClass(o.confirmClassName),loading:o.loading&&o.showBtnLoading,onClick:n[0]||(n[0]=r=>g(s.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.confirmText),1)]),_:1},8,["class","loading"])):e.createCommentVNode("",!0),o.showReset?(e.openBlock(),e.createBlock(w,{key:2,onClick:n[1]||(n[1]=r=>C(s.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetText||"重置"),1)]),_:1})):e.createCommentVNode("",!0)]),_:3},16,["class"])):e.createCommentVNode("",!0)]),_:3},16,["label-width","hide-required-asterisk","model","disabled","class"])]),_:3},8,["locale"])])}}});exports.default=j;
1
+ "use strict";var _=Object.defineProperty;var u=(a,m)=>_(a,"name",{value:m,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),B=,/* empty css */I=,/* empty css */L=,/* empty css */p=,/* empty css */T=,/* empty css */D=,/* empty css */O=,/* empty css */M=,/* empty css */S=,/* empty css */z=,/* empty css */A=u(a=>(e.pushScopeId("data-v-61d73833"),a=a(),e.popScopeId(),a),"_withScopeId"),U={class:"ls-form"},j=A(()=>e.createElementVNode("span",null,null,-1)),W=e.defineComponent({name:"LSForm"}),Y=e.defineComponent({...W,props:I.lsFormProps,emits:["submit","reset","update:form-data","onChange"],setup(a,{expose:m,emit:q}){const $=a,k=q,l=e.useAttrs(),F=e.computed(()=>l&&l.hasOwnProperty("inline")?typeof l.inline=="boolean"&&l.inline===!1?{label:""}:l&&l["label-position"]==="top"?{label:"",class:"form-item-buttons "}:{label:""}:l&&l["label-position"]==="top"?{label:"","label-position":"top"}:{label:""}),i=e.ref(),y=["label","input","textarea","number","radio","checkbox","select","date","datetimerange","timePicker","timeSelect","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"];let r=e.reactive({});function C(o){o&&(o.resetFields(),k("reset",r))}u(C,"resetForm");async function h(o){o&&await o.validate((n,s)=>{n?k("submit",r):console.warn("error submit!",s)})}u(h,"submitForm");function E(){return new Promise((o,n)=>{if(!i.value)return o(!1);i.value.validate((s,f)=>{s?o(r):(console.warn("error submit!",f),n(f))})})}u(E,"validate");function d(o,n){T.default(r,o,n)}u(d,"updateFormData"),e.watch(()=>$.formData,o=>{r=o||{}},{deep:!0,immediate:!0});function g(o,n,s){k("onChange",o,n,s)}return u(g,"onChange"),m({FormRef:i,validate:E,submitForm:h,resetForm:C}),(o,n)=>{const s=D.ElCol,f=O.ElRow,w=M.ElButton,P=S.ElFormItem,R=S.ElForm,N=z.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",U,[e.createVNode(N,{locale:e.unref(L.default),"value-on-clear":void 0,"empty-values":[void 0,null]},{default:e.withCtx(()=>[e.createVNode(R,e.mergeProps({ref_key:"FormRef",ref:i,"label-position":"left","require-asterisk-position":"right","label-width":o.labelWidth,"hide-required-asterisk":!!o.read},o.$attrs,{model:e.unref(r),disabled:o.loading||o.disabled,class:[o.read&&o.hasDefReadStyle?"show-label":""]}),{default:e.withCtx(()=>[o.column>1?(e.openBlock(),e.createBlock(f,{key:0,gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formItems,(t,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.prop},[t.hideColumn?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,span:t.isRow?24:24/o.column},{default:e.withCtx(()=>[t.type==="slot"?e.renderSlot(o.$slots,t.prop,{key:0,slotRow:{...t},value:e.unref(p.default)(e.unref(r),t.prop),updateFormData:d},void 0,!0):y.includes(t.type)?(e.openBlock(),e.createBlock(B.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(p.default)(e.unref(r),t.prop),colon:o.colon,read:o.read,"label-empty":o.labelEmpty,index:b,ref_for:!0},t,{"onUpdate:value":d,onOnChange:g}),e.createSlots({_:2},[e.renderList(o.$slots,(V,c)=>({name:c,fn:e.withCtx(v=>[e.renderSlot(o.$slots,c,e.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040,["value","colon","read","label-empty","index"])):e.renderSlot(o.$slots,t.type,{key:2,slotRow:{...t},value:e.unref(p.default)(e.unref(r),t.prop),updateFormData:d},void 0,!0)]),_:2},1032,["span"]))],64))),128))]),_:3})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.formItems,(t,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.prop},[t.hideColumn?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="slot"?e.renderSlot(o.$slots,t.prop,{key:0,slotRow:{...t},value:e.unref(p.default)(e.unref(r),t.prop),updateFormData:d},void 0,!0):y.includes(t.type)?(e.openBlock(),e.createBlock(B.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(p.default)(e.unref(r),t.prop),colon:o.colon,read:o.read,"label-empty":o.labelEmpty,index:b,ref_for:!0},t,{"onUpdate:value":d,onOnChange:g}),e.createSlots({_:2},[e.renderList(o.$slots,(V,c)=>({name:c,fn:e.withCtx(v=>[e.renderSlot(o.$slots,c,e.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040,["value","colon","read","label-empty","index"])):e.renderSlot(o.$slots,t.type,{key:2,slotRow:{...t},value:e.unref(p.default)(e.unref(r),t.prop),updateFormData:d},void 0,!0)],64))],64))),128)),e.renderSlot(o.$slots,"default",{},void 0,!0),o.showButtons?(e.openBlock(),e.createBlock(P,e.mergeProps({key:2},e.unref(F),{class:o.buttonsClass}),e.createSlots({default:e.withCtx(()=>[o.$slots["buttons-prepend"]?e.renderSlot(o.$slots,"buttons-prepend",{key:0},void 0,!0):e.createCommentVNode("",!0),o.showSubmit?(e.openBlock(),e.createBlock(w,{key:1,type:"primary",class:e.normalizeClass(o.confirmClassName),loading:o.loading&&o.showBtnLoading,onClick:n[0]||(n[0]=t=>h(i.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.confirmText),1)]),_:1},8,["class","loading"])):e.createCommentVNode("",!0),o.showReset?(e.openBlock(),e.createBlock(w,{key:2,onClick:n[1]||(n[1]=t=>C(i.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetText||"重置"),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},[o.buttonsLeft?void 0:{name:"label",fn:e.withCtx(()=>[j]),key:"0"}]),1040,["class"])):e.createCommentVNode("",!0)]),_:3},16,["label-width","hide-required-asterisk","model","disabled","class"])]),_:3},8,["locale"])])}}});exports.default=Y;
@@ -1,5 +1,5 @@
1
1
  var G = Object.defineProperty;
2
- var f = (C, $) => G(C, "name", { value: $, configurable: !0 });
2
+ var d = (u, $) => G(u, "name", { value: $, configurable: !0 });
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
@@ -7,31 +7,37 @@ var f = (C, $) => G(C, "name", { value: $, configurable: !0 });
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { defineComponent as O, useAttrs as H, computed as J, ref as K, reactive as Q, watch as X, openBlock as t, createElementBlock as y, createVNode as T, unref as r, withCtx as s, mergeProps as c, createBlock as p, Fragment as h, renderList as g, renderSlot as i, createSlots as D, createCommentVNode as v, normalizeClass as Z, createTextVNode as L, toDisplayString as q } from "vue";
11
- import N from "../FormItem.vue/index.js";
12
- import { lsFormProps as x } from "../types/index.js";
13
- import ee from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.js";
14
- import b from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get/index.js";
15
- import oe from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
16
- import { ElCol as re } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/col/index/index.js";
17
- import { ElRow as te } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/row/index/index.js";
18
- import { ElButton as le } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/button/index/index.js";
19
- import { ElFormItem as ne, ElForm as se } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/form/index/index.js";
20
- import { ElConfigProvider as ae } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/index/index.js";
21
- const ie = { class: "ls-form" }, ue = O({
10
+ import { defineComponent as q, useAttrs as H, computed as J, ref as K, reactive as Q, watch as X, openBlock as r, createElementBlock as c, createVNode as T, unref as t, withCtx as s, mergeProps as v, createBlock as m, Fragment as w, renderList as C, renderSlot as i, createSlots as E, createCommentVNode as y, normalizeClass as Z, createTextVNode as D, toDisplayString as N, pushScopeId as x, popScopeId as ee, createElementVNode as oe } from "vue";
11
+ import V from "../FormItem.vue/index.js";
12
+ import { lsFormProps as te } from "../types/index.js";
13
+ import re from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.js";
14
+ import k from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get/index.js";
15
+ import le from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
16
+ import { ElCol as ne } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/col/index/index.js";
17
+ import { ElRow as se } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/row/index/index.js";
18
+ import { ElButton as ae } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/button/index/index.js";
19
+ import { ElFormItem as ie, ElForm as ue } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/form/index/index.js";
20
+ import { ElConfigProvider as pe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/index/index.js";
21
+ const de = /* @__PURE__ */ d((u) => (x("data-v-61d73833"), u = u(), ee(), u), "_withScopeId"), me = { class: "ls-form" }, fe = /* @__PURE__ */ de(() => /* @__PURE__ */ oe("span", null, null, -1)), be = q({
22
22
  name: "LSForm"
23
- }), _e = /* @__PURE__ */ O({
24
- ...ue,
25
- props: x,
23
+ }), De = /* @__PURE__ */ q({
24
+ ...be,
25
+ props: te,
26
26
  emits: ["submit", "reset", "update:form-data", "onChange"],
27
- setup(C, { expose: $, emit: V }) {
28
- const z = C, F = V, a = H(), A = J(() => a && a.hasOwnProperty("inline") ? typeof a.inline == "boolean" && a.inline === !1 ? {} : a && a["label-position"] === "top" ? {
27
+ setup(u, { expose: $, emit: O }) {
28
+ const z = u, S = O, a = H(), A = J(() => a && a.hasOwnProperty("inline") ? typeof a.inline == "boolean" && a.inline === !1 ? {
29
+ label: ""
30
+ } : a && a["label-position"] === "top" ? {
31
+ label: "",
29
32
  class: "form-item-buttons "
30
- } : {} : a && a["label-position"] === "top" ? {
33
+ } : {
34
+ label: ""
35
+ } : a && a["label-position"] === "top" ? {
36
+ label: "",
31
37
  "label-position": "top"
32
38
  } : {
33
- label: " "
34
- }), d = K(), E = [
39
+ label: ""
40
+ }), f = K(), _ = [
35
41
  "label",
36
42
  "input",
37
43
  "textarea",
@@ -52,29 +58,29 @@ const ie = { class: "ls-form" }, ue = O({
52
58
  "itemSlot"
53
59
  ];
54
60
  let l = Q({});
55
- function P(e) {
56
- e && (e.resetFields(), F("reset", l));
61
+ function I(e) {
62
+ e && (e.resetFields(), S("reset", l));
57
63
  }
58
- f(P, "resetForm");
59
- async function _(e) {
60
- e && await e.validate((n, u) => {
61
- n ? F("submit", l) : console.warn("error submit!", u);
64
+ d(I, "resetForm");
65
+ async function P(e) {
66
+ e && await e.validate((n, p) => {
67
+ n ? S("submit", l) : console.warn("error submit!", p);
62
68
  });
63
69
  }
64
- f(_, "submitForm");
70
+ d(P, "submitForm");
65
71
  function U() {
66
72
  return new Promise((e, n) => {
67
- if (!d.value) return e(!1);
68
- d.value.validate((u, w) => {
69
- u ? e(l) : (console.warn("error submit!", w), n(w));
73
+ if (!f.value) return e(!1);
74
+ f.value.validate((p, g) => {
75
+ p ? e(l) : (console.warn("error submit!", g), n(g));
70
76
  });
71
77
  });
72
78
  }
73
- f(U, "validate");
74
- function m(e, n) {
75
- oe(l, e, n);
79
+ d(U, "validate");
80
+ function b(e, n) {
81
+ le(l, e, n);
76
82
  }
77
- f(m, "updateFormData"), X(
83
+ d(b, "updateFormData"), X(
78
84
  () => z.formData,
79
85
  (e) => {
80
86
  l = e || {};
@@ -84,45 +90,45 @@ const ie = { class: "ls-form" }, ue = O({
84
90
  immediate: !0
85
91
  }
86
92
  );
87
- function B(e, n, u) {
88
- F("onChange", e, n, u);
93
+ function B(e, n, p) {
94
+ S("onChange", e, n, p);
89
95
  }
90
- return f(B, "onChange"), $({
91
- FormRef: d,
96
+ return d(B, "onChange"), $({
97
+ FormRef: f,
92
98
  validate: U,
93
- submitForm: _,
94
- resetForm: P
99
+ submitForm: P,
100
+ resetForm: I
95
101
  }), (e, n) => {
96
- const u = re, w = te, I = le, M = ne, W = se, Y = ae;
97
- return t(), y("div", ie, [
102
+ const p = ne, g = se, L = ae, M = ie, W = ue, Y = pe;
103
+ return r(), c("div", me, [
98
104
  T(Y, {
99
- locale: r(ee),
105
+ locale: t(re),
100
106
  "value-on-clear": void 0,
101
107
  "empty-values": [void 0, null]
102
108
  }, {
103
109
  default: s(() => [
104
- T(W, c({
110
+ T(W, v({
105
111
  ref_key: "FormRef",
106
- ref: d,
112
+ ref: f,
107
113
  "label-position": "left",
108
114
  "require-asterisk-position": "right",
109
115
  "label-width": e.labelWidth,
110
116
  "hide-required-asterisk": !!e.read
111
117
  }, e.$attrs, {
112
- model: r(l),
118
+ model: t(l),
113
119
  disabled: e.loading || e.disabled,
114
120
  class: [e.read && e.hasDefReadStyle ? "show-label" : ""]
115
121
  }), {
116
122
  default: s(() => [
117
- e.column > 1 ? (t(), p(w, {
123
+ e.column > 1 ? (r(), m(g, {
118
124
  key: 0,
119
125
  gutter: 10
120
126
  }, {
121
127
  default: s(() => [
122
- (t(!0), y(h, null, g(e.formItems, (o, R) => (t(), y(h, {
128
+ (r(!0), c(w, null, C(e.formItems, (o, F) => (r(), c(w, {
123
129
  key: o.prop
124
130
  }, [
125
- o.hideColumn ? v("", !0) : (t(), p(u, {
131
+ o.hideColumn ? y("", !0) : (r(), m(p, {
126
132
  key: 0,
127
133
  span: o.isRow ? 24 : 24 / e.column
128
134
  }, {
@@ -130,32 +136,32 @@ const ie = { class: "ls-form" }, ue = O({
130
136
  o.type === "slot" ? i(e.$slots, o.prop, {
131
137
  key: 0,
132
138
  slotRow: { ...o },
133
- value: r(b)(r(l), o.prop),
134
- updateFormData: m
135
- }, void 0, !0) : E.includes(o.type) ? (t(), p(N, c({
139
+ value: t(k)(t(l), o.prop),
140
+ updateFormData: b
141
+ }, void 0, !0) : _.includes(o.type) ? (r(), m(V, v({
136
142
  key: 1,
137
143
  "is-value": !0,
138
- value: r(b)(r(l), o.prop),
144
+ value: t(k)(t(l), o.prop),
139
145
  colon: e.colon,
140
146
  read: e.read,
141
147
  "label-empty": e.labelEmpty,
142
- index: R,
148
+ index: F,
143
149
  ref_for: !0
144
150
  }, o, {
145
- "onUpdate:value": m,
151
+ "onUpdate:value": b,
146
152
  onOnChange: B
147
- }), D({ _: 2 }, [
148
- g(e.$slots, (j, k) => ({
149
- name: k,
150
- fn: s((S) => [
151
- i(e.$slots, k, c({ ref_for: !0 }, S), void 0, !0)
153
+ }), E({ _: 2 }, [
154
+ C(e.$slots, (j, h) => ({
155
+ name: h,
156
+ fn: s((R) => [
157
+ i(e.$slots, h, v({ ref_for: !0 }, R), void 0, !0)
152
158
  ])
153
159
  }))
154
160
  ]), 1040, ["value", "colon", "read", "label-empty", "index"])) : i(e.$slots, o.type, {
155
161
  key: 2,
156
162
  slotRow: { ...o },
157
- value: r(b)(r(l), o.prop),
158
- updateFormData: m
163
+ value: t(k)(t(l), o.prop),
164
+ updateFormData: b
159
165
  }, void 0, !0)
160
166
  ]),
161
167
  _: 2
@@ -163,70 +169,78 @@ const ie = { class: "ls-form" }, ue = O({
163
169
  ], 64))), 128))
164
170
  ]),
165
171
  _: 3
166
- })) : (t(!0), y(h, { key: 1 }, g(e.formItems, (o, R) => (t(), y(h, {
172
+ })) : (r(!0), c(w, { key: 1 }, C(e.formItems, (o, F) => (r(), c(w, {
167
173
  key: o.prop
168
174
  }, [
169
- o.hideColumn ? v("", !0) : (t(), y(h, { key: 0 }, [
175
+ o.hideColumn ? y("", !0) : (r(), c(w, { key: 0 }, [
170
176
  o.type === "slot" ? i(e.$slots, o.prop, {
171
177
  key: 0,
172
178
  slotRow: { ...o },
173
- value: r(b)(r(l), o.prop),
174
- updateFormData: m
175
- }, void 0, !0) : E.includes(o.type) ? (t(), p(N, c({
179
+ value: t(k)(t(l), o.prop),
180
+ updateFormData: b
181
+ }, void 0, !0) : _.includes(o.type) ? (r(), m(V, v({
176
182
  key: 1,
177
183
  "is-value": !0,
178
- value: r(b)(r(l), o.prop),
184
+ value: t(k)(t(l), o.prop),
179
185
  colon: e.colon,
180
186
  read: e.read,
181
187
  "label-empty": e.labelEmpty,
182
- index: R,
188
+ index: F,
183
189
  ref_for: !0
184
190
  }, o, {
185
- "onUpdate:value": m,
191
+ "onUpdate:value": b,
186
192
  onOnChange: B
187
- }), D({ _: 2 }, [
188
- g(e.$slots, (j, k) => ({
189
- name: k,
190
- fn: s((S) => [
191
- i(e.$slots, k, c({ ref_for: !0 }, S), void 0, !0)
193
+ }), E({ _: 2 }, [
194
+ C(e.$slots, (j, h) => ({
195
+ name: h,
196
+ fn: s((R) => [
197
+ i(e.$slots, h, v({ ref_for: !0 }, R), void 0, !0)
192
198
  ])
193
199
  }))
194
200
  ]), 1040, ["value", "colon", "read", "label-empty", "index"])) : i(e.$slots, o.type, {
195
201
  key: 2,
196
202
  slotRow: { ...o },
197
- value: r(b)(r(l), o.prop),
198
- updateFormData: m
203
+ value: t(k)(t(l), o.prop),
204
+ updateFormData: b
199
205
  }, void 0, !0)
200
206
  ], 64))
201
207
  ], 64))), 128)),
202
208
  i(e.$slots, "default", {}, void 0, !0),
203
- e.showButtons ? (t(), p(M, c({ key: 2 }, r(A), { class: e.buttonsClass }), {
209
+ e.showButtons ? (r(), m(M, v({ key: 2 }, t(A), { class: e.buttonsClass }), E({
204
210
  default: s(() => [
205
- e.$slots["buttons-prepend"] ? i(e.$slots, "buttons-prepend", { key: 0 }, void 0, !0) : v("", !0),
206
- e.showSubmit ? (t(), p(I, {
211
+ e.$slots["buttons-prepend"] ? i(e.$slots, "buttons-prepend", { key: 0 }, void 0, !0) : y("", !0),
212
+ e.showSubmit ? (r(), m(L, {
207
213
  key: 1,
208
214
  type: "primary",
209
215
  class: Z(e.confirmClassName),
210
216
  loading: e.loading && e.showBtnLoading,
211
- onClick: n[0] || (n[0] = (o) => _(d.value))
217
+ onClick: n[0] || (n[0] = (o) => P(f.value))
212
218
  }, {
213
219
  default: s(() => [
214
- L(q(e.confirmText), 1)
220
+ D(N(e.confirmText), 1)
215
221
  ]),
216
222
  _: 1
217
- }, 8, ["class", "loading"])) : v("", !0),
218
- e.showReset ? (t(), p(I, {
223
+ }, 8, ["class", "loading"])) : y("", !0),
224
+ e.showReset ? (r(), m(L, {
219
225
  key: 2,
220
- onClick: n[1] || (n[1] = (o) => P(d.value))
226
+ onClick: n[1] || (n[1] = (o) => I(f.value))
221
227
  }, {
222
228
  default: s(() => [
223
- L(q(e.resetText || "重置"), 1)
229
+ D(N(e.resetText || "重置"), 1)
224
230
  ]),
225
231
  _: 1
226
- })) : v("", !0)
232
+ })) : y("", !0)
227
233
  ]),
228
- _: 3
229
- }, 16, ["class"])) : v("", !0)
234
+ _: 2
235
+ }, [
236
+ e.buttonsLeft ? void 0 : {
237
+ name: "label",
238
+ fn: s(() => [
239
+ fe
240
+ ]),
241
+ key: "0"
242
+ }
243
+ ]), 1040, ["class"])) : y("", !0)
230
244
  ]),
231
245
  _: 3
232
246
  }, 16, ["label-width", "hide-required-asterisk", "model", "disabled", "class"])
@@ -238,5 +252,5 @@ const ie = { class: "ls-form" }, ue = O({
238
252
  }
239
253
  });
240
254
  export {
241
- _e as default
255
+ De as default
242
256
  };