@lingshugroup/web-plus 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.cjs +1 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.js +4 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.br +0 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.gz +0 -0
- package/lib/packages/ls-components/components/dialog/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js +74 -56
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +55 -51
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +218 -189
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview/composable/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview/composable/index.js +1 -1
- package/lib/packages/ls-components/components/preview/composable/index.js.br +0 -0
- package/lib/packages/ls-components/components/preview/composable/index.js.gz +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js +218 -193
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.cjs +0 -1
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.js +0 -4
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.br +0 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -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-
|
|
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-802c057e"]]);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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-802c057e"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var N=Object.defineProperty;var r=(n,s)=>N(n,"name",{value:s,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),_=,/* empty css */v=,/* empty css */l=,/* empty css */D=,/* empty css */x=,/* empty css */M=,/* empty css */P={class:"dialog-footer"},E=e.defineComponent({name:"LSDialog",inheritAttrs:!1,__name:"Index",props:e.mergeModels(v.lsDialogProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(v.lsEmitNames,["update:modelValue"]),setup(n,{expose:s,emit:S}){const a=n,i=S,k=e.useSlots(),t=e.useModel(n,"modelValue"),y=_.useNamespace("dialog").b(),d=e.ref(),u=e.ref({width:"50%",closeOnClickModal:!1,closeOnPressEscape:!1,zIndex:2e3}),c=e.ref(0);e.watch(()=>t==null?void 0:t.value,o=>{o&&p()},{immediate:!0,deep:!0});const f=e.computed(()=>l.default({txt:"取消"},a.btnCancelConfig)),m=e.computed(()=>l.default({type:"primary",txt:"确认"},a.btnConfirmConfig));function g(){t.value=!1,i("onCancel")}r(g,"handleClose");function q(){i("onConfirm")}r(q,"handleConfirm");async function p(){await e.nextTick(),c.value=parseInt(getComputedStyle(d.value.querySelector(".el-dialog")).height)-108}return r(p,"updateHeight"),s({updateHeight:p}),(o,C)=>{const V=D.ElScrollbar,h=e.resolveComponent("LSButton"),w=x.ElDialog,B=M.vLoading;return e.openBlock(),e.createElementBlock("div",{ref_key:"lsDialogRef",ref:d,class:e.normalizeClass(e.unref(y))},[e.createVNode(w,e.mergeProps({modelValue:t.value,"onUpdate:modelValue":C[0]||(C[0]=b=>t.value=b)},e.unref(l.default)(e.unref(u),o.$attrs),{"show-close":!o.loading,onClose:g}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(V,e.mergeProps(e.unref(l.default)(e.unref(u),o.$attrs),{height:e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3},16,["height"])),[[B,o.contentLoading]])]),_:2},[o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",P,[e.unref(k).footer?e.renderSlot(o.$slots,"footer",{key:0},void 0,!0):e.createCommentVNode("",!0),o.hasCancelBtn?(e.openBlock(),e.createBlock(h,e.mergeProps({key:1},e.unref(f),{disabled:o.loading,onClick:g}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f).txt),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.createVNode(h,e.mergeProps(e.unref(m),{loading:o.loading,disabled:o.loading,onClick:q}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m).txt),1)]),_:1},16,["loading","disabled"])])]),key:"0"}:void 0]),1040,["modelValue","show-close"])],2)}}});exports.default=E;
|
|
@@ -1,102 +1,120 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (n,
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var a = (n, i) => O(n, "name", { value: i, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { lsDialogProp as
|
|
11
|
-
import
|
|
12
|
-
import { ElScrollbar as
|
|
13
|
-
import { ElDialog as
|
|
14
|
-
import { vLoading as
|
|
15
|
-
const
|
|
8
|
+
import { defineComponent as R, mergeModels as B, useSlots as T, useModel as q, ref as d, watch as F, computed as b, nextTick as U, resolveComponent as j, openBlock as m, createElementBlock as x, normalizeClass as G, unref as o, createVNode as w, mergeProps as r, createSlots as J, withCtx as l, renderSlot as c, withDirectives as K, createBlock as D, createElementVNode as Q, createCommentVNode as _, createTextVNode as E, toDisplayString as N } from "vue";
|
|
9
|
+
import { useNamespace as W } from "../../_hooks/useNamespace/index.js";
|
|
10
|
+
import { lsDialogProp as X, lsEmitNames as Y } from "../types/index.js";
|
|
11
|
+
import s from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
12
|
+
import { ElScrollbar as Z } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/scrollbar/index/index.js";
|
|
13
|
+
import { ElDialog as ee } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/dialog/index/index.js";
|
|
14
|
+
import { vLoading as oe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/loading/src/directive/index.js";
|
|
15
|
+
const te = { class: "dialog-footer" }, he = /* @__PURE__ */ R({
|
|
16
16
|
name: "LSDialog",
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "Index",
|
|
19
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ B(X, {
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: Boolean
|
|
22
22
|
},
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(n, { emit:
|
|
27
|
-
const
|
|
25
|
+
emits: /* @__PURE__ */ B(Y, ["update:modelValue"]),
|
|
26
|
+
setup(n, { expose: i, emit: L }) {
|
|
27
|
+
const u = n, f = L, $ = T(), t = q(n, "modelValue"), M = W("dialog").b(), p = d(), g = d({
|
|
28
28
|
width: "50%",
|
|
29
29
|
closeOnClickModal: !1,
|
|
30
30
|
closeOnPressEscape: !1,
|
|
31
|
-
zIndex: 2e3
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
zIndex: 2e3
|
|
32
|
+
}), C = d(0);
|
|
33
|
+
F(
|
|
34
|
+
() => t == null ? void 0 : t.value,
|
|
35
|
+
(e) => {
|
|
36
|
+
e && y();
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
immediate: !0,
|
|
40
|
+
deep: !0
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const h = b(() => s(
|
|
34
44
|
{
|
|
35
45
|
txt: "取消"
|
|
36
46
|
},
|
|
37
|
-
|
|
38
|
-
)),
|
|
47
|
+
u.btnCancelConfig
|
|
48
|
+
)), v = b(() => s(
|
|
39
49
|
{
|
|
40
50
|
type: "primary",
|
|
41
|
-
txt: "
|
|
51
|
+
txt: "确认"
|
|
42
52
|
},
|
|
43
|
-
|
|
53
|
+
u.btnConfirmConfig
|
|
44
54
|
));
|
|
45
|
-
function
|
|
46
|
-
|
|
55
|
+
function k() {
|
|
56
|
+
t.value = !1, f("onCancel");
|
|
47
57
|
}
|
|
48
|
-
a(
|
|
49
|
-
function
|
|
58
|
+
a(k, "handleClose");
|
|
59
|
+
function I() {
|
|
50
60
|
f("onConfirm");
|
|
51
61
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
a(I, "handleConfirm");
|
|
63
|
+
async function y() {
|
|
64
|
+
await U(), C.value = parseInt(getComputedStyle(p.value.querySelector(".el-dialog")).height) - 108;
|
|
65
|
+
}
|
|
66
|
+
return a(y, "updateHeight"), i({
|
|
67
|
+
updateHeight: y
|
|
68
|
+
}), (e, S) => {
|
|
69
|
+
const P = Z, V = j("LSButton"), z = ee, A = oe;
|
|
70
|
+
return m(), x("div", {
|
|
71
|
+
ref_key: "lsDialogRef",
|
|
72
|
+
ref: p,
|
|
73
|
+
class: G(o(M))
|
|
56
74
|
}, [
|
|
57
|
-
|
|
58
|
-
modelValue:
|
|
59
|
-
"onUpdate:modelValue":
|
|
60
|
-
}, o(
|
|
75
|
+
w(z, r({
|
|
76
|
+
modelValue: t.value,
|
|
77
|
+
"onUpdate:modelValue": S[0] || (S[0] = (H) => t.value = H)
|
|
78
|
+
}, o(s)(o(g), e.$attrs), {
|
|
61
79
|
"show-close": !e.loading,
|
|
62
|
-
onClose:
|
|
63
|
-
}),
|
|
64
|
-
header:
|
|
65
|
-
|
|
80
|
+
onClose: k
|
|
81
|
+
}), J({
|
|
82
|
+
header: l(() => [
|
|
83
|
+
c(e.$slots, "header", {}, void 0, !0)
|
|
66
84
|
]),
|
|
67
|
-
default:
|
|
68
|
-
|
|
69
|
-
default:
|
|
70
|
-
|
|
85
|
+
default: l(() => [
|
|
86
|
+
K((m(), D(P, r(o(s)(o(g), e.$attrs), { height: o(C) }), {
|
|
87
|
+
default: l(() => [
|
|
88
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
71
89
|
]),
|
|
72
90
|
_: 3
|
|
73
|
-
}, 16)), [
|
|
74
|
-
[
|
|
91
|
+
}, 16, ["height"])), [
|
|
92
|
+
[A, e.contentLoading]
|
|
75
93
|
])
|
|
76
94
|
]),
|
|
77
95
|
_: 2
|
|
78
96
|
}, [
|
|
79
97
|
e.hasFooter ? {
|
|
80
98
|
name: "footer",
|
|
81
|
-
fn:
|
|
82
|
-
|
|
83
|
-
o(
|
|
84
|
-
e.hasCancelBtn ? (
|
|
99
|
+
fn: l(() => [
|
|
100
|
+
Q("div", te, [
|
|
101
|
+
o($).footer ? c(e.$slots, "footer", { key: 0 }, void 0, !0) : _("", !0),
|
|
102
|
+
e.hasCancelBtn ? (m(), D(V, r({ key: 1 }, o(h), {
|
|
85
103
|
disabled: e.loading,
|
|
86
|
-
onClick:
|
|
104
|
+
onClick: k
|
|
87
105
|
}), {
|
|
88
|
-
default:
|
|
89
|
-
|
|
106
|
+
default: l(() => [
|
|
107
|
+
E(N(o(h).txt), 1)
|
|
90
108
|
]),
|
|
91
109
|
_: 1
|
|
92
|
-
}, 16, ["disabled"])) :
|
|
93
|
-
|
|
110
|
+
}, 16, ["disabled"])) : _("", !0),
|
|
111
|
+
w(V, r(o(v), {
|
|
94
112
|
loading: e.loading,
|
|
95
113
|
disabled: e.loading,
|
|
96
|
-
onClick:
|
|
114
|
+
onClick: I
|
|
97
115
|
}), {
|
|
98
|
-
default:
|
|
99
|
-
|
|
116
|
+
default: l(() => [
|
|
117
|
+
E(N(o(v).txt), 1)
|
|
100
118
|
]),
|
|
101
119
|
_: 1
|
|
102
120
|
}, 16, ["loading", "disabled"])
|
|
@@ -110,5 +128,5 @@ const Y = { class: "dialog-footer" }, ue = /* @__PURE__ */ z({
|
|
|
110
128
|
}
|
|
111
129
|
});
|
|
112
130
|
export {
|
|
113
|
-
|
|
131
|
+
he as default
|
|
114
132
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -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-
|
|
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-1b9e496b"]]);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
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b9e496b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=Object.defineProperty;var
|
|
1
|
+
"use strict";var N=Object.defineProperty;var u=(c,m)=>N(c,"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"),h=,/* empty css */T=,/* empty css */V=,/* empty css */i=,/* empty css */L=,/* empty css */D=,/* empty css */I=,/* empty css */O=,/* empty css */B=,/* empty css */M=,/* empty css */z={class:"ls-form"},A=e.defineComponent({name:"LSForm"}),U=e.defineComponent({...A,props:T.lsFormProps,emits:["submit","reset","update:form-data","onChange"],setup(c,{expose:m,emit:q}){const S=c,k=q,l=e.useAttrs(),$=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:" "}),a=e.ref(),y=["label","input","textarea","number","radio","checkbox","select","date","datetimerange","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"];let t=e.reactive({});function b(r){r&&(r.resetFields(),k("reset",t))}u(b,"resetForm");async function g(r){r&&await r.validate((n,d)=>{n?k("submit",t):console.warn("error submit!",d)})}u(g,"submitForm");function F(){return new Promise((r,n)=>{if(!a.value)return r(!1);a.value.validate((d,f)=>{d?r(t):(console.warn("error submit!",f),n(f))})})}u(F,"validate");function s(r,n){L.default(t,r,n)}u(s,"updateFormData"),e.watch(()=>S.formData,r=>{t=r||{}},{deep:!0,immediate:!0});function w(r,n){k("onChange",r,n)}return u(w,"onChange"),m({FormRef:a,validate:F,submitForm:g,resetForm:b}),(r,n)=>{const d=D.ElCol,f=I.ElRow,C=O.ElButton,E=B.ElFormItem,P=B.ElForm,R=M.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(R,{locale:e.unref(V.default),"value-on-clear":void 0,"empty-values":[void 0,null]},{default:e.withCtx(()=>[e.createVNode(P,e.mergeProps({ref_key:"FormRef",ref:a,"label-position":"left","require-asterisk-position":"right","label-width":r.labelWidth,"hide-required-asterisk":!!r.read},r.$attrs,{model:e.unref(t),disabled:r.loading||r.disabled,class:[r.read&&r.hasDefReadStyle?"show-label":""]}),{default:e.withCtx(()=>[r.column>1?(e.openBlock(),e.createBlock(f,{key:0,gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.formItems,o=>(e.openBlock(),e.createBlock(d,{key:o.prop,span:o.isRow?24:24/r.column},{default:e.withCtx(()=>[o.type==="slot"?e.renderSlot(r.$slots,o.prop,{key:0,slotRow:{...o},value:e.unref(i.default)(e.unref(t),o.prop),updateFormData:s},void 0,!0):y.includes(o.type)?(e.openBlock(),e.createBlock(h.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(i.default)(e.unref(t),o.prop),colon:r.colon,read:r.read,"label-empty":r.labelEmpty,ref_for:!0},o,{"onUpdate:value":s,onOnChange:w}),e.createSlots({_:2},[e.renderList(r.$slots,(_,p)=>({name:p,fn:e.withCtx(v=>[e.renderSlot(r.$slots,p,e.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040,["value","colon","read","label-empty"])):e.renderSlot(r.$slots,o.type,{key:2,slotRow:{...o},value:e.unref(i.default)(e.unref(t),o.prop),updateFormData:s},void 0,!0)]),_:2},1032,["span"]))),128))]),_:3})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.formItems,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.prop},[o.type==="slot"?e.renderSlot(r.$slots,o.prop,{key:0,slotRow:{...o},value:e.unref(i.default)(e.unref(t),o.prop),updateFormData:s},void 0,!0):y.includes(o.type)?(e.openBlock(),e.createBlock(h.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(i.default)(e.unref(t),o.prop),colon:r.colon,read:r.read,"label-empty":r.labelEmpty,ref_for:!0},o,{"onUpdate:value":s,onOnChange:w}),e.createSlots({_:2},[e.renderList(r.$slots,(_,p)=>({name:p,fn:e.withCtx(v=>[e.renderSlot(r.$slots,p,e.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040,["value","colon","read","label-empty"])):e.renderSlot(r.$slots,o.type,{key:2,slotRow:{...o},value:e.unref(i.default)(e.unref(t),o.prop),updateFormData:s},void 0,!0)],64))),128)),e.renderSlot(r.$slots,"default",{},void 0,!0),r.showButtons?(e.openBlock(),e.createBlock(E,e.mergeProps({key:2},e.unref($),{class:r.buttonsClass}),{default:e.withCtx(()=>[e.createVNode(C,{type:"primary",class:e.normalizeClass(r.confirmClassName),loading:r.loading&&r.showBtnLoading,onClick:n[0]||(n[0]=o=>g(a.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.confirmText),1)]),_:1},8,["class","loading"]),r.showReset?(e.openBlock(),e.createBlock(C,{key:0,onClick:n[1]||(n[1]=o=>b(a.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.resetText||"重置"),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},16,["class"])):e.createCommentVNode("",!0)]),_:3},16,["label-width","hide-required-asterisk","model","disabled","class"])]),_:3},8,["locale"])])}}});exports.default=U;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var m = (w, h) => j(w, "name", { value: h, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
@@ -7,11 +7,11 @@ var p = (w, h) => j(w, "name", { value: h, configurable: !0 });
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { defineComponent as N, useAttrs as G, computed as H, ref as J, reactive as K, watch as Q, openBlock as n, createElementBlock as
|
|
10
|
+
import { defineComponent as N, useAttrs as G, computed as H, ref as J, reactive as K, watch as Q, openBlock as n, createElementBlock as k, createVNode as R, unref as r, withCtx as s, mergeProps as d, createBlock as f, Fragment as $, renderList as g, renderSlot as i, createSlots as I, normalizeClass as X, createTextVNode as T, toDisplayString as D, createCommentVNode as L } from "vue";
|
|
11
11
|
import q from "../FormItem.vue/index.js";
|
|
12
12
|
import { lsFormProps as Z } from "../types/index.js";
|
|
13
13
|
import x 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
|
|
14
|
+
import c from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get/index.js";
|
|
15
15
|
import ee from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
|
|
16
16
|
import { ElCol as oe } 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
17
|
import { ElRow 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/row/index/index.js";
|
|
@@ -49,57 +49,57 @@ const ae = { class: "ls-form" }, ie = N({
|
|
|
49
49
|
"slot",
|
|
50
50
|
"itemSlot"
|
|
51
51
|
];
|
|
52
|
-
let
|
|
52
|
+
let t = K({});
|
|
53
53
|
function E(e) {
|
|
54
|
-
e && (e.resetFields(), C("reset",
|
|
54
|
+
e && (e.resetFields(), C("reset", t));
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
m(E, "resetForm");
|
|
57
57
|
async function S(e) {
|
|
58
|
-
e && await e.validate((
|
|
59
|
-
|
|
58
|
+
e && await e.validate((l, v) => {
|
|
59
|
+
l ? C("submit", t) : console.warn("error submit!", v);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
m(S, "submitForm");
|
|
63
63
|
function A() {
|
|
64
|
-
return new Promise((e,
|
|
64
|
+
return new Promise((e, l) => {
|
|
65
65
|
if (!u.value) return e(!1);
|
|
66
|
-
u.value.validate((
|
|
67
|
-
|
|
66
|
+
u.value.validate((v, b) => {
|
|
67
|
+
v ? e(t) : (console.warn("error submit!", b), l(b));
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
ee(
|
|
71
|
+
m(A, "validate");
|
|
72
|
+
function p(e, l) {
|
|
73
|
+
ee(t, e, l);
|
|
74
74
|
}
|
|
75
|
-
p
|
|
75
|
+
m(p, "updateFormData"), Q(
|
|
76
76
|
() => V.formData,
|
|
77
77
|
(e) => {
|
|
78
|
-
|
|
78
|
+
t = e || {};
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
deep: !0,
|
|
82
82
|
immediate: !0
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
|
-
function B(e,
|
|
86
|
-
C("onChange", e,
|
|
85
|
+
function B(e, l) {
|
|
86
|
+
C("onChange", e, l);
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return m(B, "onChange"), h({
|
|
89
89
|
FormRef: u,
|
|
90
90
|
validate: A,
|
|
91
91
|
submitForm: S,
|
|
92
92
|
resetForm: E
|
|
93
|
-
}), (e,
|
|
94
|
-
const
|
|
95
|
-
return n(),
|
|
93
|
+
}), (e, l) => {
|
|
94
|
+
const v = oe, b = re, P = te, U = le, M = ne, W = se;
|
|
95
|
+
return n(), k("div", ae, [
|
|
96
96
|
R(W, {
|
|
97
|
-
locale:
|
|
97
|
+
locale: r(x),
|
|
98
98
|
"value-on-clear": void 0,
|
|
99
99
|
"empty-values": [void 0, null]
|
|
100
100
|
}, {
|
|
101
101
|
default: s(() => [
|
|
102
|
-
R(M,
|
|
102
|
+
R(M, d({
|
|
103
103
|
ref_key: "FormRef",
|
|
104
104
|
ref: u,
|
|
105
105
|
"label-position": "left",
|
|
@@ -107,101 +107,105 @@ const ae = { class: "ls-form" }, ie = N({
|
|
|
107
107
|
"label-width": e.labelWidth,
|
|
108
108
|
"hide-required-asterisk": !!e.read
|
|
109
109
|
}, e.$attrs, {
|
|
110
|
-
model: t
|
|
110
|
+
model: r(t),
|
|
111
111
|
disabled: e.loading || e.disabled,
|
|
112
112
|
class: [e.read && e.hasDefReadStyle ? "show-label" : ""]
|
|
113
113
|
}), {
|
|
114
114
|
default: s(() => [
|
|
115
|
-
e.column > 1 ? (n(),
|
|
115
|
+
e.column > 1 ? (n(), f(b, {
|
|
116
116
|
key: 0,
|
|
117
117
|
gutter: 10
|
|
118
118
|
}, {
|
|
119
119
|
default: s(() => [
|
|
120
|
-
(n(!0),
|
|
120
|
+
(n(!0), k($, null, g(e.formItems, (o) => (n(), f(v, {
|
|
121
121
|
key: o.prop,
|
|
122
122
|
span: o.isRow ? 24 : 24 / e.column
|
|
123
123
|
}, {
|
|
124
124
|
default: s(() => [
|
|
125
125
|
o.type === "slot" ? i(e.$slots, o.prop, {
|
|
126
126
|
key: 0,
|
|
127
|
-
slotRow: { ...o }
|
|
128
|
-
|
|
127
|
+
slotRow: { ...o },
|
|
128
|
+
value: r(c)(r(t), o.prop),
|
|
129
|
+
updateFormData: p
|
|
130
|
+
}, void 0, !0) : _.includes(o.type) ? (n(), f(q, d({
|
|
129
131
|
key: 1,
|
|
130
132
|
"is-value": !0,
|
|
131
|
-
value:
|
|
133
|
+
value: r(c)(r(t), o.prop),
|
|
132
134
|
colon: e.colon,
|
|
133
135
|
read: e.read,
|
|
134
136
|
"label-empty": e.labelEmpty,
|
|
135
137
|
ref_for: !0
|
|
136
138
|
}, o, {
|
|
137
|
-
"onUpdate:value":
|
|
139
|
+
"onUpdate:value": p,
|
|
138
140
|
onOnChange: B
|
|
139
141
|
}), I({ _: 2 }, [
|
|
140
|
-
|
|
141
|
-
name:
|
|
142
|
+
g(e.$slots, (Y, y) => ({
|
|
143
|
+
name: y,
|
|
142
144
|
fn: s((F) => [
|
|
143
|
-
i(e.$slots,
|
|
145
|
+
i(e.$slots, y, d({ ref_for: !0 }, F), void 0, !0)
|
|
144
146
|
])
|
|
145
147
|
}))
|
|
146
148
|
]), 1040, ["value", "colon", "read", "label-empty"])) : i(e.$slots, o.type, {
|
|
147
149
|
key: 2,
|
|
148
150
|
slotRow: { ...o },
|
|
149
|
-
value:
|
|
150
|
-
updateFormData:
|
|
151
|
+
value: r(c)(r(t), o.prop),
|
|
152
|
+
updateFormData: p
|
|
151
153
|
}, void 0, !0)
|
|
152
154
|
]),
|
|
153
155
|
_: 2
|
|
154
156
|
}, 1032, ["span"]))), 128))
|
|
155
157
|
]),
|
|
156
158
|
_: 3
|
|
157
|
-
})) : (n(!0),
|
|
159
|
+
})) : (n(!0), k($, { key: 1 }, g(e.formItems, (o) => (n(), k($, {
|
|
158
160
|
key: o.prop
|
|
159
161
|
}, [
|
|
160
162
|
o.type === "slot" ? i(e.$slots, o.prop, {
|
|
161
163
|
key: 0,
|
|
162
|
-
slotRow: { ...o }
|
|
163
|
-
|
|
164
|
+
slotRow: { ...o },
|
|
165
|
+
value: r(c)(r(t), o.prop),
|
|
166
|
+
updateFormData: p
|
|
167
|
+
}, void 0, !0) : _.includes(o.type) ? (n(), f(q, d({
|
|
164
168
|
key: 1,
|
|
165
169
|
"is-value": !0,
|
|
166
|
-
value:
|
|
170
|
+
value: r(c)(r(t), o.prop),
|
|
167
171
|
colon: e.colon,
|
|
168
172
|
read: e.read,
|
|
169
173
|
"label-empty": e.labelEmpty,
|
|
170
174
|
ref_for: !0
|
|
171
175
|
}, o, {
|
|
172
|
-
"onUpdate:value":
|
|
176
|
+
"onUpdate:value": p,
|
|
173
177
|
onOnChange: B
|
|
174
178
|
}), I({ _: 2 }, [
|
|
175
|
-
|
|
176
|
-
name:
|
|
179
|
+
g(e.$slots, (Y, y) => ({
|
|
180
|
+
name: y,
|
|
177
181
|
fn: s((F) => [
|
|
178
|
-
i(e.$slots,
|
|
182
|
+
i(e.$slots, y, d({ ref_for: !0 }, F), void 0, !0)
|
|
179
183
|
])
|
|
180
184
|
}))
|
|
181
185
|
]), 1040, ["value", "colon", "read", "label-empty"])) : i(e.$slots, o.type, {
|
|
182
186
|
key: 2,
|
|
183
187
|
slotRow: { ...o },
|
|
184
|
-
value:
|
|
185
|
-
updateFormData:
|
|
188
|
+
value: r(c)(r(t), o.prop),
|
|
189
|
+
updateFormData: p
|
|
186
190
|
}, void 0, !0)
|
|
187
191
|
], 64))), 128)),
|
|
188
192
|
i(e.$slots, "default", {}, void 0, !0),
|
|
189
|
-
e.showButtons ? (n(),
|
|
193
|
+
e.showButtons ? (n(), f(U, d({ key: 2 }, r(z), { class: e.buttonsClass }), {
|
|
190
194
|
default: s(() => [
|
|
191
195
|
R(P, {
|
|
192
196
|
type: "primary",
|
|
193
197
|
class: X(e.confirmClassName),
|
|
194
198
|
loading: e.loading && e.showBtnLoading,
|
|
195
|
-
onClick:
|
|
199
|
+
onClick: l[0] || (l[0] = (o) => S(u.value))
|
|
196
200
|
}, {
|
|
197
201
|
default: s(() => [
|
|
198
202
|
T(D(e.confirmText), 1)
|
|
199
203
|
]),
|
|
200
204
|
_: 1
|
|
201
205
|
}, 8, ["class", "loading"]),
|
|
202
|
-
e.showReset ? (n(),
|
|
206
|
+
e.showReset ? (n(), f(P, {
|
|
203
207
|
key: 0,
|
|
204
|
-
onClick:
|
|
208
|
+
onClick: l[1] || (l[1] = (o) => E(u.value))
|
|
205
209
|
}, {
|
|
206
210
|
default: s(() => [
|
|
207
211
|
T(D(e.resetText || "重置"), 1)
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-f3c78d36"]]);exports.default=r;
|
|
@@ -2,7 +2,7 @@ import o from "./index2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
5
|
-
const
|
|
5
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f3c78d36"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default
|
|
8
8
|
};
|