bri-components 1.5.8 → 1.5.9
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,10 +139,10 @@ export default {
|
|
|
139
139
|
isTagShow () {
|
|
140
140
|
return ["switch", "select", "checkbox", "regions", "cascaders", "users", "departments", "labels", "refSelect", "refCheckbox"].includes(this.controlType);
|
|
141
141
|
},
|
|
142
|
-
//
|
|
143
|
-
|
|
144
|
-
return !!this.selfPropsObj && [true, false].includes(this.selfPropsObj.
|
|
145
|
-
? this.selfPropsObj.
|
|
142
|
+
// 全称showDetailOnClickUnitContent,点击行或单元格查看详细内容 -"flatTable", "cascaderTable", "reference", "referenceBy"在用
|
|
143
|
+
showDetailOnCUC () {
|
|
144
|
+
return !!this.selfPropsObj && [true, false].includes(this.selfPropsObj._showDetailOnCUC)
|
|
145
|
+
? this.selfPropsObj._showDetailOnCUC
|
|
146
146
|
: true;
|
|
147
147
|
},
|
|
148
148
|
|
|
@@ -372,12 +372,19 @@ export default {
|
|
|
372
372
|
this.showModal = false;
|
|
373
373
|
},
|
|
374
374
|
|
|
375
|
-
//
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
// 点击外层dom(主要针对单元格空白处)
|
|
376
|
+
clickControlWrapper (event) {
|
|
377
|
+
// 点击行是选择数据效果时,点击单元格空白和点击行效果一样(啥也不做);点击表格行进的是详情的话,点某列单元格空白处,显示谁都有争议,没有效果最好
|
|
378
|
+
if ((this.isUnitShow && this.showDetailOnCUC) || !this.isUnitShow) {
|
|
379
379
|
event.stopPropagation();
|
|
380
380
|
}
|
|
381
|
+
},
|
|
382
|
+
// 点击单元格里的内容 -打开详情模态框
|
|
383
|
+
clickUnitContent (event) {
|
|
384
|
+
if ((this.isUnitShow && this.showDetailOnCUC) || this.isUnitUpdate) {
|
|
385
|
+
// event.stopPropagation(); // 可有可无,最外层已经阻止冒泡
|
|
386
|
+
this.showUnitModal = true;
|
|
387
|
+
}
|
|
381
388
|
}
|
|
382
389
|
}
|
|
383
390
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="cascaderTable"
|
|
4
|
+
@click="clickControlWrapper"
|
|
5
|
+
>
|
|
3
6
|
<!-- 查看 单元格内 -->
|
|
4
7
|
<template v-if="isUnitShow">
|
|
5
8
|
<span
|
|
6
9
|
class="cascaderTable-unit"
|
|
7
|
-
@click="
|
|
10
|
+
@click="clickUnitContent"
|
|
8
11
|
>
|
|
9
12
|
<dsh-icons :list="[{
|
|
10
13
|
customIcon: 'bico-Cascadetable'
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="flatTable"
|
|
4
|
+
@click="clickControlWrapper"
|
|
5
|
+
>
|
|
3
6
|
<!-- 查看 单元格内 -->
|
|
4
7
|
<template v-if="isUnitShow">
|
|
5
8
|
<span
|
|
6
9
|
class="flatTable-unit"
|
|
7
|
-
@click="
|
|
10
|
+
@click="clickUnitContent"
|
|
8
11
|
>
|
|
9
12
|
<dsh-icons :list="[{
|
|
10
13
|
customIcon: 'bico-internaltable'
|