super-page-designer 2.0.61 → 2.0.70
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/dist/es/components/design/utils/form-design-util.js +6 -0
- package/dist/es/components/design/utils/page-table-util.js +17 -14
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +702 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -702
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +10 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +9 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +217 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +1 -217
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +27 -8
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/switch/switch-design.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +2 -2
- package/dist/es/stores/table-store.js +3 -1
- package/dist/es/style.css +74 -66
- package/package.json +4 -4
|
@@ -345,6 +345,7 @@ function watchRequiredValidate(configure, fieldInfo) {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
function watchValidate(configure, verification, fieldInfo) {
|
|
348
|
+
var _a, _b;
|
|
348
349
|
configure.props.rules = [];
|
|
349
350
|
const prop = configure.props.base.prop;
|
|
350
351
|
if (prop) {
|
|
@@ -364,6 +365,11 @@ function watchValidate(configure, verification, fieldInfo) {
|
|
|
364
365
|
if (verification.verifyMinLength && verification.minLength) {
|
|
365
366
|
watchMaxOrMinValidate(configure, "min", verification.minLength, fieldInfo);
|
|
366
367
|
}
|
|
368
|
+
if (((_a = verification.custom) == null ? void 0 : _a.enabled) && ((_b = verification.custom.eventNames) == null ? void 0 : _b.length) > 0) {
|
|
369
|
+
configure.props.customRuleEvents = verification.custom.eventNames;
|
|
370
|
+
} else {
|
|
371
|
+
configure.props.customRuleEvents = [];
|
|
372
|
+
}
|
|
367
373
|
}
|
|
368
374
|
}
|
|
369
375
|
}
|
|
@@ -173,13 +173,13 @@ function getListColumns(configure, pageDesign) {
|
|
|
173
173
|
// 值设置,设置多个
|
|
174
174
|
valueSetOptions: getValueSetOptions(item),
|
|
175
175
|
// 是否必填
|
|
176
|
-
required:
|
|
176
|
+
required: item.props.verification.required,
|
|
177
177
|
// 校验的正则
|
|
178
|
-
pattern:
|
|
178
|
+
pattern: item.props.verification.verifyRegex,
|
|
179
179
|
// 校验的类型
|
|
180
|
-
checkType:
|
|
180
|
+
checkType: item.props.verification.type,
|
|
181
181
|
// 内容显示位置
|
|
182
|
-
contAlign:
|
|
182
|
+
contAlign: item.props.base ? item.props.base.alignContent : null
|
|
183
183
|
// 国际化key,如果配置了该列则使用该列的key去查询国际化配置,如果没用配置就以“headerName”字段的值为准
|
|
184
184
|
// i18nKey: string
|
|
185
185
|
/**
|
|
@@ -219,22 +219,21 @@ function getListColumnValueSet(item, listColumn) {
|
|
|
219
219
|
if (item.name === "inputNumber") {
|
|
220
220
|
return null;
|
|
221
221
|
}
|
|
222
|
-
if (configureProps.dataOrigin && configureProps.dataOrigin.optionValueSetType) {
|
|
222
|
+
if (configureProps.dataOrigin && configureProps.dataOrigin.optionValueSetType && configureProps.dataOrigin.optionValueSetType !== "none") {
|
|
223
223
|
const optionType = configureProps.dataOrigin.optionValueSetType;
|
|
224
224
|
if (optionType === "static") {
|
|
225
|
-
const valueSets =
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
});
|
|
225
|
+
const valueSets = configureProps.dataOrigin.staticStates.map(
|
|
226
|
+
(element) => `${element.value}:${element.label}`
|
|
227
|
+
);
|
|
229
228
|
return valueSets.join(",");
|
|
230
229
|
} else if (optionType === "optionGroup") {
|
|
231
|
-
return optionType
|
|
230
|
+
return `${optionType}:${configureProps.dataOrigin.optionGroup}`;
|
|
232
231
|
} else if (optionType === "dynamicData") {
|
|
233
|
-
return
|
|
232
|
+
return `dynamicDataSource:${configureProps.dataOrigin.dynamicDataSourceCode}`;
|
|
234
233
|
} else if (optionType === "dataTable") {
|
|
235
|
-
return optionType
|
|
234
|
+
return `${optionType}:${configureProps.dataOrigin.tableName}`;
|
|
236
235
|
} else if (optionType === "service") {
|
|
237
|
-
return optionType
|
|
236
|
+
return `${optionType}:${configureProps.dataOrigin.serveName}`;
|
|
238
237
|
}
|
|
239
238
|
}
|
|
240
239
|
}
|
|
@@ -403,7 +402,11 @@ function getPropsFormat(item) {
|
|
|
403
402
|
if (item.props.format.type === "hyperlinks") {
|
|
404
403
|
const format = {};
|
|
405
404
|
format.type = item.props.format.type;
|
|
406
|
-
|
|
405
|
+
const jumpJson = JSON.parse(JSON.stringify(item.props.linkPage));
|
|
406
|
+
if (jumpJson.displayTextJudge && jumpJson.dynamicTags && jumpJson.dynamicTags.length > 0) {
|
|
407
|
+
jumpJson.displayText = jumpJson.dynamicTags.join("-#-#");
|
|
408
|
+
}
|
|
409
|
+
format.jumpPageJson = JSON.stringify(jumpJson);
|
|
407
410
|
return JSON.stringify(format);
|
|
408
411
|
} else if (item.props.format.type === "icon") {
|
|
409
412
|
const format = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _sfc_main from "./common-variable-bind.
|
|
2
|
-
import "./common-variable-bind.
|
|
1
|
+
import _sfc_main from "./common-variable-bind.vue2.js";
|
|
2
|
+
import "./common-variable-bind.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const BindVariable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cfaaf957"]]);
|
|
5
5
|
export {
|
|
6
6
|
BindVariable as default
|
|
7
7
|
};
|