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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -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.showUnitModal = true;
372
- event.stopPropagation();
377
+ if (this.showDetailOnCR) {
378
+ this.showUnitModal = true;
379
+ event.stopPropagation();
380
+ }
373
381
  }
374
382
  }
375
383
  };
@@ -4,7 +4,7 @@
4
4
  <template v-if="isUnitShow">
5
5
  <span
6
6
  class="cascaderTable-unit"
7
- @click.stop="openUnitModal"
7
+ @click="openUnitModal"
8
8
  >
9
9
  <dsh-icons :list="[{
10
10
  customIcon: 'bico-Cascadetable'
@@ -4,7 +4,7 @@
4
4
  <template v-if="isUnitShow">
5
5
  <span
6
6
  class="flatTable-unit"
7
- @click.stop="openUnitModal"
7
+ @click="openUnitModal"
8
8
  >
9
9
  <dsh-icons :list="[{
10
10
  customIcon: 'bico-internaltable'