super-page-designer 2.0.31 → 2.0.37

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 (64) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +395 -88
  2. package/dist/es/components/design/utils/container-design-util.js +6 -8
  3. package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +3 -2
  4. package/dist/es/components/design/utils/page-explore-util.d.ts +2 -2
  5. package/dist/es/components/design/utils/page-explore-util.js +5 -17
  6. package/dist/es/components/design/utils/page-table-util.js +4 -2
  7. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +6 -3
  8. package/dist/es/components/design/views/assemblys/button/button/button-attr.vue.js +0 -1
  9. package/dist/es/components/design/views/assemblys/common/common-style-border.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/common/common-style-margin.vue.js +9 -9
  11. package/dist/es/components/design/views/assemblys/common/common-style-padding.vue.js +9 -9
  12. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
  13. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +225 -21
  15. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +77 -31
  16. package/dist/es/components/design/views/assemblys/container/card/card-attr-style.vue.js +4 -1
  17. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +12 -11
  18. package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr-style.vue.js +4 -1
  19. package/dist/es/components/design/views/assemblys/container/container/container-attr-style.vue.js +4 -1
  20. package/dist/es/components/design/views/assemblys/container/flex/flex-attr-style.vue.js +4 -1
  21. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +31 -15
  22. package/dist/es/components/design/views/assemblys/container/form/form-attr-base.vue.js +2 -2
  23. package/dist/es/components/design/views/assemblys/container/form/form-attr-style.vue.js +21 -16
  24. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +16 -19
  25. package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-style.vue.js +4 -1
  26. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-style.vue.js +4 -1
  27. package/dist/es/components/design/views/assemblys/container/tools/tools-attr-style.vue.js +4 -1
  28. package/dist/es/components/design/views/assemblys/data/component/attr-header.vue.js +46 -5
  29. package/dist/es/components/design/views/assemblys/data/component/attr-header.vue2.js +1 -45
  30. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -57
  31. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +10 -10
  32. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +4 -1
  33. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +57 -27
  34. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +9 -106
  35. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +4 -1
  36. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -2
  37. package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +4 -1
  38. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +4 -1
  39. package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +4 -1
  40. package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +4 -1
  41. package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +4 -1
  42. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +4 -1
  43. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +4 -1
  44. package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +4 -1
  45. package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +4 -1
  46. package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +4 -1
  47. package/dist/es/components/design/views/assemblys/object-design.vue.js +6 -1
  48. package/dist/es/components/design/views/design/page-design.vue.js +14 -20
  49. package/dist/es/components/design/views/design/page-event/config.vue.js +7 -1
  50. package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -7
  51. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +594 -5
  52. package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +1 -594
  53. package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +2 -2
  54. package/dist/es/components/design/views/design/view/attr-container.vue.js +23 -1
  55. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +13 -4
  56. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +0 -1
  57. package/dist/es/components/design/views/design/view/view-design-display.vue.js +88 -81
  58. package/dist/es/components/design/views/design/view/view-design-preview.vue.js +21 -2
  59. package/dist/es/stores/page-store.js +2 -1
  60. package/dist/es/style.css +1086 -1329
  61. package/package.json +5 -5
  62. package/dist/es/components/design/views/assemblys/button/button/button-attr.vue3.js +0 -1
  63. package/dist/es/components/design/views/assemblys/data/component/attr-header.vue3.js +0 -1
  64. package/dist/es/components/design/views/design/page-event/page-event-content.vue3.js +0 -1
