@lingshugroup/web-plus 1.0.16 → 1.0.18
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 -1
- 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/echarts@5.5.1/node_modules/echarts/lib/core/echarts/index.js +1 -1
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/core/echarts/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/core/echarts/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/data/helper/sourceHelper/index.js +3 -3
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/data/helper/sourceHelper/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/data/helper/sourceHelper/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/util/model/index.js +7 -7
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/util/model/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.5.1/node_modules/echarts/lib/util/model/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/zrender@5.6.0/node_modules/zrender/lib/graphic/Displayable/index.cjs +1 -1
- package/lib/node_modules/.pnpm/zrender@5.6.0/node_modules/zrender/lib/graphic/Displayable/index.js +29 -28
- package/lib/node_modules/.pnpm/zrender@5.6.0/node_modules/zrender/lib/graphic/Displayable/index.js.br +0 -0
- package/lib/node_modules/.pnpm/zrender@5.6.0/node_modules/zrender/lib/graphic/Displayable/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/chart/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js +41 -41
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js +66 -66
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/line/index.js +76 -73
- package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/config/template/pie/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/config/template/pie/index.js +25 -24
- package/lib/packages/ls-components/components/chart/config/template/pie/index.js.br +0 -0
- package/lib/packages/ls-components/components/chart/config/template/pie/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 +28 -26
- 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 +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +66 -64
- 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 +257 -201
- 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/form/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +6 -2
- package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/form/types/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 +2 -2
- package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js +240 -233
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var B = Object.defineProperty;
|
|
2
2
|
var c = (t, e) => B(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
import { DEF_THEME as
|
|
3
|
+
import { DEF_THEME as m, FONT_COLOR_MAP as R, SPLIT_LINE_COLOR as H, BG_COLOR_MAP as M } from "../../base/index.js";
|
|
4
4
|
const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item", tooltipFormatter: o }) => ({
|
|
5
5
|
show: t,
|
|
6
6
|
trigger: e,
|
|
@@ -13,7 +13,8 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
13
13
|
legendRight: u = "auto",
|
|
14
14
|
legendTop: p = "auto",
|
|
15
15
|
legendBottom: d = "auto",
|
|
16
|
-
legendTextColor: g = "#2C2C2C"
|
|
16
|
+
legendTextColor: g = "#2C2C2C",
|
|
17
|
+
legendIcon: h = "rect"
|
|
17
18
|
}) => ({
|
|
18
19
|
type: t,
|
|
19
20
|
show: e,
|
|
@@ -22,7 +23,7 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
22
23
|
right: u,
|
|
23
24
|
top: p,
|
|
24
25
|
bottom: d,
|
|
25
|
-
icon:
|
|
26
|
+
icon: h,
|
|
26
27
|
itemGap: 20,
|
|
27
28
|
itemWidth: 14,
|
|
28
29
|
itemHeight: 10,
|
|
@@ -37,21 +38,21 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
37
38
|
percentPrecision: p = 2,
|
|
38
39
|
lineShow: d = !0,
|
|
39
40
|
lineColor: g = "rgba(0, 0, 0, 0.2)",
|
|
40
|
-
length:
|
|
41
|
+
length: h = 40,
|
|
41
42
|
length2: S = 30,
|
|
42
43
|
labelShow: O = !0,
|
|
43
44
|
labelColor: b = "#2C2C2C",
|
|
44
45
|
labelShowPercent: L = !0,
|
|
45
|
-
labelShowItem:
|
|
46
|
+
labelShowItem: F = !0,
|
|
46
47
|
labelFormatter: T = "",
|
|
47
48
|
innerRadius: y = [0, "30%"],
|
|
48
49
|
innerLabelColor: E = "#ffffff",
|
|
49
50
|
selectedMode: _ = ""
|
|
50
51
|
}) => {
|
|
51
|
-
let
|
|
52
|
+
let f = [];
|
|
52
53
|
t && t.length && t.forEach((l, r) => {
|
|
53
54
|
const { value: n = "", name: a = "", color: i = "" } = l || {};
|
|
54
|
-
|
|
55
|
+
f.push({
|
|
55
56
|
value: n,
|
|
56
57
|
name: a,
|
|
57
58
|
itemStyle: {
|
|
@@ -69,7 +70,7 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
69
70
|
}
|
|
70
71
|
});
|
|
71
72
|
});
|
|
72
|
-
let
|
|
73
|
+
let C = null;
|
|
73
74
|
if (e && e.length) {
|
|
74
75
|
let l = [];
|
|
75
76
|
e.forEach((r) => {
|
|
@@ -81,7 +82,7 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
81
82
|
[i && "color"]: i
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
|
-
}),
|
|
85
|
+
}), C = {
|
|
85
86
|
type: "pie",
|
|
86
87
|
radius: y,
|
|
87
88
|
label: {
|
|
@@ -98,7 +99,7 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
98
99
|
return [
|
|
99
100
|
{
|
|
100
101
|
type: "pie",
|
|
101
|
-
data:
|
|
102
|
+
data: f,
|
|
102
103
|
selectedMode: _,
|
|
103
104
|
radius: s,
|
|
104
105
|
roseType: u,
|
|
@@ -110,40 +111,40 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
110
111
|
lineHeight: 20,
|
|
111
112
|
formatter: T || ((l) => {
|
|
112
113
|
const { name: r, percent: n, value: a } = l || {};
|
|
113
|
-
return `${
|
|
114
|
+
return `${F ? "{b|}" : ""} ${r}:${L ? n + "%" : a}`;
|
|
114
115
|
})
|
|
115
116
|
},
|
|
116
117
|
labelLine: {
|
|
117
118
|
show: d,
|
|
118
|
-
length:
|
|
119
|
+
length: h,
|
|
119
120
|
length2: S,
|
|
120
121
|
lineStyle: {
|
|
121
122
|
color: g
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
},
|
|
125
|
-
...[
|
|
126
|
+
...[C]
|
|
126
127
|
];
|
|
127
128
|
}, "setSeries"), x = /* @__PURE__ */ c((t, {
|
|
128
129
|
color: e = ["#2285FF", "#FF7D00", "#00CDDC", "#FB466C", "#FFC917", "#8CEAFF", "#A16FFD", "#FD8BFF"],
|
|
129
|
-
theme: o =
|
|
130
|
+
theme: o = m,
|
|
130
131
|
showTooltip: s,
|
|
131
132
|
tooltipTrigger: u,
|
|
132
133
|
tooltipFormatter: p,
|
|
133
134
|
legendType: d,
|
|
134
135
|
legendShow: g,
|
|
135
|
-
legendOrient:
|
|
136
|
+
legendOrient: h,
|
|
136
137
|
legendLeft: S,
|
|
137
138
|
legendRight: O,
|
|
138
139
|
legendTop: b,
|
|
139
140
|
legendBottom: L,
|
|
140
|
-
legendTextColor:
|
|
141
|
+
legendTextColor: F,
|
|
141
142
|
radius: T,
|
|
142
143
|
roseType: y,
|
|
143
144
|
percentPrecision: E,
|
|
144
145
|
lineShow: _,
|
|
145
|
-
lineColor:
|
|
146
|
-
length:
|
|
146
|
+
lineColor: f,
|
|
147
|
+
length: C,
|
|
147
148
|
length2: A,
|
|
148
149
|
labelShow: l,
|
|
149
150
|
labelColor: r,
|
|
@@ -153,7 +154,7 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
153
154
|
innerRadius: v,
|
|
154
155
|
innerLabelColor: z
|
|
155
156
|
} = {}) => {
|
|
156
|
-
r =
|
|
157
|
+
r = F = R[o || m], f = H[o || m];
|
|
157
158
|
const w = {
|
|
158
159
|
tooltip: P({
|
|
159
160
|
showTooltip: s,
|
|
@@ -163,12 +164,12 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
163
164
|
legend: $({
|
|
164
165
|
legendType: d,
|
|
165
166
|
legendShow: g,
|
|
166
|
-
legendOrient:
|
|
167
|
+
legendOrient: h,
|
|
167
168
|
legendLeft: S,
|
|
168
169
|
legendRight: O,
|
|
169
170
|
legendTop: b,
|
|
170
171
|
legendBottom: L,
|
|
171
|
-
legendTextColor:
|
|
172
|
+
legendTextColor: F
|
|
172
173
|
}),
|
|
173
174
|
series: k(t, {
|
|
174
175
|
color: e,
|
|
@@ -176,8 +177,8 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
176
177
|
roseType: y,
|
|
177
178
|
percentPrecision: E,
|
|
178
179
|
lineShow: _,
|
|
179
|
-
lineColor:
|
|
180
|
-
length:
|
|
180
|
+
lineColor: f,
|
|
181
|
+
length: C,
|
|
181
182
|
length2: A,
|
|
182
183
|
labelShow: l,
|
|
183
184
|
labelColor: r,
|
|
@@ -188,7 +189,7 @@ const P = /* @__PURE__ */ c(({ showTooltip: t = !0, tooltipTrigger: e = "item",
|
|
|
188
189
|
innerLabelColor: z
|
|
189
190
|
})
|
|
190
191
|
};
|
|
191
|
-
return w.color = e, w.backgroundColor = M[o ||
|
|
192
|
+
return w.color = e, w.backgroundColor = M[o || m], w;
|
|
192
193
|
}, "setOption"), I = /* @__PURE__ */ c((t, e) => x(t, e), "dealOption");
|
|
193
194
|
export {
|
|
194
195
|
I as dealOption
|
|
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-262618a0"]]);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-262618a0"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
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"),
|
|
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"),x=,/* empty css */v=,/* empty css */l=,/* empty css */_=,/* empty css */D=,/* 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=x.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();const o=a.hasFooter?108:60;c.value=parseInt(getComputedStyle(d.value.querySelector(".el-dialog")).height)-o}return r(p,"updateHeight"),s({updateHeight:p}),(o,C)=>{const V=_.ElScrollbar,h=e.resolveComponent("LSButton"),w=D.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),{"max-height":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3},16,["max-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,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (n, i) =>
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var a = (n, i) => F(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
|
|
8
|
+
import { defineComponent as H, mergeModels as B, useSlots as O, useModel as R, ref as m, watch as T, computed as b, nextTick as q, resolveComponent as U, openBlock as c, createElementBlock as j, normalizeClass as G, unref as o, createVNode as w, mergeProps as s, createSlots as J, withCtx as l, renderSlot as u, withDirectives as K, createBlock as D, createElementVNode as Q, createCommentVNode as _, createTextVNode as E, toDisplayString as N } from "vue";
|
|
9
9
|
import { useNamespace as W } from "../../_hooks/useNamespace/index.js";
|
|
10
10
|
import { lsDialogProp as X, lsEmitNames as Y } from "../types/index.js";
|
|
11
|
-
import
|
|
11
|
+
import r from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
12
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
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
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__ */
|
|
15
|
+
const te = { class: "dialog-footer" }, he = /* @__PURE__ */ H({
|
|
16
16
|
name: "LSDialog",
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "Index",
|
|
@@ -24,13 +24,13 @@ const te = { class: "dialog-footer" }, he = /* @__PURE__ */ R({
|
|
|
24
24
|
}),
|
|
25
25
|
emits: /* @__PURE__ */ B(Y, ["update:modelValue"]),
|
|
26
26
|
setup(n, { expose: i, emit: L }) {
|
|
27
|
-
const
|
|
27
|
+
const d = n, f = L, $ = O(), t = R(n, "modelValue"), M = W("dialog").b(), p = m(), g = m({
|
|
28
28
|
width: "50%",
|
|
29
29
|
closeOnClickModal: !1,
|
|
30
30
|
closeOnPressEscape: !1,
|
|
31
31
|
zIndex: 2e3
|
|
32
|
-
}), C =
|
|
33
|
-
|
|
32
|
+
}), C = m(0);
|
|
33
|
+
T(
|
|
34
34
|
() => t == null ? void 0 : t.value,
|
|
35
35
|
(e) => {
|
|
36
36
|
e && y();
|
|
@@ -40,17 +40,17 @@ const te = { class: "dialog-footer" }, he = /* @__PURE__ */ R({
|
|
|
40
40
|
deep: !0
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
|
-
const h = b(() =>
|
|
43
|
+
const h = b(() => r(
|
|
44
44
|
{
|
|
45
45
|
txt: "取消"
|
|
46
46
|
},
|
|
47
|
-
|
|
48
|
-
)), v = b(() =>
|
|
47
|
+
d.btnCancelConfig
|
|
48
|
+
)), v = b(() => r(
|
|
49
49
|
{
|
|
50
50
|
type: "primary",
|
|
51
51
|
txt: "确认"
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
d.btnConfirmConfig
|
|
54
54
|
));
|
|
55
55
|
function k() {
|
|
56
56
|
t.value = !1, f("onCancel");
|
|
@@ -61,35 +61,37 @@ const te = { class: "dialog-footer" }, he = /* @__PURE__ */ R({
|
|
|
61
61
|
}
|
|
62
62
|
a(I, "handleConfirm");
|
|
63
63
|
async function y() {
|
|
64
|
-
await
|
|
64
|
+
await q();
|
|
65
|
+
const e = d.hasFooter ? 108 : 60;
|
|
66
|
+
C.value = parseInt(getComputedStyle(p.value.querySelector(".el-dialog")).height) - e;
|
|
65
67
|
}
|
|
66
68
|
return a(y, "updateHeight"), i({
|
|
67
69
|
updateHeight: y
|
|
68
70
|
}), (e, S) => {
|
|
69
|
-
const P = Z, V =
|
|
70
|
-
return
|
|
71
|
+
const P = Z, V = U("LSButton"), x = ee, z = oe;
|
|
72
|
+
return c(), j("div", {
|
|
71
73
|
ref_key: "lsDialogRef",
|
|
72
74
|
ref: p,
|
|
73
75
|
class: G(o(M))
|
|
74
76
|
}, [
|
|
75
|
-
w(
|
|
77
|
+
w(x, s({
|
|
76
78
|
modelValue: t.value,
|
|
77
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
78
|
-
}, o(
|
|
79
|
+
"onUpdate:modelValue": S[0] || (S[0] = (A) => t.value = A)
|
|
80
|
+
}, o(r)(o(g), e.$attrs), {
|
|
79
81
|
"show-close": !e.loading,
|
|
80
82
|
onClose: k
|
|
81
83
|
}), J({
|
|
82
84
|
header: l(() => [
|
|
83
|
-
|
|
85
|
+
u(e.$slots, "header", {}, void 0, !0)
|
|
84
86
|
]),
|
|
85
87
|
default: l(() => [
|
|
86
|
-
K((
|
|
88
|
+
K((c(), D(P, s(o(r)(o(g), e.$attrs), { "max-height": o(C) }), {
|
|
87
89
|
default: l(() => [
|
|
88
|
-
|
|
90
|
+
u(e.$slots, "default", {}, void 0, !0)
|
|
89
91
|
]),
|
|
90
92
|
_: 3
|
|
91
|
-
}, 16, ["height"])), [
|
|
92
|
-
[
|
|
93
|
+
}, 16, ["max-height"])), [
|
|
94
|
+
[z, e.contentLoading]
|
|
93
95
|
])
|
|
94
96
|
]),
|
|
95
97
|
_: 2
|
|
@@ -98,8 +100,8 @@ const te = { class: "dialog-footer" }, he = /* @__PURE__ */ R({
|
|
|
98
100
|
name: "footer",
|
|
99
101
|
fn: l(() => [
|
|
100
102
|
Q("div", te, [
|
|
101
|
-
o($).footer ?
|
|
102
|
-
e.hasCancelBtn ? (
|
|
103
|
+
o($).footer ? u(e.$slots, "footer", { key: 0 }, void 0, !0) : _("", !0),
|
|
104
|
+
e.hasCancelBtn ? (c(), D(V, s({ key: 1 }, o(h), {
|
|
103
105
|
disabled: e.loading,
|
|
104
106
|
onClick: k
|
|
105
107
|
}), {
|
|
@@ -108,7 +110,7 @@ const te = { class: "dialog-footer" }, he = /* @__PURE__ */ R({
|
|
|
108
110
|
]),
|
|
109
111
|
_: 1
|
|
110
112
|
}, 16, ["disabled"])) : _("", !0),
|
|
111
|
-
w(V,
|
|
113
|
+
w(V, s(o(v), {
|
|
112
114
|
loading: e.loading,
|
|
113
115
|
disabled: e.loading,
|
|
114
116
|
onClick: I
|
|
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-48b38c22"]]);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 _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-48b38c22"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var V=Object.defineProperty;var u=(c,m)=>V(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 */_=,/* empty css */T=,/* 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:_.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:" "}),s=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(!s.value)return r(!1);s.value.validate((d,f)=>{d?r(t):(console.warn("error submit!",f),n(f))})})}u(F,"validate");function a(r,n){L.default(t,r,n)}u(a,"updateFormData"),e.watch(()=>S.formData,r=>{t=r||{}},{deep:!0,immediate:!0});function C(r,n){k("onChange",r,n)}return u(C,"onChange"),m({FormRef:s,validate:F,submitForm:g,resetForm:b}),(r,n)=>{const d=D.ElCol,f=I.ElRow,w=O.ElButton,E=B.ElFormItem,P=B.ElForm,R=M.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(R,{locale:e.unref(T.default),"value-on-clear":void 0,"empty-values":[void 0,null]},{default:e.withCtx(()=>[e.createVNode(P,e.mergeProps({ref_key:"FormRef",ref:s,"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:a},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":a,onOnChange:C}),e.createSlots({_:2},[e.renderList(r.$slots,(N,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:a},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:a},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":a,onOnChange:C}),e.createSlots({_:2},[e.renderList(r.$slots,(N,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:a},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(()=>[r.$slots["buttons-prepend"]?e.renderSlot(r.$slots,"buttons-prepend",{key:0},void 0,!0):e.createCommentVNode("",!0),r.showSubmit?(e.openBlock(),e.createBlock(w,{key:1,type:"primary",class:e.normalizeClass(r.confirmClassName),loading:r.loading&&r.showBtnLoading,onClick:n[0]||(n[0]=o=>g(s.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.confirmText),1)]),_:1},8,["class","loading"])):e.createCommentVNode("",!0),r.showReset?(e.openBlock(),e.createBlock(w,{key:2,onClick:n[1]||(n[1]=o=>b(s.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.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=U;
|