fec-dev-designer 1.0.3 → 1.0.5

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.
Files changed (32) hide show
  1. package/es/config-dev.js +7 -5
  2. package/es/node_modules/@element-plus/icons-vue/dist/index.js +107 -92
  3. package/es/node_modules/element-plus/es/components/result/index.js +7 -0
  4. package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
  5. package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
  6. package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
  7. package/es/src/components/OptionConfig.vue.js +1 -1
  8. package/es/src/components/ValueSelector.vue2.js +30 -24
  9. package/es/src/components/ValueSelectorPopover.vue2.js +2 -1
  10. package/es/src/index.js +6 -4
  11. package/es/src/layout/aside/index.vue.js +64 -60
  12. package/es/src/layout/index.vue.js +91 -54
  13. package/es/src/packages/dataSource/dataSource.vue.js +122 -118
  14. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
  15. package/es/src/packages/form/aside/index.js +17 -3
  16. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +46 -42
  17. package/es/src/packages/form/default.js +1 -0
  18. package/es/src/packages/form/formSetting.vue.js +72 -50
  19. package/es/src/packages/form/index.vue.js +247 -202
  20. package/es/src/packages/form/property/blank.vue.js +62 -0
  21. package/es/src/packages/form/property/index.vue.js +21 -20
  22. package/es/src/packages/form/property/subTable.vue.js +61 -52
  23. package/es/src/packages/form/property/widgets.vue.js +280 -173
  24. package/es/src/packages/table/aside/index.js +1 -0
  25. package/es/src/packages/table/property/widgets.vue.js +96 -85
  26. package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
  27. package/es/src/packages/table/tablePagination.vue.js +37 -45
  28. package/es/src/packages/table/tableSetting.vue.js +12 -13
  29. package/es/src/store/designer.js +40 -0
  30. package/es/src/store/index.js +12 -39
  31. package/es/style.css +1 -1
  32. package/package.json +1 -1
@@ -17,25 +17,25 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker-panel.c
17
17
  import "../../../../node_modules/element-plus/theme-chalk/el-input.css.js";
18
18
  import "../../../../node_modules/element-plus/theme-chalk/el-button.css.js";
19
19
  import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js";
20
- import { computed as S, openBlock as t, createElementBlock as u, createVNode as q, createSlots as N, withCtx as m, createBlock as o, normalizeProps as d, mergeProps as a, unref as l, createCommentVNode as i, Fragment as D, renderList as k, createTextVNode as h, toDisplayString as s, createElementVNode as v } from "vue";
20
+ import { computed as V, openBlock as t, createElementBlock as u, createBlock as o, createSlots as q, withCtx as r, normalizeProps as d, mergeProps as a, unref as l, createCommentVNode as i, Fragment as D, renderList as k, createTextVNode as h, toDisplayString as y, createElementVNode as v } from "vue";
21
21
  import "./ComponentPreviewWrapper.vue2.js";
22
22
  import W from "../../../../_virtual/_plugin-vue_export-helper.js";
23
23
  import { ElTooltip as B } from "../../../../node_modules/element-plus/es/components/tooltip/index.js";
24
24
  import { ElInput as I } from "../../../../node_modules/element-plus/es/components/input/index.js";
25
25
  import { ElDatePicker as L } from "../../../../node_modules/element-plus/es/components/date-picker/index.js";
