cloud-web-corejs 1.0.54-dev.664 → 1.0.54-dev.665

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.664",
4
+ "version": "1.0.54-dev.665",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -615,7 +615,7 @@
615
615
  <el-option value="#ea5353" label="红"></el-option>
616
616
  </el-select>
617
617
  </el-form-item>
618
- <el-form-item label-width="0">
618
+ <el-form-item label-width="0" class="form-item-full">
619
619
  <el-divider class="custom-divider">{{
620
620
  i18nt("designer.setting.customLabelIcon")
621
621
  }}</el-divider>
@@ -624,12 +624,19 @@
624
624
  <icon-picker v-model="rowData.labelIconClass"></icon-picker>
625
625
  </el-form-item>
626
626
  <el-form-item :label="i18nt('designer.setting.labelIconPosition')">
627
- <el-select v-model="rowData.labelIconPosition" clearable>
628
- <el-option label="front" value="front"></el-option>
629
- <el-option label="rear" value="rear"></el-option>
627
+ <el-select
628
+ v-model="rowData.labelIconPosition"
629
+ clearable
630
+ placeholder="默认后面"
631
+ >
632
+ <el-option label="前面" value="front"></el-option>
633
+ <el-option label="后面" value="rear"></el-option>
630
634
  </el-select>
631
635
  </el-form-item>
632
- <el-form-item :label="i18nt('designer.setting.labelTooltip')">
636
+ <el-form-item
637
+ :label="i18nt('designer.setting.labelTooltip')"
638
+ class="form-item-full"
639
+ >
633
640
  <el-input
634
641
  type="text"
635
642
  v-model="rowData.labelTooltip"
@@ -1316,7 +1323,7 @@ export default {
1316
1323
  rowEditShow: null,
1317
1324
  utcTransformEnabled: false,
1318
1325
  labelIconClass: null,
1319
- labelIconPosition: "front",
1326
+ labelIconPosition: "rear",
1320
1327
  labelTooltip: null,
1321
1328
  // treeNode: false,
1322
1329
  };
@@ -1975,5 +1982,23 @@ export default {
1975
1982
  .table-column-row-edit-cont {
1976
1983
  padding-bottom: 8px;
1977
1984
  box-sizing: border-box;
1985
+
1986
+ ::v-deep .form-m2 {
1987
+ height: auto;
1988
+ overflow: visible;
1989
+
1990
+ .form-item-full {
1991
+ width: calc(100% - 20px) !important;
1992
+ display: block;
1993
+ }
1994
+
1995
+ .form-item-full .el-input {
1996
+ width: 100% !important;
1997
+ }
1998
+ }
1999
+
2000
+ ::v-deep .custom-divider.el-divider--horizontal {
2001
+ margin: 10px 0;
2002
+ }
1978
2003
  }
1979
2004
  </style>
@@ -26,8 +26,8 @@ export default {
26
26
  data() {
27
27
  return {
28
28
  labelIconPosition: [
29
- { label: "front", value: "front" },
30
- { label: "rear", value: "rear" },
29
+ { label: "前面", value: "front" },
30
+ { label: "后面", value: "rear" },
31
31
  ],
32
32
  };
33
33
  },
@@ -952,25 +952,6 @@ modules = {
952
952
  newColumns.push(col);
953
953
  });
954
954
 
955
- /* let tableConfig = this.tableConfig;
956
- let flag = tableConfig?.config?.toolbarConfig?.custom !== false;
957
- if (
958
- baseRefUtil.tableConfig &&
959
- baseRefUtil.tableConfig.className === "list-table" &&
960
- flag
961
- ) {
962
- if (tableColumns.length) {
963
- let tableColumn = tableColumns[tableColumns.length - 1];
964
- if (tableColumn.fixed !== "right") {
965
- newColumns.push({
966
- width: 47,
967
- title: "",
968
- fixed: "right",
969
- sortable: false,
970
- });
971
- }
972
- }
973
- } */
974
955
  this.rowWidgetList = rowWidgetList;
975
956
  return this.$baseLodash.cloneDeep(newColumns);
976
957
  },
@@ -1277,9 +1258,6 @@ modules = {
1277
1258
  let editWidget = item.editWidget;
1278
1259
  if (editWidget && editWidget.options.required) {
1279
1260
  let formField = this.getFieldKeyName(editWidget);
1280
- /* editRules[formField] = [
1281
- { required: true, message: `[${editWidget.options.label}]不能为空` }
1282
- ]; */
1283
1261
  }
1284
1262
  }
1285
1263
  });
@@ -49,7 +49,7 @@ export function applyColumnLabelIcon(col, columnConfig) {
49
49
  }
50
50
 
51
51
  const iconClass = columnConfig.labelIconClass;
52
- const position = columnConfig.labelIconPosition || "front";
52
+ const position = columnConfig.labelIconPosition || "rear";
53
53
  const tooltip = columnConfig.labelTooltip;
54
54
  const required = !!columnConfig.required;
55
55
  const title = col.title;