bri-components 1.4.12 → 1.4.13

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,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -99,11 +99,11 @@ export default {
99
99
  const selectControlTypes = ["coordinates", "date", "switch", "select", "checkbox", "file", "region", "regions", "cascader", "cascaders", "users", "departments", "reference"];
100
100
  return {
101
101
  // TODO: 此处的请输入可能还有请选择之类的,待处理
102
- _placeholder: this.canEdit && this.propsObj._enterType !== "calculate"
102
+ _placeholder: this.canEdit && this.propsObj._enterType !== "calculate" && this.propsObj._disabled !== true
103
103
  ? (this.propsObj._placeholder || `${selectControlTypes.includes(this.controlType) ? "选择" : "输入"}${this.propsObj._name}`)
104
104
  : undefined,
105
105
  _clearable: this.finalCanEdit && (this.propsObj._clearable === undefined ? true : this.propsObj._clearable),
106
- _disabled: this.propsObj._disabled || ["serialNumber"].includes(this.controlType) || !this.finalCanEdit
106
+ _disabled: this.propsObj._disabled || !this.finalCanEdit
107
107
  };
108
108
  },
109
109
  // 是否为多选模式
@@ -282,7 +282,7 @@ export default {
282
282
  },
283
283
  changeVal (operationItem, row, rowIndex, column, params) {
284
284
  this.$set(this.ruleRecordMap, this.getMixKey(row, column), { showRuleMessage: true });
285
- if (!["text", "textarea", "idcard", "email", "phone", "url", "password", "serialNumber"].includes(column._key)) {
285
+ if (!["text", "textarea", "idcard", "email", "phone", "url", "password"].includes(column._key)) {
286
286
  this.dealSameRowsVal({ row, rowIndex, column });
287
287
  }
288
288
 
@@ -1424,6 +1424,7 @@ export default {
1424
1424
  !(["cascaderTable"].includes(this.controlType) && ["level", "children"].includes(column._key)) && // 层级表格的固定字段不可编辑
1425
1425
  column._enterType !== "calculate" && // 计算的不可编辑
1426
1426
  column._readonly !== true && // 只读
1427
+ column._disabled !== true && // 只读
1427
1428
  column.canEdit !== false; // 字段本身编辑权限 考虑为undefined时候
1428
1429
  },
1429
1430