bri-components 1.5.7 → 1.5.8
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
|
@@ -139,6 +139,12 @@ export default {
|
|
|
139
139
|
isTagShow () {
|
|
140
140
|
return ["switch", "select", "checkbox", "regions", "cascaders", "users", "departments", "labels", "refSelect", "refCheckbox"].includes(this.controlType);
|
|
141
141
|
},
|
|
142
|
+
// 点击行或单元格查看详细内容 -"flatTable", "cascaderTable", "reference", "referenceBy"在用
|
|
143
|
+
showDetailOnCR () {
|
|
144
|
+
return !!this.selfPropsObj && [true, false].includes(this.selfPropsObj._showDetailOnCR)
|
|
145
|
+
? this.selfPropsObj._showDetailOnCR
|
|
146
|
+
: true;
|
|
147
|
+
},
|
|
142
148
|
|
|
143
149
|
/* ----- 表单相关 ----- */
|
|
144
150
|
clearable () {
|
|
@@ -368,8 +374,10 @@ export default {
|
|
|
368
374
|
|
|
369
375
|
// 单元格展示 -打开列表模态框
|
|
370
376
|
openUnitModal (event) {
|
|
371
|
-
this.
|
|
372
|
-
|
|
377
|
+
if (this.showDetailOnCR) {
|
|
378
|
+
this.showUnitModal = true;
|
|
379
|
+
event.stopPropagation();
|
|
380
|
+
}
|
|
373
381
|
}
|
|
374
382
|
}
|
|
375
383
|
};
|