26
- import { ElSelect as z } from "../../../../node_modules/element-plus/es/components/select/index.js";
27
- import { ElRadio as F, ElRadioGroup as G } from "../../../../node_modules/element-plus/es/components/radio/index.js";
28
- import { ElCheckbox as O, ElCheckboxGroup as R } from "../../../../node_modules/element-plus/es/components/checkbox/index.js";
29
- import { ElSwitch as j } from "../../../../node_modules/element-plus/es/components/switch/index.js";
30
- import { ElDivider as J } from "../../../../node_modules/element-plus/es/components/divider/index.js";
31
- import { ElFormItem as M } from "../../../../node_modules/element-plus/es/components/form/index.js";
32
- const Z = { class: "component-preview" }, A = {
26
+ import { ElSelect as N } from "../../../../node_modules/element-plus/es/components/select/index.js";
27
+ import { ElRadio as z, ElRadioGroup as F } from "../../../../node_modules/element-plus/es/components/radio/index.js";
28
+ import { ElCheckbox as G, ElCheckboxGroup as O } from "../../../../node_modules/element-plus/es/components/checkbox/index.js";
29
+ import { ElSwitch as R } from "../../../../node_modules/element-plus/es/components/switch/index.js";
30
+ import { ElDivider as j } from "../../../../node_modules/element-plus/es/components/divider/index.js";
31
+ import { ElFormItem as J } from "../../../../node_modules/element-plus/es/components/form/index.js";
32
+ const M = { class: "component-preview" }, Z = {
33
33
  key: 0,
34
34
  class: "iconfont icon-iconZheng credit-icon"
35
- }, H = {
35
+ }, A = {
36
36
  key: 1,
37
37
  class: "iconfont icon-iconJian regulation-icon"
38
- }, K = {
38
+ }, H = {
39
39
  __name: "ComponentPreviewWrapper",
40
40
  props: {
41
41
  componentData: {
@@ -44,7 +44,7 @@ const Z = { class: "component-preview" }, A = {
44
44
  }
45
45
  },
46
46
  setup(e) {
47
- const p = e, n = S(() => ({
47
+ const p = e, n = V(() => ({
48
48
  disabled: p.componentData.disabled,
49
49
  readonly: p.componentData.readOnly,
50
50
  placeholder: p.componentData.placeholder || "",
@@ -52,49 +52,53 @@ const Z = { class: "component-preview" }, A = {
52
52
  maxlength: p.componentData.maxLength,
53
53
  showWordLimit: p.componentData.showWordCount || !1
54
54
  }));
55
- return (Q, y) => {
56
- const x = B, f = I, _ = L, b = z, E = F, T = G, g = O, w = R, C = j, P = J, V = M;
57
- return t(), u("div", Z, [
58
- q(V, {
55
+ return (K, s) => {
56
+ const T = B, f = I, b = L, x = N, g = z, E = F, w = G, C = O, _ = R, P = j, S = J;
57
+ return t(), u("div", M, [
58
+ e.componentData.fieldType != "blank" ? (t(), o(S, {
59
+ key: 0,
59
60
  placeholder: e.componentData.placeholder,
60
61
  required: e.componentData.required,
61
62
  class: "preview-form-item"
62
- }, N({
63
- default: m(() => [
63
+ }, q({
64
+ default: r(() => [
64
65
  e.componentData.fieldType == "text" ? (t(), o(f, d(a({ key: 0 }, l(n))), null, 16)) : e.componentData.fieldType == "textarea" ? (t(), o(f, a({
65
66
  key: 1,
66
67
  rows: 4,
67
68
  type: "textarea"
68
- }, l(n), { resize: "none" }), null, 16)) : i("", !0),
69
- e.componentData.fieldType == "number" ? (t(), o(f, a({ key: 2 }, l(n), { controls: !1 }), null, 16)) : e.componentData.fieldType == "date" ? (t(), o(_, a({ key: 3 }, l(n), {
69
+ }, l(n), {
70
+ resize: "none",
71
+ style: { height: "100%" }
72
+ }), null, 16)) : i("", !0),
73
+ e.componentData.fieldType == "number" ? (t(), o(f, a({ key: 2 }, l(n), { controls: !1 }), null, 16)) : e.componentData.fieldType == "date" ? (t(), o(b, a({ key: 3 }, l(n), {
70
74
  type: "date",
71
75
  style: { width: "100%" }
72
- }), null, 16)) : e.componentData.fieldType == "select" || e.componentData.fieldType == "multipleSelection" ? (t(), o(b, d(a({ key: 4 }, l(n))), null, 16)) : e.componentData.fieldType == "radio" ? (t(), o(T, d(a({ key: 5 }, l(n))), {
73
- default: m(() => {
76
+ }), null, 16)) : e.componentData.fieldType == "select" || e.componentData.fieldType == "multipleSelection" || e.componentData.fieldType == "cascader" || e.componentData.fieldType == "area" || e.componentData.fieldType == "industry" ? (t(), o(x, d(a({ key: 4 }, l(n))), null, 16)) : e.componentData.fieldType == "radio" ? (t(), o(E, d(a({ key: 5 }, l(n))), {
77
+ default: r(() => {
74
78
  var c;
75
79
  return [
76
- (t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (r) => (t(), o(E, {
77
- key: r.value,
78
- value: r.value
80
+ (t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (m) => (t(), o(g, {
81
+ key: m.value,
82
+ value: m.value
79
83
  }, {
80
- default: m(() => [
81
- h(s(r.label), 1)
84
+ default: r(() => [
85
+ h(y(m.label), 1)
82
86
  ]),
83
87
  _: 2
84
88
  }, 1032, ["value"]))), 128))
85
89
  ];
86
90
  }),
87
91
  _: 1
88
- }, 16)) : e.componentData.fieldType == "checkbox" ? (t(), o(w, d(a({ key: 6 }, l(n))), {
89
- default: m(() => {
92
+ }, 16)) : e.componentData.fieldType == "checkbox" ? (t(), o(C, d(a({ key: 6 }, l(n))), {
93
+ default: r(() => {
90
94
  var c;
91
95
  return [
92
- (t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (r) => (t(), o(g, {
93
- key: r.value,
94
- value: r.value
96
+ (t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (m) => (t(), o(w, {
97
+ key: m.value,
98
+ value: m.value
95
99
  }, {
96
- default: m(() => [
97
- h(s(r.label), 1)
100
+ default: r(() => [
101
+ h(y(m.label), 1)
98
102
  ]),
99
103
  _: 2
100
104
  }, 1032, ["value"]))), 128))
@@ -102,7 +106,7 @@ const Z = { class: "component-preview" }, A = {
102
106
  }),
103
107
  _: 1
104
108
  }, 16)) : i("", !0),
105
- e.componentData.fieldType == "switch" ? (t(), o(C, d(a({ key: 7 }, l(n))), null, 16)) : i("", !0),
109
+ e.componentData.fieldType == "switch" ? (t(), o(_, d(a({ key: 7 }, l(n))), null, 16)) : i("", !0),
106
110
  e.componentData.fieldType == "upload" ? (t(), o(f, d(a({ key: 8 }, l(n))), null, 16)) : i("", !0),
107
111
  e.componentData.fieldType == "divider" ? (t(), o(P, { key: 9 })) : i("", !0)
108
112
  ]),
@@ -110,18 +114,18 @@ const Z = { class: "component-preview" }, A = {
110
114
  }, [
111
115
  e.componentData.labelMode != "input" ? {
112
116
  name: "label",
113
- fn: m(() => {
117
+ fn: r(() => {
114
118
  var c;
115
119
  return [
116
- e.componentData.credit ? (t(), u("i", A)) : i("", !0),
117
- e.componentData.regulation ? (t(), u("i", H)) : i("", !0),
118
- v("span", null, s(e.componentData.label), 1),
119
- (c = e.componentData.tooltip) != null && c.trim() ? (t(), o(x, {
120
+ e.componentData.credit ? (t(), u("i", Z)) : i("", !0),
121
+ e.componentData.regulation ? (t(), u("i", A)) : i("", !0),
122
+ v("span", null, y(e.componentData.label), 1),
123
+ (c = e.componentData.tooltip) != null && c.trim() ? (t(), o(T, {
120
124
  key: 2,
121
125
  content: e.componentData.tooltip,
122
126
  placement: "top"
123
127
  }, {
124
- default: m(() => [...y[0] || (y[0] = [
128
+ default: r(() => [...s[0] || (s[0] = [
125
129
  v("i", { class: "iconfont icon-tooltip info-icon" }, null, -1)
126
130
  ])]),
127
131
  _: 1
@@ -130,11 +134,11 @@ const Z = { class: "component-preview" }, A = {
130
134
  }),
131
135
  key: "0"
132
136
  } : void 0
133
- ]), 1032, ["placeholder", "required"])
137
+ ]), 1032, ["placeholder", "required"])) : i("", !0)
134
138
  ]);
135
139
  };
136
140
  }
137
- }, Ce = /* @__PURE__ */ W(K, [["__scopeId", "data-v-8475001f"]]);
141
+ }, Ce = /* @__PURE__ */ W(H, [["__scopeId", "data-v-4386137a"]]);
138
142
  export {
139
143
  Ce as default
140
144
  };
@@ -2,6 +2,7 @@ const e = {
2
2
  fieldsData: [],
3
3
  columns: 2,
4
4
  labelWidth: 120,
5
+ formMode: "edit",
5
6
  labelPosition: "right",
6
7
  dataSources: [],
7
8
  linkedConfig: {},
@@ -11,127 +11,149 @@ import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
11
11
  import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
12
12
  import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
13
13
  import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
14
- import { computed as s, openBlock as _, createElementBlock as D, Fragment as E, createElementVNode as o, createVNode as e, withCtx as i, createTextVNode as r, unref as v, isRef as w } from "vue";
14
+ import { computed as r, openBlock as D, createElementBlock as E, Fragment as _, createElementVNode as a, createVNode as e, withCtx as u, createTextVNode as i, unref as f, isRef as w } from "vue";
15
15
  import { getEditConfigData as N } from "../utils/common.js";
16
16
  import { useDataSourceDialog as U } from "../dataSource/useDataSourceDialog.js";
17
17
  import "./formSetting.vue2.js";
18
18
  import z from "../../../_virtual/_plugin-vue_export-helper.js";
19
19
  import { ElOption as F, ElSelect as I } from "../../../node_modules/element-plus/es/components/select/index.js";
20
20
  import { ElInputNumber as R } from "../../../node_modules/element-plus/es/components/input-number/index.js";
21
- import { ElRadioButton as B, ElRadioGroup as C } from "../../../node_modules/element-plus/es/components/radio/index.js";
22
- import { ElSwitch as k } from "../../../node_modules/element-plus/es/components/switch/index.js";
23
- const y = { class: "form-setting" }, P = { class: "setting-left" }, W = { class: "setting-right" }, G = {
21
+ import { ElRadioButton as y, ElRadioGroup as B } from "../../../node_modules/element-plus/es/components/radio/index.js";
22
+ import { ElSwitch as C } from "../../../node_modules/element-plus/es/components/switch/index.js";
23
+ const k = { class: "form-setting" }, M = { class: "setting-left" }, P = { class: "setting-right" }, W = {
24
24
  __name: "formSetting",
25
- setup(O) {
26
- const { dataSourceDialogVisible: m, openDataSourceDialog: T, DataSourceDialog: f } = U(), t = s(() => N()), g = s(() => t.value.dataSources || []), p = s({
25
+ setup(q) {
26
+ const { dataSourceDialogVisible: m, openDataSourceDialog: G, DataSourceDialog: V } = U(), t = r(() => N()), g = r(() => t.value.dataSources || []), p = r({
27
27
  get: () => t.value.dataSourceId,
28
28
  set: (n) => {
29
29
  t.value.dataSourceId = n;
30
30
  }
31
31
  });
32
- return s(() => {
32
+ return r(() => {
33
33
  if (!p.value)
34
34
  return "";
35
35
  const n = g.value.find(
36
36
  (l) => l.id === p.value
37
37
  );
38
38
  return n ? n.name : "";
39
- }), s(() => t.value.validationRules || []), (n, l) => {
40
- const u = F, V = I, b = R, d = B, S = C, x = k;
41
- return _(), D(E, null, [
42
- o("div", y, [
43
- o("div", P, [
44
- l[9] || (l[9] = o("span", { class: "text-label" }, "列数", -1)),
45
- e(V, {
39
+ }), r(() => t.value.validationRules || []), (n, l) => {
40
+ const d = F, b = I, x = R, s = y, v = B, S = C;
41
+ return D(), E(_, null, [
42
+ a("div", k, [
43
+ a("div", M, [
44
+ l[12] || (l[12] = a("span", { class: "text-label" }, "列数", -1)),
45
+ e(b, {
46
46
  modelValue: t.value.columns,
47
- "onUpdate:modelValue": l[0] || (l[0] = (a) => t.value.columns = a),
47
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value.columns = o),
48
48
  size: "small",
49
49
  style: { width: "100px" }
50
50
  }, {
51
- default: i(() => [
52
- e(u, {
51
+ default: u(() => [
52
+ e(d, {
53
53
  label: "一列",
54
54
  value: 1
55
55
  }),
56
- e(u, {
56
+ e(d, {
57
57
  label: "二列",
58
58
  value: 2
59
59
  }),
60
- e(u, {
60
+ e(d, {
61
61
  label: "三列",
62
62
  value: 3
63
63
  }),
64
- e(u, {
64
+ e(d, {
65
65
  label: "四列",
66
66
  value: 4
67
67
  })
68
68
  ]),
69
69
  _: 1
70
70
  }, 8, ["modelValue"]),
71
- l[10] || (l[10] = o("div", { class: "setting-divider" }, null, -1)),
72
- l[11] || (l[11] = o("span", { class: "text-label" }, "标签宽度", -1)),
73
- e(b, {
71
+ l[13] || (l[13] = a("div", { class: "setting-divider" }, null, -1)),
72
+ l[14] || (l[14] = a("span", { class: "text-label" }, "标签宽度", -1)),
73
+ e(x, {
74
74
  modelValue: t.value.labelWidth,
75
- "onUpdate:modelValue": l[1] || (l[1] = (a) => t.value.labelWidth = a),
75
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => t.value.labelWidth = o),
76
76
  min: 70,
77
77
  max: 200,
78
78
  size: "small",
79
79
  "controls-position": "right",
80
80
  style: { width: "80px" }
81
81
  }, {
82
- append: i(() => [...l[5] || (l[5] = [
83
- r("px", -1)
82
+ append: u(() => [...l[6] || (l[6] = [
83
+ i("px", -1)
84
84
  ])]),
85
85
  _: 1
86
86
  }, 8, ["modelValue"]),
87
- l[12] || (l[12] = o("div", { class: "setting-divider" }, null, -1)),
88
- l[13] || (l[13] = o("span", { class: "text-label" }, "标签位置", -1)),
89
- e(S, {
87
+ l[15] || (l[15] = a("div", { class: "setting-divider" }, null, -1)),
88
+ l[16] || (l[16] = a("span", { class: "text-label" }, "标签位置", -1)),
89
+ e(v, {
90
90
  modelValue: t.value.labelPosition,
91
- "onUpdate:modelValue": l[2] || (l[2] = (a) => t.value.labelPosition = a),
91
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => t.value.labelPosition = o),
92
92
  size: "small"
93
93
  }, {
94
- default: i(() => [
95
- e(d, { value: "left" }, {
96
- default: i(() => [...l[6] || (l[6] = [
97
- r("左对齐", -1)
94
+ default: u(() => [
95
+ e(s, { value: "left" }, {
96
+ default: u(() => [...l[7] || (l[7] = [
97
+ i("左对齐", -1)
98
98
  ])]),
99
99
  _: 1
100
100
  }),
101
- e(d, { value: "right" }, {
102
- default: i(() => [...l[7] || (l[7] = [
103
- r("右对齐", -1)
101
+ e(s, { value: "right" }, {
102
+ default: u(() => [...l[8] || (l[8] = [
103
+ i("右对齐", -1)
104
104
  ])]),
105
105
  _: 1
106
106
  }),
107
- e(d, { value: "top" }, {
108
- default: i(() => [...l[8] || (l[8] = [
109
- r("顶部对齐", -1)
107
+ e(s, { value: "top" }, {
108
+ default: u(() => [...l[9] || (l[9] = [
109
+ i("顶部对齐", -1)
110
110
  ])]),
111
111
  _: 1
112
112
  })
113
113
  ]),
114
114
  _: 1
115
115
  }, 8, ["modelValue"]),
116
- l[14] || (l[14] = o("div", { class: "setting-divider" }, null, -1))
116
+ l[17] || (l[17] = a("div", { class: "setting-divider" }, null, -1)),
117
+ l[18] || (l[18] = a("span", { class: "text-label" }, "表单模式", -1)),
118
+ e(v, {
119
+ modelValue: t.value.formMode,
120
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => t.value.formMode = o),
121
+ size: "small"
122
+ }, {
123
+ default: u(() => [
124
+ e(s, { value: "edit" }, {
125
+ default: u(() => [...l[10] || (l[10] = [
126
+ i("编辑", -1)
127
+ ])]),
128
+ _: 1
129
+ }),
130
+ e(s, { value: "query" }, {
131
+ default: u(() => [...l[11] || (l[11] = [
132
+ i("查看", -1)
133
+ ])]),
134
+ _: 1
135
+ })
136
+ ]),
137
+ _: 1
138
+ }, 8, ["modelValue"])
117
139
  ]),
118
- o("div", W, [
119
- l[15] || (l[15] = o("span", { class: "text-label" }, "显示字段名", -1)),
120
- e(x, {
140
+ a("div", P, [
141
+ l[19] || (l[19] = a("span", { class: "text-label" }, "显示字段名", -1)),
142
+ e(S, {
121
143
  modelValue: t.value.showFieldName,
122
- "onUpdate:modelValue": l[3] || (l[3] = (a) => t.value.showFieldName = a),
144
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => t.value.showFieldName = o),
123
145
  size: "small"
124
146
  }, null, 8, ["modelValue"])
125
147
  ])
126
148
  ]),
127
- e(v(f), {
128
- modelValue: v(m),
129
- "onUpdate:modelValue": l[4] || (l[4] = (a) => w(m) ? m.value = a : null)
149
+ e(f(V), {
150
+ modelValue: f(m),
151
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => w(m) ? m.value = o : null)
130
152
  }, null, 8, ["modelValue"])
131
153
  ], 64);
132
154
  };
133
155
  }
134
- }, sl = /* @__PURE__ */ z(G, [["__scopeId", "data-v-53f9dd60"]]);
156
+ }, nl = /* @__PURE__ */ z(W, [["__scopeId", "data-v-cc559ca7"]]);
135
157
  export {
136
- sl as default
158
+ nl as default
137
159
  };