@kp-ui/lowcode 2.15.0-beta.7 → 2.16.0-alpha.10
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/install.js +17 -15
- package/install.js.map +1 -1
- package/package.json +4 -7
- package/src/components/FormRender/FormContainer.vue.js +55 -0
- package/src/components/FormRender/FormContainer.vue.js.map +1 -0
- package/src/components/FormRender/FormContainer.vue2.js +5 -0
- package/src/components/FormRender/FormContainer.vue2.js.map +1 -0
- package/src/components/FormRender/index.vue.js +2 -2
- package/src/components/FormRender/index.vue2.js +28 -30
- package/src/components/FormRender/index.vue2.js.map +1 -1
- package/src/components/FormRender/useFormContext.js +116 -109
- package/src/components/FormRender/useFormContext.js.map +1 -1
- package/src/components/{designer.js → form-designer/designer.js} +76 -71
- package/src/components/form-designer/designer.js.map +1 -0
- package/src/components/form-designer/form-widget/RenderDesignerWigetList.vue.js +1 -1
- package/src/components/form-designer/form-widget/RenderDesignerWigetList.vue.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/useTableWidget.js +143 -138
- package/src/components/form-designer/form-widget/container-widget/useTableWidget.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-box-widget.vue.js +2 -2
- package/src/components/form-designer/form-widget/container-widget/vf-box-widget.vue2.js +18 -19
- package/src/components/form-designer/form-widget/container-widget/vf-box-widget.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +2 -2
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue2.js +22 -16
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/field-widget/bpmn-editor-widget copy.vue.js +8 -0
- package/src/components/form-designer/form-widget/field-widget/bpmn-editor-widget copy.vue.js.map +1 -0
- package/src/components/form-designer/form-widget/field-widget/bpmn-editor-widget copy.vue2.js +58 -0
- package/src/components/form-designer/form-widget/field-widget/bpmn-editor-widget copy.vue2.js.map +1 -0
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue2.js +66 -54
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/field-widget/index.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/index.js.map +1 -1
- package/src/components/form-designer/form-widget/field-widget/rich-editor-widget.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/field-widget/useField.js +140 -140
- package/src/components/form-designer/form-widget/field-widget/useField.js.map +1 -1
- package/src/components/form-designer/form-widget/index.vue.js +2 -2
- package/src/components/form-designer/form-widget/index.vue2.js +56 -47
- package/src/components/form-designer/form-widget/index.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/useFormDesigner.js +34 -0
- package/src/components/form-designer/form-widget/useFormDesigner.js.map +1 -0
- package/src/components/form-designer/index.vue.js +77 -74
- package/src/components/form-designer/index.vue.js.map +1 -1
- package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
- package/src/components/form-designer/setting-panel/form-setting.vue2.js +100 -126
- package/src/components/form-designer/setting-panel/form-setting.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/index.vue.js +1 -1
- package/src/components/form-designer/setting-panel/index.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/index.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/option-items-setting.vue.js +2 -2
- package/src/components/form-designer/setting-panel/option-items-setting.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/option-items-setting.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/boxModel-editor.vue.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/boxModel-editor.vue2.js +255 -201
- package/src/components/form-designer/setting-panel/property-editor/boxModel-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +45 -39
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-customClass-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-customClass-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue.js +32 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue.js +32 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/height-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue.js +5 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue2.js +38 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue2.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue.js +5 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue2.js +38 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue2.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue2.js +10 -10
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/customClass-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/customClass-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onTableChange-editor.vue2.js +4 -4
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onTableChange-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/field-slider/range-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/field-slider/range-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/field-switch/switch-defaultValue-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/field-switch/switch-defaultValue-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/index.js +178 -176
- package/src/components/form-designer/setting-panel/property-editor/index.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue2.js +29 -18
- package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/multiple-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/rightSlotCss-editor.vue2.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/rightSlotCss-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/type-editor.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/useEditor.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/useEditor.js.map +1 -1
- package/src/components/form-designer/setting-panel/propertyRegister.js +12 -12
- package/src/components/form-designer/setting-panel/propertyRegister.js.map +1 -1
- package/src/components/form-designer/toolbar-panel/PreviewDialog.vue.js +1 -1
- package/src/components/form-designer/toolbar-panel/PreviewDialog.vue.js.map +1 -1
- package/src/components/form-designer/toolbar-panel/index.vue.js +2 -2
- package/src/components/form-designer/toolbar-panel/index.vue2.js +177 -137
- package/src/components/form-designer/toolbar-panel/index.vue2.js.map +1 -1
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue.js +50 -0
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue.js.map +1 -0
- package/src/components/form-designer/widget-panel/basicFields/input.js +4 -2
- package/src/components/form-designer/widget-panel/basicFields/input.js.map +1 -1
- package/src/components/form-designer/widget-panel/containers/vf-box.js +1 -4
- package/src/components/form-designer/widget-panel/containers/vf-box.js.map +1 -1
- package/src/components/form-designer/widget-panel/containers/vf-dialog.js +34 -10
- package/src/components/form-designer/widget-panel/containers/vf-dialog.js.map +1 -1
- package/src/components/form-designer/widget-panel/index.vue.js +2 -2
- package/src/components/form-designer/widget-panel/index.vue2.js +34 -74
- package/src/components/form-designer/widget-panel/index.vue2.js.map +1 -1
- package/src/components/form-render/container-items/data-table-widget.vue.js +3 -3
- package/src/components/form-render/container-items/data-table-widget.vue2.js +65 -64
- package/src/components/form-render/container-items/data-table-widget.vue2.js.map +1 -1
- package/src/components/form-render/dynamic-dialog.vue.js +79 -83
- package/src/components/form-render/dynamic-dialog.vue.js.map +1 -1
- package/src/components/public/ActionButtonListDialog.vue.js +2 -2
- package/src/components/public/ActionButtonListDialog.vue2.js +117 -96
- package/src/components/public/ActionButtonListDialog.vue2.js.map +1 -1
- package/src/components/public/ActionButtonListRender.vue.js +17 -15
- package/src/components/public/ActionButtonListRender.vue.js.map +1 -1
- package/src/components/public/ActionButtonListRender.vue2.js +48 -38
- package/src/components/public/ActionButtonListRender.vue2.js.map +1 -1
- package/src/components/public/ConfigView/CustomPageRender.vue.js +58 -0
- package/src/components/public/ConfigView/CustomPageRender.vue.js.map +1 -0
- package/src/components/public/ConfigView/CustomPageRender.vue2.js +5 -0
- package/src/components/public/ConfigView/CustomPageRender.vue2.js.map +1 -0
- package/src/components/public/CustomerModal/CustomerModal.vue2.js +63 -56
- package/src/components/public/CustomerModal/CustomerModal.vue2.js.map +1 -1
- package/src/constants/EditorTypeEnum.js +1 -1
- package/src/constants/EditorTypeEnum.js.map +1 -1
- package/src/constants/WidgetTypeEnum.js +3 -4
- package/src/constants/WidgetTypeEnum.js.map +1 -1
- package/src/hooks/useDataHttp.js +8 -7
- package/src/hooks/useDataHttp.js.map +1 -1
- package/src/hooks/useLowcode.js.map +1 -1
- package/src/lang/en-US.js +3 -1
- package/src/lang/en-US.js.map +1 -1
- package/src/lang/zh-CN.js +5 -5
- package/src/lang/zh-CN.js.map +1 -1
- package/src/utils/util.js +26 -35
- package/src/utils/util.js.map +1 -1
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/src/components/FormRender/FormContainer.js +0 -52
- package/src/components/FormRender/FormContainer.js.map +0 -1
- package/src/components/bi-widget/echartBar/echart-bar-widget.vue.js +0 -8
- package/src/components/bi-widget/echartBar/echart-bar-widget.vue.js.map +0 -1
- package/src/components/bi-widget/echartBar/echart-bar-widget.vue2.js +0 -43
- package/src/components/bi-widget/echartBar/echart-bar-widget.vue2.js.map +0 -1
- package/src/components/bi-widget/echartBar/echart-bar.js +0 -35
- package/src/components/bi-widget/echartBar/echart-bar.js.map +0 -1
- package/src/components/bi-widget/index.js +0 -13
- package/src/components/bi-widget/index.js.map +0 -1
- package/src/components/designer.js.map +0 -1
- package/src/components/form-designer/form-widget/RenderDesignerPC.vue.js +0 -26
- package/src/components/form-designer/form-widget/RenderDesignerPC.vue.js.map +0 -1
- package/src/components/form-designer/form-widget/RenderDesignerPC.vue2.js +0 -5
- package/src/components/form-designer/form-widget/RenderDesignerPC.vue2.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/RenderDesignerBI.vue.js +0 -8
- package/src/components/form-designer/form-widget/bi/RenderDesignerBI.vue.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/RenderDesignerBI.vue2.js +0 -68
- package/src/components/form-designer/form-widget/bi/RenderDesignerBI.vue2.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/RenderDesignerBIWigetList.vue.js +0 -8
- package/src/components/form-designer/form-widget/bi/RenderDesignerBIWigetList.vue.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/RenderDesignerBIWigetList.vue2.js +0 -136
- package/src/components/form-designer/form-widget/bi/RenderDesignerBIWigetList.vue2.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/WidgetContextMenu.vue.js +0 -8
- package/src/components/form-designer/form-widget/bi/WidgetContextMenu.vue.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/WidgetContextMenu.vue2.js +0 -153
- package/src/components/form-designer/form-widget/bi/WidgetContextMenu.vue2.js.map +0 -1
- package/src/components/form-designer/form-widget/bi/useRuler.js +0 -66
- package/src/components/form-designer/form-widget/bi/useRuler.js.map +0 -1
- package/src/components/form-designer/setting-panel/panel/PanelItemDrag.vue.js +0 -51
- package/src/components/form-designer/setting-panel/panel/PanelItemDrag.vue.js.map +0 -1
- package/src/components/form-designer/setting-panel/panel/PanelItemDragForBI.vue.js +0 -51
- package/src/components/form-designer/setting-panel/panel/PanelItemDragForBI.vue.js.map +0 -1
- package/src/components/form-designer/setting-panel/panel/PanelItemDragForBI.vue2.js +0 -5
- package/src/components/form-designer/setting-panel/panel/PanelItemDragForBI.vue2.js.map +0 -1
- package/src/components/form-designer/setting-panel/property-editor/dsEnabled-editor.vue.js +0 -5
- package/src/components/form-designer/setting-panel/property-editor/dsEnabled-editor.vue.js.map +0 -1
- package/src/components/form-designer/setting-panel/property-editor/dsEnabled-editor.vue2.js +0 -71
- package/src/components/form-designer/setting-panel/property-editor/dsEnabled-editor.vue2.js.map +0 -1
- package/src/components/form-designer/setting-panel/property-editor/echart-bar-editor.vue.js +0 -5
- package/src/components/form-designer/setting-panel/property-editor/echart-bar-editor.vue.js.map +0 -1
- package/src/components/form-designer/setting-panel/property-editor/echart-bar-editor.vue2.js +0 -81
- package/src/components/form-designer/setting-panel/property-editor/echart-bar-editor.vue2.js.map +0 -1
- package/src/components/form-render/SubmitButtonRender.vue.js +0 -92
- package/src/components/form-render/SubmitButtonRender.vue.js.map +0 -1
- package/src/components/form-render/SubmitButtonRender.vue2.js +0 -5
- package/src/components/form-render/SubmitButtonRender.vue2.js.map +0 -1
- package/src/constants/LayoutTypeEnum.js +0 -5
- package/src/constants/LayoutTypeEnum.js.map +0 -1
- package/src/hooks/useDesigner.js +0 -51
- package/src/hooks/useDesigner.js.map +0 -1
- /package/src/components/form-designer/{setting-panel/panel → widget-panel}/PanelItemDrag.vue2.js +0 -0
- /package/src/components/form-designer/{setting-panel/panel → widget-panel}/PanelItemDrag.vue2.js.map +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as z, mergeModels as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import
|
|
4
|
-
import { generateId as
|
|
1
|
+
import { defineComponent as z, mergeModels as V, useModel as x, ref as g, createVNode as l, resolveComponent as n, createTextVNode as o, computed as D, createElementBlock as R, openBlock as U, Fragment as S, createElementVNode as E, unref as h, withCtx as H, toDisplayString as T, isVNode as I } from "vue";
|
|
2
|
+
import { useI18n as M } from "../../utils/i18n.js";
|
|
3
|
+
import O from "../code-editor/code-modal-editor.vue.js";
|
|
4
|
+
import { generateId as w } from "../../utils/util.js";
|
|
5
5
|
import { TpfSelectIcon as L, useVxeTable as N, Table as j } from "tmgc2-share";
|
|
6
|
-
const
|
|
6
|
+
const F = {
|
|
7
7
|
class: "add-btn"
|
|
8
8
|
};
|
|
9
|
-
function r(
|
|
10
|
-
return typeof
|
|
9
|
+
function r(u) {
|
|
10
|
+
return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !I(u);
|
|
11
11
|
}
|
|
12
12
|
const P = /* @__PURE__ */ z({
|
|
13
13
|
__name: "ActionButtonListDialog",
|
|
14
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ V({
|
|
15
15
|
parmas: {
|
|
16
16
|
default: ""
|
|
17
17
|
}
|
|
@@ -22,106 +22,107 @@ const P = /* @__PURE__ */ z({
|
|
|
22
22
|
dataModifiers: {}
|
|
23
23
|
}),
|
|
24
24
|
emits: ["update:data"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
i18nt:
|
|
28
|
-
} =
|
|
25
|
+
setup(u) {
|
|
26
|
+
const d = x(u, "data"), {
|
|
27
|
+
i18nt: a
|
|
28
|
+
} = M(), c = g(), b = g(), p = g(), m = [{
|
|
29
29
|
field: "seq",
|
|
30
30
|
type: "seq",
|
|
31
31
|
title: "序号",
|
|
32
|
+
fixed: "left",
|
|
32
33
|
dragSort: !0
|
|
33
34
|
}, {
|
|
34
35
|
field: "label",
|
|
35
|
-
title:
|
|
36
|
+
title: a("designer.setting.operationButtonLabel"),
|
|
36
37
|
width: 100,
|
|
37
38
|
slots: {
|
|
38
39
|
default({
|
|
39
40
|
row: e
|
|
40
41
|
}) {
|
|
41
|
-
return l(
|
|
42
|
+
return l(n("a-input"), {
|
|
42
43
|
value: e.label,
|
|
43
44
|
"onUpdate:value": (t) => e.label = t,
|
|
44
|
-
placeholder:
|
|
45
|
+
placeholder: a("designer.setting.operationButtonLabel")
|
|
45
46
|
}, null);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
}, {
|
|
49
50
|
field: "type",
|
|
50
|
-
title:
|
|
51
|
+
title: a("designer.setting.operationButtonType"),
|
|
51
52
|
width: 120,
|
|
52
53
|
slots: {
|
|
53
54
|
default({
|
|
54
55
|
row: e
|
|
55
56
|
}) {
|
|
56
|
-
return l(
|
|
57
|
+
return l(n("a-select"), {
|
|
57
58
|
value: e.type,
|
|
58
59
|
"onUpdate:value": (t) => e.type = t,
|
|
59
|
-
placeholder:
|
|
60
|
+
placeholder: a("designer.setting.operationButtonType"),
|
|
60
61
|
style: "width: 100%"
|
|
61
62
|
}, {
|
|
62
|
-
default: () => [l(
|
|
63
|
+
default: () => [l(n("a-select-option"), {
|
|
63
64
|
value: "primary"
|
|
64
65
|
}, {
|
|
65
|
-
default: () => [
|
|
66
|
-
}), l(
|
|
66
|
+
default: () => [o("primary")]
|
|
67
|
+
}), l(n("a-select-option"), {
|
|
67
68
|
value: "dashed"
|
|
68
69
|
}, {
|
|
69
|
-
default: () => [
|
|
70
|
-
}), l(
|
|
70
|
+
default: () => [o("dashed")]
|
|
71
|
+
}), l(n("a-select-option"), {
|
|
71
72
|
value: "text"
|
|
72
73
|
}, {
|
|
73
|
-
default: () => [
|
|
74
|
-
}), l(
|
|
74
|
+
default: () => [o("text")]
|
|
75
|
+
}), l(n("a-select-option"), {
|
|
75
76
|
value: "link"
|
|
76
77
|
}, {
|
|
77
|
-
default: () => [
|
|
78
|
-
}), l(
|
|
78
|
+
default: () => [o("link")]
|
|
79
|
+
}), l(n("a-select-option"), {
|
|
79
80
|
value: "default"
|
|
80
81
|
}, {
|
|
81
|
-
default: () => [
|
|
82
|
+
default: () => [o("default")]
|
|
82
83
|
})]
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
}, {
|
|
87
88
|
field: "size",
|
|
88
|
-
title:
|
|
89
|
+
title: a("designer.setting.operationButtonSize"),
|
|
89
90
|
width: 100,
|
|
90
91
|
slots: {
|
|
91
92
|
default({
|
|
92
93
|
row: e
|
|
93
94
|
}) {
|
|
94
|
-
return l(
|
|
95
|
+
return l(n("a-select"), {
|
|
95
96
|
value: e.size,
|
|
96
97
|
"onUpdate:value": (t) => e.size = t,
|
|
97
|
-
placeholder:
|
|
98
|
+
placeholder: a("designer.setting.size"),
|
|
98
99
|
style: "width: 100%"
|
|
99
100
|
}, {
|
|
100
|
-
default: () => [l(
|
|
101
|
+
default: () => [l(n("a-select-option"), {
|
|
101
102
|
value: "default"
|
|
102
103
|
}, {
|
|
103
|
-
default: () => [
|
|
104
|
-
}), l(
|
|
104
|
+
default: () => [o("default")]
|
|
105
|
+
}), l(n("a-select-option"), {
|
|
105
106
|
value: "small"
|
|
106
107
|
}, {
|
|
107
|
-
default: () => [
|
|
108
|
-
}), l(
|
|
108
|
+
default: () => [o("small")]
|
|
109
|
+
}), l(n("a-select-option"), {
|
|
109
110
|
value: "large"
|
|
110
111
|
}, {
|
|
111
|
-
default: () => [
|
|
112
|
+
default: () => [o("large")]
|
|
112
113
|
})]
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
}, {
|
|
117
118
|
field: "ghost",
|
|
118
|
-
title:
|
|
119
|
+
title: a("designer.setting.operationButtonGhost"),
|
|
119
120
|
width: 80,
|
|
120
121
|
slots: {
|
|
121
122
|
default({
|
|
122
123
|
row: e
|
|
123
124
|
}) {
|
|
124
|
-
return l(
|
|
125
|
+
return l(n("a-switch"), {
|
|
125
126
|
checkedValue: 1,
|
|
126
127
|
unCheckedValue: 0,
|
|
127
128
|
checked: e.ghost,
|
|
@@ -131,13 +132,13 @@ const P = /* @__PURE__ */ z({
|
|
|
131
132
|
}
|
|
132
133
|
}, {
|
|
133
134
|
field: "danger",
|
|
134
|
-
title:
|
|
135
|
+
title: a("designer.setting.danger"),
|
|
135
136
|
width: 100,
|
|
136
137
|
slots: {
|
|
137
138
|
default({
|
|
138
139
|
row: e
|
|
139
140
|
}) {
|
|
140
|
-
return l(
|
|
141
|
+
return l(n("a-switch"), {
|
|
141
142
|
checkedValue: 1,
|
|
142
143
|
unCheckedValue: 0,
|
|
143
144
|
checked: e.danger,
|
|
@@ -147,7 +148,7 @@ const P = /* @__PURE__ */ z({
|
|
|
147
148
|
}
|
|
148
149
|
}, {
|
|
149
150
|
field: "icon",
|
|
150
|
-
title:
|
|
151
|
+
title: a("designer.setting.buttonIcon"),
|
|
151
152
|
width: 120,
|
|
152
153
|
slots: {
|
|
153
154
|
default({
|
|
@@ -161,98 +162,119 @@ const P = /* @__PURE__ */ z({
|
|
|
161
162
|
}
|
|
162
163
|
}, {
|
|
163
164
|
field: "onHidden",
|
|
164
|
-
title:
|
|
165
|
+
title: a("designer.setting.operationButtonHidden"),
|
|
165
166
|
width: 100,
|
|
166
167
|
slots: {
|
|
167
168
|
default({
|
|
168
169
|
row: e,
|
|
169
170
|
rowIndex: t
|
|
170
171
|
}) {
|
|
171
|
-
let
|
|
172
|
-
return l(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
172
|
+
let i;
|
|
173
|
+
return l(n("a-space"), null, {
|
|
174
|
+
default: () => [l(n("a-switch"), {
|
|
175
|
+
checkedValue: 1,
|
|
176
|
+
unCheckedValue: 0,
|
|
177
|
+
disabled: !!e.onHidden,
|
|
178
|
+
checked: e.hidden,
|
|
179
|
+
"onUpdate:checked": (s) => e.hidden = s
|
|
180
|
+
}, null), l(n("a-button"), {
|
|
181
|
+
class: [{
|
|
182
|
+
"button-text-highlight": !!e.onHidden
|
|
183
|
+
}],
|
|
184
|
+
onClick: () => f("onHidden", e, t),
|
|
185
|
+
disabled: e.hidden,
|
|
186
|
+
size: "small"
|
|
187
|
+
}, r(i = a("designer.setting.operationButtonHidden")) ? i : {
|
|
188
|
+
default: () => [i]
|
|
189
|
+
})]
|
|
180
190
|
});
|
|
181
191
|
}
|
|
182
192
|
}
|
|
183
193
|
}, {
|
|
184
194
|
field: "onDisabled",
|
|
185
|
-
title:
|
|
195
|
+
title: a("designer.setting.operationButtonDisabled"),
|
|
186
196
|
width: 100,
|
|
187
197
|
slots: {
|
|
188
198
|
default({
|
|
189
199
|
row: e,
|
|
190
200
|
rowIndex: t
|
|
191
201
|
}) {
|
|
192
|
-
let
|
|
193
|
-
return l(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
let i;
|
|
203
|
+
return l(n("a-space"), null, {
|
|
204
|
+
default: () => [l(n("a-switch"), {
|
|
205
|
+
checkedValue: 1,
|
|
206
|
+
unCheckedValue: 0,
|
|
207
|
+
disabled: !!e.onDisabled,
|
|
208
|
+
checked: e.disabled,
|
|
209
|
+
"onUpdate:checked": (s) => e.disabled = s
|
|
210
|
+
}, null), l(n("a-button"), {
|
|
211
|
+
class: [{
|
|
212
|
+
"button-text-highlight": !!e.onDisabled
|
|
213
|
+
}],
|
|
214
|
+
onClick: () => f("onDisabled", e, t),
|
|
215
|
+
disabled: e.disabled,
|
|
216
|
+
size: "small"
|
|
217
|
+
}, r(i = a("designer.setting.operationButtonDisabled")) ? i : {
|
|
218
|
+
default: () => [i]
|
|
219
|
+
})]
|
|
201
220
|
});
|
|
202
221
|
}
|
|
203
222
|
}
|
|
204
223
|
}, {
|
|
205
224
|
field: "onClick",
|
|
206
|
-
title:
|
|
225
|
+
title: a("designer.setting.operationButtonClick"),
|
|
207
226
|
width: 100,
|
|
208
227
|
slots: {
|
|
209
228
|
default({
|
|
210
229
|
row: e,
|
|
211
230
|
rowIndex: t
|
|
212
231
|
}) {
|
|
213
|
-
let
|
|
214
|
-
return l(
|
|
232
|
+
let i;
|
|
233
|
+
return l(n("a-button"), {
|
|
215
234
|
class: [{
|
|
216
235
|
"button-text-highlight": !!e.onClick
|
|
217
236
|
}],
|
|
218
|
-
onClick: () =>
|
|
237
|
+
onClick: () => f("onClick", e, t),
|
|
219
238
|
size: "small"
|
|
220
|
-
}, r(
|
|
221
|
-
default: () => [
|
|
239
|
+
}, r(i = a("designer.setting.operationButtonClick")) ? i : {
|
|
240
|
+
default: () => [i]
|
|
222
241
|
});
|
|
223
242
|
}
|
|
224
243
|
}
|
|
225
244
|
}, {
|
|
226
245
|
field: "action",
|
|
227
|
-
title:
|
|
246
|
+
title: a("designer.setting.operationButtonAction"),
|
|
228
247
|
width: 80,
|
|
248
|
+
align: "center",
|
|
249
|
+
fixed: "right",
|
|
229
250
|
slots: {
|
|
230
251
|
default({
|
|
231
252
|
rowIndex: e
|
|
232
253
|
}) {
|
|
233
254
|
let t;
|
|
234
|
-
return l(
|
|
255
|
+
return l(n("a-button"), {
|
|
235
256
|
type: "link",
|
|
236
257
|
onClick: () => y(e),
|
|
237
258
|
size: "small"
|
|
238
|
-
}, r(t =
|
|
259
|
+
}, r(t = a("designer.setting.delete")) ? t : {
|
|
239
260
|
default: () => [t]
|
|
240
261
|
});
|
|
241
262
|
}
|
|
242
263
|
}
|
|
243
|
-
}],
|
|
264
|
+
}], v = D(() => ({
|
|
244
265
|
columnConfig: {
|
|
245
266
|
resizable: !0
|
|
246
267
|
},
|
|
247
268
|
rowConfig: {
|
|
269
|
+
keyField: "name",
|
|
248
270
|
drag: !0
|
|
249
271
|
},
|
|
250
272
|
cellConfig: {
|
|
251
273
|
height: 50
|
|
252
274
|
},
|
|
253
|
-
data:
|
|
275
|
+
data: d.value,
|
|
254
276
|
size: "mini",
|
|
255
|
-
columns:
|
|
277
|
+
columns: m,
|
|
256
278
|
clickRowCheck: !1
|
|
257
279
|
})), {
|
|
258
280
|
tableRef: k,
|
|
@@ -264,49 +286,48 @@ const P = /* @__PURE__ */ z({
|
|
|
264
286
|
events: {
|
|
265
287
|
rowDragend() {
|
|
266
288
|
var e;
|
|
267
|
-
|
|
289
|
+
d.value = ((e = k.value) == null ? void 0 : e.getFullData()) || [];
|
|
268
290
|
}
|
|
269
291
|
},
|
|
270
292
|
callbacks: {}
|
|
271
293
|
}), y = (e) => {
|
|
272
|
-
console.log(e),
|
|
273
|
-
},
|
|
274
|
-
var
|
|
275
|
-
|
|
294
|
+
console.log(e), d.value.splice(e, 1);
|
|
295
|
+
}, f = (e, t, i) => {
|
|
296
|
+
var s;
|
|
297
|
+
p.value = i, c.value = e, console.log({
|
|
276
298
|
code: t[e]
|
|
277
|
-
}), (
|
|
299
|
+
}), (s = b.value) == null || s.open(t[e]);
|
|
278
300
|
}, B = (e) => {
|
|
279
|
-
console.log(
|
|
301
|
+
console.log(d.value, p.value, c.value), d.value[p.value][c.value] = e;
|
|
280
302
|
}, _ = () => {
|
|
281
|
-
|
|
282
|
-
name: "btn" +
|
|
303
|
+
d.value.push({
|
|
304
|
+
name: "btn" + w(),
|
|
283
305
|
label: "new btn",
|
|
284
306
|
type: "primary",
|
|
285
|
-
size: "
|
|
307
|
+
size: "default",
|
|
286
308
|
ghost: 0,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
disabled: !1,
|
|
309
|
+
hidden: 0,
|
|
310
|
+
disabled: 0,
|
|
290
311
|
onClick: ""
|
|
291
312
|
});
|
|
292
313
|
};
|
|
293
314
|
return (e, t) => {
|
|
294
|
-
const
|
|
295
|
-
return
|
|
296
|
-
"table-props":
|
|
297
|
-
onRegister:
|
|
298
|
-
}, null, 8, ["table-props", "onRegister"]), E("div",
|
|
315
|
+
const i = n("a-button");
|
|
316
|
+
return U(), R(S, null, [l(h(j), {
|
|
317
|
+
"table-props": v.value,
|
|
318
|
+
onRegister: h(C)
|
|
319
|
+
}, null, 8, ["table-props", "onRegister"]), E("div", F, [l(i, {
|
|
299
320
|
type: "primary",
|
|
300
321
|
size: "default",
|
|
301
322
|
onClick: _
|
|
302
323
|
}, {
|
|
303
|
-
default:
|
|
324
|
+
default: H(() => [o(T(h(a)("designer.setting.addOperationButton")), 1)]),
|
|
304
325
|
_: 1
|
|
305
|
-
})]), l(
|
|
326
|
+
})]), l(O, {
|
|
306
327
|
ref_key: "codeModalEditorRef",
|
|
307
|
-
ref:
|
|
328
|
+
ref: b,
|
|
308
329
|
onSave: B,
|
|
309
|
-
"event-header": `${
|
|
330
|
+
"event-header": `${c.value}(${e.parmas}){`
|
|
310
331
|
}, null, 8, ["event-header"])], 64);
|
|
311
332
|
};
|
|
312
333
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButtonListDialog.vue2.js","sources":["../../../../src/components/public/ActionButtonListDialog.vue"],"sourcesContent":["<template>\n <Table :table-props=\"tableProps\" @register=\"register\" />\n <div class=\"add-btn\">\n <a-button type=\"primary\" size=\"default\" @click=\"addOperationButton\">\n {{ i18nt('designer.setting.addOperationButton') }}\n </a-button>\n </div>\n\n <CodeModalEditor\n ref=\"codeModalEditorRef\"\n @save=\"saveColumnRender\"\n :event-header=\"`${currentEditBtn}(${parmas}){`\"\n />\n</template>\n\n<script setup lang=\"tsx\">\n import { ref, computed } from 'vue';\n import { useI18n } from '@/utils/i18n';\n import CodeModalEditor from '@/components/code-editor/code-modal-editor.vue';\n import { generateId } from '@/utils/util';\n import { TpfSelectIcon, Table, useVxeTable, ImeTableProps } from 'tmgc2-share';\n import { VxeGridPropTypes } from 'vxe-table';\n\n // Props\n withDefaults(\n defineProps<{\n parmas?: string;\n }>(),\n {\n parmas: ''\n }\n );\n\n const buttonList = defineModel('data', {\n default: [] as any[]\n });\n\n // Composables\n const { i18nt } = useI18n();\n\n // Refs\n const currentEditBtn = ref();\n const codeModalEditorRef = ref();\n const currentRecordIndexs = ref();\n\n // Columns configuration\n const columns: VxeGridPropTypes.Columns = [\n {\n field: 'seq',\n type: 'seq',\n title: '序号',\n dragSort: true\n },\n {\n field: 'label',\n title: i18nt('designer.setting.operationButtonLabel'),\n width: 100,\n slots: {\n default({ row }) {\n return (\n <a-input\n v-model:value={row.label}\n placeholder={i18nt('designer.setting.operationButtonLabel')}\n />\n );\n }\n }\n },\n {\n field: 'type',\n title: i18nt('designer.setting.operationButtonType'),\n width: 120,\n slots: {\n default({ row }) {\n return (\n <a-select\n v-model:value={row.type}\n placeholder={i18nt('designer.setting.operationButtonType')}\n style=\"width: 100%\"\n >\n <a-select-option value=\"primary\">primary</a-select-option>\n <a-select-option value=\"dashed\">dashed</a-select-option>\n <a-select-option value=\"text\">text</a-select-option>\n <a-select-option value=\"link\">link</a-select-option>\n <a-select-option value=\"default\">default</a-select-option>\n </a-select>\n );\n }\n }\n },\n {\n field: 'size',\n title: i18nt('designer.setting.operationButtonSize'),\n width: 100,\n slots: {\n default({ row }) {\n return (\n <a-select\n v-model:value={row.size}\n placeholder={i18nt('designer.setting.size')}\n style=\"width: 100%\"\n >\n <a-select-option value=\"default\">default</a-select-option>\n <a-select-option value=\"small\">small</a-select-option>\n <a-select-option value=\"large\">large</a-select-option>\n </a-select>\n );\n }\n }\n },\n {\n field: 'ghost',\n title: i18nt('designer.setting.operationButtonGhost'),\n width: 80,\n slots: {\n default({ row }) {\n return (\n <a-switch checkedValue={1} unCheckedValue={0} v-model:checked={row.ghost} />\n );\n }\n }\n },\n {\n field: 'danger',\n title: i18nt('designer.setting.danger'),\n width: 100,\n slots: {\n default({ row }) {\n return (\n <a-switch\n checkedValue={1}\n unCheckedValue={0}\n v-model:checked={row.danger}\n />\n );\n }\n }\n },\n {\n field: 'icon',\n title: i18nt('designer.setting.buttonIcon'),\n width: 120,\n slots: {\n default({ row }) {\n return <TpfSelectIcon v-model:value={row.icon} />;\n }\n }\n },\n {\n field: 'onHidden',\n title: i18nt('designer.setting.operationButtonHidden'),\n width: 100,\n slots: {\n default({ row, rowIndex }) {\n return (\n <a-button\n class={[{ 'button-text-highlight': !!row.onHidden }]}\n onClick={() => editClickEvent('onHidden', row, rowIndex)}\n size=\"small\"\n >\n {i18nt('designer.setting.operationButtonHidden')}\n </a-button>\n );\n }\n }\n },\n {\n field: 'onDisabled',\n title: i18nt('designer.setting.operationButtonDisabled'),\n width: 100,\n slots: {\n default({ row, rowIndex }) {\n return (\n <a-button\n class={[{ 'button-text-highlight': !!row.onDisabled }]}\n onClick={() => editClickEvent('onDisabled', row, rowIndex)}\n size=\"small\"\n >\n {i18nt('designer.setting.operationButtonDisabled')}\n </a-button>\n );\n }\n }\n },\n {\n field: 'onClick',\n title: i18nt('designer.setting.operationButtonClick'),\n width: 100,\n slots: {\n default({ row, rowIndex }) {\n return (\n <a-button\n class={[{ 'button-text-highlight': !!row.onClick }]}\n onClick={() => editClickEvent('onClick', row, rowIndex)}\n size=\"small\"\n >\n {i18nt('designer.setting.operationButtonClick')}\n </a-button>\n );\n }\n }\n },\n {\n field: 'action',\n title: i18nt('designer.setting.operationButtonAction'),\n width: 80,\n slots: {\n default({ rowIndex }) {\n return (\n <a-button\n type=\"link\"\n onClick={() => deleteOperationButton(rowIndex)}\n size=\"small\"\n >\n {i18nt('designer.setting.delete')}\n </a-button>\n );\n }\n }\n }\n ];\n\n const tableProps = computed(() => {\n return {\n columnConfig: {\n resizable: true\n },\n rowConfig: {\n drag: true\n },\n cellConfig: {\n height: 50\n },\n data: buttonList.value,\n size: 'mini',\n columns: columns,\n clickRowCheck: false\n } as ImeTableProps;\n });\n\n const { tableRef, register } = useVxeTable({\n props: {\n rowKey: 'name'\n },\n events: {\n rowDragend() {\n buttonList.value = tableRef.value?.getFullData() || [];\n }\n },\n callbacks: {}\n });\n\n // Methods\n const deleteOperationButton = (index: number) => {\n console.log(index);\n buttonList.value.splice(index, 1);\n };\n\n const editClickEvent = (name, row, rowIndex) => {\n currentRecordIndexs.value = rowIndex;\n currentEditBtn.value = name;\n console.log({ code: row[name] });\n\n codeModalEditorRef.value?.open(row[name]);\n };\n\n const saveColumnRender = value => {\n console.log(buttonList.value, currentRecordIndexs.value, currentEditBtn.value);\n buttonList.value[currentRecordIndexs.value][currentEditBtn.value] = value;\n };\n\n const addOperationButton = () => {\n buttonList.value.push({\n name: 'btn' + generateId(),\n label: 'new btn',\n type: 'primary',\n size: 'small',\n ghost: 0,\n shape: 'default',\n hidden: false,\n disabled: false,\n onClick: ''\n });\n };\n</script>\n\n<style lang=\"less\" scoped>\n .add-btn {\n margin-top: 10px;\n text-align: center;\n }\n</style>\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","buttonList","_useModel","__props","i18nt","useI18n","currentEditBtn","ref","codeModalEditorRef","currentRecordIndexs","columns","field","type","title","dragSort","width","slots","default","row","_createVNode2","_resolveComponent2","label","$event","_createTextVNode2","size","ghost","danger","TpfSelectIcon","icon","rowIndex","_slot","onHidden","onClick","editClickEvent","_slot2","onDisabled","_slot3","_slot4","deleteOperationButton","tableProps","computed","columnConfig","resizable","rowConfig","drag","cellConfig","height","data","value","clickRowCheck","tableRef","register","useVxeTable","props","rowKey","events","rowDragend","getFullData","callbacks","index","console","log","splice","name","code","open","saveColumnRender","addOperationButton","push","generateId","shape","hidden","disabled","_createVNode","_unref","Table","onRegister","_createElementVNode","_hoisted_1","_component_a_button","CodeModalEditor","onSave","parmas"],"mappings":";;;;;;;;AAoBkF,SAAAA,EAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAA,qBAAA,CAAAK,EAAAL,CAAA;AAAA;;;;;;;;;;;;;;;AAa9E,UAAMM,IAAaC,EAAWC,GAAC,MAE9B,GAGK;AAAA,MAAEC,OAAAA;AAAAA,QAAU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AJzE,KAAIC;AAAAA,QACHyE,QAAMf;AAAAA,QACN,gBAAY,GAAK5D,EAAA0C,KAAc,IAAIkC,EAAAA,MAAM;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"ActionButtonListDialog.vue2.js","sources":["../../../../src/components/public/ActionButtonListDialog.vue"],"sourcesContent":["<template>\n <Table :table-props=\"tableProps\" @register=\"register\" />\n <div class=\"add-btn\">\n <a-button type=\"primary\" size=\"default\" @click=\"addOperationButton\">\n {{ i18nt('designer.setting.addOperationButton') }}\n </a-button>\n </div>\n\n <CodeModalEditor\n ref=\"codeModalEditorRef\"\n @save=\"saveColumnRender\"\n :event-header=\"`${currentEditBtn}(${parmas}){`\"\n />\n</template>\n\n<script setup lang=\"tsx\">\n import { ref, computed } from 'vue';\n import { useI18n } from '@/utils/i18n';\n import CodeModalEditor from '@/components/code-editor/code-modal-editor.vue';\n import { generateId } from '@/utils/util';\n import { TpfSelectIcon, Table, useVxeTable, ImeTableProps } from 'tmgc2-share';\n import { VxeGridPropTypes } from 'vxe-table';\n\n // Props\n withDefaults(\n defineProps<{\n parmas?: string;\n }>(),\n {\n parmas: ''\n }\n );\n\n const buttonList = defineModel('data', {\n default: [] as any[]\n });\n\n // Composables\n const { i18nt } = useI18n();\n\n // Refs\n const currentEditBtn = ref();\n const codeModalEditorRef = ref();\n const currentRecordIndexs = ref();\n\n // Columns configuration\n const columns: VxeGridPropTypes.Columns = [\n {\n field: 'seq',\n type: 'seq',\n title: '序号',\n fixed: 'left',\n dragSort: true\n },\n {\n field: 'label',\n title: i18nt('designer.setting.operationButtonLabel'),\n width: 100,\n slots: {\n default({ row }) {\n return (\n <a-input\n v-model:value={row.label}\n placeholder={i18nt('designer.setting.operationButtonLabel')}\n />\n );\n }\n }\n },\n {\n field: 'type',\n title: i18nt('designer.setting.operationButtonType'),\n width: 120,\n slots: {\n default({ row }) {\n return (\n <a-select\n v-model:value={row.type}\n placeholder={i18nt('designer.setting.operationButtonType')}\n style=\"width: 100%\"\n >\n <a-select-option value=\"primary\">primary</a-select-option>\n <a-select-option value=\"dashed\">dashed</a-select-option>\n <a-select-option value=\"text\">text</a-select-option>\n <a-select-option value=\"link\">link</a-select-option>\n <a-select-option value=\"default\">default</a-select-option>\n </a-select>\n );\n }\n }\n },\n {\n field: 'size',\n title: i18nt('designer.setting.operationButtonSize'),\n width: 100,\n slots: {\n default({ row }) {\n return (\n <a-select\n v-model:value={row.size}\n placeholder={i18nt('designer.setting.size')}\n style=\"width: 100%\"\n >\n <a-select-option value=\"default\">default</a-select-option>\n <a-select-option value=\"small\">small</a-select-option>\n <a-select-option value=\"large\">large</a-select-option>\n </a-select>\n );\n }\n }\n },\n {\n field: 'ghost',\n title: i18nt('designer.setting.operationButtonGhost'),\n width: 80,\n slots: {\n default({ row }) {\n return (\n <a-switch checkedValue={1} unCheckedValue={0} v-model:checked={row.ghost} />\n );\n }\n }\n },\n {\n field: 'danger',\n title: i18nt('designer.setting.danger'),\n width: 100,\n slots: {\n default({ row }) {\n return (\n <a-switch\n checkedValue={1}\n unCheckedValue={0}\n v-model:checked={row.danger}\n />\n );\n }\n }\n },\n {\n field: 'icon',\n title: i18nt('designer.setting.buttonIcon'),\n width: 120,\n slots: {\n default({ row }) {\n return <TpfSelectIcon v-model:value={row.icon} />;\n }\n }\n },\n {\n field: 'onHidden',\n title: i18nt('designer.setting.operationButtonHidden'),\n width: 100,\n slots: {\n default({ row, rowIndex }) {\n return (\n <a-space>\n <a-switch\n checkedValue={1}\n unCheckedValue={0}\n disabled={!!row.onHidden}\n v-model:checked={row.hidden}\n />\n <a-button\n class={[{ 'button-text-highlight': !!row.onHidden }]}\n onClick={() => editClickEvent('onHidden', row, rowIndex)}\n disabled={row.hidden}\n size=\"small\"\n >\n {i18nt('designer.setting.operationButtonHidden')}\n </a-button>\n </a-space>\n );\n }\n }\n },\n {\n field: 'onDisabled',\n title: i18nt('designer.setting.operationButtonDisabled'),\n width: 100,\n slots: {\n default({ row, rowIndex }) {\n return (\n <a-space>\n <a-switch\n checkedValue={1}\n unCheckedValue={0}\n disabled={!!row.onDisabled}\n v-model:checked={row.disabled}\n />\n <a-button\n class={[{ 'button-text-highlight': !!row.onDisabled }]}\n onClick={() => editClickEvent('onDisabled', row, rowIndex)}\n disabled={row.disabled}\n size=\"small\"\n >\n {i18nt('designer.setting.operationButtonDisabled')}\n </a-button>\n </a-space>\n );\n }\n }\n },\n {\n field: 'onClick',\n title: i18nt('designer.setting.operationButtonClick'),\n width: 100,\n slots: {\n default({ row, rowIndex }) {\n return (\n <a-button\n class={[{ 'button-text-highlight': !!row.onClick }]}\n onClick={() => editClickEvent('onClick', row, rowIndex)}\n size=\"small\"\n >\n {i18nt('designer.setting.operationButtonClick')}\n </a-button>\n );\n }\n }\n },\n {\n field: 'action',\n title: i18nt('designer.setting.operationButtonAction'),\n width: 80,\n align: 'center',\n fixed: 'right',\n slots: {\n default({ rowIndex }) {\n return (\n <a-button\n type=\"link\"\n onClick={() => deleteOperationButton(rowIndex)}\n size=\"small\"\n >\n {i18nt('designer.setting.delete')}\n </a-button>\n );\n }\n }\n }\n ];\n\n const tableProps = computed(() => {\n return {\n columnConfig: {\n resizable: true\n },\n rowConfig: {\n keyField: 'name',\n drag: true\n },\n cellConfig: {\n height: 50\n },\n data: buttonList.value,\n size: 'mini',\n columns: columns,\n clickRowCheck: false\n } as ImeTableProps;\n });\n\n const { tableRef, register } = useVxeTable({\n props: {\n rowKey: 'name'\n },\n events: {\n rowDragend() {\n buttonList.value = tableRef.value?.getFullData() || [];\n }\n },\n callbacks: {}\n });\n\n // Methods\n const deleteOperationButton = (index: number) => {\n console.log(index);\n buttonList.value.splice(index, 1);\n };\n\n const editClickEvent = (name, row, rowIndex) => {\n currentRecordIndexs.value = rowIndex;\n currentEditBtn.value = name;\n console.log({ code: row[name] });\n\n codeModalEditorRef.value?.open(row[name]);\n };\n\n const saveColumnRender = value => {\n console.log(buttonList.value, currentRecordIndexs.value, currentEditBtn.value);\n buttonList.value[currentRecordIndexs.value][currentEditBtn.value] = value;\n };\n\n const addOperationButton = () => {\n buttonList.value.push({\n name: 'btn' + generateId(),\n label: 'new btn',\n type: 'primary',\n size: 'default',\n ghost: 0,\n hidden: 0,\n disabled: 0,\n onClick: ''\n });\n };\n</script>\n\n<style lang=\"less\" scoped>\n .add-btn {\n margin-top: 10px;\n text-align: center;\n }\n</style>\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","buttonList","_useModel","__props","i18nt","useI18n","currentEditBtn","ref","codeModalEditorRef","currentRecordIndexs","columns","field","type","title","fixed","dragSort","width","slots","default","row","_createVNode2","_resolveComponent2","label","$event","_createTextVNode2","size","ghost","danger","TpfSelectIcon","icon","rowIndex","_slot","onHidden","hidden","onClick","editClickEvent","_slot2","onDisabled","disabled","_slot3","align","_slot4","deleteOperationButton","tableProps","computed","columnConfig","resizable","rowConfig","keyField","drag","cellConfig","height","data","value","clickRowCheck","tableRef","register","useVxeTable","props","rowKey","events","rowDragend","getFullData","callbacks","index","console","log","splice","name","code","open","saveColumnRender","addOperationButton","push","generateId","_createVNode","_unref","Table","onRegister","_createElementVNode","_hoisted_1","_component_a_button","CodeModalEditor","onSave","parmas"],"mappings":";;;;;;;;AAoBkF,SAAAA,EAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAA,qBAAA,CAAAK,EAAAL,CAAA;AAAA;;;;;;;;;;;;;;;AAa9E,UAAMM,IAAaC,EAAWC,GAAC,MAE9B,GAGK;AAAA,MAAEC,OAAAA;AAAAA,QAAUC,EAAO,GAGnBC,IAAiBC,EAAG,GACpBC,IAAqBD,EAAG,GACxBE,IAAsBF,EAAG,GAGzBG,IAAoC,CACtC;AAAA,MACIC,OAAO;AAAA,MACPC,MAAM;AAAA,MACNC,OAAO;AAAA,MACPC,OAAO;AAAA,MACPC,UAAU;AAAA,IACd,GACA;AAAA,MACIJ,OAAO;AAAA,MACPE,OAAOT,EAAM,uCAAuC;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AAAA,QACNC,OAAO;AAAA,QACPO,QAAQ;AAAA,QACRK,UAAU;AAAA,QACVJ,SAAS;AAAA,MACb,CAAC;AAAA,IACL;;;8BA/SAyC,EAAwDC,EAAAC,CAAA,GAAA;AAAA,QAAhD,eAAalC,EAAAU;AAAAA,QAAayB,YAAUF,EAAApB,CAAA;AAAA,kDAC5CuB,EAIM,OAJNC,GAIM,CAHFL,EAEWM,GAAA;AAAA,QAFDrE,MAAK;AAAA,QAAUa,MAAK;AAAA,QAAWS,SAAOsC;AAAAA;mBAC5C,MAAkD,KAA/CI,EAAAxE,CAAA,EAAK,qCAAA,CAAA,GAAA,CAAA,CAAA;;YAIhBuE,EAIEO,GAAA;AAAA,iBAHM;AAAA,QAAJ3E,KAAIC;AAAAA,QACH2E,QAAMZ;AAAAA,QACN,gBAAY,GAAKjE,EAAA+C,KAAc,IAAI+B,EAAAA,MAAM;AAAA;;;;"}
|
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import c from "./ActionButtonListRender.vue2.js";
|
|
2
|
+
import { resolveComponent as t, createElementBlock as s, openBlock as n, normalizeStyle as p, normalizeClass as u, createBlock as a, Teleport as b, createVNode as g, withCtx as l, Fragment as f, renderList as _, createCommentVNode as y, createTextVNode as k, toDisplayString as C } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
function h(o, v, B, S,
|
|
6
|
-
const r =
|
|
7
|
-
return
|
|
4
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
function h(o, v, z, B, S, $) {
|
|
6
|
+
const r = t("SvgIcon"), d = t("a-button"), i = t("a-space");
|
|
7
|
+
return n(), s("div", {
|
|
8
8
|
ref: "fieldEditor",
|
|
9
9
|
class: u(["button-list-container", ...o.customClass]),
|
|
10
10
|
style: p(o.containerStyle)
|
|
11
11
|
}, [
|
|
12
|
-
(
|
|
12
|
+
(n(), a(b, {
|
|
13
13
|
disabled: o.isDisabled,
|
|
14
14
|
to: o.getContainer
|
|
15
15
|
}, [
|
|
16
|
-
|
|
16
|
+
g(i, { size: 8 }, {
|
|
17
17
|
default: l(() => [
|
|
18
|
-
(
|
|
18
|
+
(n(!0), s(f, null, _(o.visibleButtons, (e) => (n(), a(d, {
|
|
19
19
|
key: e.key,
|
|
20
20
|
type: e.type,
|
|
21
|
+
size: e.size,
|
|
21
22
|
danger: !!e.danger,
|
|
22
23
|
ghost: !!e.ghost,
|
|
23
24
|
class: "tpf-button",
|
|
24
|
-
|
|
25
|
+
loading: e.loading,
|
|
26
|
+
disabled: o.handleDisabled(e) || o.disabled || !!e.disabled,
|
|
25
27
|
onClick: (D) => o.handleClick(e)
|
|
26
28
|
}, {
|
|
27
29
|
default: l(() => [
|
|
28
|
-
e.icon ? (
|
|
30
|
+
e.icon ? (n(), a(r, {
|
|
29
31
|
key: 0,
|
|
30
32
|
"icon-class": e.icon,
|
|
31
33
|
class: "button-icon"
|
|
32
|
-
}, null, 8, ["icon-class"])) :
|
|
33
|
-
|
|
34
|
+
}, null, 8, ["icon-class"])) : y("", !0),
|
|
35
|
+
k(" " + C(e.label), 1)
|
|
34
36
|
]),
|
|
35
37
|
_: 2
|
|
36
|
-
}, 1032, ["type", "danger", "ghost", "disabled", "onClick"]))), 128))
|
|
38
|
+
}, 1032, ["type", "size", "danger", "ghost", "loading", "disabled", "onClick"]))), 128))
|
|
37
39
|
]),
|
|
38
40
|
_: 1
|
|
39
41
|
})
|
|
40
42
|
], 8, ["disabled", "to"]))
|
|
41
43
|
], 6);
|
|
42
44
|
}
|
|
43
|
-
const L = /* @__PURE__ */
|
|
45
|
+
const L = /* @__PURE__ */ m(c, [["render", h], ["__scopeId", "data-v-4a5589b9"]]);
|
|
44
46
|
export {
|
|
45
47
|
L as default
|
|
46
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButtonListRender.vue.js","sources":["../../../../src/components/public/ActionButtonListRender.vue"],"sourcesContent":["<template>\n <div\n ref=\"fieldEditor\"\n :class=\"['button-list-container', ...customClass]\"\n :style=\"containerStyle\"\n >\n <Teleport :disabled=\"isDisabled\" :to=\"getContainer\">\n <a-space :size=\"8\">\n <a-button\n v-for=\"item in visibleButtons\"\n :key=\"item.key\"\n :type=\"item.type\"\n :danger=\"!!item.danger\"\n :ghost=\"!!item.ghost\"\n class=\"tpf-button\"\n :disabled=\"handleDisabled(item)\"\n @click=\"handleClick(item)\"\n >\n <template v-if=\"item.icon\">\n <SvgIcon :icon-class=\"item.icon\" class=\"button-icon\" />\n </template>\n {{ item.label }}\n </a-button>\n </a-space>\n </Teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, computed, PropType } from 'vue';\n import { SvgIcon, useExecFunction } from 'tmgc2-share';\n import type { ActionButton } from '@/types/button';\n import { ButtonPositionEnum } from '@/constants';\n\n export default defineComponent({\n name: 'ActionButtonListRender',\n components: { SvgIcon },\n props: {\n options: {\n type: Object,\n default: () => {}\n },\n scope: {\n type: Object,\n default: () => {}\n },\n ctx: {\n type: Object,\n default: () => {}\n },\n buttonList: {\n type: Array as PropType<ActionButton[]>,\n default: () => []\n },\n customClass: {\n type: Array as PropType<string[]>,\n default: () => []\n },\n flex: {\n type: String,\n default: 'center'\n },\n designState: {\n type: Boolean,\n default: false\n }\n },\n setup(props) {\n const containerStyle = computed(() => ({\n '--flex': props.flex\n }));\n\n const { executeFunction } = useExecFunction();\n\n const isDisabled = computed(\n () => props.options?.buttonPosition !== ButtonPositionEnum.DIY || props.designState\n );\n\n const getContainer = computed(() =>\n isDisabled.value ? null : props.options?.getContainer\n );\n\n const visibleButtons = computed(() =>\n props.buttonList.filter(item => !handleHidden(item))\n );\n\n const handleClick = async (item: ActionButton) => {\n if (props.designState) return; // 在设计状态下不处理点击事件\n if (!item.onClick) return;\n try {\n await
|
|
1
|
+
{"version":3,"file":"ActionButtonListRender.vue.js","sources":["../../../../src/components/public/ActionButtonListRender.vue"],"sourcesContent":["<template>\n <div\n ref=\"fieldEditor\"\n :class=\"['button-list-container', ...customClass]\"\n :style=\"containerStyle\"\n >\n <Teleport :disabled=\"isDisabled\" :to=\"getContainer\">\n <a-space :size=\"8\">\n <a-button\n v-for=\"item in visibleButtons\"\n :key=\"item.key\"\n :type=\"item.type\"\n :size=\"item.size\"\n :danger=\"!!item.danger\"\n :ghost=\"!!item.ghost\"\n class=\"tpf-button\"\n :loading=\"item.loading\"\n :disabled=\"handleDisabled(item) || disabled || !!item.disabled\"\n @click=\"handleClick(item)\"\n >\n <template v-if=\"item.icon\">\n <SvgIcon :icon-class=\"item.icon\" class=\"button-icon\" />\n </template>\n {{ item.label }}\n </a-button>\n </a-space>\n </Teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, computed, PropType } from 'vue';\n import { SvgIcon, useExecFunction } from 'tmgc2-share';\n import type { ActionButton } from '@/types/button';\n import { ButtonPositionEnum } from '@/constants';\n\n export default defineComponent({\n name: 'ActionButtonListRender',\n components: { SvgIcon },\n props: {\n options: {\n type: Object,\n default: () => {}\n },\n disabled: {\n type: Boolean,\n default: false\n },\n scope: {\n type: Object,\n default: () => {}\n },\n ctx: {\n type: Object,\n default: () => {}\n },\n buttonList: {\n type: Array as PropType<ActionButton[]>,\n default: () => []\n },\n customClass: {\n type: Array as PropType<string[]>,\n default: () => []\n },\n flex: {\n type: String,\n default: 'center'\n },\n designState: {\n type: Boolean,\n default: false\n }\n },\n emits: ['on-click'],\n setup(props, { emit }) {\n const containerStyle = computed(() => ({\n '--flex': props.flex\n }));\n\n const { executeFunction, asyncExecuteFunction } = useExecFunction();\n\n const isDisabled = computed(\n () => props.options?.buttonPosition !== ButtonPositionEnum.DIY || props.designState\n );\n\n const getContainer = computed(() =>\n isDisabled.value ? null : props.options?.getContainer\n );\n\n const visibleButtons = computed(() =>\n props.buttonList\n .filter(item => item.hidden !== 1)\n .filter(item => !handleHidden(item))\n );\n\n const handleClick = async (item: ActionButton) => {\n if (props.designState) return; // 在设计状态下不处理点击事件\n if (!item.onClick) return;\n if (item.loading) return;\n item.loading = true;\n try {\n const result = await asyncExecuteFunction({\n functionBody: item.onClick,\n context: props.ctx,\n params: props.scope\n });\n console.log({ result });\n\n emit('on-click', { item, result });\n } catch (error) {\n console.error('Button click handler error:', error);\n } finally {\n item.loading = false;\n }\n };\n\n const handleDisabled = (item: ActionButton): boolean => {\n if (!item.onDisabled) return false;\n\n try {\n const result = executeFunction({\n functionBody: item.onDisabled,\n context: props.ctx,\n params: props.scope\n });\n if (typeof result === 'boolean') {\n return result;\n } else {\n return false;\n }\n } catch (error) {\n console.error('Button disabled handler error:', error);\n return false;\n }\n };\n\n const handleHidden = (item: ActionButton): boolean => {\n if (!item.onHidden) return false;\n\n try {\n return executeFunction({\n functionBody: item.onHidden,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button hidden handler error:', error);\n return false;\n }\n };\n\n return {\n getContainer,\n isDisabled,\n containerStyle,\n visibleButtons,\n handleClick,\n handleDisabled\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .button-list-container {\n flex: 1;\n display: flex;\n justify-content: var(--flex);\n\n .button-icon {\n margin-right: 4px;\n }\n }\n</style>\n"],"names":["_createElementBlock","_normalizeClass","_ctx","_normalizeStyle","_createBlock","_Teleport","_createVNode","_component_a_space","_withCtx","_openBlock","_Fragment","_renderList","item","_component_a_button","$event","_component_SvgIcon","_createCommentVNode","_toDisplayString"],"mappings":";;;;;;cACIA,EA0BM,OAAA;AAAA,IAzBF,KAAI;AAAA,IACH,OAAKC,+BAA+BC,EAAA,WAAW,CAAA;AAAA,IAC/C,OAAKC,EAAED,EAAA,cAAc;AAAA,EAAA,GAAA;AAAA,UAEtBE,EAoBWC,GAAA;AAAA,MApBA,UAAUH,EAAA;AAAA,MAAa,IAAIA,EAAA;AAAA,IAAA,GAAA;AAAA,MAClCI,EAkBUC,GAAA,EAlBA,MAAM,EAAA,GAAC;AAAA,QAAA,SAAAC,EAET,MAA8B;AAAA,WAAAC,EAAA,EAAA,GADlCT,EAgBWU,GAAA,MAAAC,EAfQT,EAAA,gBAAc,CAAtBU,YADXR,EAgBWS,GAAA;AAAA,YAdN,KAAKD,EAAK;AAAA,YACV,MAAMA,EAAK;AAAA,YACX,MAAMA,EAAK;AAAA,YACX,QAAM,EAAIA,EAAK;AAAA,YACf,OAAK,EAAIA,EAAK;AAAA,YACf,OAAM;AAAA,YACL,SAASA,EAAK;AAAA,YACd,UAAUV,EAAA,eAAeU,CAAI,KAAKV,EAAA,YAAQ,EAAMU,EAAK;AAAA,YACrD,SAAK,CAAAE,MAAEZ,EAAA,YAAYU,CAAI;AAAA,UAAA,GAAA;AAAA,uBAExB,MAEW;AAAA,cAFKA,EAAK,aACjBR,EAAuDW,GAAA;AAAA,gBAAA,KAAA;AAAA,gBAA7C,cAAYH,EAAK;AAAA,gBAAM,OAAM;AAAA,cAAA,GAAA,MAAA,GAAA,CAAA,YAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA,gBAChC,MACXC,EAAGL,EAAK,KAAK,GAAA,CAAA;AAAA,YAAA,CAAA;AAAA;;;;;;;;;"}
|