bri-components 1.1.6 → 1.2.0
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/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/abolish/DshFileShow.less +61 -0
- package/src/{components/small → abolish}/DshFileShow.vue +30 -105
- package/src/components/controls/base/BriUpload/{index.vue → BriUpload.vue} +3 -3
- package/src/components/controls/base/BriUpload/{upload-list.vue → uploadList.vue} +17 -13
- package/src/components/controls/base/BriUpload/uploadMixin.js +1 -5
- package/src/components/controls/base/DshCascader/DshCascader.vue +91 -93
- package/src/components/controls/base/DshCheckbox.vue +3 -3
- package/src/components/controls/base/DshCoordinates.vue +2 -2
- package/src/components/controls/base/DshDate.vue +21 -10
- package/src/components/controls/base/DshEditor.vue +33 -48
- package/src/components/controls/base/DshInput.vue +21 -19
- package/src/components/controls/base/DshNumber/DshNumber.vue +23 -22
- package/src/components/controls/base/DshSelect.vue +2 -2
- package/src/components/controls/base/DshSwitch.vue +2 -2
- package/src/components/controls/controlMap.js +1 -1
- package/src/components/controls/controlMixin.js +5 -8
- package/src/components/controls/senior/BriLabels.vue +72 -54
- package/src/components/controls/special/DshUndeveloped.vue +0 -6
- package/src/components/form/DshForm.vue +4 -17
- package/src/components/list/BriTable.vue +1 -1
- package/src/components/list/{ZTree.vue → BriTree.vue} +9 -8
- package/src/components/list/DshBox/DshCard.vue +4 -4
- package/src/components/list/DshBox/DshCrossTable.vue +4 -4
- package/src/components/list/DshBox/DshList.vue +2 -2
- package/src/components/list/DshBox/DshPanel.vue +5 -5
- package/src/components/list/DshBox/DshTable.vue +21 -80
- package/src/components/list/DshCascaderTable.vue +2 -2
- package/src/components/other/{ZCode.vue → BriCode.vue} +2 -9
- package/src/components/other/{ZCollapseTree.vue → BriCollapseTree.vue} +37 -16
- package/src/components/other/{ZIframe.vue → BriIframe.vue} +7 -23
- package/src/components/other/{ZLoading.vue → BriLoading.vue} +25 -11
- package/src/components/other/BriSvg.vue +2 -2
- package/src/components/other/DshAvatar.vue +21 -69
- package/src/components/other/DshColorPanel.vue +0 -43
- package/src/components/small/{Ctooltip.vue → BriTooltip.vue} +2 -2
- package/src/components/small/DshButtons.vue +2 -2
- package/src/components/small/DshCrumbs.vue +1 -0
- package/src/components/small/DshCrumbsItem.vue +5 -3
- package/src/components/small/DshIcons.vue +0 -14
- package/src/components/small/DshTags.vue +7 -2
- package/src/components/unit/DshFormItem.vue +4 -4
- package/src/components/unit/DshUnit.vue +0 -8
- package/src/index.js +93 -104
- package/src/styles/common/control.less +56 -51
- package/src/styles/components/controls/base/BriUpload/BriUpload.less +159 -0
- package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +81 -0
- package/src/styles/components/controls/base/BriUpload/index.less +3 -0
- package/src/styles/components/controls/base/BriUpload/uploadList.less +164 -0
- package/src/styles/components/controls/base/DshCascader/DshCascader.less +124 -0
- package/src/styles/components/controls/base/DshCascader/index.less +2 -0
- package/src/styles/components/controls/base/DshCheckbox.less +3 -2
- package/src/styles/components/controls/base/DshDate.less +12 -0
- package/src/styles/components/controls/base/DshEditor.less +25 -47
- package/src/styles/components/controls/base/DshInput.less +9 -1
- package/src/styles/components/controls/base/DshNumber.less +43 -26
- package/src/styles/components/controls/base/DshSelect.less +11 -0
- package/src/styles/components/controls/senior/BriLabels.less +29 -12
- package/src/styles/components/controls/special/DshBack.less +3 -0
- package/src/styles/components/controls/special/DshUndeveloped.less +3 -0
- package/src/styles/components/form/DshAdvSearchForm.less +0 -1
- package/src/styles/components/form/DshDefaultSearch.less +1 -1
- package/src/styles/components/form/DshForm.less +13 -0
- package/src/styles/components/index.less +43 -36
- package/src/styles/components/list/BriTable.less +9 -9
- package/src/styles/components/list/{ZTree.less → BriTree.less} +11 -7
- package/src/styles/components/list/DshBox/DshTable.less +11 -0
- package/src/styles/components/other/BriCode.less +5 -0
- package/src/styles/components/other/{ZCollapseTree.less → BriCollapseTree.less} +2 -2
- package/src/styles/components/other/BriIframe.less +16 -0
- package/src/styles/components/other/{ZLoading.less → BriLoading.less} +3 -3
- package/src/styles/components/other/DshAvatar.less +64 -0
- package/src/styles/components/other/DshBtnModal.less +3 -0
- package/src/styles/components/other/DshColorPanel.less +40 -0
- package/src/styles/components/other/DshEditPanel.less +2 -2
- package/src/styles/components/small/BriButton.less +3 -2
- package/src/styles/components/small/{Ctooltip.less → BriTooltip.less} +2 -1
- package/src/styles/components/small/DshCrumbs.less +0 -0
- package/src/styles/components/small/DshDropdown.less +5 -3
- package/src/styles/components/small/DshIcons.less +7 -0
- package/src/styles/components/small/DshTags.less +17 -0
- package/src/styles/components/unit/DshFormItem.less +4 -4
- package/src/styles/components/unit/DshUnit.less +5 -0
- package/src/utils/table.js +8 -0
- package/src/components/controls/controlShow.vue +0 -44
- package/src/components/other/YNoPermission.vue +0 -45
- package/src/components/small/BriTree.vue +0 -42
- package/src/styles/components/controls/base/BriUpload.less +0 -436
- package/src/styles/components/controls/base/DshCascader.less +0 -110
- package/src/styles/components/controls/controlShow.less +0 -12
- package/src/styles/components/other/ZCode.less +0 -1
- /package/src/{styles/components/other → abolish}/BriTransfer.less +0 -0
- /package/src/{components/other → abolish}/BriTransfer.vue +0 -0
- /package/src/{styles/components/small → abolish}/BriTree.less +0 -0
- /package/src/components/{small → list}/DshPage.vue +0 -0
- /package/src/components/other/{ZGantt.vue → BriGantt.vue} +0 -0
- /package/src/components/other/{menu/DshMenu.vue → DshMenu.vue} +0 -0
- /package/src/components/other/{menu/DshMenuNav.vue → DshMenuNav.vue} +0 -0
- /package/src/styles/components/controls/base/{InfoCascader.less → DshCascader/InfoCascader.less} +0 -0
- /package/src/styles/components/{small → list}/DshPage.less +0 -0
- /package/src/styles/components/other/{ZGantt.less → BriGantt.less} +0 -0
- /package/src/{components/controls/base/BriUpload/upload-listItem.vue → styles/components/small/DshCrumbItem.less} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<div class="
|
|
2
|
+
<div class="BriTree">
|
|
3
|
+
<div class="BriTree-action">
|
|
4
4
|
<dsh-buttons
|
|
5
|
-
class="
|
|
5
|
+
class="BriTree-action-create"
|
|
6
6
|
:list="$getOperationList(['createNode'])"
|
|
7
7
|
@click="$dispatchEvent($event)"
|
|
8
8
|
></dsh-buttons>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
|
-
<div class="
|
|
11
|
+
<div class="BriTree-tree">
|
|
12
12
|
<Tree
|
|
13
13
|
:data="treeData"
|
|
14
14
|
:render="renderContent"
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
|
|
18
18
|
<!-- 添加节点弹窗 -->
|
|
19
19
|
<dsh-modal
|
|
20
|
+
class="BriTree-modal"
|
|
20
21
|
v-model="treeFormShow"
|
|
21
22
|
:propsObj="treeFormPropsObj"
|
|
22
23
|
mode="custom"
|
|
23
24
|
>
|
|
24
|
-
<div class="
|
|
25
|
+
<div class="BriTree-modal-content">
|
|
25
26
|
<dsh-form
|
|
26
27
|
v-if="treeFormShow"
|
|
27
28
|
ref="treeForm"
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
></dsh-form>
|
|
32
33
|
|
|
33
34
|
<dsh-buttons
|
|
34
|
-
class="
|
|
35
|
+
class="BriTree-modal-content-btns"
|
|
35
36
|
:list="$getOperationList(['clickNodeCancel', 'clickNodeConfirm'])"
|
|
36
37
|
@click="$dispatchEvent($event, { data: treeFormData })"
|
|
37
38
|
></dsh-buttons>
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
56
|
export default {
|
|
56
|
-
name: "
|
|
57
|
+
name: "BriTree",
|
|
57
58
|
props: {
|
|
58
59
|
data: Array,
|
|
59
60
|
// 树形级联类别:cascader dropdown
|
|
@@ -358,7 +359,7 @@
|
|
|
358
359
|
icon: "md-arrow-dropdown-circle",
|
|
359
360
|
color: this.colorMap[data.color] || this.colorMap["color-1"]
|
|
360
361
|
},
|
|
361
|
-
menuClass: "
|
|
362
|
+
menuClass: "BriTree-dropdown-menu",
|
|
362
363
|
list: this.colorArr
|
|
363
364
|
},
|
|
364
365
|
style: {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
<div class="DshCard-item-info">
|
|
36
36
|
<!-- 标题 -->
|
|
37
37
|
<div class="DshCard-item-info-title dsh-ellipsis">
|
|
38
|
-
<
|
|
38
|
+
<bri-tooltip
|
|
39
39
|
placement="top"
|
|
40
40
|
:transfer="true"
|
|
41
41
|
:content="dataItem[propsObj.titleField]"
|
|
42
42
|
>
|
|
43
43
|
<div class="dsh-ellipsis">{{ dataItem[propsObj.titleField] }}</div>
|
|
44
|
-
</
|
|
44
|
+
</bri-tooltip>
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<!-- 显示字段 -->
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
:key="colItem._key"
|
|
52
52
|
>
|
|
53
53
|
<!-- 左 label -->
|
|
54
|
-
<
|
|
54
|
+
<bri-tooltip
|
|
55
55
|
class="unit-label"
|
|
56
56
|
placement="top"
|
|
57
57
|
:transfer="true"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
:content="colItem._name"
|
|
60
60
|
>
|
|
61
61
|
<span class="dsh-ellipsis">{{ colItem._name }}</span>
|
|
62
|
-
</
|
|
62
|
+
</bri-tooltip>
|
|
63
63
|
<span class="unit-colon">:</span>
|
|
64
64
|
|
|
65
65
|
<!-- 右 val -->
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
fontWeight: 500
|
|
72
72
|
}"
|
|
73
73
|
>
|
|
74
|
-
<
|
|
74
|
+
<bri-tooltip
|
|
75
75
|
transfer
|
|
76
76
|
:content="colItem.title"
|
|
77
77
|
>
|
|
78
78
|
<div class="td-content dsh-ellipsis">
|
|
79
79
|
{{ colItem.title }}
|
|
80
80
|
</div>
|
|
81
|
-
</
|
|
81
|
+
</bri-tooltip>
|
|
82
82
|
</td>
|
|
83
83
|
</tr>
|
|
84
84
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
background: '#F7F9FD'
|
|
94
94
|
}"
|
|
95
95
|
>
|
|
96
|
-
<
|
|
96
|
+
<bri-tooltip
|
|
97
97
|
transfer
|
|
98
98
|
:content="colItem.title"
|
|
99
99
|
>
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
</template>
|
|
116
116
|
</slot>
|
|
117
117
|
</div>
|
|
118
|
-
</
|
|
118
|
+
</bri-tooltip>
|
|
119
119
|
</td>
|
|
120
120
|
</tr>
|
|
121
121
|
</table>
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
justifyContent: getFlexLayout(col._align)
|
|
44
44
|
}"
|
|
45
45
|
>
|
|
46
|
-
<
|
|
46
|
+
<bri-tooltip
|
|
47
47
|
transfer
|
|
48
48
|
:content="col._name"
|
|
49
49
|
>
|
|
50
50
|
<span class="dsh-ellipsis">
|
|
51
51
|
{{ col._name }}
|
|
52
52
|
</span>
|
|
53
|
-
</
|
|
53
|
+
</bri-tooltip>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
}"
|
|
15
15
|
>
|
|
16
16
|
<span class="DshPanel-group-title-name">
|
|
17
|
-
<
|
|
17
|
+
<bri-tooltip
|
|
18
18
|
class="unit-label"
|
|
19
19
|
placement="top"
|
|
20
20
|
:transfer="true"
|
|
21
21
|
:content="groupItem.name"
|
|
22
22
|
>
|
|
23
23
|
<span class="dsh-ellipsis">{{ groupItem.name }} </span>
|
|
24
|
-
</
|
|
24
|
+
</bri-tooltip>
|
|
25
25
|
</span>
|
|
26
26
|
<span>
|
|
27
27
|
<span class="DshPanel-group-title-number">
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<div
|
|
44
44
|
v-if="!groupItem.list.length"
|
|
45
45
|
class="dsh-tip"
|
|
46
|
-
style="
|
|
46
|
+
:style="{color: getBgColor(groupItem)}"
|
|
47
47
|
>
|
|
48
48
|
{{ noDataText }}
|
|
49
49
|
</div>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
:key="colItem._key"
|
|
90
90
|
>
|
|
91
91
|
<!-- 左 label -->
|
|
92
|
-
<
|
|
92
|
+
<bri-tooltip
|
|
93
93
|
class="unit-label"
|
|
94
94
|
placement="top"
|
|
95
95
|
:transfer="true"
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
:content="colItem._name"
|
|
98
98
|
>
|
|
99
99
|
<span class="dsh-ellipsis">{{ colItem._name }}</span>
|
|
100
|
-
</
|
|
100
|
+
</bri-tooltip>
|
|
101
101
|
<span class="unit-colon">:</span>
|
|
102
102
|
|
|
103
103
|
<!-- 右 val -->
|
|
@@ -66,8 +66,9 @@
|
|
|
66
66
|
...(operationItem._name_ || operationItem.name)
|
|
67
67
|
.split("/")
|
|
68
68
|
.map(item => item.length * (operationItem.size === "small" ? 12 : 14))
|
|
69
|
-
) +
|
|
70
|
-
|
|
69
|
+
) + (
|
|
70
|
+
operationItem.icon || operationItem.customIcon ? 20 : 0) + (
|
|
71
|
+
operationItem.size === "small" ? 8 : 16); // 按钮的padding,故意多了2px保留余地
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
return this.operationList.map(operationItem => {
|
|
@@ -127,8 +128,8 @@
|
|
|
127
128
|
this.selfOperationList
|
|
128
129
|
.slice(0, this.selfOperationList.length > maxBtnNum ? maxBtnNum - 1 : this.selfOperationList.length)
|
|
129
130
|
.reduce((total, operationItem) => total + operationItem.width, 0) +
|
|
130
|
-
(this.selfOperationList.length > maxBtnNum ?
|
|
131
|
-
(this.selfOperationList.length > 0 ?
|
|
131
|
+
(this.selfOperationList.length > maxBtnNum ? 70 : 0) + // 出现更多按钮的宽度
|
|
132
|
+
(this.selfOperationList.length > 0 ? 40 : 0) + // 操作列的padding
|
|
132
133
|
4 // 留出4px空间,避免麻烦问题
|
|
133
134
|
, 80
|
|
134
135
|
),
|
|
@@ -143,85 +144,25 @@
|
|
|
143
144
|
)
|
|
144
145
|
};
|
|
145
146
|
});
|
|
146
|
-
const outFilterOperationList = totalOperationList.slice(0, maxBtnNum - 1);
|
|
147
|
-
const moreFilterOperationList = totalOperationList.slice(maxBtnNum - 1).filter(operationItem => !operationItem.disabled);
|
|
148
147
|
|
|
149
148
|
// TODO: 注意此处totalOperationList用的一定是表格行显示最多的操作按钮数组,有改动注意看此备注!!!
|
|
150
|
-
return
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
nativeOn: {
|
|
162
|
-
click: (e) => {
|
|
163
|
-
e.stopPropagation();
|
|
164
|
-
}
|
|
149
|
+
return h("dsh-buttons", {
|
|
150
|
+
props: {
|
|
151
|
+
list: totalOperationList,
|
|
152
|
+
maxFlatNum: maxBtnNum - 1,
|
|
153
|
+
itemClass: "table-operation-btn"
|
|
154
|
+
},
|
|
155
|
+
on: {
|
|
156
|
+
click: (operationItem) => {
|
|
157
|
+
this.$dshEmit(operationItem, params.row, params.row);
|
|
165
158
|
}
|
|
166
|
-
}
|
|
167
|
-
:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
list: outFilterOperationList,
|
|
174
|
-
itemClass: "table-operation-btn"
|
|
175
|
-
},
|
|
176
|
-
on: {
|
|
177
|
-
click: (operationItem) => {
|
|
178
|
-
this.$dshEmit(operationItem, params.row, params.row);
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
nativeOn: {
|
|
182
|
-
click: (e) => {
|
|
183
|
-
e.stopPropagation();
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}),
|
|
187
|
-
h("dsh-dropdown", {
|
|
188
|
-
props: {
|
|
189
|
-
dropdownObj: {
|
|
190
|
-
icon: "ios-more",
|
|
191
|
-
size: 22,
|
|
192
|
-
color: "#E9ECF4",
|
|
193
|
-
showDropdownItemIcon: false
|
|
194
|
-
},
|
|
195
|
-
list: moreFilterOperationList
|
|
196
|
-
},
|
|
197
|
-
on: {
|
|
198
|
-
click: (operationItem) => {
|
|
199
|
-
this.$dshEmit(operationItem, params.row, params.row);
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
nativeOn: {
|
|
203
|
-
click: (e) => {
|
|
204
|
-
e.stopPropagation();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}, [
|
|
208
|
-
h("dsh-buttons", {
|
|
209
|
-
class: "dsh-margin-left5",
|
|
210
|
-
props: {
|
|
211
|
-
list: [
|
|
212
|
-
{
|
|
213
|
-
name: "更多>>",
|
|
214
|
-
type: "more",
|
|
215
|
-
btnType: "text",
|
|
216
|
-
size: "default",
|
|
217
|
-
class: "table-operation-btn",
|
|
218
|
-
disabled: !moreFilterOperationList.length
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
})
|
|
223
|
-
])
|
|
224
|
-
]);
|
|
159
|
+
},
|
|
160
|
+
nativeOn: {
|
|
161
|
+
click: (e) => {
|
|
162
|
+
e.stopPropagation();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
});
|
|
225
166
|
}
|
|
226
167
|
}
|
|
227
168
|
]
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
|
|
106
106
|
<!-- 查看状态 -->
|
|
107
107
|
<template v-else>
|
|
108
|
-
<
|
|
108
|
+
<bri-tooltip
|
|
109
109
|
:transfer="true"
|
|
110
110
|
:content="enterText(row[col._key].name)"
|
|
111
111
|
>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
class="dsh-ellipsis"
|
|
115
115
|
style="word-break:break-word"
|
|
116
116
|
></span>
|
|
117
|
-
</
|
|
117
|
+
</bri-tooltip>
|
|
118
118
|
|
|
119
119
|
<!-- 操作下拉 -->
|
|
120
120
|
<dsh-dropdown
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="BriCode">
|
|
3
3
|
<codemirror
|
|
4
4
|
style="height:100%"
|
|
5
5
|
v-model="computedVal"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
import "codemirror/addon/display/autorefresh"; // 及时自动更新,配置里面也需要设置autoRefresh为true
|
|
39
39
|
|
|
40
40
|
export default {
|
|
41
|
-
name: "
|
|
41
|
+
name: "BriCode",
|
|
42
42
|
components: {
|
|
43
43
|
codemirror
|
|
44
44
|
},
|
|
@@ -116,10 +116,3 @@
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
</script>
|
|
119
|
-
|
|
120
|
-
<style lang="less" scoped>
|
|
121
|
-
.ZCode {
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 100%;
|
|
124
|
-
}
|
|
125
|
-
</style>
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="BriCollapseTree">
|
|
3
3
|
<ul>
|
|
4
|
-
<li
|
|
4
|
+
<li
|
|
5
|
+
v-for="listItem in list"
|
|
6
|
+
:key="listItem._key"
|
|
7
|
+
>
|
|
5
8
|
<!-- 有children -->
|
|
6
|
-
<Collapse
|
|
9
|
+
<Collapse
|
|
7
10
|
v-if="listItem.children && listItem.children.length"
|
|
11
|
+
class="BriCollapseTree-collapse"
|
|
8
12
|
:accordion="listItem._accordion"
|
|
9
13
|
:simple="listItem._simple === false ? false : true"
|
|
10
14
|
:hide-arrow="true"
|
|
@@ -12,33 +16,50 @@
|
|
|
12
16
|
>
|
|
13
17
|
<Panel :name="listItem._key">
|
|
14
18
|
<div
|
|
15
|
-
class="
|
|
16
|
-
|
|
19
|
+
:class="{
|
|
20
|
+
'BriCollapseTree-collapseItem': true,
|
|
21
|
+
'BriCollapseTree-listItem-disabled': listItem.disabled
|
|
22
|
+
}"
|
|
17
23
|
@click.stop="click(listItem)"
|
|
18
24
|
>
|
|
19
|
-
<div class="
|
|
25
|
+
<div class="BriCollapseTree-listItem-text">
|
|
20
26
|
{{ listItem.name }}
|
|
21
|
-
<span
|
|
27
|
+
<span
|
|
28
|
+
class="BriCollapseTree-listItem-current"
|
|
29
|
+
v-if="listItem.current"
|
|
30
|
+
>(当前)</span>
|
|
22
31
|
</div>
|
|
23
|
-
<div class="
|
|
32
|
+
<div class="BriCollapseTree-listItem-grey">
|
|
24
33
|
{{ listItem._simpleDescription }}
|
|
25
34
|
</div>
|
|
26
35
|
</div>
|
|
27
|
-
|
|
36
|
+
|
|
37
|
+
<bri-collapse-tree
|
|
38
|
+
slot="content"
|
|
39
|
+
:list="listItem.children"
|
|
40
|
+
@click="click"
|
|
41
|
+
></bri-collapse-tree>
|
|
28
42
|
</Panel>
|
|
29
43
|
</Collapse>
|
|
30
44
|
|
|
31
45
|
<!-- 直接展示 -->
|
|
32
|
-
<div
|
|
33
|
-
|
|
34
|
-
:class="{
|
|
46
|
+
<div
|
|
47
|
+
v-else
|
|
48
|
+
:class="{
|
|
49
|
+
'BriCollapseTree-collapseItem': true,
|
|
50
|
+
'BriCollapseTree-listItem-disabled': listItem.disabled
|
|
51
|
+
}"
|
|
35
52
|
@click.stop="click(listItem)"
|
|
36
53
|
>
|
|
37
|
-
<div class="
|
|
54
|
+
<div class="BriCollapseTree-listItem-text">
|
|
38
55
|
{{ listItem.name }}
|
|
39
|
-
<span
|
|
56
|
+
<span
|
|
57
|
+
v-if="listItem.current"
|
|
58
|
+
class="BriCollapseTree-listItem-current"
|
|
59
|
+
>(当前)</span>
|
|
40
60
|
</div>
|
|
41
|
-
|
|
61
|
+
|
|
62
|
+
<div class="BriCollapseTree-listItem-grey">
|
|
42
63
|
<Tooltip
|
|
43
64
|
placement="right"
|
|
44
65
|
max-width="300"
|
|
@@ -57,7 +78,7 @@
|
|
|
57
78
|
|
|
58
79
|
<script>
|
|
59
80
|
export default {
|
|
60
|
-
name: "
|
|
81
|
+
name: "BriCollapseTree",
|
|
61
82
|
props: {
|
|
62
83
|
list: {
|
|
63
84
|
type: Array,
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="BriIframe">
|
|
3
3
|
<iframe
|
|
4
4
|
v-if="url"
|
|
5
|
-
ref="
|
|
6
|
-
class="
|
|
5
|
+
ref="BriIframe"
|
|
6
|
+
class="BriIframe-iframe"
|
|
7
7
|
:src="url"
|
|
8
8
|
frameborder="0"
|
|
9
9
|
allowtransparency="true"
|
|
10
10
|
:allow="allow"
|
|
11
11
|
></iframe>
|
|
12
|
+
|
|
12
13
|
<div
|
|
13
14
|
v-else
|
|
14
|
-
class="dsh-flex-row-center-center
|
|
15
|
+
class="dsh-flex-row-center-center BriIframe-nodata"
|
|
15
16
|
>
|
|
16
17
|
<img
|
|
17
18
|
:src="noData"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
|
|
30
31
|
<script>
|
|
31
32
|
export default {
|
|
32
|
-
name: "
|
|
33
|
+
name: "BriIframe",
|
|
33
34
|
props: {
|
|
34
35
|
url: {
|
|
35
36
|
type: String,
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
},
|
|
58
59
|
methods: {
|
|
59
60
|
init () {
|
|
60
|
-
let iframe = this.$refs.
|
|
61
|
+
let iframe = this.$refs.BriIframe;
|
|
61
62
|
if (!iframe) {
|
|
62
63
|
return;
|
|
63
64
|
}
|
|
@@ -91,20 +92,3 @@
|
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
94
|
</script>
|
|
94
|
-
|
|
95
|
-
<style lang="less">
|
|
96
|
-
.ZIframe {
|
|
97
|
-
display: flex;
|
|
98
|
-
width: 100%;
|
|
99
|
-
height: 100%;
|
|
100
|
-
position: relative;
|
|
101
|
-
&-iframe {
|
|
102
|
-
flex: 1;
|
|
103
|
-
overflow: auto;
|
|
104
|
-
}
|
|
105
|
-
&-nodata {
|
|
106
|
-
width: 100%;
|
|
107
|
-
height: 100%;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
</style>
|
|
@@ -1,36 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
2
|
+
<div
|
|
3
3
|
v-if="value"
|
|
4
|
-
class="
|
|
4
|
+
class="BriLoading"
|
|
5
5
|
:class="{
|
|
6
|
-
'
|
|
7
|
-
'
|
|
6
|
+
'BriLoading-fix': fix,
|
|
7
|
+
'BriLoading-center': center
|
|
8
8
|
}"
|
|
9
9
|
>
|
|
10
|
-
<div class="
|
|
10
|
+
<div class="BriLoading-main">
|
|
11
11
|
<slot>
|
|
12
12
|
<template v-if="value === 1">
|
|
13
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
class="BriLoading-main-loading"
|
|
15
|
+
:style="getStyle"
|
|
16
|
+
>
|
|
14
17
|
</div>
|
|
15
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
v-if="showLoadingText"
|
|
20
|
+
class="BriLoading-main-loadingText"
|
|
21
|
+
>
|
|
16
22
|
{{ loadText }}
|
|
17
23
|
</div>
|
|
18
24
|
</template>
|
|
19
25
|
|
|
20
26
|
<template v-else-if="value==2">
|
|
21
|
-
<
|
|
22
|
-
<div
|
|
27
|
+
<bri-svg :src="imgSrc" />
|
|
28
|
+
<div
|
|
29
|
+
v-if="noText"
|
|
30
|
+
class="BriLoading-main-noText"
|
|
31
|
+
>
|
|
23
32
|
{{ noText }}
|
|
24
33
|
</div>
|
|
25
34
|
</template>
|
|
26
35
|
</slot>
|
|
27
36
|
</div>
|
|
28
|
-
|
|
37
|
+
</div>
|
|
29
38
|
</template>
|
|
30
39
|
|
|
31
40
|
<script>
|
|
41
|
+
import BriSvg from "./BriSvg";
|
|
42
|
+
|
|
32
43
|
export default {
|
|
33
|
-
name: "
|
|
44
|
+
name: "BriLoading",
|
|
45
|
+
components: {
|
|
46
|
+
BriSvg
|
|
47
|
+
},
|
|
34
48
|
props: {
|
|
35
49
|
// 0 不加载,1:loading,2:空数据
|
|
36
50
|
value: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<svg
|
|
2
|
+
<svg aria-hidden="true">
|
|
3
3
|
<use :href="href"></use>
|
|
4
4
|
</svg>
|
|
5
5
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script>
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
|
-
name: "
|
|
10
|
+
name: "BriSvg",
|
|
11
11
|
components: {},
|
|
12
12
|
props: {
|
|
13
13
|
src: String
|