fec-dev-designer 5.1.2 → 5.1.3

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.
@@ -1,157 +1,178 @@
1
1
  import "../../../node_modules/element-plus/theme-chalk/base.css.js";
2
- import { ref as d, openBlock as J, createElementBlock as q, createElementVNode as a, unref as e, createVNode as n, withCtx as u, isRef as t } from "vue";
3
- import I from "../event/index.vue2.js";
4
- import N from "../event/pageEvent.vue.js";
5
- import { useDataSourceDialog as P } from "../dataSource/useDataSourceDialog.js";
6
- import { useAdvancedFilterDialog as j } from "../advancedFilter/useAdvancedFilterDialog.js";
7
- import { useDataLinkageDialog as M } from "../dataLinkage/useDataLinkageDialog.js";
8
- import { useJsonDataDrawer as R } from "../../components/useJsonDataDrawer.js";
9
- import y from "./HiddenFieldDialog.vue.js";
10
- import { useDialogDialog as z } from "../dialog/useDialogDialog.js";
11
- import { Connection as G, Management as K, Link as O, ChatLineSquare as Q, Hide as T, Document as W } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
2
+ import { ref as m, computed as I, openBlock as J, createElementBlock as M, createElementVNode as t, unref as e, createVNode as a, withCtx as d, isRef as i } from "vue";
3
+ import q from "../event/index.vue2.js";
4
+ import R from "../event/pageEvent.vue.js";
5
+ import { useDataSourceDialog as j } from "../dataSource/useDataSourceDialog.js";
6
+ import { useAdvancedFilterDialog as z } from "../advancedFilter/useAdvancedFilterDialog.js";
7
+ import { useDataLinkageDialog as H } from "../dataLinkage/useDataLinkageDialog.js";
8
+ import { useJsonDataDrawer as G } from "../../components/useJsonDataDrawer.js";
9
+ import { useDialogDialog as K } from "../dialog/useDialogDialog.js";
10
+ import { Connection as O, Management as Q, Link as W, ChatLineSquare as X, Document as Y } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
11
+ import { demo as y } from "./demo.js";
12
+ import { getEditConfigData as Z } from "../utils/common.js";
12
13
  import "./headerBtn.vue2.js";