@@ -1,48 +1,4 @@
1
- import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, normalizeClass } from "vue";
2
- const _hoisted_1 = { class: "amb-design-attr-header" };
3
- const _hoisted_2 = { class: "amb-design-attr-header-type" };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "attr-header",
6
- props: {
7
- modelValue: {
8
- type: String,
9
- default: "base"
10
- // 设置默认值
11
- }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(__props, { emit: __emit }) {
15
- const props = __props;
16
- const emit = __emit;
17
- const clickType = ref(props.modelValue);
18
- function changeType(type) {
19
- clickType.value = type;
20
- emit("update:modelValue", type);
21
- }
22
- return (_ctx, _cache) => {
23
- return openBlock(), createElementBlock("div", _hoisted_1, [
24
- createElementVNode("div", _hoisted_2, [
25
- createElementVNode("label", {
26
- class: normalizeClass({ selected: clickType.value === "base" }),
27
- onClick: _cache[0] || (_cache[0] = ($event) => changeType("base"))
28
- }, "属性", 2),
29
- createElementVNode("label", {
30
- class: normalizeClass({ selected: clickType.value === "advanced" }),
31
- onClick: _cache[1] || (_cache[1] = ($event) => changeType("advanced"))
32
- }, "高级", 2),
33
- createElementVNode("label", {
34
- class: normalizeClass({ selected: clickType.value === "style" }),
35
- onClick: _cache[2] || (_cache[2] = ($event) => changeType("style"))
36
- }, "样式", 2),
37
- createElementVNode("label", {
38
- class: normalizeClass({ selected: clickType.value === "event" }),
39
- onClick: _cache[3] || (_cache[3] = ($event) => changeType("event"))
40
- }, "事件", 2)
41
- ])
42
- ]);
43
- };
44
- }
45
- });
1
+ import _sfc_main from "./attr-header.vue.js";
46
2
  export {
47
3
  _sfc_main as default
48
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
2
- import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
2
+ import { getTableOperateConf, getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import DataOrigin from "../component/data-origin.vue.js";
4
4
  import _sfc_main$3 from "../../common/common-attr-size.vue.js";
5
5
  import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
@@ -192,62 +192,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
192
  () => props.configure.props.base.showOperation,
193
193
  (newVal) => {
194
194
  if (newVal) {
195
- let selectColumn = {
196
- uuid: getUuidv4(),
197
- name: "",
198
- props: {
199
- base: {
200
- name: "操作",
201
- title: "操作",
202
- prop: "operation",
203
- columnWidth: 150,
204
- sortable: true,
205
- visible: true,
206
- alignTittle: "center",
207
- alignContent: "center"
208
- },
209
- size: {},
210
- editLine: {},
211
- scan: {},
212
- preSuffix: {},
213
- verification: {},
214
- dataOrigin: {
215
- sortField: [{ name: "", type: "" }],
216
- staticState: [{ label: "选项1", vaule: 1 }],
217
- displayQuantity: 20
218
- },
219
- defaultValue: {},
220
- inParameter: {},
221
- title: {},
222
- definition: {},
223
- uploadConfig: {},
224
- singleWidth: {},
225
- suffixModule: {},
226
- querySetting: {},
227
- formatting: {
228
- type: "",
229
- suffixModule: {
230
- jumpPageAdditional: [],
231
- icon: ""
232
- }
233
- }
234
- },
235
- events: [
236
- { name: "show", label: "列表显示", tip: "列表显示回调方法" },
237
- { name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
238
- ],
239
- style: {
240
- titleFont: {},
241
- contentFont: {},
242
- width: {},
243
- background: {},
244
- conentPadding: {},
245
- tittlePadding: {},
246
- border: {},
247
- shadow: {},
248
- tittleClass: ""
249
- }
250
- };
195
+ let selectColumn = getTableOperateConf();
251
196
  props.configure.items.push(selectColumn);
252
197
  } else {
253
198
  let delIndex = null;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, isRef, createElementVNode, withDirectives, createBlock, vShow } from "vue";
2
- import _sfc_main$4 from "./table-attr-base.vue.js";
3
- import _sfc_main$5 from "./table-attr-advanced.vue.js";
4
- import _sfc_main$6 from "./table-attr-style.vue.js";
5
- import AttrHeader$1 from "../component/attr-header.vue.js";
6
- import _sfc_main$7 from "./table-attr-event.vue.js";
2
+ import _sfc_main$5 from "./table-attr-base.vue.js";
3
+ import _sfc_main$6 from "./table-attr-advanced.vue.js";
4
+ import _sfc_main$7 from "./table-attr-style.vue.js";
5
+ import _sfc_main$4 from "../component/attr-header.vue.js";
6
+ import _sfc_main$8 from "./table-attr-event.vue.js";
7
7
  import AttrHeader from "../../form/common/attr-header.vue.js";
8
8
  import _sfc_main$1 from "./tablecolumn-attr-base.vue.js";
9
9
  import _sfc_main$2 from "./tablecolumn-attr-style.vue.js";
@@ -67,28 +67,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  ])
68
68
  ])
