cloud-web-corejs 1.0.54-dev.687 → 1.0.54-dev.689

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/package.json +1 -1
  2. package/src/components/fileLibrary/index.vue +113 -33
  3. package/src/components/table/CellSlot.vue +12 -10
  4. package/src/components/xform/docs//345/220/216/345/217/260/345/255/227/346/256/265/357/274/210/345/212/250/346/200/201/347/224/237/346/210/220/357/274/211JSON /350/257/264/346/230/216.md" +1261 -0
  5. package/src/components/xform/docs//346/225/260/346/215/256/350/241/250/346/240/274/345/212/250/346/200/201/345/210/227 JSON /350/257/264/346/230/216.md" +657 -0
  6. package/src/components/xform/form-designer/designer.js +1 -1
  7. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +157 -105
  8. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +98 -18
  9. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -13
  10. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +11 -8
  11. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +143 -0
  12. package/src/components/xform/form-designer/indexMixin.js +837 -13
  13. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -21
  14. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +87 -25
  15. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +5 -0
  16. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +80 -34
  17. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +11 -13
  18. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/showAllLevels-editor.vue +21 -0
  19. package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +54 -0
  20. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +15 -4
  21. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  22. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +117 -2
  23. package/src/components/xform/form-render/container-item/data-table-mixin.js +296 -118
  24. package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +50 -36
  25. package/src/components/xform/form-render/container-item/list-h5-item.vue +5 -1
  26. package/src/components/xform/form-render/indexMixin.js +197 -12
  27. package/src/components/xform/lang/en-US.js +1 -0
  28. package/src/components/xform/lang/zh-CN.js +86 -99
  29. package/src/components/xform/utils/dynamicSchemaUtil.js +312 -0
  30. package/src/components/xform/utils/tableCellValidateUtil.js +148 -0
  31. package/src/components/xform/utils/tableColumnHelper.js +21 -1
  32. package/src/components/xform/utils/util.js +126 -0
@@ -0,0 +1,54 @@
1
+ <template>
2
+ <div>
3
+ <el-form-item label="编辑器语言">
4
+ <el-select v-model="optionModel.editorMode">
5
+ <el-option value="javascript" label="JavaScript"></el-option>
6
+ <el-option value="java" label="Java"></el-option>
7
+ <el-option value="json" label="JSON"></el-option>
8
+ </el-select>
9
+ </el-form-item>
10
+ <el-form-item label="编辑器高度">
11
+ <el-input
12
+ v-model="optionModel.editorHeight"
13
+ placeholder="如 200px"
14
+ ></el-input>
15
+ </el-form-item>
16
+ <el-form-item label="最小行数">
17
+ <el-input-number
18
+ v-model="optionModel.editorMinLines"
19
+ :min="3"
20
+ :max="100"
21
+ controls-position="right"
22
+ style="width: 100%"
23
+ ></el-input-number>
24
+ </el-form-item>
25
+ <el-form-item label="最大行数">
26
+ <el-input-number
27
+ v-model="optionModel.editorMaxLines"
28
+ :min="3"
29
+ :max="200"
30
+ controls-position="right"
31
+ style="width: 100%"
32
+ ></el-input-number>
33
+ </el-form-item>
34
+ <el-form-item label="语法检查">
35
+ <el-switch v-model="optionModel.userWorker"></el-switch>
36
+ </el-form-item>
37
+ </div>
38
+ </template>
39
+
40
+ <script>
41
+ import i18n from "../../../../utils/i18n";
42
+
43
+ export default {
44
+ name: "script-input-editor",
45
+ mixins: [i18n],
46
+ props: {
47
+ designer: Object,
48
+ selectedWidget: Object,
49
+ optionModel: Object,
50
+ },
51
+ };
52
+ </script>
53
+
54
+ <style scoped></style>
@@ -21,7 +21,9 @@
21
21
  </el-form-item>
22
22
  <el-form-item
23
23
  label="查询参数"
24
- v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled"
24
+ v-if="
25
+ optionModel.formScriptEnabled || optionModel.commonAttributeEnabled
26
+ "
25
27
  >