13
- import X from "../../../_virtual/_plugin-vue_export-helper.js";
14
- import { ElIcon as Y } from "../../../node_modules/element-plus/es/components/icon/index.js";
15
- const Z = { class: "header-btns" }, $ = {
14
+ import $ from "../../../_virtual/_plugin-vue_export-helper.js";
15
+ import { ElIcon as _ } from "../../../node_modules/element-plus/es/components/icon/index.js";
16
+ const h = { class: "header-btns" }, ll = {
16
17
  __name: "headerBtn",
17
- setup(_) {
18
- const { dataSourceDialogVisible: m, openDataSourceDialog: v, DataSourceDialog: E } = P(), { jsonDataDrawerVisible: f, openJsonDrawer: b, JsonDataDrawer: F } = R(), s = d(!1);
19
- function L() {
18
+ setup(el) {
19
+ const { dataSourceDialogVisible: r, openDataSourceDialog: b, DataSourceDialog: E } = j(), { jsonDataDrawerVisible: f, openJsonDrawer: C, JsonDataDrawer: w } = G(), p = m(!1), s = m(!1);
20
+ function T() {
20
21
  s.value = !0;
21
22
  }
22
- const p = d(!1), r = d(!1);
23
- function w() {
24
- r.value = !0;
25
- }
26
- const S = d({
23
+ const U = m({
27
24
  operator: "and",
28
25
  conditions: [],
29
26
  groups: []
30
27
  }), {
31
28
  advancedFilterDialogVisible: g,
32
- openAdvancedFilterDialog: c,
33
- AdvancedFilterDialog: x
34
- } = j();
35
- function B(U) {
36
- console.log("advancedConfirm", U);
29
+ openAdvancedFilterDialog: ol,
30
+ AdvancedFilterDialog: F
31
+ } = z();
32
+ function L(u) {
33
+ console.log("advancedConfirm", u);
34
+ }
35
+ const { dataLinkageDialogVisible: D, openDataLinkageDialog: k, DataLinkageDialog: N } = H();
36
+ m(!1);
37
+ const { dialogDialogVisible: v, openDialogDialog: c, DialogDialog: S } = K(), x = I(() => Z());
38
+ function B() {
39
+ console.log("importText", y);
40
+ const u = x.value.columns;
41
+ y.formItem.forEach((n, o) => {
42
+ setTimeout(() => {
43
+ const V = Date.now(), P = o % u, A = Math.floor(o / u);
44
+ n.fieldType != "empty" && n.fieldName != "" && n.label != "" && x.value.fieldsData.push({
45
+ x: P,
46
+ y: A,
47
+ w: 1,
48
+ h: 1,
49
+ i: V,
50
+ isResizable: !0,
51
+ component: {
52
+ fieldType: n.fieldType,
53
+ label: n.label,
54
+ fieldName: n.fieldName,
55
+ format: "number",
56
+ labelMode: "default",
57
+ hasDecimalPlaces: !0,
58
+ decimalPlaces: 2,
59
+ optionStyle: "default",
60
+ dateType: "date",
61
+ suffixButton: "none",
62
+ suffixDialogName: "选择",
63
+ id: V,
64
+ type: "widgets"
65
+ },
66
+ moved: !1,
67
+ id: V
68
+ });
69
+ }, 5);
70
+ });
37
71
  }
38
- const { dataLinkageDialogVisible: D, openDataLinkageDialog: C, DataLinkageDialog: H } = M();
39
- d(!1);
40
- const { dialogDialogVisible: V, openDialogDialog: k, DialogDialog: A } = z();
41
- return (U, l) => {
42
- const i = Y;
43
- return J(), q("div", Z, [
44
- a("div", {
72
+ return (u, l) => {
73
+ const n = _;
74
+ return J(), M("div", h, [
75
+ t("div", {
45
76
  class: "btn-item",
46
- onClick: l[0] || (l[0] = (...o) => e(v) && e(v)(...o))
77
+ onClick: B
78
+ }, [...l[11] || (l[11] = [
79
+ t("span", null, "测试导入", -1)
80
+ ])]),
81
+ t("div", {
82
+ class: "btn-item",
83
+ onClick: l[0] || (l[0] = (...o) => e(b) && e(b)(...o))
47
84
  }, [
48
- n(i, null, {
49
- default: u(() => [
50
- n(e(G))
85
+ a(n, null, {
86
+ default: d(() => [
87
+ a(e(O))
51
88
  ]),
52
89
  _: 1
53
90
  }),
54
- l[12] || (l[12] = a("span", null, "数据源", -1))
91
+ l[12] || (l[12] = t("span", null, "数据源", -1))
55
92
  ]),
56
- n(e(E), {
57
- modelValue: e(m),
58
- "onUpdate:modelValue": l[1] || (l[1] = (o) => t(m) ? m.value = o : null)
93
+ a(e(E), {
94
+ modelValue: e(r),
95
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => i(r) ? r.value = o : null)
59
96
  }, null, 8, ["modelValue"]),
60
- n(e(I), {
97
+ a(e(q), {
61
98
  modelValue: e(p),
62
- "onUpdate:modelValue": l[2] || (l[2] = (o) => t(p) ? p.value = o : null)
99
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => i(p) ? p.value = o : null)
63
100
  }, null, 8, ["modelValue"]),
64
- a("div", {
101
+ t("div", {
65
102
  class: "btn-item",
66
- onClick: w
103
+ onClick: T
67
104
  }, [
68
- n(i, null, {
69
- default: u(() => [
70
- n(e(K))
105
+ a(n, null, {
106
+ default: d(() => [
107
+ a(e(Q))
71
108
  ]),
72
109
  _: 1
73
110
  }),
74
- l[13] || (l[13] = a("span", null, "全局事件", -1))
111
+ l[13] || (l[13] = t("span", null, "全局事件", -1))
75
112
  ]),
76
- n(N, {
77
- modelValue: e(r),
78
- "onUpdate:modelValue": l[3] || (l[3] = (o) => t(r) ? r.value = o : null)
113
+ a(R, {
114
+ modelValue: e(s),
115
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => i(s) ? s.value = o : null)
79
116
  }, null, 8, ["modelValue"]),
80
- n(e(x), {
117
+ a(e(F), {
81
118
  modelValue: e(g),
82
- "onUpdate:modelValue": l[4] || (l[4] = (o) => t(g) ? g.value = o : null),
83
- filterConfig: e(S),
84
- onConfirm: B,
119
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => i(g) ? g.value = o : null),
120
+ filterConfig: e(U),
121
+ onConfirm: L,
85
122
  title: "条件表达式配置"
86
123
  }, null, 8, ["modelValue", "filterConfig"]),
87
- a("div", {
124
+ t("div", {
88
125
  class: "btn-item",
89
- onClick: l[5] || (l[5] = (...o) => e(C) && e(C)(...o))
126
+ onClick: l[5] || (l[5] = (...o) => e(k) && e(k)(...o))
90
127
  }, [
91
- n(i, null, {
92
- default: u(() => [
93
- n(e(O))
128
+ a(n, null, {
129
+ default: d(() => [
130
+ a(e(W))
94
131
  ]),
95
132
  _: 1
96
133
  }),
97
- l[14] || (l[14] = a("span", null, "联动配置", -1))
134
+ l[14] || (l[14] = t("span", null, "联动配置", -1))
98
135
  ]),
99
- n(e(H), {
136
+ a(e(N), {
100
137
  modelValue: e(D),
101
- "onUpdate:modelValue": l[6] || (l[6] = (o) => t(D) ? D.value = o : null)
102
- }, null, 8, ["modelValue"]),
103
- a("div", {
104
- class: "btn-item",
105
- onClick: l[7] || (l[7] = (...o) => e(k) && e(k)(...o))
106
- }, [
107
- n(i, null, {
108
- default: u(() => [
109
- n(e(Q))
110
- ]),
111
- _: 1
112
- }),
113
- l[15] || (l[15] = a("span", null, "弹层配置", -1))
114
- ]),
115
- n(e(A), {
116
- modelValue: e(V),
117
- "onUpdate:modelValue": l[8] || (l[8] = (o) => t(V) ? V.value = o : null)
138
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => i(D) ? D.value = o : null)
118
139
  }, null, 8, ["modelValue"]),
119
- a("div", {
140
+ t("div", {
120
141
  class: "btn-item",
121
- onClick: L
142
+ onClick: l[7] || (l[7] = (...o) => e(c) && e(c)(...o))
122
143
  }, [
123
- n(i, null, {
124
- default: u(() => [
125
- n(e(T))
144
+ a(n, null, {
145
+ default: d(() => [
146
+ a(e(X))
126
147
  ]),
127
148
  _: 1
128
149
  }),
129
- l[16] || (l[16] = a("span", null, "隐藏域", -1))
150
+ l[15] || (l[15] = t("span", null, "弹层配置", -1))
130
151
  ]),
131
- n(y, {
132
- modelValue: e(s),
133
- "onUpdate:modelValue": l[9] || (l[9] = (o) => t(s) ? s.value = o : null)
152
+ a(e(S), {
153
+ modelValue: e(v),
154
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => i(v) ? v.value = o : null)
134
155
  }, null, 8, ["modelValue"]),
135
- a("div", {
156
+ t("div", {
136
157
  class: "btn-item",
137
- onClick: l[10] || (l[10] = (...o) => e(b) && e(b)(...o))
158
+ onClick: l[9] || (l[9] = (...o) => e(C) && e(C)(...o))
138
159
  }, [
139
- n(i, null, {
140
- default: u(() => [
141
- n(e(W))
160
+ a(n, null, {
161
+ default: d(() => [
162
+ a(e(Y))
142
163
  ]),
143
164
  _: 1
144
165
  }),
145
- l[17] || (l[17] = a("span", null, "数据结构", -1))
166
+ l[16] || (l[16] = t("span", null, "数据结构", -1))
146
167
  ]),
147
- n(e(F), {
168
+ a(e(w), {
148
169
  modelValue: e(f),
149
- "onUpdate:modelValue": l[11] || (l[11] = (o) => t(f) ? f.value = o : null)
170
+ "onUpdate:modelValue": l[10] || (l[10] = (o) => i(f) ? f.value = o : null)
150
171
  }, null, 8, ["modelValue"])
151
172
  ]);
152
173
  };
153
174
  }
154
- }, pl = /* @__PURE__ */ X($, [["__scopeId", "data-v-90b76c88"]]);
175
+ }, bl = /* @__PURE__ */ $(ll, [["__scopeId", "data-v-b3c4bf36"]]);
155
176
  export {
156
- pl as default
177
+ bl as default
157
178
  };