69
69
  ])) : (openBlock(), createElementBlock("div", _hoisted_3, [
70
- createVNode(AttrHeader$1, {
70
+ createVNode(_sfc_main$4, {
71
71
  modelValue: unref(currentConfigType),
72
72
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
73
73
  }, null, 8, ["modelValue"]),
74
74
  createElementVNode("div", _hoisted_4, [
75
- withDirectives(createVNode(_sfc_main$4, {
75
+ withDirectives(createVNode(_sfc_main$5, {
76
76
  pageDesign: __props.pageDesign,
77
77
  configure: __props.configure
78
78
  }, null, 8, ["pageDesign", "configure"]), [
79
79
  [vShow, unref(currentConfigType) === "base"]
80
80
  ]),
81
- withDirectives(createVNode(_sfc_main$5, {
81
+ withDirectives(createVNode(_sfc_main$6, {
82
82
  pageDesign: __props.pageDesign,
83
83
  configure: __props.configure,
84
84
  tableConfigure: tableConfigure.value
85
85
  }, null, 8, ["pageDesign", "configure", "tableConfigure"]), [
86
86
  [vShow, unref(currentConfigType) === "advanced"]
87
87
  ]),
88
- withDirectives(createVNode(_sfc_main$6, { configure: __props.configure }, null, 8, ["configure"]), [
88
+ withDirectives(createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]), [
89
89
  [vShow, unref(currentConfigType) === "style"]
90
90
  ]),
91
- withDirectives(createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]), [
91
+ withDirectives(createVNode(_sfc_main$8, { configure: __props.configure }, null, 8, ["configure"]), [
92
92
  [vShow, unref(currentConfigType) === "event"]
93
93
  ])
94
94
  ])
@@ -23,8 +23,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  if (props.configure.isTable) {
24
24
  isTable.value = true;
25
25
  }
26
- function afterBindVariable(modelValue) {
26
+ function afterBindVariable(modelValue, alias) {
27
27
  props.configure.props.base.prop = modelValue;
28
+ if (alias) {
29
+ props.configure.props.base.title = alias;
30
+ }
28
31
  }
29
32
  function afterBindDefaultValue(modelValue) {
30
33
  props.configure.props.base.defaultValue = modelValue;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, withDirectives, vShow, createTextVNode } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import { getCustomFuncs } from "../../../../utils/page-event-util.js";
4
4
  import _sfc_main$2 from "../../common/common-attr-size.vue.js";
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "datepicker-attr-base",
11
11
  props: {
12
12
  configure: {
13
- type: Object
13
+ type: Object,
14
+ required: true
14
15
  },
15
16
  default: () => ({ props: {} })
16
17
  },
@@ -21,11 +22,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  if (props.configure.isTable) {
22
23
  isTable.value = true;
23
24
  }
24
- function afterBindVariable(modelValue) {
25
+ const labelName = computed(() => {
26
+ const propBase = props.configure.props.base;
27
+ const isScope = (!propBase.type || propBase.type != "week" && propBase.type != "year") && propBase.dateScope;
28
+ return isScope ? "默认值1" : "默认值";
29
+ });
30
+ function afterBindVariable(modelValue, alias) {
25
31
  props.configure.props.base.prop = modelValue;
32
+ if (alias) {
33
+ props.configure.props.base.title = alias;
34
+ }
26
35
  }
27
- function afterBindDefaultValue(modelValue) {
28
- props.configure.props.base.defaultValue = modelValue;
36
+ function afterBindDefaultValue(modelValue, fieldName) {
37
+ if (fieldName === "defaultValue2") {
38
+ props.configure.props.base.defaultValue2 = modelValue;
39
+ } else {
40
+ props.configure.props.base.defaultValue = modelValue;
41
+ }
29
42
  }
30
43
  return (_ctx, _cache) => {
31
44
  const _component_el_option = resolveComponent("el-option");
@@ -49,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
62
  default: withCtx(() => [
50
63
  createVNode(_component_el_collapse, {
51
64
  modelValue: openCollapseItems.value,
52
- "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => openCollapseItems.value = $event),
65
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => openCollapseItems.value = $event),
53
66
  style: { "margin-top": "6px" }
54
67
  }, {
55
68
  default: withCtx(() => [
@@ -105,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
118
  }, {
106
119
  default: withCtx(() => [
107
120
  (openBlock(), createBlock(BindVariable, {
108
- key: __props.configure.uuid,
121
+ key: __props.configure.uuid + "prop",
109
122
  modelValue: __props.configure.props.base.prop,
110
123
  paramTypes: ["data", "page"],
111
124
  "onUpdate:modelValue": afterBindVariable
@@ -114,18 +127,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
114
127
  _: 1
115
128
  })) : createCommentVNode("", true),
116
129
  createVNode(_component_el_form_item, {
117
- label: "默认值",
130
+ label: labelName.value,
118
131
  class: "amb-design-attr-item"
119
132
  }, {
120
133
  default: withCtx(() => [
121
134
  (openBlock(), createBlock(BindVariable, {
122
- key: __props.configure.uuid,
135
+ key: __props.configure.uuid + "defaultValue",
136
+ isRange: true,
123
137
  modelValue: __props.configure.props.base.defaultValue,
124
138
  "onUpdate:modelValue": afterBindDefaultValue
125
139
  }, null, 8, ["modelValue"]))
126
140
  ]),
127
141
  _: 1
128
- }),
142
+ }, 8, ["label"]),
143
+ withDirectives(createVNode(_component_el_form_item, {
144
+ label: "默认值2",
145
+ class: "amb-design-attr-item"
146
+ }, {
147
+ default: withCtx(() => [
148
+ (openBlock(), createBlock(BindVariable, {
149
+ key: __props.configure.uuid + "defaultValue2",
150
+ isRange: true,
151
+ modelValue: __props.configure.props.base.defaultValue2,
152
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => afterBindDefaultValue(value, "defaultValue2"))
153
+ }, null, 8, ["modelValue"]))
154
+ ]),
155
+ _: 1
156
+ }, 512), [
157
+ [vShow, (!__props.configure.props.base.type || __props.configure.props.base.type != "week" && __props.configure.props.base.type != "year") && __props.configure.props.base.dateScope]
158
+ ]),
129
159
  !isTable.value ? (openBlock(), createBlock(_component_el_form_item, {
130
160
  key: 1,
131
161
  label: "绑定权限",
@@ -147,7 +177,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
147
177
  default: withCtx(() => [
148
178
  createVNode(_component_el_radio_group, {
149
179
  modelValue: __props.configure.props.base.tittleShow,
150
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.base.tittleShow = $event),
180
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.tittleShow = $event),
151
181
  class: "ml-4"
152
182
  }, {
153
183
  default: withCtx(() => [
@@ -176,7 +206,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
176
206
  default: withCtx(() => [
177
207
  createVNode(_component_el_input, {
178
208
  modelValue: __props.configure.props.base.title,
179
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.title = $event),
209
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.title = $event),
180
210
  placeholder: "请输入"
181
211
  }, null, 8, ["modelValue"])
182
212
  ]),
@@ -191,7 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
191
221
  default: withCtx(() => [
192
222
  createVNode(_component_el_input_number, {
193
223
  modelValue: __props.configure.props.base.titleWidth,
194
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.titleWidth = $event),
224
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.titleWidth = $event),
195
225
  style: { "width": "100%" },
196
226
  min: 0,
197
227
  max: 200,
@@ -214,7 +244,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
214
244
  default: withCtx(() => [
215
245
  createVNode(_component_el_input, {
216
246
  modelValue: __props.configure.props.base.placeholder,
217
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.placeholder = $event),
247
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.placeholder = $event),
218
248
  placeholder: "请输入"
219
249
  }, null, 8, ["modelValue"])
220
250
  ]),
@@ -227,7 +257,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
227
257
  default: withCtx(() => [
228
258
  createVNode(_component_el_input, {
229
259
  modelValue: __props.configure.props.base.endPlaceholder,
230
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.endPlaceholder = $event),
260
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.base.endPlaceholder = $event),
231
261
  placeholder: "请输入"
232
262
  }, null, 8, ["modelValue"])
233
263
  ]),
@@ -242,7 +272,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
242
272
  default: withCtx(() => [
243
273
  createVNode(_component_el_radio_group, {
244
274
  modelValue: __props.configure.props.base.clearable,
245
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.base.clearable = $event),
275
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.base.clearable = $event),
246
276
  class: "ml-4"
247
277
  }, {
248
278
  default: withCtx(() => [
@@ -271,7 +301,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
271
301
  default: withCtx(() => [
272
302
  createVNode(_component_el_radio_group, {
273
303
  modelValue: __props.configure.props.base.type,
274
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.base.type = $event),
304
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.base.type = $event),
275
305
  class: "ml-4"
276
306
  }, {
277
307
  default: withCtx(() => [
@@ -324,7 +354,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
324
354
  default: withCtx(() => [
325
355
  createVNode(_component_el_radio_group, {
326
356
  modelValue: __props.configure.props.base.dateScope,
327
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.base.dateScope = $event),
357
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.dateScope = $event),
328
358
  class: "ml-4"
329
359
  }, {
330
360
  default: withCtx(() => [
@@ -355,7 +385,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
355
385
  default: withCtx(() => [
356
386
  createVNode(_component_el_checkbox_group, {
357
387
  modelValue: __props.configure.props.base.dateScopeDetails,
358
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.base.dateScopeDetails = $event),
388
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.base.dateScopeDetails = $event),
359
389
  class: "ml-4"
360
390
  }, {
361
391
  default: withCtx(() => [
@@ -417,7 +447,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
417
447
  clearable: "",
418
448
  disabled: !__props.configure.props.base.dateScopeDetails || !__props.configure.props.base.dateScopeDetails.includes("custom"),
419
449
  modelValue: __props.configure.props.base.scopeFunc,
420
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.scopeFunc = $event),
450
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.base.scopeFunc = $event),
421
451
  placeholder: "请选择自定义方法",
422
452
  filterable: ""
423
453
  }, {
@@ -453,7 +483,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
453
483
  default: withCtx(() => [
454
484
  createVNode(_component_el_radio_group, {
455
485
  modelValue: __props.configure.props.base.timestamp,
456
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.base.timestamp = $event),
486
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.base.timestamp = $event),
457
487
  class: "ml-4"
458
488
  }, {
459
489
  default: withCtx(() => [
@@ -484,7 +514,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
484
514
  default: withCtx(() => [
485
515
  createVNode(_component_el_input, {
486
516
  modelValue: __props.configure.props.base.format,
487
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.base.format = $event),
517
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.base.format = $event),
488
518
  placeholder: "请输入"
489
519
  }, null, 8, ["modelValue"])
490
520
  ]),
@@ -497,7 +527,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
497
527
  default: withCtx(() => [
498
528
  createVNode(_component_el_radio_group, {
499
529
  modelValue: __props.configure.props.base.size,
500
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.base.size = $event),
530
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.base.size = $event),
501
531
  class: "ml-4"
502
532
  }, {
503
533
  default: withCtx(() => [
@@ -532,7 +562,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
532
562
  default: withCtx(() => [
533
563
  createVNode(_component_el_radio_group, {
534
564
  modelValue: __props.configure.props.base.state,
535
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.base.state = $event),
565
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.base.state = $event),
536
566
  class: "ml-4"
537
567
  }, {
538
568
  default: withCtx(() => [
@@ -579,7 +609,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
579
609
  default: withCtx(() => [
580
610
  createVNode(_component_el_checkbox, {
581
611
  modelValue: __props.configure.props.verification.required,
582
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.verification.required = $event),
612
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.verification.required = $event),
583
613
  label: "必填"
584
614
  }, null, 8, ["modelValue"])
585
615
  ]),
@@ -595,7 +625,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
595
625
  createVNode(_component_el_checkbox, {
596
626
  label: "自定义",
597
627
  modelValue: __props.configure.props.verification.custom,
598
- "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.verification.custom = $event)
628
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.verification.custom = $event)
599
629
  }, null, 8, ["modelValue"])
600
630
  ]),
601
631
  _: 1
@@ -607,7 +637,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
607
637
  clearable: "",
608
638
  disabled: !__props.configure.props.verification.custom,
609
639
  modelValue: __props.configure.props.verification.customFunc,
610
- "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.verification.customFunc = $event),
640
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => __props.configure.props.verification.customFunc = $event),
611
641
  placeholder: "请选择校验方法",
612
642
  filterable: ""
613
643
  }, {
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode } from "vue";
2
2
  import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
3
+ import "super-page-runtime";
3
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
5
  __name: "datepicker-design",
5
6
  props: {
@@ -27,10 +28,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
28
  },
28
29
  { immediate: true }
29
30
  );
31
+ const shortCuts = ref([]);
30
32
  function caculateDateProps() {
31
33
  let propBase = props.configure && props.configure.props ? props.configure.props.base : {};
32
34
  propBase = propBase ? propBase : {};
33
35
  const tempProps = {};
36
+ tempProps.defaultValue2 = propBase.defaultValue2;
34
37
  if (propBase.format) {
35
38
  tempProps["format"] = propBase.format;
36
39
  }
@@ -57,99 +60,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
60
  } else {
58
61
  tempProps.dateType = dateType;
59
62
  }
60
- const dateScopeDetails = propBase.dateScopeDetails ? propBase.dateScopeDetails : [];
61
- if (dateScopeDetails) {
62
- const shortcuts = [];
63
- if (dateScopeDetails.includes("today") && !["week", "month", "year"].includes(dateType)) {
64
- const dateParams = {
65
- text: "今天",
66
- value: () => {
67
- return /* @__PURE__ */ new Date();
68
- }
69
- };
70
- if (tempProps.dateType.endsWith("range")) {
71
- dateParams.value = () => {
72
- return [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()];
73
- };
74
- }
75
- shortcuts.push(dateParams);
76
- }
77
- if (dateScopeDetails.includes("yesterday") && !["week", "month", "year"].includes(dateType)) {
78
- const date = /* @__PURE__ */ new Date();
79
- date.setTime(date.getTime() - 3600 * 1e3 * 24);
80
- const dateParams = {
81
- text: "昨天",
82
- value: () => {
83
- return date;
84
- }
85
- };
86
- if (tempProps.dateType.endsWith("range")) {
87
- dateParams.value = () => {
88
- return [date, /* @__PURE__ */ new Date()];
89
- };
90
- }
91
- shortcuts.push(dateParams);
92
- }
93
- if (dateScopeDetails.includes("oneWeek") && !["month", "year"].includes(dateType)) {
94
- const date = /* @__PURE__ */ new Date();
95
- date.setTime(date.getTime() - 3600 * 1e3 * 24 * 7);
96
- const dateParams = {
97
- text: "一周前",
98
- value: () => {
99
- return date;
100
- }
101
- };
102
- if (tempProps.dateType.endsWith("range")) {
103
- dateParams.text = "一周";
104
- dateParams.value = () => {
105
- return [date, /* @__PURE__ */ new Date()];
106
- };
107
- }
108
- shortcuts.push(dateParams);
109
- }
110
- if (dateScopeDetails.includes("oneMonth") && !["year"].includes(dateType)) {
111
- const date = /* @__PURE__ */ new Date();
112
- if (date.getMonth() > 0) {
113
- date.setMonth(date.getMonth() - 1);
114
- } else {
115
- date.setMonth(12);
116
- date.setFullYear(date.getFullYear() - 1);
117
- }
118
- const dateParams = {
119
- text: "一月前",
120
- value: () => {
121
- return date;
122
- }
123
- };
124
- if (tempProps.dateType.endsWith("range")) {
125
- dateParams.text = "一月";
126
- dateParams.value = () => {
127
- return [date, /* @__PURE__ */ new Date()];
128
- };
129
- }
130
- shortcuts.push(dateParams);
131
- }
132
- if (dateScopeDetails.includes("oneYear")) {
133
- const date = /* @__PURE__ */ new Date();
134
- date.setFullYear(date.getFullYear() - 1);
135
- const dateParams = {
136
- text: "一年前",
137
- value: () => {
138
- return date;
139
- }
140
- };
141
- if (tempProps.dateType.endsWith("range")) {
142
- dateParams.text = "一年";
143
- dateParams.value = () => {
144
- return [date, /* @__PURE__ */ new Date()];
145
- };
146
- }
147
- shortcuts.push(dateParams);
148
- }
149
- tempProps.shortcuts = shortcuts;
150
- if (dateScopeDetails.includes("custom") && propBase.scopeFunc) {
151
- tempProps.shortcutsFunc = propBase.scopeFunc;
152
- }
63
+ tempProps.sourceType = dateType;
64
+ tempProps.dateScopeDetails = propBase.dateScopeDetails;
65
+ if (propBase.dateScopeDetails && propBase.dateScopeDetails.includes("custom") && propBase.scopeFunc) {
66
+ tempProps.shortcutsFunc = propBase.scopeFunc;
153
67
  }
154
68
  Object.assign(designProperty.value, tempProps);
155
69
  }
@@ -158,17 +72,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
158
72
  () => {
159
73
  caculateComponentProps(props.configure, designProperty);
160
74
  caculateDateProps();
161
- const shortcuts = designProperty.value.shortcuts;
162
- designProperty.value.shortcuts = [];
163
- const dateType = designProperty.value.dateType;
164
- designProperty.value.dateType = "daterange";
165
- console.log("%c描述-205312", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", designProperty.value);
166
- setTimeout(function() {
167
- if (shortcuts) {
168
- designProperty.value.dateType = dateType;
169
- designProperty.value.shortcuts = shortcuts;
170
- }
171
- }, 10);
172
75
  props.configure.runtime.props = designProperty.value;
173
76
  },
174
77
  { immediate: true }
@@ -205,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
108
  format: designProperty.value.format,
206
109
  modelValue: designProperty.value.value,
207
110
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => designProperty.value.value = $event),
208
- shortcuts: designProperty.value.shortcuts,
111
+ shortcuts: shortCuts.value,
209
112
  type: designProperty.value.dateType
210
113
  }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
211
114
  key: 1,
@@ -220,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
220
123
  format: designProperty.value.format,
221
124
  modelValue: designProperty.value.value,
222
125
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => designProperty.value.value = $event),
223
- shortcuts: designProperty.value.shortcuts,
126
+ shortcuts: shortCuts.value,
224
127
  type: designProperty.value.dateType
225
128
  }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
226
129
  ]),
@@ -25,8 +25,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  if (props.configure.isTable) {
26
26
  isTable.value = true;
27
27
  }
28
- function afterBindVariable(modelValue) {
28
+ function afterBindVariable(modelValue, alias) {
29
29
  props.configure.props.base.prop = modelValue;
30
+ if (alias) {
31
+ props.configure.props.base.title = alias;
32
+ }
30
33
  }
31
34
  function afterBindDefaultValue(modelValue) {
32
35
  props.configure.props.base.defaultValue = modelValue;
@@ -28,12 +28,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  if (props.configure.isTable) {
29
29
  isTable.value = true;
30
30
  }
31
- function afterBindVariable(modelValue, fieldName) {
31
+ function afterBindVariable(modelValue, fieldName, alias) {
32
32
  if (fieldName == "prop") {
33
33
  props.configure.props.base.prop = modelValue;
34
34
  } else {
35
35
  props.configure.props.base.propName = modelValue;
36
36
  }
37
+ if (alias) {
38
+ props.configure.props.base.title = alias;
39
+ }
37
40
  }
38
41
  return (_ctx, _cache) => {
39
42
  const _component_el_option = resolveComponent("el-option");
@@ -116,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
116
119
  key: __props.configure.uuid,
117
120
  modelValue: __props.configure.props.base.prop,
118
121
  paramTypes: ["data"],
119
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => afterBindVariable(value, "prop"))
122
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (value, alias) => afterBindVariable(value, "prop", alias))
120
123
  }, null, 8, ["modelValue"]))
121
124
  ]),
122
125
  _: 1
@@ -21,8 +21,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  if (props.configure.isTable) {
22
22
  isTable.value = true;
23
23
  }
24
- function afterBindVariable(modelValue) {
24
+ function afterBindVariable(modelValue, alias) {
25
25
  props.configure.props.base.prop = modelValue;
26
+ if (alias) {
27
+ props.configure.props.base.title = alias;
28
+ }
26
29
  }
27
30
  function afterBindDefaultValue(modelValue) {
28
31
  props.configure.props.base.defaultValue = modelValue;