26
28
  <a
27
29
  href="javascript:void(0);"
@@ -40,8 +42,14 @@
40
42
  @change="changeCommonAttributeEnabled"
41
43
  ></el-switch>
42
44
  </el-form-item>
43
- <el-form-item :label="i18nt('词汇编码')" v-if="optionModel.commonAttributeEnabled">
44
- <el-input type="text" v-model="optionModel.commonAttributeCode"></el-input>
45
+ <el-form-item
46
+ :label="i18nt('词汇编码')"
47
+ v-if="optionModel.commonAttributeEnabled"
48
+ >
49
+ <el-input
50
+ type="text"
51
+ v-model="optionModel.commonAttributeCode"
52
+ ></el-input>
45
53
  </el-form-item>
46
54
  <!-- <el-form-item :label="i18nt('显示字段')" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
47
55
  <el-input type="text" v-model="optionModel.labelKey" :disabled="optionModel.commonAttributeEnabled"></el-input>
@@ -57,7 +65,9 @@
57
65
  <a
58
66
  href="javascript:void(0);"
59
67
  class="a-link link-oneLind"
60
- @click="editEventHandler('formScriptSuccess', ['dataId', 'formCode', 'res'])"
68
+ @click="
69
+ editEventHandler('formScriptSuccess', ['dataId', 'formCode', 'res'])
70
+ "
61
71
  >
62
72
  <span>{{ optionModel.formScriptSuccess }}</span>
63
73
  <i class="el-icon-edit"></i>
@@ -87,6 +97,7 @@ export default {
87
97
  "census",
88
98
  "status",
89
99
  "gantt",
100
+ "cascader",
90
101
  ],
91
102
  };
92
103
  },
