@lingshugroup/web-plus 1.0.40 → 1.0.41
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/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/_constants/prviewType/index.cjs +1 -0
- package/lib/packages/ls-components/components/{preview_pdf/types → _constants/prviewType}/index.js +6 -4
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.cjs +1 -0
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.js +53 -0
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.js.br +0 -0
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.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 +71 -69
- 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/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +1 -1
- 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/preview_docx/Docx.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index2.js +8 -7
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js +25 -66
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_docx/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/types/index.js +4 -26
- package/lib/packages/ls-components/components/preview_image/Image.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Image.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js +4 -3
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_image/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Index.vue/index.js +3 -3
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js +25 -66
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_image/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/types/index.js +7 -27
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.js +3 -3
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js +25 -66
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js +25 -66
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js +4 -3
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/types/index.js +4 -26
- package/package.json +1 -1
- package/lib/packages/ls-components/components/preview_image/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/preview_image/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_pdf/types/index.cjs +0 -1
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var e=(t,o)=>r(t,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_utils/runtime/index.cjs"),u=["close","switch","update:source","loadComplete","loadError"],l=i.buildProps({source:{},zoomSize:{type:[Number,String],default:1.5},needLoading:{type:Boolean,default:!0},loadingOption:{type:Object,default:e(()=>({text:"Loading",background:"rgba(0, 0, 0, 0.3)"}),"default")}});exports.lsPreviewProp=l;exports.previewEmits=u;
|
package/lib/packages/ls-components/components/{preview_pdf/types → _constants/prviewType}/index.js
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
|
-
var e = (
|
|
3
|
-
|
|
2
|
+
var e = (o, t) => r(o, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { buildProps as a } from "../../_utils/runtime/index.js";
|
|
4
|
+
const l = ["close", "switch", "update:source", "loadComplete", "loadError"], n = a({
|
|
4
5
|
source: {},
|
|
5
6
|
zoomSize: {
|
|
6
7
|
type: [Number, String],
|
|
@@ -17,7 +18,8 @@ const a = {
|
|
|
17
18
|
background: "rgba(0, 0, 0, 0.3)"
|
|
18
19
|
}), "default")
|
|
19
20
|
}
|
|
20
|
-
};
|
|
21
|
+
});
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
n as lsPreviewProp,
|
|
24
|
+
l as previewEmits
|
|
23
25
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=Object.defineProperty;var a=(e,t)=>m(e,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("element-plus"),g=,/* empty css */o=require("vue");;/* empty css */;/* empty css */;/* empty css */const q=;/* empty css */function v(e,t){const{zoomSize:d}=o.toRefs(e),s=o.reactive({zoomSize:d,source:""}),i=g.useNamespace("preview").b(),r=o.ref();let u=null;o.watch(()=>t==null?void 0:t.value,n=>{n&&l()},{immediate:!0,deep:!0}),o.watch(()=>e.source,n=>{s.source=n,n&&clearTimeout(u)},{immediate:!0,deep:!0});function l(){e.needLoading&&(r.value=f.ElLoading.service(e.loadingOption)),u=setTimeout(()=>{e.source||(q.ElMessage.error("加载超时,请检查网络后重试!"),c(),t.value=!1),clearTimeout(u)},2e4)}a(l,"openLoading");const c=a(()=>{u&&clearTimeout(u),e.needLoading&&r.value&&r.value.close()},"closeLoading");return o.onBeforeMount(()=>{t.value&&l()}),o.onBeforeUnmount(()=>{c()}),{previewVisible:t,comClass:i,defAttrs:s,closeLoading:c}}a(v,"usePreviewHook");exports.default=v;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var a = (e, o) => l(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { ElLoading as i } from "element-plus";
|
|
4
|
+
import { useNamespace as g } from "../useNamespace/index.js";
|
|
5
|
+
import { toRefs as L, reactive as T, ref as v, watch as f, onBeforeMount as z, onBeforeUnmount as B } from "vue";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { ElMessage as E } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
|
|
10
|
+
function O(e, o) {
|
|
11
|
+
const { zoomSize: s } = L(e), m = T({
|
|
12
|
+
zoomSize: s,
|
|
13
|
+
source: ""
|
|
14
|
+
}), d = g("preview").b(), u = v();
|
|
15
|
+
let t = null;
|
|
16
|
+
f(
|
|
17
|
+
() => o == null ? void 0 : o.value,
|
|
18
|
+
(n) => {
|
|
19
|
+
n && c();
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
immediate: !0,
|
|
23
|
+
deep: !0
|
|
24
|
+
}
|
|
25
|
+
), f(
|
|
26
|
+
() => e.source,
|
|
27
|
+
(n) => {
|
|
28
|
+
m.source = n, n && clearTimeout(t);
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
immediate: !0,
|
|
32
|
+
deep: !0
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
function c() {
|
|
36
|
+
e.needLoading && (u.value = i.service(e.loadingOption)), t = setTimeout(() => {
|
|
37
|
+
e.source || (E.error("加载超时,请检查网络后重试!"), r(), o.value = !1), clearTimeout(t);
|
|
38
|
+
}, 2e4);
|
|
39
|
+
}
|
|
40
|
+
a(c, "openLoading");
|
|
41
|
+
const r = /* @__PURE__ */ a(() => {
|
|
42
|
+
t && clearTimeout(t), e.needLoading && u.value && u.value.close();
|
|
43
|
+
}, "closeLoading");
|
|
44
|
+
return z(() => {
|
|
45
|
+
o.value && c();
|
|
46
|
+
}), B(() => {
|
|
47
|
+
r();
|
|
48
|
+
}), { previewVisible: o, comClass: d, defAttrs: m, closeLoading: r };
|
|
49
|
+
}
|
|
50
|
+
a(O, "usePreviewHook");
|
|
51
|
+
export {
|
|
52
|
+
O as default
|
|
53
|
+
};
|
|
@@ -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-57dedc13"]]);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-57dedc13"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var V=Object.defineProperty;var s=(f,m)=>V(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"),S=,/* empty css */T=,/* empty css */A=,/* empty css */d=,/* empty css */D=,/* empty css */I=,/* empty css */O=,/* empty css */W=,/* empty css */$=,/* empty css */M=,/* empty css */U={class:"ls-form"},j=e.defineComponent({name:"LSForm"}),z=e.defineComponent({...j,props:T.lsFormProps,emits:["submit","reset","update:form-data","onChange"],setup(f,{expose:m,emit:F}){const k=f,b=F,E=e.useAttrs();function P(t){const r={};return t&&Object.entries(t).forEach(([n,i])=>{const p=n.replace(/-(\w)/g,(q,y)=>y.toUpperCase());r[p]=i}),r}s(P,"formatAttrs");const R=e.computed(()=>{const t=P(E);let r=k.buttonsLeft;const n={label:"",labelWidth:"0px"};return t&&t.hasOwnProperty("inline")&&(typeof t.inline=="boolean"&&t.inline===!1?r=k.buttonsLeft:r=!0,t.labelPosition==="top"&&(n.class="ls-form-item-buttons")),r||(n.label=" ",t.labelWidth?n.labelWidth=t.labelWidth:n.labelWidth="auto"),n}),a=e.ref(),h=["label","input","textarea","number","radio","checkbox","select","date","datetimerange","timePicker","timeSelect","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"];let l=e.reactive({});function g(t){t&&(t.resetFields(),b("reset",l))}s(g,"resetForm");async function w(t){t&&await t.validate((r,n)=>{r?b("submit",l):console.warn("error submit!",n)})}s(w,"submitForm");function N(){return new Promise((t,r)=>{if(!a.value)return t(!1);a.value.validate((n,i)=>{n?t(l):(console.warn("error submit!",i),r(i))})})}s(N,"validate");function u(t,r){D.default(l,t,r)}s(u,"updateFormData"),e.watch(()=>k.formData,t=>{l=t||{}},{deep:!0,immediate:!0});function B(t,r,n){b("onChange",t,r,n)}return s(B,"onChange"),m({FormRef:a,validate:N,submitForm:w,resetForm:g}),(t,r)=>{const n=I.ElCol,i=O.ElRow,p=W.ElButton,q=$.ElFormItem,y=$.ElForm,_=M.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",U,[e.createVNode(_,{locale:e.unref(A.default),"value-on-clear":void 0,"empty-values":[void 0,null]},{default:e.withCtx(()=>[e.createVNode(y,e.mergeProps({ref_key:"FormRef",ref:a,"label-position":"left","require-asterisk-position":"right","label-width":"auto","hide-required-asterisk":!!t.read},t.$attrs,{model:e.unref(l),disabled:t.loading||t.disabled,class:[t.read&&t.hasDefReadStyle?"show-label":""]}),{default:e.withCtx(()=>[t.column>1?(e.openBlock(),e.createBlock(i,{key:0,gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formItems,(o,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.prop},[o.hideColumn?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,span:o.isRow?24:24/t.column},{default:e.withCtx(()=>[o.type==="slot"?e.renderSlot(t.$slots,o.prop,{key:0,slotRow:{...o},value:e.unref(d.default)(e.unref(l),o.prop),updateFormData:u},void 0,!0):h.includes(o.type)?(e.openBlock(),e.createBlock(S.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(d.default)(e.unref(l),o.prop),colon:t.colon,read:t.read,"label-empty":t.labelEmpty,index:v,ref_for:!0},o,{"onUpdate:value":u,onOnChange:B}),e.createSlots({_:2},[e.renderList(t.$slots,(L,c)=>({name:c,fn:e.withCtx(C=>[e.renderSlot(t.$slots,c,e.mergeProps({ref_for:!0},C),void 0,!0)])}))]),1040,["value","colon","read","label-empty","index"])):e.renderSlot(t.$slots,o.type,{key:2,slotRow:{...o},value:e.unref(d.default)(e.unref(l),o.prop),updateFormData:u},void 0,!0)]),_:2},1032,["span"]))],64))),128))]),_:3})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.formItems,(o,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.prop},[o.hideColumn?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.type==="slot"?e.renderSlot(t.$slots,o.prop,{key:0,slotRow:{...o},value:e.unref(d.default)(e.unref(l),o.prop),updateFormData:u},void 0,!0):h.includes(o.type)?(e.openBlock(),e.createBlock(S.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(d.default)(e.unref(l),o.prop),colon:t.colon,read:t.read,"label-empty":t.labelEmpty,index:v,ref_for:!0},o,{"onUpdate:value":u,onOnChange:B}),e.createSlots({_:2},[e.renderList(t.$slots,(L,c)=>({name:c,fn:e.withCtx(C=>[e.renderSlot(t.$slots,c,e.mergeProps({ref_for:!0},C),void 0,!0)])}))]),1040,["value","colon","read","label-empty","index"])):e.renderSlot(t.$slots,o.type,{key:2,slotRow:{...o},value:e.unref(d.default)(e.unref(l),o.prop),updateFormData:u},void 0,!0)],64))],64))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),t.showButtons?(e.openBlock(),e.createBlock(q,e.mergeProps({key:2},e.unref(R),{class:t.buttonsClass}),{default:e.withCtx(()=>[t.$slots["buttons-prepend"]?e.renderSlot(t.$slots,"buttons-prepend",{key:0},void 0,!0):e.createCommentVNode("",!0),t.showSubmit?(e.openBlock(),e.createBlock(p,{key:1,type:"primary",class:e.normalizeClass(t.confirmClassName),loading:t.loading&&t.showBtnLoading,onClick:r[0]||(r[0]=o=>w(a.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmText),1)]),_:1},8,["class","loading"])):e.createCommentVNode("",!0),t.showReset?(e.openBlock(),e.createBlock(p,{key:2,onClick:r[1]||(r[1]=o=>g(a.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.resetText||"重置"),1)]),_:1})):e.createCommentVNode("",!0)]),_:3},16,["class"])):e.createCommentVNode("",!0)]),_:3},16,["hide-required-asterisk","model","disabled","class"])]),_:3},8,["locale"])])}}});exports.default=z;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var u = (C, $) => G(C, "name", { value: $, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
@@ -7,7 +7,7 @@ var i = (C, $) => G(C, "name", { value: $, configurable: !0 });
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { defineComponent as N, useAttrs as H, computed as J, ref as Q, reactive as X, watch as Z, openBlock as
|
|
10
|
+
import { defineComponent as N, useAttrs as H, computed as J, ref as Q, reactive as X, watch as Z, openBlock as n, createElementBlock as c, createVNode as T, unref as l, withCtx as a, mergeProps as b, createBlock as p, Fragment as k, renderList as g, renderSlot as i, createSlots as W, createCommentVNode as y, normalizeClass as x, createTextVNode as D, toDisplayString as O } from "vue";
|
|
11
11
|
import q from "../FormItem.vue/index.js";
|
|
12
12
|
import { lsFormProps as ee } from "../types/index.js";
|
|
13
13
|
import oe from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.js";
|
|
@@ -17,29 +17,31 @@ import { ElCol as re } from "../../../../../node_modules/.pnpm/element-plus@2.8.
|
|
|
17
17
|
import { ElRow as le } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/row/index/index.js";
|
|
18
18
|
import { ElButton as ne } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/button/index/index.js";
|
|
19
19
|
import { ElFormItem as se, ElForm as ae } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/form/index/index.js";
|
|
20
|
-
import { ElConfigProvider as
|
|
21
|
-
const
|
|
20
|
+
import { ElConfigProvider as ie } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/index/index.js";
|
|
21
|
+
const ue = { class: "ls-form" }, pe = N({
|
|
22
22
|
name: "LSForm"
|
|
23
|
-
}),
|
|
23
|
+
}), Le = /* @__PURE__ */ N({
|
|
24
24
|
...pe,
|
|
25
25
|
props: ee,
|
|
26
26
|
emits: ["submit", "reset", "update:form-data", "onChange"],
|
|
27
27
|
setup(C, { expose: $, emit: U }) {
|
|
28
|
-
const
|
|
28
|
+
const F = C, R = U, z = H();
|
|
29
29
|
function V(e) {
|
|
30
30
|
const t = {};
|
|
31
|
-
return e && Object.entries(e).forEach(([
|
|
32
|
-
const w =
|
|
31
|
+
return e && Object.entries(e).forEach(([r, f]) => {
|
|
32
|
+
const w = r.replace(/-(\w)/g, (I, E) => E.toUpperCase());
|
|
33
33
|
t[w] = f;
|
|
34
34
|
}), t;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
u(V, "formatAttrs");
|
|
37
37
|
const j = J(() => {
|
|
38
|
-
const e = V(z)
|
|
38
|
+
const e = V(z);
|
|
39
|
+
let t = F.buttonsLeft;
|
|
40
|
+
const r = {
|
|
39
41
|
label: "",
|
|
40
42
|
labelWidth: "0px"
|
|
41
43
|
};
|
|
42
|
-
return e && e.hasOwnProperty("inline") && e.labelPosition === "top" && (
|
|
44
|
+
return e && e.hasOwnProperty("inline") && (typeof e.inline == "boolean" && e.inline === !1 ? t = F.buttonsLeft : t = !0, e.labelPosition === "top" && (r.class = "ls-form-item-buttons")), t || (r.label = " ", e.labelWidth ? r.labelWidth = e.labelWidth : r.labelWidth = "auto"), r;
|
|
43
45
|
}), d = Q(), P = [
|
|
44
46
|
"label",
|
|
45
47
|
"input",
|
|
@@ -60,57 +62,57 @@ const ie = { class: "ls-form" }, pe = N({
|
|
|
60
62
|
"slot",
|
|
61
63
|
"itemSlot"
|
|
62
64
|
];
|
|
63
|
-
let
|
|
64
|
-
function
|
|
65
|
-
e && (e.resetFields(),
|
|
65
|
+
let s = X({});
|
|
66
|
+
function L(e) {
|
|
67
|
+
e && (e.resetFields(), R("reset", s));
|
|
66
68
|
}
|
|
67
|
-
|
|
68
|
-
async function
|
|
69
|
-
e && await e.validate((t,
|
|
70
|
-
t ?
|
|
69
|
+
u(L, "resetForm");
|
|
70
|
+
async function B(e) {
|
|
71
|
+
e && await e.validate((t, r) => {
|
|
72
|
+
t ? R("submit", s) : console.warn("error submit!", r);
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
|
|
75
|
+
u(B, "submitForm");
|
|
74
76
|
function K() {
|
|
75
77
|
return new Promise((e, t) => {
|
|
76
78
|
if (!d.value) return e(!1);
|
|
77
|
-
d.value.validate((
|
|
78
|
-
|
|
79
|
+
d.value.validate((r, f) => {
|
|
80
|
+
r ? e(s) : (console.warn("error submit!", f), t(f));
|
|
79
81
|
});
|
|
80
82
|
});
|
|
81
83
|
}
|
|
82
|
-
|
|
84
|
+
u(K, "validate");
|
|
83
85
|
function m(e, t) {
|
|
84
|
-
te(
|
|
86
|
+
te(s, e, t);
|
|
85
87
|
}
|
|
86
|
-
|
|
87
|
-
() =>
|
|
88
|
+
u(m, "updateFormData"), Z(
|
|
89
|
+
() => F.formData,
|
|
88
90
|
(e) => {
|
|
89
|
-
|
|
91
|
+
s = e || {};
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
deep: !0,
|
|
93
95
|
immediate: !0
|
|
94
96
|
}
|
|
95
97
|
);
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
+
function A(e, t, r) {
|
|
99
|
+
R("onChange", e, t, r);
|
|
98
100
|
}
|
|
99
|
-
return
|
|
101
|
+
return u(A, "onChange"), $({
|
|
100
102
|
FormRef: d,
|
|
101
103
|
validate: K,
|
|
102
|
-
submitForm:
|
|
103
|
-
resetForm:
|
|
104
|
+
submitForm: B,
|
|
105
|
+
resetForm: L
|
|
104
106
|
}), (e, t) => {
|
|
105
|
-
const
|
|
106
|
-
return
|
|
107
|
+
const r = re, f = le, w = ne, I = se, E = ae, M = ie;
|
|
108
|
+
return n(), c("div", ue, [
|
|
107
109
|
T(M, {
|
|
108
|
-
locale:
|
|
110
|
+
locale: l(oe),
|
|
109
111
|
"value-on-clear": void 0,
|
|
110
112
|
"empty-values": [void 0, null]
|
|
111
113
|
}, {
|
|
112
114
|
default: a(() => [
|
|
113
|
-
T(
|
|
115
|
+
T(E, b({
|
|
114
116
|
ref_key: "FormRef",
|
|
115
117
|
ref: d,
|
|
116
118
|
"label-position": "left",
|
|
@@ -118,52 +120,52 @@ const ie = { class: "ls-form" }, pe = N({
|
|
|
118
120
|
"label-width": "auto",
|
|
119
121
|
"hide-required-asterisk": !!e.read
|
|
120
122
|
}, e.$attrs, {
|
|
121
|
-
model:
|
|
123
|
+
model: l(s),
|
|
122
124
|
disabled: e.loading || e.disabled,
|
|
123
125
|
class: [e.read && e.hasDefReadStyle ? "show-label" : ""]
|
|
124
126
|
}), {
|
|
125
127
|
default: a(() => [
|
|
126
|
-
e.column > 1 ? (
|
|
128
|
+
e.column > 1 ? (n(), p(f, {
|
|
127
129
|
key: 0,
|
|
128
130
|
gutter: 10
|
|
129
131
|
}, {
|
|
130
132
|
default: a(() => [
|
|
131
|
-
(
|
|
133
|
+
(n(!0), c(k, null, g(e.formItems, (o, S) => (n(), c(k, {
|
|
132
134
|
key: o.prop
|
|
133
135
|
}, [
|
|
134
|
-
o.hideColumn ? y("", !0) : (
|
|
136
|
+
o.hideColumn ? y("", !0) : (n(), p(r, {
|
|
135
137
|
key: 0,
|
|
136
138
|
span: o.isRow ? 24 : 24 / e.column
|
|
137
139
|
}, {
|
|
138
140
|
default: a(() => [
|
|
139
|
-
o.type === "slot" ?
|
|
141
|
+
o.type === "slot" ? i(e.$slots, o.prop, {
|
|
140
142
|
key: 0,
|
|
141
143
|
slotRow: { ...o },
|
|
142
|
-
value:
|
|
144
|
+
value: l(v)(l(s), o.prop),
|
|
143
145
|
updateFormData: m
|
|
144
|
-
}, void 0, !0) : P.includes(o.type) ? (
|
|
146
|
+
}, void 0, !0) : P.includes(o.type) ? (n(), p(q, b({
|
|
145
147
|
key: 1,
|
|
146
148
|
"is-value": !0,
|
|
147
|
-
value:
|
|
149
|
+
value: l(v)(l(s), o.prop),
|
|
148
150
|
colon: e.colon,
|
|
149
151
|
read: e.read,
|
|
150
152
|
"label-empty": e.labelEmpty,
|
|
151
|
-
index:
|
|
153
|
+
index: S,
|
|
152
154
|
ref_for: !0
|
|
153
155
|
}, o, {
|
|
154
156
|
"onUpdate:value": m,
|
|
155
|
-
onOnChange:
|
|
157
|
+
onOnChange: A
|
|
156
158
|
}), W({ _: 2 }, [
|
|
157
159
|
g(e.$slots, (Y, h) => ({
|
|
158
160
|
name: h,
|
|
159
|
-
fn: a((
|
|
160
|
-
|
|
161
|
+
fn: a((_) => [
|
|
162
|
+
i(e.$slots, h, b({ ref_for: !0 }, _), void 0, !0)
|
|
161
163
|
])
|
|
162
164
|
}))
|
|
163
|
-
]), 1040, ["value", "colon", "read", "label-empty", "index"])) :
|
|
165
|
+
]), 1040, ["value", "colon", "read", "label-empty", "index"])) : i(e.$slots, o.type, {
|
|
164
166
|
key: 2,
|
|
165
167
|
slotRow: { ...o },
|
|
166
|
-
value:
|
|
168
|
+
value: l(v)(l(s), o.prop),
|
|
167
169
|
updateFormData: m
|
|
168
170
|
}, void 0, !0)
|
|
169
171
|
]),
|
|
@@ -172,61 +174,61 @@ const ie = { class: "ls-form" }, pe = N({
|
|
|
172
174
|
], 64))), 128))
|
|
173
175
|
]),
|
|
174
176
|
_: 3
|
|
175
|
-
})) : (
|
|
177
|
+
})) : (n(!0), c(k, { key: 1 }, g(e.formItems, (o, S) => (n(), c(k, {
|
|
176
178
|
key: o.prop
|
|
177
179
|
}, [
|
|
178
|
-
o.hideColumn ? y("", !0) : (
|
|
179
|
-
o.type === "slot" ?
|
|
180
|
+
o.hideColumn ? y("", !0) : (n(), c(k, { key: 0 }, [
|
|
181
|
+
o.type === "slot" ? i(e.$slots, o.prop, {
|
|
180
182
|
key: 0,
|
|
181
183
|
slotRow: { ...o },
|
|
182
|
-
value:
|
|
184
|
+
value: l(v)(l(s), o.prop),
|
|
183
185
|
updateFormData: m
|
|
184
|
-
}, void 0, !0) : P.includes(o.type) ? (
|
|
186
|
+
}, void 0, !0) : P.includes(o.type) ? (n(), p(q, b({
|
|
185
187
|
key: 1,
|
|
186
188
|
"is-value": !0,
|
|
187
|
-
value:
|
|
189
|
+
value: l(v)(l(s), o.prop),
|
|
188
190
|
colon: e.colon,
|
|
189
191
|
read: e.read,
|
|
190
192
|
"label-empty": e.labelEmpty,
|
|
191
|
-
index:
|
|
193
|
+
index: S,
|
|
192
194
|
ref_for: !0
|
|
193
195
|
}, o, {
|
|
194
196
|
"onUpdate:value": m,
|
|
195
|
-
onOnChange:
|
|
197
|
+
onOnChange: A
|
|
196
198
|
}), W({ _: 2 }, [
|
|
197
199
|
g(e.$slots, (Y, h) => ({
|
|
198
200
|
name: h,
|
|
199
|
-
fn: a((
|
|
200
|
-
|
|
201
|
+
fn: a((_) => [
|
|
202
|
+
i(e.$slots, h, b({ ref_for: !0 }, _), void 0, !0)
|
|
201
203
|
])
|
|
202
204
|
}))
|
|
203
|
-
]), 1040, ["value", "colon", "read", "label-empty", "index"])) :
|
|
205
|
+
]), 1040, ["value", "colon", "read", "label-empty", "index"])) : i(e.$slots, o.type, {
|
|
204
206
|
key: 2,
|
|
205
207
|
slotRow: { ...o },
|
|
206
|
-
value:
|
|
208
|
+
value: l(v)(l(s), o.prop),
|
|
207
209
|
updateFormData: m
|
|
208
210
|
}, void 0, !0)
|
|
209
211
|
], 64))
|
|
210
212
|
], 64))), 128)),
|
|
211
|
-
|
|
212
|
-
e.showButtons ? (
|
|
213
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
214
|
+
e.showButtons ? (n(), p(I, b({ key: 2 }, l(j), { class: e.buttonsClass }), {
|
|
213
215
|
default: a(() => [
|
|
214
|
-
e.$slots["buttons-prepend"] ?
|
|
215
|
-
e.showSubmit ? (
|
|
216
|
+
e.$slots["buttons-prepend"] ? i(e.$slots, "buttons-prepend", { key: 0 }, void 0, !0) : y("", !0),
|
|
217
|
+
e.showSubmit ? (n(), p(w, {
|
|
216
218
|
key: 1,
|
|
217
219
|
type: "primary",
|
|
218
220
|
class: x(e.confirmClassName),
|
|
219
221
|
loading: e.loading && e.showBtnLoading,
|
|
220
|
-
onClick: t[0] || (t[0] = (o) =>
|
|
222
|
+
onClick: t[0] || (t[0] = (o) => B(d.value))
|
|
221
223
|
}, {
|
|
222
224
|
default: a(() => [
|
|
223
225
|
D(O(e.confirmText), 1)
|
|
224
226
|
]),
|
|
225
227
|
_: 1
|
|
226
228
|
}, 8, ["class", "loading"])) : y("", !0),
|
|
227
|
-
e.showReset ? (
|
|
229
|
+
e.showReset ? (n(), p(w, {
|
|
228
230
|
key: 2,
|
|
229
|
-
onClick: t[1] || (t[1] = (o) =>
|
|
231
|
+
onClick: t[1] || (t[1] = (o) => L(d.value))
|
|
230
232
|
}, {
|
|
231
233
|
default: a(() => [
|
|
232
234
|
D(O(e.resetText || "重置"), 1)
|
|
@@ -247,5 +249,5 @@ const ie = { class: "ls-form" }, pe = N({
|
|
|
247
249
|
}
|
|
248
250
|
});
|
|
249
251
|
export {
|
|
250
|
-
|
|
252
|
+
Le as default
|
|
251
253
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var e=(a,l)=>o(a,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_utils/runtime/index.cjs"),r=t.buildProps({formData:{type:Object,default:e(()=>({}),"default"),required:!0},formItems:{type:Array,default:e(()=>[],"default"),required:!0},column:{type:Number,default:1},loading:{type:Boolean,default:!1},showBtnLoading:{type:Boolean,default:!0},read:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showButtons:{type:Boolean,default:!0},buttonsClass:{type:String,default:""},buttonsLeft:{type:Boolean,default:!
|
|
1
|
+
"use strict";var o=Object.defineProperty;var e=(a,l)=>o(a,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_utils/runtime/index.cjs"),r=t.buildProps({formData:{type:Object,default:e(()=>({}),"default"),required:!0},formItems:{type:Array,default:e(()=>[],"default"),required:!0},column:{type:Number,default:1},loading:{type:Boolean,default:!1},showBtnLoading:{type:Boolean,default:!0},read:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showButtons:{type:Boolean,default:!0},buttonsClass:{type:String,default:""},buttonsLeft:{type:Boolean,default:!1},showReset:{type:Boolean,default:!0},showSubmit:{type:Boolean,default:!0},confirmText:{type:String,default:"确认"},resetText:{type:String,default:"重置"},confirmClassName:{type:String,default:""},colon:{type:Boolean,default:!1},labelEmpty:{type:String,default:"--"},hasDefReadStyle:{type:Boolean,default:!1},hideColumn:{type:Boolean,default:!1}}),u=t.buildProps({isValue:{type:Boolean,default:!1},value:{type:[String,Number,Boolean,Object,Array]},type:{type:String,values:["label","input","textarea","number","radio","checkbox","select","date","datetimerange","timePicker","timeSelect","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"]},label:{type:String,default:""},prop:{type:[String,Array],default:""},rules:{type:Object,default:e(()=>{},"default")},className:{type:String,default:""},labelClass:{type:String,default:""},labelIconClass:{type:String,default:""},tooltip:{type:String,default:""},options:{type:Array,default:e(()=>[],"default")},attrs:{type:Object,default:e(()=>{},"default")},listeners:{type:Object,default:e(()=>{},"default")},colon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},read:{type:Boolean,default:!1},labelEmpty:{type:String,default:"--"},labelNumber:{type:Boolean,default:!1},dateFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},formatReadValue:{type:Function},rangeSeparator:{type:String,default:"~"},rangeProps:{type:Array,default:e(()=>["start","end"],"default")},radioType:{type:String,default:""},isRow:{type:Boolean,default:!1},selectAll:{type:Boolean,default:!0},index:{type:Number,default:0},slotKey:{type:String,default:""},levelMatch:{type:Boolean,default:!1}});exports.lsFormItemProps=u;exports.lsFormProps=r;
|
|
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-ac4bde02"]]);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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ac4bde02"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _=Object.defineProperty;var o=(t,n)=>_(t,"name",{value:n,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("../../_hooks/useNamespace/index.cjs"),C=require("../types/index.cjs"),g=require("../../_constants/prviewType/index.cjs"),h=require("../../_utils/check/index.cjs"),v=e.defineComponent({name:"LSDocx"}),k=e.defineComponent({...v,props:C.docxProps,emits:g.previewEmits,setup(t,{emit:n}){const s=x.useNamespace("docx"),i=s.b(),l=o(()=>Promise.resolve().then(()=>require("../../../../../node_modules/.pnpm/docx-preview@0.3.2/node_modules/docx-preview/dist/docx-preview/index.cjs")),"docxPromise"),c=t,a=n,u=e.ref();e.watch(()=>c.source,r=>{d(r)},{immediate:!0,deep:!0});async function d(r){if(!r||!h.isArrayBuffer(r))return;(await l()).renderAsync(r,u.value,u.value,{className:"docx",inWrapper:!0,ignoreWidth:!1,ignoreHeight:!0,ignoreFonts:!1,breakPages:!0,ignoreLastRenderedPageBreak:!0,experimental:!1,trimXmlDeclaration:!0,useBase64URL:!1,renderChanges:!1,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,debug:!1}).then(()=>{a("loadComplete")}).catch(()=>{a("loadError")})}o(d,"updateDocx");const m=o(()=>{c.onClose&&c.onClose(),a("update:source",[])},"closeFunc");return(r,p)=>{const f=e.resolveComponent("LSIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(s).e("btn"),e.unref(s).e("close")]),onClick:m},[e.createVNode(f,{name:"Close",size:24,color:"#FFF"})],2),e.createElementVNode("div",{ref_key:"docxRef",ref:u},null,512)],2)}}});exports.default=k;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var o = (r, t) => g(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { defineComponent as
|
|
3
|
+
import { defineComponent as d, ref as h, watch as F, resolveComponent as k, openBlock as B, createElementBlock as E, normalizeClass as l, unref as i, createElementVNode as m, createVNode as L } from "vue";
|
|
4
4
|
import { useNamespace as b } from "../../_hooks/useNamespace/index.js";
|
|
5
|
-
import { docxProps as v
|
|
5
|
+
import { docxProps as v } from "../types/index.js";
|
|
6
|
+
import { previewEmits as y } from "../../_constants/prviewType/index.js";
|
|
6
7
|
import { isArrayBuffer as N } from "../../_utils/check/index.js";
|
|
7
|
-
const P =
|
|
8
|
+
const P = d({
|
|
8
9
|
name: "LSDocx"
|
|
9
|
-
}),
|
|
10
|
+
}), H = /* @__PURE__ */ d({
|
|
10
11
|
...P,
|
|
11
12
|
props: v,
|
|
12
13
|
emits: y,
|
|
@@ -73,7 +74,7 @@ const P = m({
|
|
|
73
74
|
return B(), E("div", {
|
|
74
75
|
class: l(i(u))
|
|
75
76
|
}, [
|
|
76
|
-
|
|
77
|
+
m("span", {
|
|
77
78
|
class: l([i(n).e("btn"), i(n).e("close")]),
|
|
78
79
|
onClick: x
|
|
79
80
|
}, [
|
|
@@ -83,7 +84,7 @@ const P = m({
|
|
|
83
84
|
color: "#FFF"
|
|
84
85
|
})
|
|
85
86
|
], 2),
|
|
86
|
-
|
|
87
|
+
m("div", {
|
|
87
88
|
ref_key: "docxRef",
|
|
88
89
|
ref: a
|
|
89
90
|
}, null, 512)
|
|
@@ -92,5 +93,5 @@ const P = m({
|
|
|
92
93
|
}
|
|
93
94
|
});
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
+
H as default
|
|
96
97
|
};
|
|
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-896c9504"]]);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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-896c9504"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f=Object.defineProperty;var t=(o,r)=>f(o,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../Docx.vue/index.cjs"),v=require("../../_hooks/usePreviewHook/index.cjs"),C=require("../../_constants/prviewType/index.cjs"),g=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.cjs"),P=e.defineComponent({name:"LSPreviewDocx"}),_=e.defineComponent({...P,name:"LSPreviewDocx",components:{LSDocx:a.default},inheritAttrs:!1,props:e.mergeModels(C.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(o,{emit:r}){const l=r,d=o,s=e.useModel(o,"modelValue"),{comClass:u,defAttrs:c,closeLoading:n}=v.default(d,s),i=t(()=>{n(),l("loadComplete")},"loadComplete"),m=t(()=>{n(),l("loadError")},"loadError");return(p,w)=>s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(u))},[e.createVNode(a.default,e.mergeProps(e.unref(g.default)(e.unref(c),p.$attrs),{onLoadComplete:i,onLoadError:m}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=_;
|