@kp-ui/lowcode 2.13.0 → 2.13.2
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/index.js +74 -79
- package/package.json +1 -1
- package/stats.html +1 -1
- package/styles/style.css +1 -1
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defineComponent, computed, createElementBlock, openBlock, normalizeStyl
|
|
|
3
3
|
import { saveAs } from "file-saver";
|
|
4
4
|
import { getUuidKey, getLocat, getUserInfo } from "@kp-ui/tool";
|
|
5
5
|
import { cloneDeep, isArray, isEmpty, omit, eq, debounce } from "lodash-es";
|
|
6
|
-
import { goLogin, TpfModal, TpfCodeEditor, CodeEditor, useComRef, http as http$1, TpfCollapseTitle, useDataQueryApi, useRouteBackTab, routerReloadStatus, TpfCollapse } from "tmgc2-share";
|
|
6
|
+
import { goLogin, TpfModal, TpfCodeEditor, CodeEditor, useComRef, http as http$1, TpfCollapseTitle, useDataQueryApi, useRouteBackTab, routerReloadStatus, TpfCollapse, TpfConfigProvider } from "tmgc2-share";
|
|
7
7
|
import { Modal, message, ConfigProvider, Switch, Button, Tree } from "ant-design-vue";
|
|
8
8
|
import { DragOutlined, DeleteOutlined, ImportOutlined, ReloadOutlined, FileOutlined, DownloadOutlined, EyeOutlined, DownOutlined, PaperClipOutlined } from "@ant-design/icons-vue";
|
|
9
9
|
import mitt from "mitt";
|
|
@@ -2886,7 +2886,7 @@ const locale = reactive({
|
|
|
2886
2886
|
}
|
|
2887
2887
|
};
|
|
2888
2888
|
function createI18n(e) {
|
|
2889
|
-
|
|
2889
|
+
return {
|
|
2890
2890
|
get messages() {
|
|
2891
2891
|
return locale.messages;
|
|
2892
2892
|
},
|
|
@@ -2899,7 +2899,7 @@ function createI18n(e) {
|
|
|
2899
2899
|
return i !== null ? i : get(n, l);
|
|
2900
2900
|
},
|
|
2901
2901
|
async setLang(t) {
|
|
2902
|
-
if (locale.lang = t,
|
|
2902
|
+
if (locale.lang = t, t in locale.messages || (locale.messages[t] = {}), t in langLoaders) {
|
|
2903
2903
|
const l = await langLoaders[t]();
|
|
2904
2904
|
locale.messages[t] = l;
|
|
2905
2905
|
}
|
|
@@ -2912,11 +2912,8 @@ function createI18n(e) {
|
|
|
2912
2912
|
};
|
|
2913
2913
|
}
|
|
2914
2914
|
};
|
|
2915
|
-
return o.setLang(e.locale), o;
|
|
2916
2915
|
}
|
|
2917
|
-
const i18n = createI18n({
|
|
2918
|
-
locale: "zh-CN"
|
|
2919
|
-
}), setLangMessages = (e, o) => {
|
|
2916
|
+
const i18n = createI18n(), setLangMessages = (e, o) => {
|
|
2920
2917
|
i18n.setLangMessages(e, o);
|
|
2921
2918
|
}, i18n$1 = {
|
|
2922
2919
|
computed: {
|
|
@@ -17035,14 +17032,6 @@ const DynamicDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_
|
|
|
17035
17032
|
type: Boolean,
|
|
17036
17033
|
default: !1
|
|
17037
17034
|
},
|
|
17038
|
-
renderConfig: {
|
|
17039
|
-
//渲染配置对象
|
|
17040
|
-
type: Object,
|
|
17041
|
-
default: () => ({
|
|
17042
|
-
languageName: "zh-CN"
|
|
17043
|
-
//界面语言,默认显示中文
|
|
17044
|
-
})
|
|
17045
|
-
},
|
|
17046
17035
|
globalDsv: {
|
|
17047
17036
|
// 全局数据源变量
|
|
17048
17037
|
type: Object,
|
|
@@ -17817,7 +17806,7 @@ function _sfc_render$Y(e, o, t, l, n, i) {
|
|
|
17817
17806
|
createVNode(r, mergeProps(n.dialogProps, { ref: "dynamicDialgRef" }), null, 16)
|
|
17818
17807
|
], 64);
|
|
17819
17808
|
}
|
|
17820
|
-
const VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$Y], ["__scopeId", "data-v-
|
|
17809
|
+
const VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$Y], ["__scopeId", "data-v-727997ad"]]), index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17821
17810
|
__proto__: null,
|
|
17822
17811
|
default: VFormRender
|
|
17823
17812
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -22634,55 +22623,58 @@ const FileIcon = /* @__PURE__ */ defineComponent({
|
|
|
22634
22623
|
handleDownload: a
|
|
22635
22624
|
} = useFilePreview(), r = ref([]);
|
|
22636
22625
|
return watchEffect(() => {
|
|
22637
|
-
typeof o.data == "string" ? r.value = JSON.parse(o.data) : r.value = o.data;
|
|
22626
|
+
typeof o.data == "string" ? r.value = JSON.parse(o.data) || [] : r.value = o.data || [];
|
|
22638
22627
|
}), onMounted(() => {
|
|
22639
|
-
}), (d, s) =>
|
|
22640
|
-
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
|
|
22644
|
-
|
|
22645
|
-
|
|
22646
|
-
|
|
22647
|
-
|
|
22648
|
-
|
|
22649
|
-
createVNode(unref(Button), {
|
|
22650
|
-
type: "link",
|
|
22651
|
-
onClick: () => unref(a)(c)
|
|
22652
|
-
}, {
|
|
22653
|
-
icon: withCtx(() => [
|
|
22654
|
-
createVNode(unref(DownloadOutlined))
|
|
22655
|
-
]),
|
|
22656
|
-
_: 2
|
|
22657
|
-
}, 1032, ["onClick"]),
|
|
22658
|
-
createVNode(unref(Button), {
|
|
22659
|
-
type: "link",
|
|
22660
|
-
onClick: () => unref(i)(c)
|
|
22661
|
-
}, {
|
|
22662
|
-
icon: withCtx(() => [
|
|
22663
|
-
createVNode(unref(EyeOutlined))
|
|
22628
|
+
}), (d, s) => {
|
|
22629
|
+
var c;
|
|
22630
|
+
return (c = r.value) != null && c.length ? (openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
22631
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
22632
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (u, m) => (openBlock(), createElementBlock("div", {
|
|
22633
|
+
key: m,
|
|
22634
|
+
class: "file-item"
|
|
22635
|
+
}, [
|
|
22636
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
22637
|
+
createVNode(unref(FileIcon), { file: u }, null, 8, ["file"])
|
|
22664
22638
|
]),
|
|
22665
|
-
|
|
22666
|
-
|
|
22667
|
-
|
|
22668
|
-
|
|
22669
|
-
|
|
22670
|
-
|
|
22671
|
-
|
|
22672
|
-
|
|
22673
|
-
|
|
22674
|
-
|
|
22675
|
-
|
|
22676
|
-
|
|
22677
|
-
|
|
22678
|
-
|
|
22679
|
-
|
|
22639
|
+
createElementVNode("span", _hoisted_4$3, toDisplayString(u.fileName), 1),
|
|
22640
|
+
createVNode(unref(Button), {
|
|
22641
|
+
type: "link",
|
|
22642
|
+
onClick: () => unref(a)(u)
|
|
22643
|
+
}, {
|
|
22644
|
+
icon: withCtx(() => [
|
|
22645
|
+
createVNode(unref(DownloadOutlined))
|
|
22646
|
+
]),
|
|
22647
|
+
_: 2
|
|
22648
|
+
}, 1032, ["onClick"]),
|
|
22649
|
+
createVNode(unref(Button), {
|
|
22650
|
+
type: "link",
|
|
22651
|
+
onClick: () => unref(i)(u)
|
|
22652
|
+
}, {
|
|
22653
|
+
icon: withCtx(() => [
|
|
22654
|
+
createVNode(unref(EyeOutlined))
|
|
22655
|
+
]),
|
|
22656
|
+
_: 2
|
|
22657
|
+
}, 1032, ["onClick"])
|
|
22658
|
+
]))), 128))
|
|
22680
22659
|
]),
|
|
22681
|
-
|
|
22682
|
-
|
|
22683
|
-
|
|
22660
|
+
createVNode(unref(TpfModal), {
|
|
22661
|
+
visible: unref(t),
|
|
22662
|
+
"onUpdate:visible": s[0] || (s[0] = (u) => isRef(t) ? t.value = u : null),
|
|
22663
|
+
title: unref(l),
|
|
22664
|
+
footer: null
|
|
22665
|
+
}, {
|
|
22666
|
+
default: withCtx(() => [
|
|
22667
|
+
createElementVNode("img", {
|
|
22668
|
+
style: { width: "100%" },
|
|
22669
|
+
src: unref(n)
|
|
22670
|
+
}, null, 8, _hoisted_5$3)
|
|
22671
|
+
]),
|
|
22672
|
+
_: 1
|
|
22673
|
+
}, 8, ["visible", "title"])
|
|
22674
|
+
])) : createCommentVNode("", !0);
|
|
22675
|
+
};
|
|
22684
22676
|
}
|
|
22685
|
-
}), AttachmentRender = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
22677
|
+
}), AttachmentRender = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-4b5130ce"]]), AttachmentRender$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22686
22678
|
__proto__: null,
|
|
22687
22679
|
default: AttachmentRender
|
|
22688
22680
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -28292,25 +28284,28 @@ const vfDrawerWidget = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc
|
|
|
28292
28284
|
};
|
|
28293
28285
|
return onMounted(() => {
|
|
28294
28286
|
c();
|
|
28295
|
-
}), (u, m) => (openBlock(), createBlock(unref(
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
|
|
28306
|
-
|
|
28307
|
-
|
|
28308
|
-
|
|
28309
|
-
|
|
28310
|
-
|
|
28311
|
-
|
|
28287
|
+
}), (u, m) => (openBlock(), createBlock(unref(TpfConfigProvider), null, {
|
|
28288
|
+
default: withCtx(() => [createVNode(unref(TpfModal), mergeProps({
|
|
28289
|
+
visible: l.value,
|
|
28290
|
+
"onUpdate:visible": m[1] || (m[1] = (f) => l.value = f)
|
|
28291
|
+
}, u.$attrs, {
|
|
28292
|
+
title: s.value
|
|
28293
|
+
}), {
|
|
28294
|
+
footerRight: withCtx(() => [createVNode(_sfc_main$13, {
|
|
28295
|
+
dialogVisible: l.value,
|
|
28296
|
+
"onUpdate:dialogVisible": m[0] || (m[0] = (f) => l.value = f),
|
|
28297
|
+
options: unref(r),
|
|
28298
|
+
ctx: unref(a)
|
|
28299
|
+
}, null, 8, ["dialogVisible", "options", "ctx"])]),
|
|
28300
|
+
default: withCtx(() => [createVNode(VFormRender, {
|
|
28301
|
+
vfCtx: i.value,
|
|
28302
|
+
ref_key: "vfdRef",
|
|
28303
|
+
ref: a
|
|
28304
|
+
}, null, 8, ["vfCtx"])]),
|
|
28305
|
+
_: 1
|
|
28306
|
+
}, 16, ["visible", "title"])]),
|
|
28312
28307
|
_: 1
|
|
28313
|
-
}
|
|
28308
|
+
}));
|
|
28314
28309
|
}
|
|
28315
28310
|
}), CustomerModal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28316
28311
|
__proto__: null,
|