@@ -51,6 +51,7 @@ const COMMON_PROPERTIES = {
51
51
  remote: "remote-editor",
52
52
  automaticDropdown: "automaticDropdown-editor",
53
53
  checkStrictly: "checkStrictly-editor",
54
+ showAllLevels: "showAllLevels-editor",
54
55
  multiple: "multiple-editor",
55
56
  multipleLimit: "multipleLimit-editor",
56
57
  contentPosition: "contentPosition-editor",
@@ -126,6 +127,7 @@ const COMMON_PROPERTIES = {
126
127
 
127
128
  oplogFlag: "oplogFlag-editor",
128
129
  vuePageFlag: "vue-page-editor",
130
+ scriptInputFlag: "script-input-editor",
129
131
  ganttConfig: "gantt-editor",
130
132
 
131
133
  //弹框
@@ -176,6 +176,8 @@ export const containers = [
176
176
  label: "data-table",
177
177
  submitFlag: true,
178
178
  formField: "",
179
+ required: !1,
180
+ requiredHint: "",
179
181
  hidden: !1,
180
182
  rowSpacing: 8,
181
183
  tableHeight: "",
@@ -257,7 +259,7 @@ export const containers = [
257
259
  dynamicColumnMode: "append",
258
260
  dynamicColumnScriptCode: null,
259
261
  dynamicColumnScriptParam: null,
260
- onDynamicColumnsConvert: null,
262
+ dynamicSchemaConvert: null,
261
263
  dynamicColumnLoadScript: null,
262
264
  accessType: "1",
263
265
  accessUrl: null,
@@ -1121,6 +1123,59 @@ export const basicFields = [
1121
1123
  ...defaultTextFlagConfig,
1122
1124
  },
1123
1125
  },
1126
+ {
1127
+ type: "script-input",
1128
+ icon: "textarea-field",
1129
+ commonFlag: !0,
1130
+ formItemFlag: !0,
1131
+ columnFlag: true,
1132
+ tableField: null,
1133
+ options: {
1134
+ name: "",
1135
+ keyNameEnabled: !1,
1136
+ keyName: "",
1137
+ label: "",
1138
+ labelColor: "",
1139
+ submitFlag: true,
1140
+ labelAlign: "",
1141
+ defaultValue: "",
1142
+ placeholder: "",
1143
+ columnWidth: "200px",
1144
+ size: "",
1145
+ labelWidth: null,
1146
+ labelHidden: !1,
1147
+ readonly: !1,
1148
+ disabled: !1,
1149
+ hidden: !1,
1150
+ required: !1,
1151
+ requiredHint: "",
1152
+ validation: "",
1153
+ validationHint: "",
1154
+ customClass: "",
1155
+ labelIconClass: null,
1156
+ labelIconPosition: "rear",
1157
+ labelTooltip: null,
1158
+ scriptInputFlag: 1,
1159
+ editorMode: "java",
1160
+ editorHeight: "200px",
1161
+ editorMinLines: 8,
1162
+ editorMaxLines: 30,
1163
+ userWorker: !1,
1164
+ onCreated: "",
1165
+ onMounted: "",
1166
+ onInput: "",
1167
+ onChange: "",
1168
+ onFocus: "",
1169
+ onBlur: "",
1170
+ onValidate: "",
1171
+ accessType: "1",
1172
+ ...defaultWfConfig,
1173
+ showRuleFlag: 1,
1174
+ showRuleEnabled: 1,
1175
+ showRules: [],
1176
+ ...defaultTextFlagConfig,
1177
+ },
1178
+ },
1124
1179
  {
1125
1180
  type: "number",
1126
1181
  icon: "number-field",
@@ -2981,7 +3036,7 @@ export const advancedFields = [
2981
3036
  formItemFlag: !1,
2982
3037
  options: {
2983
3038
  name: "",
2984
- label: "重置",
3039
+ label: "刷新",
2985
3040
  columnWidth: "200px",
2986
3041
  size: "",
2987
3042
  displayStyle: "block",
@@ -3611,6 +3666,66 @@ export const advancedFields = [
3611
3666
  showRules: [],
3612
3667
  },
3613
3668
  },
3669
+ {
3670
+ type: "cascader",
3671
+ icon: "cascader-field",
3672
+ commonFlag: !0,
3673
+ formItemFlag: true,
3674
+ options: {
3675
+ name: "",
3676
+ keyNameEnabled: false,
3677
+ keyName: "", //数据键值名称
3678
+ label: "",
3679
+ labelAlign: "",
3680
+ defaultValue: "",
3681
+ placeholder: "",
3682
+ size: "",
3683
+ labelWidth: null,
3684
+ labelHidden: false,
3685
+ columnWidth: "200px",
3686
+ disabled: false,
3687
+ hidden: false,
3688
+ clearable: true,
3689
+ filterable: false,
3690
+ multiple: false,
3691
+ checkStrictly: false, //可选择任意一级选项,默认不开启
3692
+ showAllLevels: true, //显示完整路径
3693
+ dsEnabled: false, // 是否使用数据源数据
3694
+ dsName: "", // 数据源名称
3695
+ dataSetName: "", //数据集名称
3696
+ labelKey: "label",
3697
+ valueKey: "value",
3698
+ childrenKey: "children",
3699
+ optionItems: [
3700
+ {
3701
+ label: "select 1",
3702
+ value: 1,
3703
+ children: [{ label: "child 1", value: 11 }],
3704
+ },
3705
+ { label: "select 2", value: 2 },
3706
+ { label: "select 3", value: 3 },
3707
+ ],
3708
+ required: false,
3709
+ requiredHint: "",
3710
+ customRule: "",
3711
+ customRuleHint: "",
3712
+ //-------------------
3713
+ customClass: "", //自定义css类名
3714
+ labelIconClass: null,
3715
+ labelIconPosition: "rear",
3716
+ labelTooltip: null,
3717
+
3718
+ ...httpConfig,
3719
+ ...defaultWfConfig,
3720
+ //-------------------
3721
+ onCreated: "",
3722
+ onMounted: "",
3723
+ onChange: "",
3724
+ onFocus: "",
3725
+ onBlur: "",
3726
+ onValidate: "",
3727
+ },
3728
+ },
3614
3729
  ];
3615
3730
 
3616
3731
  export const businessFields = [