@kp-ui/lowcode 1.0.68 → 1.0.69
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/_virtual/virtual_svg-icons-register.js +2 -2
- package/package.json +2 -2
- package/packages/tmgc2-share/src/components/TpfCodeEditor/code-editor.vue.js +7 -0
- package/packages/tmgc2-share/src/components/TpfCodeEditor/code-editor.vue2.js +164 -0
- package/packages/tmgc2-share/src/components/TpfModal/index.vue.js +7 -0
- package/packages/tmgc2-share/src/components/TpfModal/index.vue2.js +173 -0
- package/packages/tmgc2-share/src/components/TpfModal/index.vue3.js +1 -0
- package/render.js +6 -7
- package/src/components/code-editor/code-modal-editor.vue.js +54 -67
- package/src/components/code-editor/code-modal-editor.vue2.js +1 -42
- package/src/components/form-designer/form-widget/index.vue.js +5 -3
- package/src/components/form-designer/setting-panel/form-setting.vue.js +1 -1
- package/src/components/form-designer/setting-panel/index.vue.js +24 -71
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +7 -6
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-selections-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +63 -62
- package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +2 -2
- package/src/components/form-designer/toolbar-panel/index.vue.js +99 -108
- package/src/components/form-designer/widget-panel/index.vue.js +4 -2
- package/src/components/form-render/dynamic-dialog.vue.js +5 -6
- package/src/components/http-editor/index.vue.js +6 -5
- package/src/components/http-editor/index.vue2.js +2 -2
- package/src/components/public/ActionButtonListDialog.vue2.js +2 -2
- package/src/mixins/useDataTableMixin.js +8 -5
- package/styles/style.css +1 -1
- package/types/src/lang/en-US.d.ts +440 -0
- package/types/src/lang/en-US.d.ts.map +1 -0
- package/types/src/lang/en-US_extension.d.ts +24 -0
- package/types/src/lang/en-US_extension.d.ts.map +1 -0
- package/types/src/lang/en-US_render.d.ts +39 -0
- package/types/src/lang/en-US_render.d.ts.map +1 -0
- package/types/src/lang/zh-CN.d.ts +450 -0
- package/types/src/lang/zh-CN.d.ts.map +1 -0
- package/types/src/lang/zh-CN_extension.d.ts +24 -0
- package/types/src/lang/zh-CN_extension.d.ts.map +1 -0
- package/types/src/lang/zh-CN_render.d.ts +39 -0
- package/types/src/lang/zh-CN_render.d.ts.map +1 -0
- package/types/src/utils/i18n.d.ts +14 -0
- package/types/src/utils/i18n.d.ts.map +1 -0
|
@@ -15,8 +15,12 @@ const _sfc_main = {
|
|
|
15
15
|
mixins: [i18n],
|
|
16
16
|
components: {
|
|
17
17
|
VFormRender: defineAsyncComponent(() => import("../../../../render.js")),
|
|
18
|
-
CodeEditor: defineAsyncComponent(
|
|
19
|
-
|
|
18
|
+
CodeEditor: defineAsyncComponent(
|
|
19
|
+
() => import("../../../../packages/tmgc2-share/src/components/TpfCodeEditor/code-editor.vue.js")
|
|
20
|
+
),
|
|
21
|
+
TpfModal: defineAsyncComponent(
|
|
22
|
+
() => import("../../../../packages/tmgc2-share/src/components/TpfModal/index.vue.js")
|
|
23
|
+
),
|
|
20
24
|
SvgIcon
|
|
21
25
|
},
|
|
22
26
|
props: {
|
|
@@ -513,9 +517,6 @@ const _hoisted_4 = { class: "right-toolbar-con" };
|
|
|
513
517
|
const _hoisted_5 = { class: "dialog-footer" };
|
|
514
518
|
const _hoisted_6 = { class: "dialog-footer" };
|
|
515
519
|
const _hoisted_7 = { class: "dialog-footer" };
|
|
516
|
-
const _hoisted_8 = { style: { "border": "1px solid #dcdfe6" } };
|
|
517
|
-
const _hoisted_9 = { class: "dialog-footer" };
|
|
518
|
-
const _hoisted_10 = { class: "dialog-footer" };
|
|
519
520
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
520
521
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
521
522
|
const _component_a_button = resolveComponent("a-button");
|
|
@@ -524,9 +525,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
524
525
|
const _component_a_tree = resolveComponent("a-tree");
|
|
525
526
|
const _component_a_drawer = resolveComponent("a-drawer");
|
|
526
527
|
const _component_VFormRender = resolveComponent("VFormRender");
|
|
527
|
-
const
|
|
528
|
+
const _component_TpfModal = resolveComponent("TpfModal");
|
|
528
529
|
const _component_a_alert = resolveComponent("a-alert");
|
|
529
530
|
const _component_code_editor = resolveComponent("code-editor");
|
|
531
|
+
const _component_a_modal = resolveComponent("a-modal");
|
|
532
|
+
const _component_CodeEditor = resolveComponent("CodeEditor");
|
|
530
533
|
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
531
534
|
const _component_a_tabs = resolveComponent("a-tabs");
|
|
532
535
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -697,7 +700,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
697
700
|
}), 256))
|
|
698
701
|
])
|
|
699
702
|
]),
|
|
700
|
-
createVNode(
|
|
703
|
+
createVNode(_component_TpfModal, {
|
|
701
704
|
title: _ctx.i18nt("designer.toolbar.preview"),
|
|
702
705
|
visible: $data.showPreviewDialogFlag,
|
|
703
706
|
"onUpdate:visible": _cache[8] || (_cache[8] = ($event) => $data.showPreviewDialogFlag = $event),
|
|
@@ -711,59 +714,57 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
711
714
|
width: "75%",
|
|
712
715
|
fullscreen: $options.layoutType === "H5" || $options.layoutType === "Pad"
|
|
713
716
|
}, {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
})
|
|
766
|
-
])
|
|
717
|
+
footerRight: withCtx(() => [
|
|
718
|
+
createVNode(_component_a_button, { onClick: $options.showData }, {
|
|
719
|
+
default: withCtx(() => _cache[24] || (_cache[24] = [
|
|
720
|
+
createTextVNode("数据回显")
|
|
721
|
+
])),
|
|
722
|
+
_: 1
|
|
723
|
+
}, 8, ["onClick"]),
|
|
724
|
+
createVNode(_component_a_button, {
|
|
725
|
+
type: "primary",
|
|
726
|
+
onClick: $options.getFormData
|
|
727
|
+
}, {
|
|
728
|
+
default: withCtx(() => [
|
|
729
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.getFormData")), 1)
|
|
730
|
+
]),
|
|
731
|
+
_: 1
|
|
732
|
+
}, 8, ["onClick"]),
|
|
733
|
+
createVNode(_component_a_button, {
|
|
734
|
+
type: "primary",
|
|
735
|
+
onClick: $options.resetForm
|
|
736
|
+
}, {
|
|
737
|
+
default: withCtx(() => [
|
|
738
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.resetForm")), 1)
|
|
739
|
+
]),
|
|
740
|
+
_: 1
|
|
741
|
+
}, 8, ["onClick"]),
|
|
742
|
+
createVNode(_component_a_button, {
|
|
743
|
+
type: "primary",
|
|
744
|
+
onClick: $options.setFormDisabled
|
|
745
|
+
}, {
|
|
746
|
+
default: withCtx(() => [
|
|
747
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.disableForm")), 1)
|
|
748
|
+
]),
|
|
749
|
+
_: 1
|
|
750
|
+
}, 8, ["onClick"]),
|
|
751
|
+
createVNode(_component_a_button, {
|
|
752
|
+
type: "primary",
|
|
753
|
+
onClick: $options.setFormEnabled
|
|
754
|
+
}, {
|
|
755
|
+
default: withCtx(() => [
|
|
756
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.enableForm")), 1)
|
|
757
|
+
]),
|
|
758
|
+
_: 1
|
|
759
|
+
}, 8, ["onClick"]),
|
|
760
|
+
createVNode(_component_a_button, {
|
|
761
|
+
onClick: _cache[7] || (_cache[7] = ($event) => $data.showPreviewDialogFlag = false)
|
|
762
|
+
}, {
|
|
763
|
+
default: withCtx(() => [
|
|
764
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.closePreview")), 1)
|
|
765
|
+
]),
|
|
766
|
+
_: 1
|
|
767
|
+
})
|
|
767
768
|
]),
|
|
768
769
|
default: withCtx(() => [
|
|
769
770
|
createElementVNode("div", null, [
|
|
@@ -804,7 +805,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
804
805
|
"destroy-on-close": true
|
|
805
806
|
}, {
|
|
806
807
|
footer: withCtx(() => [
|
|
807
|
-
createElementVNode("div",
|
|
808
|
+
createElementVNode("div", _hoisted_5, [
|
|
808
809
|
createVNode(_component_a_button, {
|
|
809
810
|
type: "primary",
|
|
810
811
|
onClick: $options.doJsonImport
|
|
@@ -854,7 +855,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
854
855
|
"destroy-on-close": true
|
|
855
856
|
}, {
|
|
856
857
|
footer: withCtx(() => [
|
|
857
|
-
createElementVNode("div",
|
|
858
|
+
createElementVNode("div", _hoisted_6, [
|
|
858
859
|
createVNode(_component_a_button, {
|
|
859
860
|
type: "primary",
|
|
860
861
|
class: "copy-json-btn",
|
|
@@ -892,56 +893,46 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
892
893
|
]),
|
|
893
894
|
_: 1
|
|
894
895
|
}, 8, ["title", "visible"]),
|
|
895
|
-
createVNode(
|
|
896
|
+
createVNode(_component_TpfModal, {
|
|
896
897
|
title: _ctx.i18nt("designer.hint.exportFormData"),
|
|
897
898
|
visible: $data.showFormDataDialogFlag,
|
|
898
899
|
"onUpdate:visible": _cache[17] || (_cache[17] = ($event) => $data.showFormDataDialogFlag = $event),
|
|
899
|
-
"
|
|
900
|
-
class: "nested-drag-dialog dialog-title-light-bg",
|
|
901
|
-
center: "",
|
|
902
|
-
"close-on-click-modal": false,
|
|
903
|
-
"close-on-press-escape": false,
|
|
904
|
-
"destroy-on-close": true,
|
|
905
|
-
"append-to-body": true
|
|
900
|
+
width: "1200px"
|
|
906
901
|
}, {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
})
|
|
934
|
-
])
|
|
902
|
+
footerRight: withCtx(() => [
|
|
903
|
+
createVNode(_component_a_button, {
|
|
904
|
+
type: "primary",
|
|
905
|
+
class: "copy-form-data-json-btn",
|
|
906
|
+
"data-clipboard-text": $data.formDataRawJson,
|
|
907
|
+
onClick: $options.copyFormDataJson
|
|
908
|
+
}, {
|
|
909
|
+
default: withCtx(() => [
|
|
910
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.copyFormData")), 1)
|
|
911
|
+
]),
|
|
912
|
+
_: 1
|
|
913
|
+
}, 8, ["data-clipboard-text", "onClick"]),
|
|
914
|
+
createVNode(_component_a_button, { onClick: $options.saveFormData }, {
|
|
915
|
+
default: withCtx(() => [
|
|
916
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.saveFormData")), 1)
|
|
917
|
+
]),
|
|
918
|
+
_: 1
|
|
919
|
+
}, 8, ["onClick"]),
|
|
920
|
+
createVNode(_component_a_button, {
|
|
921
|
+
onClick: _cache[16] || (_cache[16] = ($event) => $data.showFormDataDialogFlag = false)
|
|
922
|
+
}, {
|
|
923
|
+
default: withCtx(() => [
|
|
924
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.closePreview")), 1)
|
|
925
|
+
]),
|
|
926
|
+
_: 1
|
|
927
|
+
})
|
|
935
928
|
]),
|
|
936
929
|
default: withCtx(() => [
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}, null, 8, ["modelValue"])
|
|
944
|
-
])
|
|
930
|
+
createVNode(_component_CodeEditor, {
|
|
931
|
+
mode: "json",
|
|
932
|
+
readonly: true,
|
|
933
|
+
modelValue: $data.formDataJson,
|
|
934
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.formDataJson = $event)
|
|
935
|
+
}, null, 8, ["modelValue"])
|
|
945
936
|
]),
|
|
946
937
|
_: 1
|
|
947
938
|
}, 8, ["title", "visible"]),
|
|
@@ -960,7 +951,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
960
951
|
"destroy-on-close": true
|
|
961
952
|
}, {
|
|
962
953
|
footer: withCtx(() => [
|
|
963
|
-
createElementVNode("div",
|
|
954
|
+
createElementVNode("div", _hoisted_7, [
|
|
964
955
|
createVNode(_component_a_button, {
|
|
965
956
|
type: "primary",
|
|
966
957
|
class: "copy-vue2-sfc-btn",
|
|
@@ -1051,7 +1042,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1051
1042
|
}, 8, ["title", "visible"])) : createCommentVNode("", true)
|
|
1052
1043
|
]);
|
|
1053
1044
|
}
|
|
1054
|
-
const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
1045
|
+
const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4241259f"]]);
|
|
1055
1046
|
export {
|
|
1056
1047
|
ToolbarPanel as default
|
|
1057
1048
|
};
|
|
@@ -164,7 +164,9 @@ const _sfc_main = {
|
|
|
164
164
|
if (modifiedFlag) {
|
|
165
165
|
this.designer.emitHistoryChange();
|
|
166
166
|
}
|
|
167
|
-
this.$message.success(
|
|
167
|
+
this.$message.success(
|
|
168
|
+
this.i18nt("designer.hint.loadFormTemplateSuccess")
|
|
169
|
+
);
|
|
168
170
|
}).catch((error) => {
|
|
169
171
|
this.$message.error(
|
|
170
172
|
this.i18nt("designer.hint.loadFormTemplateFailed") + ":" + error
|
|
@@ -381,7 +383,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
381
383
|
])
|
|
382
384
|
]);
|
|
383
385
|
}
|
|
384
|
-
const WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
386
|
+
const WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-75f46b0a"]]);
|
|
385
387
|
export {
|
|
386
388
|
WidgetPanel as default
|
|
387
389
|
};
|
|
@@ -2,6 +2,7 @@ import i18n from "../../utils/i18n.js";
|
|
|
2
2
|
import zhCN from "ant-design-vue/es/locale/zh_CN";
|
|
3
3
|
import { defineAsyncComponent, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, createVNode, mergeProps, withDirectives, createElementBlock, createElementVNode } from "vue";
|
|
4
4
|
import _sfc_main$1 from "./SubmitButtonRender.vue.js";
|
|
5
|
+
import { TpfConfigProvider } from "tmgc2-share";
|
|
5
6
|
/* empty css */
|
|
6
7
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
8
|
const _sfc_main = {
|
|
@@ -47,6 +48,7 @@ const _sfc_main = {
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
components: {
|
|
51
|
+
TpfConfigProvider,
|
|
50
52
|
SubmitButtonRender: _sfc_main$1,
|
|
51
53
|
VFormRender: defineAsyncComponent(() => import("../../../render.js"))
|
|
52
54
|
},
|
|
@@ -206,12 +208,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
208
|
const _component_VFormRender = resolveComponent("VFormRender");
|
|
207
209
|
const _component_SubmitButtonRender = resolveComponent("SubmitButtonRender");
|
|
208
210
|
const _component_a_modal = resolveComponent("a-modal");
|
|
209
|
-
const
|
|
211
|
+
const _component_TpfConfigProvider = resolveComponent("TpfConfigProvider");
|
|
210
212
|
const _directive_loading = resolveDirective("loading");
|
|
211
|
-
return openBlock(), createBlock(
|
|
212
|
-
locale: $options.elLocale,
|
|
213
|
-
input: { autocomplete: "off" }
|
|
214
|
-
}, {
|
|
213
|
+
return openBlock(), createBlock(_component_TpfConfigProvider, null, {
|
|
215
214
|
default: withCtx(() => [
|
|
216
215
|
createVNode(_component_a_modal, mergeProps({
|
|
217
216
|
class: "tpf-model design-model",
|
|
@@ -268,7 +267,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
268
267
|
}, 16, ["transitionName", "maskTransitionName", "title", "bodyStyle", "visible", "width", "mask", "maskClosable", "keyboard", "onCancel"])
|
|
269
268
|
]),
|
|
270
269
|
_: 1
|
|
271
|
-
}
|
|
270
|
+
});
|
|
272
271
|
}
|
|
273
272
|
const DynamicDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
274
273
|
export {
|
|
@@ -43,6 +43,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43
43
|
visible: $data.showDataSourceDialogFlag,
|
|
44
44
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => $data.showDataSourceDialogFlag = $event),
|
|
45
45
|
width: 520,
|
|
46
|
+
"z-index": "800",
|
|
46
47
|
"destroy-on-close": true,
|
|
47
48
|
"append-to-body": true,
|
|
48
49
|
"close-on-click-modal": false,
|
|
@@ -435,20 +436,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
436
|
_: 1
|
|
436
437
|
}, 8, ["title", "visible"]),
|
|
437
438
|
createVNode(_component_CodeModalEditor, {
|
|
438
|
-
modelValue: $props.optionModel.dataReqHandlerCode,
|
|
439
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $props.optionModel.dataReqHandlerCode = $event),
|
|
440
439
|
ref: "CodeReqModalEditorRef",
|
|
441
|
-
"event-header":
|
|
440
|
+
"event-header": "data",
|
|
441
|
+
modelValue: $props.optionModel.dataReqHandlerCode,
|
|
442
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $props.optionModel.dataReqHandlerCode = $event)
|
|
442
443
|
}, null, 8, ["modelValue"]),
|
|
443
444
|
createVNode(_component_CodeModalEditor, {
|
|
444
445
|
modelValue: $props.optionModel.dataHandlerCode,
|
|
445
446
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $props.optionModel.dataHandlerCode = $event),
|
|
446
447
|
ref: "CodeModalEditorRef",
|
|
447
|
-
"
|
|
448
|
+
"fn-params": "data"
|
|
448
449
|
}, null, 8, ["modelValue"])
|
|
449
450
|
], 64);
|
|
450
451
|
}
|
|
451
|
-
const HttpEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
452
|
+
const HttpEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9bdddc38"]]);
|
|
452
453
|
export {
|
|
453
454
|
HttpEditor as default
|
|
454
455
|
};
|
|
@@ -2,7 +2,7 @@ import i18n from "../../utils/i18n.js";
|
|
|
2
2
|
import CodeEditor from "../code-editor/index.vue.js";
|
|
3
3
|
import { isArray } from "lodash-es";
|
|
4
4
|
import { getHttp } from "../../utils/request/http.js";
|
|
5
|
-
import
|
|
5
|
+
import _sfc_main$1 from "../code-editor/code-modal-editor.vue.js";
|
|
6
6
|
import { getLocat, replaceVars } from "@kp-ui/tool";
|
|
7
7
|
const _sfc_main = {
|
|
8
8
|
name: "http-editor",
|
|
@@ -11,7 +11,7 @@ const _sfc_main = {
|
|
|
11
11
|
inject: ["getGlobalDsv"],
|
|
12
12
|
components: {
|
|
13
13
|
CodeEditor,
|
|
14
|
-
CodeModalEditor
|
|
14
|
+
CodeModalEditor: _sfc_main$1
|
|
15
15
|
},
|
|
16
16
|
props: {
|
|
17
17
|
optionModel: Object,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from "vue";
|
|
2
2
|
import i18n, { useI18n } from "../../utils/i18n.js";
|
|
3
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../code-editor/code-modal-editor.vue.js";
|
|
4
4
|
import { generateId } from "../../utils/util.js";
|
|
5
5
|
const _sfc_main = defineComponent({
|
|
6
6
|
name: "ActionButtonList",
|
|
@@ -14,7 +14,7 @@ const _sfc_main = defineComponent({
|
|
|
14
14
|
required: true
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
components: { CodeModalEditor },
|
|
17
|
+
components: { CodeModalEditor: _sfc_main$1 },
|
|
18
18
|
mixins: [i18n],
|
|
19
19
|
emits: ["update:data"],
|
|
20
20
|
setup(props, { emit }) {
|
|
@@ -40,9 +40,6 @@ const useDataTableMixin = {
|
|
|
40
40
|
...item,
|
|
41
41
|
...this.handleColumnItem(item)
|
|
42
42
|
}));
|
|
43
|
-
console.log({
|
|
44
|
-
centerColumns
|
|
45
|
-
});
|
|
46
43
|
const rightFixedColumns = [];
|
|
47
44
|
if (optins.showButtonsColumn) {
|
|
48
45
|
const operationButtons = optins.operationButtons ?? [];
|
|
@@ -111,6 +108,7 @@ const useDataTableMixin = {
|
|
|
111
108
|
if (newVal && newVal.length) {
|
|
112
109
|
console.log("DataTable dataSource changed:", newVal);
|
|
113
110
|
this.widget.options.dataSource = newVal;
|
|
111
|
+
console.log(this.getFormRef());
|
|
114
112
|
(_a = this.getFormRef()) == null ? void 0 : _a.setTableValue(this.widget.options.name, newVal);
|
|
115
113
|
}
|
|
116
114
|
},
|
|
@@ -287,8 +285,13 @@ const useDataTableMixin = {
|
|
|
287
285
|
const res = omit(item, ["customRender"]);
|
|
288
286
|
const customRenderFn = item.customRender;
|
|
289
287
|
item.minWidth = 50;
|
|
290
|
-
item.maxWidth =
|
|
291
|
-
|
|
288
|
+
item.maxWidth = 1200;
|
|
289
|
+
if (item.isAutoWidth) {
|
|
290
|
+
item.width = null;
|
|
291
|
+
delete item.width;
|
|
292
|
+
} else {
|
|
293
|
+
item.width = isNaN(Number(item.width)) ? item.width : Number(item.width);
|
|
294
|
+
}
|
|
292
295
|
if (!customRenderFn) return item;
|
|
293
296
|
return {
|
|
294
297
|
...res,
|