@kp-ui/lowcode 1.0.104 → 1.0.106
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/package.json +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue.js +51 -49
- package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +25 -24
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js.map +1 -1
- package/src/components/form-render/index.vue.js +8 -8
- package/src/components/form-render/index.vue.js.map +1 -1
- package/src/components/public/CustomerModal/CustomerModal.vue2.js +28 -31
- package/src/components/public/CustomerModal/CustomerModal.vue2.js.map +1 -1
- package/src/components/public/CustomerModal/useCustomerModal.js +17 -15
- package/src/components/public/CustomerModal/useCustomerModal.js.map +1 -1
- package/src/mixins/useDataTableMixin.js +1 -1
- package/src/mixins/useDataTableMixin.js.map +1 -1
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue4.js +0 -2
- package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue4.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import y from "./vf-collapse-widget.vue2.js";
|
|
2
|
+
import { resolveComponent as s, createBlock as o, openBlock as d, withCtx as l, createElementBlock as C, withModifiers as _, normalizeClass as c, createVNode as w, withDirectives as k, createElementVNode as r, normalizeStyle as S, mergeProps as p, resolveDynamicComponent as g, vShow as u } from "vue";
|
|
3
|
+
/* empty css */
|
|
3
4
|
/* empty css */
|
|
4
|
-
import "./vf-collapse-widget.vue4.js";
|
|
5
5
|
import L from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const x = { class: "form-widget-list" },
|
|
7
|
-
function
|
|
8
|
-
const m =
|
|
9
|
-
return d(), o(
|
|
6
|
+
const x = { class: "collapse-right" }, D = { class: "form-widget-list" }, U = { class: "form-widget-list" };
|
|
7
|
+
function A(i, n, e, R, B, f) {
|
|
8
|
+
const m = s("draggable"), h = s("TpfCollapse"), v = s("container-wrapper");
|
|
9
|
+
return d(), o(v, {
|
|
10
10
|
designer: e.designer,
|
|
11
11
|
widget: e.widget,
|
|
12
12
|
"parent-widget": e.parentWidget,
|
|
@@ -17,55 +17,57 @@ function U(i, n, e, A, R, f) {
|
|
|
17
17
|
(d(), C("div", {
|
|
18
18
|
key: e.widget.id,
|
|
19
19
|
class: c(["collapse-container data-table-container", { selected: f.selected }]),
|
|
20
|
-
onClick: n[2] || (n[2] =
|
|
20
|
+
onClick: n[2] || (n[2] = _((t) => f.selectWidget(e.widget), ["stop"]))
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
w(h, {
|
|
23
23
|
title: e.widget.options.title
|
|
24
24
|
}, {
|
|
25
25
|
right: l(() => [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
r("div", x, [
|
|
27
|
+
w(m, p({
|
|
28
|
+
list: e.widget.headerRightSlotList,
|
|
29
|
+
"item-key": "id"
|
|
30
|
+
}, { group: "dragGroup", ghostClass: "ghost", animation: 200 }, {
|
|
31
|
+
handle: ".drag-handler",
|
|
32
|
+
tag: "transition-group",
|
|
33
|
+
"component-data": { name: "fade" },
|
|
34
|
+
onAdd: n[0] || (n[0] = (t) => i.onContainerDragAdd(t, e.widget.headerRightSlotList)),
|
|
35
|
+
onUpdate: i.onContainerDragUpdate,
|
|
36
|
+
move: i.checkContainerMove
|
|
37
|
+
}), {
|
|
38
|
+
item: l(({ element: t, index: a }) => [
|
|
39
|
+
r("div", D, [
|
|
40
|
+
t.category === "container" ? (d(), o(g(t.type + "-widget"), {
|
|
41
|
+
widget: t,
|
|
42
|
+
designer: e.designer,
|
|
43
|
+
key: t.id,
|
|
44
|
+
"parent-list": e.widget.headerRightSlotList,
|
|
45
|
+
"index-of-parent-list": a,
|
|
46
|
+
"parent-widget": e.widget
|
|
47
|
+
}, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (d(), o(g(t.type + "-widget"), {
|
|
48
|
+
field: t,
|
|
49
|
+
designer: e.designer,
|
|
50
|
+
key: t.id,
|
|
51
|
+
"parent-list": e.widget.headerRightSlotList,
|
|
52
|
+
"index-of-parent-list": a,
|
|
53
|
+
"parent-widget": e.widget,
|
|
54
|
+
"design-state": !0
|
|
55
|
+
}, null, 8, ["field", "designer", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
56
|
+
])
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 16, ["list", "onUpdate", "move"])
|
|
60
|
+
])
|
|
59
61
|
]),
|
|
60
62
|
default: l(() => [
|
|
61
|
-
|
|
63
|
+
k(r("div", {
|
|
62
64
|
class: c(["tpf-collapse-content"]),
|
|
63
65
|
style: S({
|
|
64
66
|
height: e.widget.options.height || "unset",
|
|
65
67
|
...JSON.parse(e.widget.options.bodyStyle || "{}")
|
|
66
68
|
})
|
|
67
69
|
}, [
|
|
68
|
-
|
|
70
|
+
w(m, p({
|
|
69
71
|
list: e.widget.defaultSlotsList,
|
|
70
72
|
"item-key": "id"
|
|
71
73
|
}, { group: "dragGroup", ghostClass: "ghost", animation: 200 }, {
|
|
@@ -77,15 +79,15 @@ function U(i, n, e, A, R, f) {
|
|
|
77
79
|
move: i.checkContainerMove
|
|
78
80
|
}), {
|
|
79
81
|
item: l(({ element: t, index: a }) => [
|
|
80
|
-
|
|
81
|
-
t.category === "container" ? (d(), o(
|
|
82
|
+
r("div", U, [
|
|
83
|
+
t.category === "container" ? (d(), o(g(t.type + "-widget"), {
|
|
82
84
|
widget: t,
|
|
83
85
|
designer: e.designer,
|
|
84
86
|
key: t.id,
|
|
85
87
|
"parent-list": e.widget.defaultSlotsList,
|
|
86
88
|
"index-of-parent-list": a,
|
|
87
89
|
"parent-widget": e.widget
|
|
88
|
-
}, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (d(), o(
|
|
90
|
+
}, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (d(), o(g(t.type + "-widget"), {
|
|
89
91
|
field: t,
|
|
90
92
|
designer: e.designer,
|
|
91
93
|
key: t.id,
|
|
@@ -109,8 +111,8 @@ function U(i, n, e, A, R, f) {
|
|
|
109
111
|
_: 1
|
|
110
112
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
111
113
|
}
|
|
112
|
-
const
|
|
114
|
+
const O = /* @__PURE__ */ L(y, [["render", A], ["__scopeId", "data-v-008e239f"]]);
|
|
113
115
|
export {
|
|
114
|
-
|
|
116
|
+
O as default
|
|
115
117
|
};
|
|
116
118
|
//# sourceMappingURL=vf-collapse-widget.vue.js.map
|
package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vf-collapse-widget.vue.js","sources":["../../../../../../src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue"],"sourcesContent":["<template>\n <container-wrapper\n :designer=\"designer\"\n :widget=\"widget\"\n :parent-widget=\"parentWidget\"\n :parent-list=\"parentList\"\n :index-of-parent-list=\"indexOfParentList\"\n >\n <div\n :key=\"widget.id\"\n class=\"collapse-container data-table-container\"\n :class=\"{ selected: selected }\"\n @click.stop=\"selectWidget(widget)\"\n >\n <TpfCollapse :title=\"widget.options.title\">\n <template #right>\n <draggable\n :list=\"widget.headerRightSlotList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.headerRightSlotList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </template>\n <div\n :class=\"['tpf-collapse-content']\"\n :style=\"{\n height: widget.options.height || 'unset',\n ...JSON.parse(widget.options.bodyStyle || '{}')\n }\"\n v-show=\"!widget.options.isCollapse\"\n >\n <draggable\n :list=\"widget.defaultSlotsList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.defaultSlotsList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </TpfCollapse>\n </div>\n </container-wrapper>\n</template>\n\n<script lang=\"jsx\">\n import { defineAsyncComponent } from 'vue';\n import ContainerWrapper from '@/components/form-designer/form-widget/container-widget/container-wrapper';\n import emitter from '@/utils/emitter';\n import i18n from '@/utils/i18n';\n import FieldComponents from '@/components/form-designer/form-widget/field-widget/index';\n import containerMixin from '@/components/form-designer/form-widget/container-widget/containerMixin';\n import refMixinDesign from '@/components/form-designer/refMixinDesign';\n import SvgIcon from '@/components/svg-icon/index.vue';\n import { TpfCollapse } from 'tmgc2-share';\n import gridWidget from './grid-widget.vue';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n export default {\n name: 'VfCollapseWidget',\n mixins: [i18n, containerMixin, refMixinDesign, emitter],\n inject: ['refList'],\n components: {\n Draggable,\n ContainerWrapper,\n TpfCollapse,\n SvgIcon,\n gridWidget,\n VFormRender: defineAsyncComponent(() => import('@/components/form-render/index.vue')),\n ...FieldComponents\n },\n data() {\n return {};\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n designer: Object,\n\n subFormRowIndex: {\n /* 子表单组件行索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormColIndex: {\n /* 子表单组件列索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormRowId: {\n /* 子表单组件行Id,唯一id且不可变 */ type: String,\n default: ''\n },\n options: {\n type: Object,\n default: () => ({})\n },\n formJson: {\n type: Object\n },\n formData: {\n type: Object,\n default: () => ({})\n },\n optionData: {\n //prop传入的选项数据\n type: Object,\n default: () => ({})\n },\n globalDsv: {\n // 全局数据源变量\n type: Object,\n default: () => ({})\n },\n parentFormRef: {\n type: Object,\n default: null\n },\n extraData: {\n type: Object,\n default: () => ({})\n },\n wrapperId: {\n type: String,\n default: null\n }\n },\n created() {\n this.initRefList();\n },\n mounted() {\n //\n this.loadFormCode(this.widget.options.formCode);\n },\n beforeUnmount() {\n //\n },\n computed: {\n rightSlotCss() {\n return this.widget.options.rightSlotCss || '';\n },\n selected() {\n return this.widget.id === this.designer.selectedId;\n }\n },\n watch: {\n 'widget.options.formCode'(val) {\n this.loadFormCode(val);\n }\n },\n methods: {\n selectWidget(widget) {\n this.designer.setSelected(widget);\n },\n toggleCollapse() {\n this.widget.options.isCollapse = !this.widget.options.isCollapse;\n },\n async loadFormCode(formCode) {\n if (formCode) {\n const res = await this.$http\n .get(`/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement`, {\n params: { code: formCode }\n })\n .then(res => res.data.object.frontendDefinition || '{}');\n this.$refs.dFormRef.setFormJson(JSON.parse(res));\n }\n },\n getFormRef() {\n return this.$refs.dFormRef;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .collapse-container {\n display: flex;\n margin: 2px;\n height: 100%;\n width: 100%;\n flex: 1 0 0;\n\n .form-widget-list {\n min-height: 28px;\n }\n :deep(.header-right) {\n background-color: #fff;\n margin-right: 10px;\n min-height: 30px;\n min-width: 200px;\n width: fit-content;\n border: 1px dashed #666;\n .form-widget-list {\n min-width: 200px;\n }\n }\n }\n\n .collapse-container.selected {\n outline: 2px solid var(--ant-primary-color) !important;\n }\n\n :deep(.ant-table) .table-striped td {\n background-color: #fafafa;\n }\n</style>\n\n<style lang=\"less\" scoped>\n .tpf-collapse {\n // width: 100%;\n // background-color: transparent;\n // box-sizing: border-box;\n\n // .tpf-collapse-header {\n // padding: 10px 0;\n // box-sizing: border-box;\n // display: flex;\n // height: 50px;\n // justify-content: space-between;\n // background-color: #f7f8fa;\n // .header-right {\n // background-color: #fff;\n // margin-right: 10px;\n // min-height: 30px;\n // min-width: 200px;\n // width: fit-content;\n // border: 1px dashed #666;\n // }\n // }\n\n // .tpf-collapse-content {\n // overflow: hidden;\n // background-color: #fff;\n // min-height: 200px;\n\n // :deep(.ant-card-bordered) {\n // border-color: transparent;\n // }\n // }\n }\n</style>\n"],"names":["_hoisted_1","_hoisted_2","_createBlock","_component_container_wrapper","$props","_createElementBlock","_normalizeClass","$options","_cache","_withModifiers","$event","_createVNode","_component_TpfCollapse","_component_draggable","_mergeProps","evt","_ctx","_withCtx","subWidget","swIdx","_createElementVNode","_resolveDynamicComponent","_normalizeStyle"],"mappings":";;;;;AA4BiC,MAAAA,IAAA,EAAA,OAAM,mBAAkB,GAgDxBC,IAAA,EAAA,OAAM,mBAAkB;;;cA3ErDC,EAyGoBC,GAAA;AAAA,IAxGf,UAAUC,EAAA;AAAA,IACV,QAAQA,EAAA;AAAA,IACR,iBAAeA,EAAA;AAAA,IACf,eAAaA,EAAA;AAAA,IACb,wBAAsBA,EAAA;AAAA;eAEvB,MAiGM;AAAA,YAjGNC,EAiGM,OAAA;AAAA,QAhGD,KAAKD,EAAA,OAAO;AAAA,QACb,OAAKE,EAAA,CAAC,2CAAyC,EAAA,UAC3BC,EAAA,SAAQ,CAAA,CAAA;AAAA,QAC3B,SAAKC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA,CAAAC,MAAOH,EAAA,aAAaH,EAAA,MAAM,GAAA,CAAA,MAAA,CAAA;AAAA;QAEhCO,EA0FcC,GAAA;AAAA,UA1FA,OAAOR,EAAA,OAAO,QAAQ;AAAA;UACrB,SACP,MAsCY;AAAA,YAtCZO,EAsCYE,GAtCZC,EAsCY;AAAA,cArCP,MAAMV,EAAA,OAAO;A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AA,gBACnE,QAAO;AAAA,gBACP,KAAI;AAAA,gBACH,kBAAgB,EAAA,MAAA,OAAA;AAAA,gBAChB,OAAGI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAE,CAAAO,MAAOC,EAAA,mBAAmBD,GAAKX,EAAA,OAAO,gBAAgB;AAAA,gBAC3D,UAAQY,EAAA;AAAA,gBACR,MAAMA,EAAA;AAAA;gBAEI,MAAIC,EACX,CAwBM,EAAA,SAzBkBC,UAAkBC,QAAK;AAAA,kBAC/CC,EAwBM,OAxBNnB,GAwBM;AAAA,oBAvB8BiB,EAAU,aAAV,oBAC5BhB,EAQEmB,EAPOH,EAAU,OAAI,SAAA,GAAA;AAAA,sBAClB,QAAQA;AAAA,sBACR,UAAUd,EAAA;AAAA,sBACV,KAAKc,EAAU;AAAA,sBACf,eAAad,EAAA,OAAO;AAAA,sBACpB,wBAAsBe;AAAA,sBACtB,iBAAef,EAAA;AAAA,yHAIpBF,EASEmB,EAROH,EAAU,OAAI,SAAA,GAAA;AAAA,sBAClB,OAAOA;AAAA,sBACP,UAAUd,EAAA;AAAA,sBACV,KAAKc,EAAU;AAAA,sBACf,eAAad,EAAA,OAAO;AAAA,sBACpB,wBAAsBe;AAAA,sBACtB,iBAAef,EAAA;AAAA,sBACf,gBAAc;AAAA;;;;;;mBAnC1BA,EAAA,OAAO,QAAQ,UAAU;AAAA;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"vf-collapse-widget.vue.js","sources":["../../../../../../src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue"],"sourcesContent":["<template>\n <container-wrapper\n :designer=\"designer\"\n :widget=\"widget\"\n :parent-widget=\"parentWidget\"\n :parent-list=\"parentList\"\n :index-of-parent-list=\"indexOfParentList\"\n >\n <div\n :key=\"widget.id\"\n class=\"collapse-container data-table-container\"\n :class=\"{ selected: selected }\"\n @click.stop=\"selectWidget(widget)\"\n >\n <TpfCollapse :title=\"widget.options.title\">\n <template #right>\n <div class=\"collapse-right\">\n <draggable\n :list=\"widget.headerRightSlotList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.headerRightSlotList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </template>\n <div\n :class=\"['tpf-collapse-content']\"\n :style=\"{\n height: widget.options.height || 'unset',\n ...JSON.parse(widget.options.bodyStyle || '{}')\n }\"\n v-show=\"!widget.options.isCollapse\"\n >\n <draggable\n :list=\"widget.defaultSlotsList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.defaultSlotsList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </TpfCollapse>\n </div>\n </container-wrapper>\n</template>\n\n<script lang=\"jsx\">\n import { defineAsyncComponent } from 'vue';\n import ContainerWrapper from '@/components/form-designer/form-widget/container-widget/container-wrapper';\n import emitter from '@/utils/emitter';\n import i18n from '@/utils/i18n';\n import FieldComponents from '@/components/form-designer/form-widget/field-widget/index';\n import containerMixin from '@/components/form-designer/form-widget/container-widget/containerMixin';\n import refMixinDesign from '@/components/form-designer/refMixinDesign';\n import SvgIcon from '@/components/svg-icon/index.vue';\n import { TpfCollapse } from 'tmgc2-share';\n import gridWidget from './grid-widget.vue';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n export default {\n name: 'VfCollapseWidget',\n mixins: [i18n, containerMixin, refMixinDesign, emitter],\n inject: ['refList'],\n components: {\n Draggable,\n ContainerWrapper,\n TpfCollapse,\n SvgIcon,\n gridWidget,\n VFormRender: defineAsyncComponent(() => import('@/components/form-render/index.vue')),\n ...FieldComponents\n },\n data() {\n return {};\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n designer: Object,\n\n subFormRowIndex: {\n /* 子表单组件行索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormColIndex: {\n /* 子表单组件列索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormRowId: {\n /* 子表单组件行Id,唯一id且不可变 */ type: String,\n default: ''\n },\n options: {\n type: Object,\n default: () => ({})\n },\n formJson: {\n type: Object\n },\n formData: {\n type: Object,\n default: () => ({})\n },\n optionData: {\n //prop传入的选项数据\n type: Object,\n default: () => ({})\n },\n globalDsv: {\n // 全局数据源变量\n type: Object,\n default: () => ({})\n },\n parentFormRef: {\n type: Object,\n default: null\n },\n extraData: {\n type: Object,\n default: () => ({})\n },\n wrapperId: {\n type: String,\n default: null\n }\n },\n created() {\n this.initRefList();\n },\n mounted() {\n //\n this.loadFormCode(this.widget.options.formCode);\n },\n beforeUnmount() {\n //\n },\n computed: {\n rightSlotCss() {\n return this.widget.options.rightSlotCss || '';\n },\n selected() {\n return this.widget.id === this.designer.selectedId;\n }\n },\n watch: {\n 'widget.options.formCode'(val) {\n this.loadFormCode(val);\n }\n },\n methods: {\n selectWidget(widget) {\n this.designer.setSelected(widget);\n },\n toggleCollapse() {\n this.widget.options.isCollapse = !this.widget.options.isCollapse;\n },\n async loadFormCode(formCode) {\n if (formCode) {\n const res = await this.$http\n .get(`/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement`, {\n params: { code: formCode }\n })\n .then(res => res.data.object.frontendDefinition || '{}');\n this.$refs.dFormRef.setFormJson(JSON.parse(res));\n }\n },\n getFormRef() {\n return this.$refs.dFormRef;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .collapse-container {\n display: flex;\n margin: 2px;\n height: 100%;\n width: 100%;\n flex: 1 0 0;\n border: 2px dashed #cccccc;\n .form-widget-list {\n min-height: 28px;\n }\n :deep(.header-right) {\n background-color: #fff;\n margin-right: 10px;\n min-height: 30px;\n min-width: 200px;\n width: fit-content;\n border: 1px dashed #666;\n .form-widget-list {\n min-width: 200px;\n }\n }\n }\n\n .collapse-container.selected {\n outline: 2px solid var(--ant-primary-color) !important;\n }\n\n</style>\n\n<style lang=\"less\" scoped>\n .tpf-collapse {\n // width: 100%;\n // background-color: transparent;\n // box-sizing: border-box;\n\n // .tpf-collapse-header {\n // padding: 10px 0;\n // box-sizing: border-box;\n // display: flex;\n // height: 50px;\n // justify-content: space-between;\n // background-color: #f7f8fa;\n // .header-right {\n // background-color: #fff;\n // margin-right: 10px;\n // min-height: 30px;\n // min-width: 200px;\n // width: fit-content;\n // border: 1px dashed #666;\n // }\n // }\n\n .collapse-right{\n min-width: 200px;\n }\n .tpf-collapse-content {\n overflow: hidden;\n background-color: #fff;\n min-height: 200px;\n\n :deep(.ant-card-bordered) {\n border-color: transparent;\n }\n }\n }\n</style>\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_createBlock","_component_container_wrapper","$props","_createElementBlock","_normalizeClass","$options","_cache","_withModifiers","$event","_createVNode","_component_TpfCollapse","_createElementVNode","_component_draggable","_mergeProps","evt","_ctx","_withCtx","subWidget","swIdx","_resolveDynamicComponent","_normalizeStyle"],"mappings":";;;;;AAgByB,MAAAA,IAAA,EAAA,OAAM,iBAAgB,GAaVC,IAAA,EAAA,OAAM,mBAAkB,GAiD5BC,IAAA,EAAA,OAAM,mBAAkB;;;cA7ErDC,EA2GoBC,GAAA;AAAA,IA1Gf,UAAUC,EAAA;AAAA,IACV,QAAQA,EAAA;AAAA,IACR,iBAAeA,EAAA;AAAA,IACf,eAAaA,EAAA;AAAA,IACb,wBAAsBA,EAAA;AAAA;eAEvB,MAmGM;AAAA,YAnGNC,EAmGM,OAAA;AAAA,QAlGD,KAAKD,EAAA,OAAO;AAAA,QACb,OAAKE,EAAA,CAAC,2CAAyC,EAAA,UAC3BC,EAAA,SAAQ,CAAA,CAAA;AAAA,QAC3B,SAAKC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA,CAAAC,MAAOH,EAAA,aAAaH,EAAA,MAAM,GAAA,CAAA,MAAA,CAAA;AAAA;QAEhCO,EA4FcC,GAAA;AAAA,UA5FA,OAAOR,EAAA,OAAO,QAAQ;AAAA;UACrB,SACP,MAwCM;AAAA,YAxCNS,EAwCM,OAxCNd,GAwCM;AAAA,cAvCDY,EAsCWG,GAtCXC,EAsCW;AAAA,gBArCP,MAAMX,EAAA,OAAO;AAAA,gBACd,YAAS;AAAA,iBACD,EAAA,OAAA,aAAA,YAAA,SAAA,WAAA,OAA2D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AgB,EAAA,MAAA,OAAA;AAAA,gBAChB,OAAGI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAE,CAAAQ,MAAOC,EAAA,mBAAmBD,GAAKZ,EAAA,OAAO,gBAAgB;AAAA,gBAC3D,UAAQa,EAAA;AAAA,gBACR,MAAMA,EAAA;AAAA;gBAEI,MAAIC,EACX,CAwBM,EAAA,SAzBkBC,UAAkBC,QAAK;AAAA,kBAC/CP,EAwBM,OAxBNZ,GAwBM;AAAA,oBAvB8BkB,EAAU,aAAV,oBAC5BjB,EAQEmB,EAPOF,EAAU,OAAI,SAAA,GAAA;AAAA,sBAClB,QAAQA;AAAA,sBACR,UAAUf,EAAA;AAAA,sBACV,KAAKe,EAAU;AAAA,sBACf,eAAaf,EAAA,OAAO;AAAA,sBACpB,wBAAsBgB;AAAA,sBACtB,iBAAehB,EAAA;AAAA,yHAIpBF,EASEmB,EAROF,EAAU,OAAI,SAAA,GAAA;AAAA,sBAClB,OAAOA;AAAA,sBACP,UAAUf,EAAA;AAAA,sBACV,KAAKe,EAAU;AAAA,sBACf,eAAaf,EAAA,OAAO;AAAA,sBACpB,wBAAsBgB;AAAA,sBACtB,iBAAehB,EAAA;AAAA,sBACf,gBAAc;AAAA;;;;;;mBAnC1BA,EAAA,OAAO,QAAQ,UAAU;AAAA;;;;;;;;;;"}
|
package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vf-collapse-widget.vue2.js","sources":["../../../../../../src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue"],"sourcesContent":["<template>\n <container-wrapper\n :designer=\"designer\"\n :widget=\"widget\"\n :parent-widget=\"parentWidget\"\n :parent-list=\"parentList\"\n :index-of-parent-list=\"indexOfParentList\"\n >\n <div\n :key=\"widget.id\"\n class=\"collapse-container data-table-container\"\n :class=\"{ selected: selected }\"\n @click.stop=\"selectWidget(widget)\"\n >\n <TpfCollapse :title=\"widget.options.title\">\n <template #right>\n <draggable\n :list=\"widget.headerRightSlotList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.headerRightSlotList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </template>\n <div\n :class=\"['tpf-collapse-content']\"\n :style=\"{\n height: widget.options.height || 'unset',\n ...JSON.parse(widget.options.bodyStyle || '{}')\n }\"\n v-show=\"!widget.options.isCollapse\"\n >\n <draggable\n :list=\"widget.defaultSlotsList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.defaultSlotsList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </TpfCollapse>\n </div>\n </container-wrapper>\n</template>\n\n<script lang=\"jsx\">\n import { defineAsyncComponent } from 'vue';\n import ContainerWrapper from '@/components/form-designer/form-widget/container-widget/container-wrapper';\n import emitter from '@/utils/emitter';\n import i18n from '@/utils/i18n';\n import FieldComponents from '@/components/form-designer/form-widget/field-widget/index';\n import containerMixin from '@/components/form-designer/form-widget/container-widget/containerMixin';\n import refMixinDesign from '@/components/form-designer/refMixinDesign';\n import SvgIcon from '@/components/svg-icon/index.vue';\n import { TpfCollapse } from 'tmgc2-share';\n import gridWidget from './grid-widget.vue';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n export default {\n name: 'VfCollapseWidget',\n mixins: [i18n, containerMixin, refMixinDesign, emitter],\n inject: ['refList'],\n components: {\n Draggable,\n ContainerWrapper,\n TpfCollapse,\n SvgIcon,\n gridWidget,\n VFormRender: defineAsyncComponent(() => import('@/components/form-render/index.vue')),\n ...FieldComponents\n },\n data() {\n return {};\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n designer: Object,\n\n subFormRowIndex: {\n /* 子表单组件行索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormColIndex: {\n /* 子表单组件列索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormRowId: {\n /* 子表单组件行Id,唯一id且不可变 */ type: String,\n default: ''\n },\n options: {\n type: Object,\n default: () => ({})\n },\n formJson: {\n type: Object\n },\n formData: {\n type: Object,\n default: () => ({})\n },\n optionData: {\n //prop传入的选项数据\n type: Object,\n default: () => ({})\n },\n globalDsv: {\n // 全局数据源变量\n type: Object,\n default: () => ({})\n },\n parentFormRef: {\n type: Object,\n default: null\n },\n extraData: {\n type: Object,\n default: () => ({})\n },\n wrapperId: {\n type: String,\n default: null\n }\n },\n created() {\n this.initRefList();\n },\n mounted() {\n //\n this.loadFormCode(this.widget.options.formCode);\n },\n beforeUnmount() {\n //\n },\n computed: {\n rightSlotCss() {\n return this.widget.options.rightSlotCss || '';\n },\n selected() {\n return this.widget.id === this.designer.selectedId;\n }\n },\n watch: {\n 'widget.options.formCode'(val) {\n this.loadFormCode(val);\n }\n },\n methods: {\n selectWidget(widget) {\n this.designer.setSelected(widget);\n },\n toggleCollapse() {\n this.widget.options.isCollapse = !this.widget.options.isCollapse;\n },\n async loadFormCode(formCode) {\n if (formCode) {\n const res = await this.$http\n .get(`/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement`, {\n params: { code: formCode }\n })\n .then(res => res.data.object.frontendDefinition || '{}');\n this.$refs.dFormRef.setFormJson(JSON.parse(res));\n }\n },\n getFormRef() {\n return this.$refs.dFormRef;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .collapse-container {\n display: flex;\n margin: 2px;\n height: 100%;\n width: 100%;\n flex: 1 0 0;\n\n .form-widget-list {\n min-height: 28px;\n }\n :deep(.header-right) {\n background-color: #fff;\n margin-right: 10px;\n min-height: 30px;\n min-width: 200px;\n width: fit-content;\n border: 1px dashed #666;\n .form-widget-list {\n min-width: 200px;\n }\n }\n }\n\n .collapse-container.selected {\n outline: 2px solid var(--ant-primary-color) !important;\n }\n\n :deep(.ant-table) .table-striped td {\n background-color: #fafafa;\n }\n</style>\n\n<style lang=\"less\" scoped>\n .tpf-collapse {\n // width: 100%;\n // background-color: transparent;\n // box-sizing: border-box;\n\n // .tpf-collapse-header {\n // padding: 10px 0;\n // box-sizing: border-box;\n // display: flex;\n // height: 50px;\n // justify-content: space-between;\n // background-color: #f7f8fa;\n // .header-right {\n // background-color: #fff;\n // margin-right: 10px;\n // min-height: 30px;\n // min-width: 200px;\n // width: fit-content;\n // border: 1px dashed #666;\n // }\n // }\n\n // .tpf-collapse-content {\n // overflow: hidden;\n // background-color: #fff;\n // min-height: 200px;\n\n // :deep(.ant-card-bordered) {\n // border-color: transparent;\n // }\n // }\n }\n</style>\n"],"names":["_sfc_main","name","mixins","i18n","containerMixin","refMixinDesign","emitter","inject","components","Draggable","ContainerWrapper","TpfCollapse","SvgIcon","gridWidget","VFormRender","defineAsyncComponent","FieldComponents","data","props","widget","Object","parentWidget","parentList","Array","indexOfParentList","Number","designer","subFormRowIndex","type","default","subFormColIndex","subFormRowId","String","options","formJson","formData","optionData","globalDsv","parentFormRef","extraData","wrapperId","created","initRefList","mounted","loadFormCode","formCode","beforeUnmount","computed","rightSlotCss","selected","id","selectedId","watch","val","methods","selectWidget","setSelected","toggleCollapse","isCollapse","res","$http","get","params","code","then","object","frontendDefinition","$refs","dFormRef","setFormJson","JSON","parse","getFormRef"],"mappings":";;;;;;;;;;;AAyHI,MAAAA,IAAe;AAAA,EACXC,MAAM;AAAA,EACNC,QAAQ,CAACC,GAAMC,GAAgBC,GAAgBC,CAAO;AAAA,EACtDC,QAAQ,CAAC,SAAS;AAAA,EAClBC,YAAY;AAAA,eACRC;AAAAA,IACAC,kBAAAA;AAAAA,IACAC,aAAAA;AAAAA,IACAC,SAAAA;AAAAA,IACAC,YAAAA;AAAAA,IACAC,aAAaC,EAAqB,MAAM,OAAO,mCAAoC,CAAC;AAAA,IACpF,GAAGC;AAAAA;EAEPC,OAAO;AACH,WAAO,CAAA;AAAA,EACX;AAAA,EACAC,OAAO;AAAA,IACHC,QAAQC;AAAAA,IACRC,cAAcD;AAAAA,IACdE,YAAYC;AAAAA,IACZC,mBAAmBC;AAAAA,IACnBC,UAAUN;AAAAA,IAEVO,iBAAiB;AAAA;AAAA,MACSC,MAAMH;AAAAA,MAC5BI,SAAS;AAAA;IAEbC,iBAAiB;AAAA;AAAA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QAAQyB;AAAAA,IAC1D;AAAA,IACA,MAAMd,aAAaC,GAAU;AACzB,UAAIA,GAAU;AACV,cAAMc,IAAM,MAAM,KAAKC,MAClBC,IAAI,8DAA8D;AAAA,UAC/DC,QAAQ;AAAA,YAAEC,MAAMlB;AAAAA,UAAS;AAAA,QAC7B,CAAC,EACAmB,KAAKL,CAAAA,MAAOA,EAAI1C,KAAKgD,OAAOC,sBAAsB,IAAI;AAC3D,aAAKC,MAAMC,SAASC,YAAYC,KAAKC,MAAMZ,CAAG,CAAC;AAAA,MACnD;AAAA,IACJ;AAAA,IACAa,aAAa;AACT,aAAO,KAAKL,MAAMC;AAAAA,IACtB;AAAA,EACJ;AACJ;"}
|
|
1
|
+
{"version":3,"file":"vf-collapse-widget.vue2.js","sources":["../../../../../../src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue"],"sourcesContent":["<template>\n <container-wrapper\n :designer=\"designer\"\n :widget=\"widget\"\n :parent-widget=\"parentWidget\"\n :parent-list=\"parentList\"\n :index-of-parent-list=\"indexOfParentList\"\n >\n <div\n :key=\"widget.id\"\n class=\"collapse-container data-table-container\"\n :class=\"{ selected: selected }\"\n @click.stop=\"selectWidget(widget)\"\n >\n <TpfCollapse :title=\"widget.options.title\">\n <template #right>\n <div class=\"collapse-right\">\n <draggable\n :list=\"widget.headerRightSlotList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.headerRightSlotList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.headerRightSlotList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </template>\n <div\n :class=\"['tpf-collapse-content']\"\n :style=\"{\n height: widget.options.height || 'unset',\n ...JSON.parse(widget.options.bodyStyle || '{}')\n }\"\n v-show=\"!widget.options.isCollapse\"\n >\n <draggable\n :list=\"widget.defaultSlotsList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n tag=\"transition-group\"\n :component-data=\"{ name: 'fade' }\"\n @add=\"evt => onContainerDragAdd(evt, widget.defaultSlotsList)\"\n @update=\"onContainerDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"form-widget-list\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.defaultSlotsList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </TpfCollapse>\n </div>\n </container-wrapper>\n</template>\n\n<script lang=\"jsx\">\n import { defineAsyncComponent } from 'vue';\n import ContainerWrapper from '@/components/form-designer/form-widget/container-widget/container-wrapper';\n import emitter from '@/utils/emitter';\n import i18n from '@/utils/i18n';\n import FieldComponents from '@/components/form-designer/form-widget/field-widget/index';\n import containerMixin from '@/components/form-designer/form-widget/container-widget/containerMixin';\n import refMixinDesign from '@/components/form-designer/refMixinDesign';\n import SvgIcon from '@/components/svg-icon/index.vue';\n import { TpfCollapse } from 'tmgc2-share';\n import gridWidget from './grid-widget.vue';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n export default {\n name: 'VfCollapseWidget',\n mixins: [i18n, containerMixin, refMixinDesign, emitter],\n inject: ['refList'],\n components: {\n Draggable,\n ContainerWrapper,\n TpfCollapse,\n SvgIcon,\n gridWidget,\n VFormRender: defineAsyncComponent(() => import('@/components/form-render/index.vue')),\n ...FieldComponents\n },\n data() {\n return {};\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n designer: Object,\n\n subFormRowIndex: {\n /* 子表单组件行索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormColIndex: {\n /* 子表单组件列索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormRowId: {\n /* 子表单组件行Id,唯一id且不可变 */ type: String,\n default: ''\n },\n options: {\n type: Object,\n default: () => ({})\n },\n formJson: {\n type: Object\n },\n formData: {\n type: Object,\n default: () => ({})\n },\n optionData: {\n //prop传入的选项数据\n type: Object,\n default: () => ({})\n },\n globalDsv: {\n // 全局数据源变量\n type: Object,\n default: () => ({})\n },\n parentFormRef: {\n type: Object,\n default: null\n },\n extraData: {\n type: Object,\n default: () => ({})\n },\n wrapperId: {\n type: String,\n default: null\n }\n },\n created() {\n this.initRefList();\n },\n mounted() {\n //\n this.loadFormCode(this.widget.options.formCode);\n },\n beforeUnmount() {\n //\n },\n computed: {\n rightSlotCss() {\n return this.widget.options.rightSlotCss || '';\n },\n selected() {\n return this.widget.id === this.designer.selectedId;\n }\n },\n watch: {\n 'widget.options.formCode'(val) {\n this.loadFormCode(val);\n }\n },\n methods: {\n selectWidget(widget) {\n this.designer.setSelected(widget);\n },\n toggleCollapse() {\n this.widget.options.isCollapse = !this.widget.options.isCollapse;\n },\n async loadFormCode(formCode) {\n if (formCode) {\n const res = await this.$http\n .get(`/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement`, {\n params: { code: formCode }\n })\n .then(res => res.data.object.frontendDefinition || '{}');\n this.$refs.dFormRef.setFormJson(JSON.parse(res));\n }\n },\n getFormRef() {\n return this.$refs.dFormRef;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .collapse-container {\n display: flex;\n margin: 2px;\n height: 100%;\n width: 100%;\n flex: 1 0 0;\n border: 2px dashed #cccccc;\n .form-widget-list {\n min-height: 28px;\n }\n :deep(.header-right) {\n background-color: #fff;\n margin-right: 10px;\n min-height: 30px;\n min-width: 200px;\n width: fit-content;\n border: 1px dashed #666;\n .form-widget-list {\n min-width: 200px;\n }\n }\n }\n\n .collapse-container.selected {\n outline: 2px solid var(--ant-primary-color) !important;\n }\n\n</style>\n\n<style lang=\"less\" scoped>\n .tpf-collapse {\n // width: 100%;\n // background-color: transparent;\n // box-sizing: border-box;\n\n // .tpf-collapse-header {\n // padding: 10px 0;\n // box-sizing: border-box;\n // display: flex;\n // height: 50px;\n // justify-content: space-between;\n // background-color: #f7f8fa;\n // .header-right {\n // background-color: #fff;\n // margin-right: 10px;\n // min-height: 30px;\n // min-width: 200px;\n // width: fit-content;\n // border: 1px dashed #666;\n // }\n // }\n\n .collapse-right{\n min-width: 200px;\n }\n .tpf-collapse-content {\n overflow: hidden;\n background-color: #fff;\n min-height: 200px;\n\n :deep(.ant-card-bordered) {\n border-color: transparent;\n }\n }\n }\n</style>\n"],"names":["_sfc_main","name","mixins","i18n","containerMixin","refMixinDesign","emitter","inject","components","Draggable","ContainerWrapper","TpfCollapse","SvgIcon","gridWidget","VFormRender","defineAsyncComponent","FieldComponents","data","props","widget","Object","parentWidget","parentList","Array","indexOfParentList","Number","designer","subFormRowIndex","type","default","subFormColIndex","subFormRowId","String","options","formJson","formData","optionData","globalDsv","parentFormRef","extraData","wrapperId","created","initRefList","mounted","loadFormCode","formCode","beforeUnmount","computed","rightSlotCss","selected","id","selectedId","watch","val","methods","selectWidget","setSelected","toggleCollapse","isCollapse","res","$http","get","params","code","then","object","frontendDefinition","$refs","dFormRef","setFormJson","JSON","parse","getFormRef"],"mappings":";;;;;;;;;;;AA2HI,MAAAA,IAAe;AAAA,EACXC,MAAM;AAAA,EACNC,QAAQ,CAACC,GAAMC,GAAgBC,GAAgBC,CAAO;AAAA,EACtDC,QAAQ,CAAC,SAAS;AAAA,EAClBC,YAAY;AAAA,eACRC;AAAAA,IACAC,kBAAAA;AAAAA,IACAC,aAAAA;AAAAA,IACAC,SAAAA;AAAAA,IACAC,YAAAA;AAAAA,IACAC,aAAaC,EAAqB,MAAM,OAAO,mCAAoC,CAAC;AAAA,IACpF,GAAGC;AAAAA;EAEPC,OAAO;AACH,WAAO,CAAA;AAAA,EACX;AAAA,EACAC,OAAO;AAAA,IACHC,QAAQC;AAAAA,IACRC,cAAcD;AAAAA,IACdE,YAAYC;AAAAA,IACZC,mBAAmBC;AAAAA,IACnBC,UAAUN;AAAAA,IAEVO,iBAAiB;AAAA;AAAA,MACSC,MAAMH;AAAAA,MAC5BI,SAAS;AAAA;IAEbC,iBAAiB;AAAA;AAAA,MACSF,MAAMH;AAAAA,MAC5BI,SAAS;AAAA;IAEbE,cAAc;AAAA;AAAA,MACcH,MAAMI;AAAAA,MAC9BH,SAAS;AAAA;IAEbI,SAAS;AAAA,MACLL,MAAMR;AAAAA,MACNS,SAASA,OAAO,CAAA;AAAA;IAEpBK,UAAU;AAAA,MACNN,MAAMR;AAAAA;IAEVe,UAAU;AAAA,MACNP,MAAMR;AAAAA,MACNS,SAASA,OAAO,CAAA;AAAA;IAEpBO,YAAY;AAAA;AAAA,MAERR,MAAMR;AAAAA,MACNS,SAASA,OAAO,CAAA;AAAA;IAEpBQ,WAAW;AAAA;AAAA,MAEPT,MAAMR;AAAAA,MACNS,SAASA,OAAO,CAAA;AAAA;IAEp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1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent as g, createBlock as r, openBlock as s, withCtx as o, createElementBlock as
|
|
1
|
+
import f from "../../../../utils/i18n.js";
|
|
2
|
+
import p from "../../refMixinDesign.js";
|
|
3
|
+
import w from "../field-widget/index.js";
|
|
4
|
+
import L from "./container-wrapper.vue.js";
|
|
5
|
+
import x from "../../../../lib/vuedraggable/src/vuedraggable.js";
|
|
6
|
+
import { resolveComponent as g, createBlock as r, openBlock as s, withCtx as o, createElementBlock as v, withModifiers as D, normalizeClass as C, createElementVNode as l, createVNode as _, toDisplayString as u, mergeProps as y, resolveDynamicComponent as c } from "vue";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import k from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
-
const
|
|
9
|
+
const W = {
|
|
10
10
|
name: "vf-dialog-widget",
|
|
11
11
|
componentName: "VfDialogWidget",
|
|
12
|
-
mixins: [
|
|
12
|
+
mixins: [f, p],
|
|
13
13
|
inject: ["refList"],
|
|
14
14
|
components: {
|
|
15
|
-
Draggable:
|
|
16
|
-
ContainerWrapper:
|
|
17
|
-
...
|
|
15
|
+
Draggable: x,
|
|
16
|
+
ContainerWrapper: L,
|
|
17
|
+
...w
|
|
18
18
|
},
|
|
19
19
|
props: {
|
|
20
20
|
widget: Object,
|
|
@@ -73,10 +73,10 @@ const y = {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
function
|
|
78
|
-
const
|
|
79
|
-
return s(), r(
|
|
76
|
+
}, O = { class: "dialog-title" }, P = { class: "vf-dialog-drop-zone" };
|
|
77
|
+
function S(t, n, e, E, U, d) {
|
|
78
|
+
const m = g("draggable"), h = g("container-wrapper");
|
|
79
|
+
return s(), r(h, {
|
|
80
80
|
designer: e.designer,
|
|
81
81
|
widget: e.widget,
|
|
82
82
|
"parent-widget": e.parentWidget,
|
|
@@ -84,12 +84,13 @@ function O(t, n, e, P, E, d) {
|
|
|
84
84
|
"index-of-parent-list": e.indexOfParentList
|
|
85
85
|
}, {
|
|
86
86
|
default: o(() => [
|
|
87
|
-
(s(),
|
|
88
|
-
class:
|
|
87
|
+
(s(), v("div", {
|
|
88
|
+
class: C(["dialog-container", [d.selected ? "selected" : "", d.customClass]]),
|
|
89
89
|
key: e.widget.id,
|
|
90
|
-
onClick: n[2] || (n[2] =
|
|
90
|
+
onClick: n[2] || (n[2] = D((i) => d.selectWidget(e.widget), ["stop"]))
|
|
91
91
|
}, [
|
|
92
|
-
|
|
92
|
+
l("div", O, u(e.widget.options.title), 1),
|
|
93
|
+
_(m, y({
|
|
93
94
|
list: e.widget.widgetList,
|
|
94
95
|
"item-key": "id"
|
|
95
96
|
}, { group: "dragGroup", ghostClass: "ghost", animation: 200 }, {
|
|
@@ -100,15 +101,15 @@ function O(t, n, e, P, E, d) {
|
|
|
100
101
|
move: d.checkContainerMove
|
|
101
102
|
}), {
|
|
102
103
|
item: o(({ element: i, index: a }) => [
|
|
103
|
-
|
|
104
|
-
i.category === "container" ? (s(), r(
|
|
104
|
+
l("div", P, [
|
|
105
|
+
i.category === "container" ? (s(), r(c(i.type + "-widget"), {
|
|
105
106
|
widget: i,
|
|
106
107
|
designer: e.designer,
|
|
107
108
|
key: i.id,
|
|
108
109
|
"parent-list": e.widget.widgetList,
|
|
109
110
|
"index-of-parent-list": a,
|
|
110
111
|
"parent-widget": e.widget
|
|
111
|
-
}, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (s(), r(
|
|
112
|
+
}, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (s(), r(c(i.type + "-widget"), {
|
|
112
113
|
field: i,
|
|
113
114
|
designer: e.designer,
|
|
114
115
|
key: i.id,
|
|
@@ -126,8 +127,8 @@ function O(t, n, e, P, E, d) {
|
|
|
126
127
|
_: 1
|
|
127
128
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
128
129
|
}
|
|
129
|
-
const
|
|
130
|
+
const b = /* @__PURE__ */ k(W, [["render", S], ["__scopeId", "data-v-98c054f8"]]);
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
b as default
|
|
132
133
|
};
|
|
133
134
|
//# sourceMappingURL=vf-dialog-widget.vue.js.map
|
package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vf-dialog-widget.vue.js","sources":["../../../../../../src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue"],"sourcesContent":["<template>\n <container-wrapper\n :designer=\"designer\"\n :widget=\"widget\"\n :parent-widget=\"parentWidget\"\n :parent-list=\"parentList\"\n :index-of-parent-list=\"indexOfParentList\"\n >\n <div\n class=\"dialog-container\"\n :class=\"[selected ? 'selected' : '', customClass]\"\n :key=\"widget.id\"\n @click.stop=\"selectWidget(widget)\"\n >\n <draggable\n :list=\"widget.widgetList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n @end=\"evt => onDialogDragEnd(evt, widget.widgetList)\"\n @add=\"evt => onDialogDragAdd(evt, widget.widgetList)\"\n @update=\"onDialogDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"vf-dialog-drop-zone\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.widgetList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.widgetList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </container-wrapper>\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import refMixinDesign from '@/components/form-designer/refMixinDesign';\n import FieldComponents from '@/components/form-designer/form-widget/field-widget';\n import ContainerWrapper from '@/components/form-designer/form-widget/container-widget/container-wrapper';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n\n export default {\n name: 'vf-dialog-widget',\n componentName: 'VfDialogWidget',\n mixins: [i18n, refMixinDesign],\n inject: ['refList'],\n components: {\n Draggable,\n ContainerWrapper,\n ...FieldComponents\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n designer: Object\n },\n data() {\n return {\n //\n };\n },\n computed: {\n selected() {\n return this.widget.id === this.designer.selectedId;\n },\n\n customClass() {\n return this.widget.options.customClass || '';\n }\n },\n created() {\n this.initRefList();\n },\n methods: {\n onDialogDragEnd(evt, subList) {\n //console.log('onDialogDragEnd', evt)\n },\n\n onDialogDragAdd(evt, subList) {\n const newIndex = evt.newIndex;\n if (!!subList[newIndex]) {\n this.designer.setSelected(subList[newIndex]);\n }\n\n this.designer.emitHistoryChange();\n this.designer.emitEvent('field-selected', this.widget);\n },\n\n onDialogDragUpdate() {\n this.designer.emitHistoryChange();\n },\n\n selectWidget(widget) {\n console.log('id: ' + widget.id);\n this.designer.setSelected(widget);\n },\n\n checkContainerMove(evt) {\n //弹窗、抽屉不能嵌套!!\n return this.designer.checkWidgetMove(evt);\n },\n\n selectParentWidget() {\n if (this.parentWidget) {\n this.designer.setSelected(this.parentWidget);\n } else {\n this.designer.clearSelected();\n }\n },\n\n moveUpWidget() {\n this.designer.moveUpWidget(this.parentList, this.indexOfParentList);\n },\n\n moveDownWidget() {\n this.designer.moveDownWidget(this.parentList, this.indexOfParentList);\n },\n\n removeWidget() {\n if (!!this.parentList) {\n let nextSelected = null;\n if (this.parentList.length === 1) {\n if (!!this.parentWidget) {\n nextSelected = this.parentWidget;\n }\n } else if (this.parentList.length === 1 + this.indexOfParentList) {\n nextSelected = this.parentList[this.indexOfParentList - 1];\n } else {\n nextSelected = this.parentList[this.indexOfParentList + 1];\n }\n\n this.$nextTick(() => {\n this.parentList.splice(this.indexOfParentList, 1);\n //if (!!nextSelected) {\n this.designer.setSelected(nextSelected);\n //}\n\n this.designer.emitHistoryChange();\n });\n }\n }\n }\n };\n</script>\n\n<style lang=\"scss\" scoped>\n .dialog-container {\n width: 100%;\n min-height: 120px;\n border: 2px dashed #cccccc;\n position: relative;\n\n .vf-dialog-drop-zone {\n min-height: 58px;\n }\n }\n\n .dialog-container > div:first-child {\n min-height: 58px;\n }\n\n .dialog-container.selected {\n outline: 2px solid var(--ant-primary-color) !important;\n }\n</style>\n"],"names":["_sfc_main","i18n","refMixinDesign","Draggable","ContainerWrapper","FieldComponents","evt","subList","newIndex","widget","nextSelected","_hoisted_1","_createBlock","_component_container_wrapper","$props","_createElementBlock","_normalizeClass","$options","_cache","_withModifiers","$event","_createVNode","_component_draggable","_mergeProps","_withCtx","subWidget","swIdx","_createElementVNode","_resolveDynamicComponent"],"mappings":";;;;;;;;AA+DI,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,eAAe;AAAA,EACf,QAAQ,CAACC,GAAMC,CAAc;AAAA,EAC7B,QAAQ,CAAC,SAAS;AAAA,EAClB,YAAY;AAAA,IACR,WAAAC;AAAAA,IACA,kBAAAC;AAAA,IACA,GAAGC;AAAAA;EAEP,OAAO;AAAA,IACH,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,mBAAmB;AAAA,IACnB,UAAU;AAAA;EAEd,OAAO;AACH,WAAO;AAAA;AAAA;EAGX;AAAA,EACA,UAAU;AAAA,IACN,WAAW;AACP,aAAO,KAAK,OAAO,OAAO,KAAK,SAAS;AAAA,IAC5C;AAAA,IAEA,cAAc;AACV,aAAO,KAAK,OAAO,Q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AA,gBACV,KAAKW,EAAU;AAAA,gBACf,eAAaX,EAAA,OAAO;AAAA,gBACpB,wBAAsBY;AAAA,gBACtB,iBAAeZ,EAAA;AAAA,mHAIpBF,EASEgB,EAROH,EAAU,OAAI,SAAA,GAAA;AAAA,gBAClB,OAAOA;AAAA,gBACP,UAAUX,EAAA;AAAA,gBACV,KAAKW,EAAU;AAAA,gBACf,eAAaX,EAAA,OAAO;AAAA,gBACpB,wBAAsBY;AAAA,gBACtB,iBAAeZ,EAAA;AAAA,gBACf,gBAAc;AAAA;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"vf-dialog-widget.vue.js","sources":["../../../../../../src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue"],"sourcesContent":["<template>\n <container-wrapper\n :designer=\"designer\"\n :widget=\"widget\"\n :parent-widget=\"parentWidget\"\n :parent-list=\"parentList\"\n :index-of-parent-list=\"indexOfParentList\"\n >\n <div\n class=\"dialog-container\"\n :class=\"[selected ? 'selected' : '', customClass]\"\n :key=\"widget.id\"\n @click.stop=\"selectWidget(widget)\"\n >\n <div class=\"dialog-title\">{{ widget.options.title }}</div>\n <draggable\n :list=\"widget.widgetList\"\n item-key=\"id\"\n v-bind=\"{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }\"\n handle=\".drag-handler\"\n @end=\"evt => onDialogDragEnd(evt, widget.widgetList)\"\n @add=\"evt => onDialogDragAdd(evt, widget.widgetList)\"\n @update=\"onDialogDragUpdate\"\n :move=\"checkContainerMove\"\n >\n <template #item=\"{ element: subWidget, index: swIdx }\">\n <div class=\"vf-dialog-drop-zone\">\n <template v-if=\"'container' === subWidget.category\">\n <component\n :is=\"subWidget.type + '-widget'\"\n :widget=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.widgetList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n />\n </template>\n <template v-else>\n <component\n :is=\"subWidget.type + '-widget'\"\n :field=\"subWidget\"\n :designer=\"designer\"\n :key=\"subWidget.id\"\n :parent-list=\"widget.widgetList\"\n :index-of-parent-list=\"swIdx\"\n :parent-widget=\"widget\"\n :design-state=\"true\"\n />\n </template>\n </div>\n </template>\n </draggable>\n </div>\n </container-wrapper>\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import refMixinDesign from '@/components/form-designer/refMixinDesign';\n import FieldComponents from '@/components/form-designer/form-widget/field-widget';\n import ContainerWrapper from '@/components/form-designer/form-widget/container-widget/container-wrapper';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n\n export default {\n name: 'vf-dialog-widget',\n componentName: 'VfDialogWidget',\n mixins: [i18n, refMixinDesign],\n inject: ['refList'],\n components: {\n Draggable,\n ContainerWrapper,\n ...FieldComponents\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n designer: Object\n },\n data() {\n return {\n //\n };\n },\n computed: {\n selected() {\n return this.widget.id === this.designer.selectedId;\n },\n\n customClass() {\n return this.widget.options.customClass || '';\n }\n },\n created() {\n this.initRefList();\n },\n methods: {\n onDialogDragEnd(evt, subList) {\n //console.log('onDialogDragEnd', evt)\n },\n\n onDialogDragAdd(evt, subList) {\n const newIndex = evt.newIndex;\n if (!!subList[newIndex]) {\n this.designer.setSelected(subList[newIndex]);\n }\n\n this.designer.emitHistoryChange();\n this.designer.emitEvent('field-selected', this.widget);\n },\n\n onDialogDragUpdate() {\n this.designer.emitHistoryChange();\n },\n\n selectWidget(widget) {\n console.log('id: ' + widget.id);\n this.designer.setSelected(widget);\n },\n\n checkContainerMove(evt) {\n //弹窗、抽屉不能嵌套!!\n return this.designer.checkWidgetMove(evt);\n },\n\n selectParentWidget() {\n if (this.parentWidget) {\n this.designer.setSelected(this.parentWidget);\n } else {\n this.designer.clearSelected();\n }\n },\n\n moveUpWidget() {\n this.designer.moveUpWidget(this.parentList, this.indexOfParentList);\n },\n\n moveDownWidget() {\n this.designer.moveDownWidget(this.parentList, this.indexOfParentList);\n },\n\n removeWidget() {\n if (!!this.parentList) {\n let nextSelected = null;\n if (this.parentList.length === 1) {\n if (!!this.parentWidget) {\n nextSelected = this.parentWidget;\n }\n } else if (this.parentList.length === 1 + this.indexOfParentList) {\n nextSelected = this.parentList[this.indexOfParentList - 1];\n } else {\n nextSelected = this.parentList[this.indexOfParentList + 1];\n }\n\n this.$nextTick(() => {\n this.parentList.splice(this.indexOfParentList, 1);\n //if (!!nextSelected) {\n this.designer.setSelected(nextSelected);\n //}\n\n this.designer.emitHistoryChange();\n });\n }\n }\n }\n };\n</script>\n\n<style lang=\"scss\" scoped>\n .dialog-container {\n width: 100%;\n min-height: 50px;\n border: 2px dashed #cccccc;\n position: relative;\n\n .vf-dialog-drop-zone {\n min-height: 58px;\n }\n .dialog-title{\n font-size: 14px;\n color: #666;\n line-height: 50px;\n text-align: center;\n }\n }\n\n .dialog-container > div:first-child {\n min-height: 58px;\n }\n\n .dialog-container.selected {\n outline: 2px solid var(--ant-primary-color) !important;\n }\n</style>\n"],"names":["_sfc_main","i18n","refMixinDesign","Draggable","ContainerWrapper","FieldComponents","evt","subList","newIndex","widget","nextSelected","_hoisted_1","_hoisted_2","_createBlock","_component_container_wrapper","$props","_createElementBlock","_normalizeClass","$options","_cache","_withModifiers","$event","_createElementVNode","_toDisplayString","_createVNode","_component_draggable","_mergeProps","_withCtx","subWidget","swIdx","_resolveDynamicComponent"],"mappings":";;;;;;;;AAgEI,MAAKA,IAAU;AAAA,EACX,MAAM;AAAA,EACN,eAAe;AAAA,EACf,QAAQ,CAACC,GAAMC,CAAc;AAAA,EAC7B,QAAQ,CAAC,SAAS;AAAA,EAClB,YAAY;AAAA,IACR,WAAAC;AAAAA,IACA,kBAAAC;AAAA,IACA,GAAGC;AAAAA;EAEP,OAAO;AAAA,IACH,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,mBAAmB;AAAA,IACnB,UAAU;AAAA;EAEd,OAAO;AACH,WAAO;AAAA;AAAA;EA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MA,EAAA;AAAA;UAEI,MAAIS,EACX,CAwBM,EAAA,SAzBkBC,UAAkBC,QAAK;AAAA,YAC/CP,EAwBM,OAxBNV,GAwBM;AAAA,cAvB8BgB,EAAU,aAAV,oBAC5Bf,EAQEiB,EAPOF,EAAU,OAAI,SAAA,GAAA;AAAA,gBAClB,QAAQA;AAAA,gBACR,UAAUb,EAAA;AAAA,gBACV,KAAKa,EAAU;AAAA,gBACf,eAAab,EAAA,OAAO;AAAA,gBACpB,wBAAsBc;AAAA,gBACtB,iBAAed,EAAA;AAAA,mHAIpBF,EASEiB,EAROF,EAAU,OAAI,SAAA,GAAA;AAAA,gBAClB,OAAOA;AAAA,gBACP,UAAUb,EAAA;AAAA,gBACV,KAAKa,EAAU;AAAA,gBACf,eAAab,EAAA,OAAO;AAAA,gBACpB,wBAAsBc;AAAA,gBACtB,iBAAed,EAAA;AAAA,gBACf,gBAAc;AAAA;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as p, createBlock as b, openBlock as m, withCtx as c, createElementVNode as x, createVNode as R, normalizeStyle as A, withKeys as _, normalizeClass as B, createElementBlock as L, Fragment as W, renderList as F, resolveDynamicComponent as O, createSlots as v, renderSlot as
|
|
1
|
+
import { resolveComponent as p, createBlock as b, openBlock as m, withCtx as c, createElementVNode as x, createVNode as R, normalizeStyle as A, withKeys as _, normalizeClass as B, createElementBlock as L, Fragment as W, renderList as F, resolveDynamicComponent as O, createSlots as v, renderSlot as M, mergeProps as D, render as J } from "vue";
|
|
2
2
|
import P from "../../utils/emitter.js";
|
|
3
3
|
import $ from "../form-designer/form-widget/field-widget/index.js";
|
|
4
|
-
import { buildDefaultFormJson as H, getContainerWidgetByName as C, cloneFormConfigWithoutEventHandler as
|
|
4
|
+
import { buildDefaultFormJson as H, getContainerWidgetByName as C, cloneFormConfigWithoutEventHandler as w, deepClone as f, getDSByName as E, overwriteObj as g, runDataSourceRequest as j, getAllContainerWidgets as T, getAllFieldWidgets as z, getDefaultFormConfig as N, traverseFieldWidgets as G, getFieldWidgetByName as V, traverseFieldWidgetsOfContainer as K, insertCustomCssToHead as q, insertGlobalFunctionsToHtml as U, generateId as y } from "../../utils/util.js";
|
|
5
5
|
import Q, { changeLocale as X } from "../../utils/i18n.js";
|
|
6
6
|
import Y from "./dynamic-dialog.vue.js";
|
|
7
7
|
/* empty css */
|
|
@@ -522,7 +522,7 @@ const tt = {
|
|
|
522
522
|
this.formDataModel[t][o[0]][s] = i;
|
|
523
523
|
},
|
|
524
524
|
setTableValue(t, e) {
|
|
525
|
-
this.formDataModel[t] = e;
|
|
525
|
+
console.log("setTableValue: ", t, e, this.formDataModel), this.formDataModel[t] = e;
|
|
526
526
|
},
|
|
527
527
|
/**
|
|
528
528
|
* 插入表格数据
|
|
@@ -726,7 +726,7 @@ const tt = {
|
|
|
726
726
|
}
|
|
727
727
|
const n = {
|
|
728
728
|
widgetList: f(r.widgetList),
|
|
729
|
-
formConfig:
|
|
729
|
+
formConfig: w(o.formConfig)
|
|
730
730
|
}, a = y() + "";
|
|
731
731
|
this.dialogProps = {
|
|
732
732
|
options: r.options,
|
|
@@ -748,7 +748,7 @@ const tt = {
|
|
|
748
748
|
}
|
|
749
749
|
const r = {
|
|
750
750
|
widgetList: f(s.widgetList),
|
|
751
|
-
formConfig:
|
|
751
|
+
formConfig: w(o.formConfig)
|
|
752
752
|
}, n = y() + "", a = R(Z, {
|
|
753
753
|
options: s.options,
|
|
754
754
|
formJson: r,
|
|
@@ -806,7 +806,7 @@ function et(t, e, i, o, s, r) {
|
|
|
806
806
|
F(Object.keys(t.$slots), (h) => ({
|
|
807
807
|
name: h,
|
|
808
808
|
fn: c((u) => [
|
|
809
|
-
|
|
809
|
+
M(t.$slots, h, D({ ref_for: !0 }, u), void 0, !0)
|
|
810
810
|
])
|
|
811
811
|
}))
|
|
812
812
|
]), 1032, ["widget", "data", "parent-list", "index-of-parent-list", "model"])) : (m(), b(O(r.getWidgetName(l)), {
|
|
@@ -821,7 +821,7 @@ function et(t, e, i, o, s, r) {
|
|
|
821
821
|
F(Object.keys(t.$slots), (h) => ({
|
|
822
822
|
name: h,
|
|
823
823
|
fn: c((u) => [
|
|
824
|
-
|
|
824
|
+
M(t.$slots, h, D({ ref_for: !0 }, u), void 0, !0)
|
|
825
825
|
])
|
|
826
826
|
}))
|
|
827
827
|
]), 1032, ["field", "form-model", "parent-list", "index-of-parent-list"]))
|
|
@@ -835,7 +835,7 @@ function et(t, e, i, o, s, r) {
|
|
|
835
835
|
_: 3
|
|
836
836
|
}, 8, ["spinning"]);
|
|
837
837
|
}
|
|
838
|
-
const ct = /* @__PURE__ */ I(tt, [["render", et], ["__scopeId", "data-v-
|
|
838
|
+
const ct = /* @__PURE__ */ I(tt, [["render", et], ["__scopeId", "data-v-145b3539"]]);
|
|
839
839
|
export {
|
|
840
840
|
ct as default
|
|
841
841
|
};
|