@lingshugroup/web-plus 1.0.2 → 1.0.4
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 +3 -11
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/confirm/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/confirm/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/confirm/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/confirm/Index.vue/index2.js +10 -10
- package/lib/packages/ls-components/components/confirm/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/confirm/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/confirm/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/confirm/types/index.js +11 -5
- package/lib/packages/ls-components/components/confirm/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/confirm/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/descriptions/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/descriptions/Index.vue/index.js +1 -1
- 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 +46 -42
- 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 +176 -145
- 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 +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +165 -161
- 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 -5
- 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/table/Table.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index.js +2 -2
- package/lib/packages/ls-components/components/table/Table.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index2.js +129 -118
- package/lib/packages/ls-components/components/table/Table.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/table/Table.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/tree/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/tree/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/tree/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/tree/Index.vue/index2.js +112 -100
- package/lib/packages/ls-components/components/tree/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/tree/Index.vue/index2.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 +188 -183
- 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/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
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-dfae23bb"]]);exports.default=u;
|
|
@@ -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-dfae23bb"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var r=(n,c)=>y(n,"name",{value:c,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),M=require("../../_hooks/useNamespace/index.cjs"),v=require("element-plus"),f=require("../types/index.cjs"),x=t.defineComponent({name:"LSConfirm"}),_=t.defineComponent({...x,props:t.mergeModels(f.lsConfirmProps,{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(f.emitNames,["update:modelValue"]),setup(n,{emit:c}){const d=M.useNamespace("confirm").b(),e=n,
|
|
1
|
+
"use strict";var y=Object.defineProperty;var r=(n,c)=>y(n,"name",{value:c,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),M=require("../../_hooks/useNamespace/index.cjs"),v=require("element-plus"),f=require("../types/index.cjs"),x=t.defineComponent({name:"LSConfirm"}),_=t.defineComponent({...x,props:t.mergeModels(f.lsConfirmProps,{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(f.emitNames,["update:modelValue"]),setup(n,{emit:c}){const d=M.useNamespace("confirm").b(),e=n,m=c,s=t.useModel(n,"modelValue"),p=t.ref(),u=t.ref();t.watch(()=>s==null?void 0:s.value,o=>{o&&B()},{immediate:!0,deep:!0});const C=t.computed(()=>e.title),a=t.computed(()=>e.message);t.watch(()=>a.value,o=>{s!=null&&s.value&&o&&g()},{deep:!0});async function g(){const o=document.querySelector(".ls-confirm-box .el-message-box__message p");o&&(e.useHtml?o.innerHTML=a.value:o.textContent=a.value)}r(g,"updateMessage");function B(){v.ElMessageBox({title:C,message:a.value,confirmButtonText:e.confirmBtnTxt,cancelButtonText:e.cancelBtnTxt,type:e.type,center:e.center,draggable:e.draggable,dangerouslyUseHTMLString:e.useHtml,showCancelButton:e.showCancelBtn,showConfirmButton:e.showConfirmBtn,showClose:e.showClose,customClass:`${e.customClass} ls-confirm-box`,closeOnClickModal:e.closeOnClickModal,closeOnPressEscape:e.closeOnPressEscape,appendTo:e.appendTo,beforeClose:r(async(o,l,i)=>{if(o==="confirm"){if(l.confirmButtonLoading=!0,e.requestApi&&typeof e.requestApi=="function")try{u.value=await e.requestApi(e.requestParams)}catch(h){u.value=h}l.confirmButtonLoading=!1,i()}else l.confirmButtonLoading||i()},"beforeClose")}).then(()=>{s.value=!1,m("onConfirm",u)}).catch(()=>{s.value=!1,m("onCancel")})}return r(B,"initBox"),(o,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lsConfirmRef",ref:p,class:t.normalizeClass(t.unref(d))},null,2))}});exports.default=_;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _ = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { defineComponent as C, mergeModels as i, useModel as v, ref as f, watch as p, computed as d, openBlock as w, createElementBlock as T, normalizeClass as
|
|
4
|
-
import { useNamespace as
|
|
2
|
+
var r = (s, l) => _(s, "name", { value: l, configurable: !0 });
|
|
3
|
+
import { defineComponent as C, mergeModels as i, useModel as v, ref as f, watch as p, computed as d, openBlock as w, createElementBlock as T, normalizeClass as q, unref as L } from "vue";
|
|
4
|
+
import { useNamespace as k } from "../../_hooks/useNamespace/index.js";
|
|
5
5
|
import { ElMessageBox as b } from "element-plus";
|
|
6
6
|
import { lsConfirmProps as A, emitNames as E } from "../types/index.js";
|
|
7
7
|
const H = C({
|
|
@@ -15,8 +15,8 @@ const H = C({
|
|
|
15
15
|
modelModifiers: {}
|
|
16
16
|
}),
|
|
17
17
|
emits: /* @__PURE__ */ i(E, ["update:modelValue"]),
|
|
18
|
-
setup(s, { emit:
|
|
19
|
-
const g =
|
|
18
|
+
setup(s, { emit: l }) {
|
|
19
|
+
const g = k("confirm").b(), e = s, m = l, t = v(s, "modelValue"), B = f(), c = f();
|
|
20
20
|
p(
|
|
21
21
|
() => t == null ? void 0 : t.value,
|
|
22
22
|
(o) => {
|
|
@@ -41,7 +41,7 @@ const H = C({
|
|
|
41
41
|
const o = document.querySelector(".ls-confirm-box .el-message-box__message p");
|
|
42
42
|
o && (e.useHtml ? o.innerHTML = n.value : o.textContent = n.value);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
r(h, "updateMessage");
|
|
45
45
|
function y() {
|
|
46
46
|
b({
|
|
47
47
|
title: x,
|
|
@@ -59,11 +59,11 @@ const H = C({
|
|
|
59
59
|
closeOnClickModal: e.closeOnClickModal,
|
|
60
60
|
closeOnPressEscape: e.closeOnPressEscape,
|
|
61
61
|
appendTo: e.appendTo,
|
|
62
|
-
beforeClose: /* @__PURE__ */
|
|
62
|
+
beforeClose: /* @__PURE__ */ r(async (o, a, u) => {
|
|
63
63
|
if (o === "confirm") {
|
|
64
64
|
if (a.confirmButtonLoading = !0, e.requestApi && typeof e.requestApi == "function")
|
|
65
65
|
try {
|
|
66
|
-
c.value = await e.requestApi();
|
|
66
|
+
c.value = await e.requestApi(e.requestParams);
|
|
67
67
|
} catch (M) {
|
|
68
68
|
c.value = M;
|
|
69
69
|
}
|
|
@@ -77,10 +77,10 @@ const H = C({
|
|
|
77
77
|
t.value = !1, m("onCancel");
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
return
|
|
80
|
+
return r(y, "initBox"), (o, a) => (w(), T("div", {
|
|
81
81
|
ref_key: "lsConfirmRef",
|
|
82
82
|
ref: B,
|
|
83
|
-
class: L(
|
|
83
|
+
class: q(L(g))
|
|
84
84
|
}, null, 2));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var a=Object.defineProperty;var e=(t,l)=>a(t,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../_utils/runtime/index.cjs"),o=n.buildProps({title:{type:[String,Object],default:""},type:{type:String,default:""},message:{type:[String,Object,HTMLElement],default:""},confirmBtnTxt:{type:String,default:"确定"},cancelBtnTxt:{type:String,default:"取消"},showCancelBtn:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean,default:!0},center:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},useHtml:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},customClass:{type:String,default:""},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!1},appendTo:{type:[String,HTMLElement],default:""},requestApi:{type:[Function,null],default:null},requestParams:{type:Object,default:e(()=>({}),"default")}}),s=["onConfirm","onCancel"];exports.emitNames=s;exports.lsConfirmProps=o;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var e = (t, l) => a(t, "name", { value: l, configurable: !0 });
|
|
3
|
+
import { buildProps as n } from "../../_utils/runtime/index.js";
|
|
4
|
+
const u = n({
|
|
3
5
|
title: {
|
|
4
6
|
type: [String, Object],
|
|
5
7
|
default: ""
|
|
@@ -63,9 +65,13 @@ const l = e({
|
|
|
63
65
|
requestApi: {
|
|
64
66
|
type: [Function, null],
|
|
65
67
|
default: null
|
|
68
|
+
},
|
|
69
|
+
requestParams: {
|
|
70
|
+
type: Object,
|
|
71
|
+
default: /* @__PURE__ */ e(() => ({}), "default")
|
|
66
72
|
}
|
|
67
|
-
}),
|
|
73
|
+
}), f = ["onConfirm", "onCancel"];
|
|
68
74
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
f as emitNames,
|
|
76
|
+
u as lsConfirmProps
|
|
71
77
|
};
|
|
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-3c05be03"]]);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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3c05be03"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ 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 */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-4235184b"]]);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-4235184b"]]);
|
|
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=(t,n)=>N(t,"name",{value:n,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),k=,/* empty css */p=,/* empty css */s=,/* empty css */q=,/* empty css */y=,/* empty css */B={class:"dialog-footer"},w=e.defineComponent({name:"LSDialog",inheritAttrs:!1,__name:"Index",props:e.mergeModels(p.lsDialogProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(p.lsEmitNames,["update:modelValue"]),setup(t,{emit:n}){const a=t,i=n,C=e.useSlots(),l=e.useModel(t,"modelValue"),g=k.useNamespace("dialog").b(),h=e.ref({width:"50%",closeOnClickModal:!1,closeOnPressEscape:!1,zIndex:2e3}),d=e.computed(()=>s.default({txt:"取消"},a.btnCancelConfig)),u=e.computed(()=>s.default({type:"primary",txt:"确定"},a.btnConfirmConfig));function c(){l.value=!1,i("onCancel")}r(c,"handleClose");function v(){i("onConfirm")}return r(v,"handleConfirm"),(o,m)=>{const V=q.ElScrollbar,f=e.resolveComponent("LSButton"),S=y.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(g))},[e.createVNode(S,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=b=>l.value=b)},e.unref(s.default)(e.unref(h),o.$attrs),{"show-close":!o.loading,onClose:c}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(V,{"max-height":"600px"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:2},[o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",B,[e.unref(C).footer?e.renderSlot(o.$slots,"footer",{key:0},void 0,!0):e.createCommentVNode("",!0),o.hasCancelBtn?(e.openBlock(),e.createBlock(f,e.mergeProps({key:1},e.unref(d),{disabled:o.loading,onClick:c}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d).txt),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.createVNode(f,e.mergeProps(e.unref(u),{loading:o.loading,disabled:o.loading,onClick:v}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).txt),1)]),_:1},16,["loading","disabled"])])]),key:"0"}:void 0]),1040,["modelValue","show-close"])],2)}}});exports.default=w;
|
|
@@ -1,67 +1,70 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var $ = Object.defineProperty;
|
|
2
|
+
var a = (l, n) => $(l, "name", { value: n, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { defineComponent as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { lsDialogProp as
|
|
10
|
-
import
|
|
11
|
-
import { ElScrollbar as
|
|
12
|
-
import { ElDialog as
|
|
13
|
-
const
|
|
7
|
+
import { defineComponent as L, mergeModels as v, useSlots as P, useModel as x, ref as z, computed as b, resolveComponent as A, openBlock as V, createElementBlock as I, normalizeClass as O, unref as o, createVNode as r, mergeProps as i, createSlots as F, withCtx as t, renderSlot as d, createElementVNode as T, createCommentVNode as k, createBlock as U, createTextVNode as B, toDisplayString as S } from "vue";
|
|
8
|
+
import { useNamespace as j } from "../../_hooks/useNamespace/index.js";
|
|
9
|
+
import { lsDialogProp as q, lsEmitNames as G } from "../types/index.js";
|
|
10
|
+
import m from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
11
|
+
import { ElScrollbar as H } 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";
|
|
12
|
+
import { ElDialog as J } 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";
|
|
13
|
+
const K = { class: "dialog-footer" }, ae = /* @__PURE__ */ L({
|
|
14
14
|
name: "LSDialog",
|
|
15
15
|
inheritAttrs: !1,
|
|
16
16
|
__name: "Index",
|
|
17
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ v(q, {
|
|
18
18
|
modelValue: {
|
|
19
19
|
type: Boolean
|
|
20
20
|
},
|
|
21
21
|
modelModifiers: {}
|
|
22
22
|
}),
|
|
23
|
-
emits: /* @__PURE__ */
|
|
23
|
+
emits: /* @__PURE__ */ v(G, ["update:modelValue"]),
|
|
24
24
|
setup(l, { emit: n }) {
|
|
25
|
-
const
|
|
25
|
+
const c = l, f = n, y = P(), s = x(l, "modelValue"), E = j("dialog").b(), N = z({
|
|
26
26
|
width: "50%",
|
|
27
27
|
closeOnClickModal: !1,
|
|
28
28
|
closeOnPressEscape: !1,
|
|
29
29
|
zIndex: 2e3
|
|
30
|
-
}),
|
|
30
|
+
}), u = b(() => m(
|
|
31
31
|
{
|
|
32
32
|
txt: "取消"
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
)),
|
|
34
|
+
c.btnCancelConfig
|
|
35
|
+
)), p = b(() => m(
|
|
36
36
|
{
|
|
37
37
|
type: "primary",
|
|
38
38
|
txt: "确定"
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
c.btnConfirmConfig
|
|
41
41
|
));
|
|
42
|
-
function
|
|
43
|
-
|
|
42
|
+
function C() {
|
|
43
|
+
s.value = !1, f("onCancel");
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
function
|
|
47
|
-
|
|
45
|
+
a(C, "handleClose");
|
|
46
|
+
function _() {
|
|
47
|
+
f("onConfirm");
|
|
48
48
|
}
|
|
49
|
-
return
|
|
50
|
-
const
|
|
51
|
-
return
|
|
52
|
-
class:
|
|
49
|
+
return a(_, "handleConfirm"), (e, g) => {
|
|
50
|
+
const w = H, h = A("LSButton"), D = J;
|
|
51
|
+
return V(), I("div", {
|
|
52
|
+
class: O(o(E))
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue":
|
|
57
|
-
}, o(
|
|
54
|
+
r(D, i({
|
|
55
|
+
modelValue: s.value,
|
|
56
|
+
"onUpdate:modelValue": g[0] || (g[0] = (M) => s.value = M)
|
|
57
|
+
}, o(m)(o(N), e.$attrs), {
|
|
58
|
+
"show-close": !e.loading,
|
|
59
|
+
onClose: C
|
|
60
|
+
}), F({
|
|
58
61
|
header: t(() => [
|
|
59
|
-
|
|
62
|
+
d(e.$slots, "header", {}, void 0, !0)
|
|
60
63
|
]),
|
|
61
64
|
default: t(() => [
|
|
62
|
-
|
|
65
|
+
r(w, { "max-height": "600px" }, {
|
|
63
66
|
default: t(() => [
|
|
64
|
-
|
|
67
|
+
d(e.$slots, "default", {}, void 0, !0)
|
|
65
68
|
]),
|
|
66
69
|
_: 3
|
|
67
70
|
})
|
|
@@ -71,23 +74,24 @@ const H = { class: "dialog-footer" }, ne = /* @__PURE__ */ M({
|
|
|
71
74
|
e.hasFooter ? {
|
|
72
75
|
name: "footer",
|
|
73
76
|
fn: t(() => [
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
T("div", K, [
|
|
78
|
+
o(y).footer ? d(e.$slots, "footer", { key: 0 }, void 0, !0) : k("", !0),
|
|
79
|
+
e.hasCancelBtn ? (V(), U(h, i({ key: 1 }, o(u), {
|
|
76
80
|
disabled: e.loading,
|
|
77
|
-
onClick:
|
|
81
|
+
onClick: C
|
|
78
82
|
}), {
|
|
79
83
|
default: t(() => [
|
|
80
|
-
|
|
84
|
+
B(S(o(u).txt), 1)
|
|
81
85
|
]),
|
|
82
86
|
_: 1
|
|
83
|
-
}, 16, ["disabled"])) :
|
|
84
|
-
|
|
87
|
+
}, 16, ["disabled"])) : k("", !0),
|
|
88
|
+
r(h, i(o(p), {
|
|
85
89
|
loading: e.loading,
|
|
86
90
|
disabled: e.loading,
|
|
87
|
-
onClick:
|
|
91
|
+
onClick: _
|
|
88
92
|
}), {
|
|
89
93
|
default: t(() => [
|
|
90
|
-
|
|
94
|
+
B(S(o(p).txt), 1)
|
|
91
95
|
]),
|
|
92
96
|
_: 1
|
|
93
97
|
}, 16, ["loading", "disabled"])
|
|
@@ -95,11 +99,11 @@ const H = { class: "dialog-footer" }, ne = /* @__PURE__ */ M({
|
|
|
95
99
|
]),
|
|
96
100
|
key: "0"
|
|
97
101
|
} : void 0
|
|
98
|
-
]), 1040, ["modelValue"])
|
|
102
|
+
]), 1040, ["modelValue", "show-close"])
|
|
99
103
|
], 2);
|
|
100
104
|
};
|
|
101
105
|
}
|
|
102
106
|
});
|
|
103
107
|
export {
|
|
104
|
-
|
|
108
|
+
ae as default
|
|
105
109
|
};
|
|
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-a02fe28c"]]);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 f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a02fe28c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var N=Object.defineProperty;var s=(d,p)=>N(d,"name",{value:p,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"),g=,/* empty css */V=,/* empty css */L=,/* empty css */h=,/* empty css */T=,/* empty css */I=,/* empty css */D=,/* empty css */O=,/* empty css */w=,/* empty css */M=,/* empty css */z={class:"ls-form"},A=e.defineComponent({name:"LSForm"}),U=e.defineComponent({...A,props:V.lsFormProps,emits:["submit","reset","update:form-data","onChange"],setup(d,{expose:p,emit:B}){const q=d,c=B,n=e.useAttrs(),S=e.computed(()=>n&&n.hasOwnProperty("inline")?typeof n.inline=="boolean"&&n.inline===!1?{}:n&&n["label-position"]==="top"?{class:"form-item-buttons "}:{}:n&&n["label-position"]==="top"?{"label-position":"top"}:{label:" "}),a=e.ref(),k=["label","input","textarea","number","radio","checkbox","select","date","datetimerange","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"];let l=e.reactive({});function $(o){o&&(o.resetFields(),c("reset",l))}s($,"resetForm");async function y(o){o&&await o.validate((r,u)=>{r&&c("submit",l)})}s(y,"submitForm");function F(){return new Promise((o,r)=>{if(!a.value)return o(!1);a.value.validate((u,f)=>{u?o(l):r(f)})})}s(F,"validate");function v(o,r){T.default(l,o,r)}s(v,"updateFormData"),e.watch(()=>q.formData,o=>{l=o||{}},{deep:!0,immediate:!0});function b(o,r){c("onChange",o,r)}return s(b,"onChange"),p({FormRef:a,validate:F,submitForm:y}),(o,r)=>{const u=I.ElCol,f=D.ElRow,C=O.ElButton,E=w.ElFormItem,P=w.ElForm,_=M.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(_,{locale:e.unref(L.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":o.labelWidth,"hide-required-asterisk":!!o.read},o.$attrs,{model:e.unref(l),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=>(e.openBlock(),e.createBlock(u,{key:t.prop,span:t.isRow?24:24/o.column},{default:e.withCtx(()=>[t.type==="slot"?e.renderSlot(o.$slots,t.prop,{key:0},void 0,!0):k.includes(t.type)?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(h.default)(e.unref(l),t.prop),colon:o.colon,read:o.read,"label-empty":o.labelEmpty,ref_for:!0},t,{"onUpdate:value":v,onOnChange:b}),e.createSlots({_:2},[e.renderList(o.$slots,(R,i)=>({name:i,fn:e.withCtx(({row:m})=>[e.renderSlot(o.$slots,i,{row:{...m}},void 0,!0)])}))]),1040,["value","colon","read","label-empty"])):e.renderSlot(o.$slots,t.type,{key:2,row:{...t}},void 0,!0)]),_:2},1032,["span"]))),128))]),_:3})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.formItems,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.prop},[t.type==="slot"?e.renderSlot(o.$slots,t.prop,{key:0},void 0,!0):k.includes(t.type)?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(h.default)(e.unref(l),t.prop),colon:o.colon,read:o.read,"label-empty":o.labelEmpty,ref_for:!0},t,{"onUpdate:value":v,onOnChange:b}),e.createSlots({_:2},[e.renderList(o.$slots,(R,i)=>({name:i,fn:e.withCtx(({row:m})=>[e.renderSlot(o.$slots,i,{row:{...m}},void 0,!0)])}))]),1040,["value","colon","read","label-empty"])):e.renderSlot(o.$slots,t.type,{key:2,row:{...t}},void 0,!0)],64))),128)),e.renderSlot(o.$slots,"default",{},void 0,!0),o.showButtons?(e.openBlock(),e.createBlock(E,e.mergeProps({key:2},e.unref(S),{class:o.buttonsClass}),{default:e.withCtx(()=>[e.createVNode(C,{type:"primary",class:e.normalizeClass(o.confirmClassName),loading:o.loading&&o.showBtnLoading,onClick:r[0]||(r[0]=t=>y(a.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.confirmText),1)]),_:1},8,["class","loading"]),o.showReset?(e.openBlock(),e.createBlock(C,{key:0,onClick:r[1]||(r[1]=t=>$(a.value))},{default:e.withCtx(()=>[e.createTextVNode(" 重置 ")]),_: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;
|