bri-components 1.1.5 → 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/7.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 -90
- 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 +10 -8
- package/src/components/controls/base/DshSwitch.vue +45 -87
- 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/DshDefaultSearch.vue +1 -1
- package/src/components/form/DshForm.vue +4 -13
- 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/BriButton.vue +2 -2
- package/src/components/small/{Ctooltip.vue → BriTooltip.vue} +2 -2
- package/src/components/small/DshButtons.vue +28 -2
- package/src/components/small/DshCrumbs.vue +1 -0
- package/src/components/small/DshCrumbsItem.vue +5 -3
- package/src/components/small/DshIcons.vue +1 -15
- package/src/components/small/DshTags.vue +7 -2
- package/src/components/unit/DshFormItem.vue +6 -6
- package/src/components/unit/DshUnit.vue +0 -8
- package/src/index.js +93 -104
- package/src/styles/common/control.less +62 -53
- 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/{DshCheckbox.less → base/DshCheckbox.less} +3 -2
- package/src/styles/components/controls/base/DshDate.less +15 -0
- package/src/styles/components/controls/{DshEditor.less → base/DshEditor.less} +25 -47
- package/src/styles/components/controls/{DshInput.less → base/DshInput.less} +9 -1
- package/src/styles/components/controls/base/DshNumber.less +68 -0
- package/src/styles/components/controls/{DshSelect.less → base/DshSelect.less} +11 -0
- package/src/styles/components/controls/base/DshSwitch.less +37 -0
- package/src/styles/components/controls/{BriLabels.less → senior/BriLabels.less} +29 -12
- package/src/styles/components/controls/{DshDate.less → special/DshBack.less} +1 -1
- 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 +41 -9
- package/src/styles/components/form/DshForm.less +13 -0
- package/src/styles/components/index.less +51 -43
- 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 +35 -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 +5 -6
- 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/BriUpload.less +0 -436
- package/src/styles/components/controls/DshCascader.less +0 -95
- package/src/styles/components/controls/DshNumber.less +0 -51
- 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/{BriInputs.less → base/BriInputs.less} +0 -0
- /package/src/styles/components/controls/{InfoCascader.less → base/DshCascader/InfoCascader.less} +0 -0
- /package/src/styles/components/controls/{DshCoordinates.less → base/DshCoordinates.less} +0 -0
- /package/src/styles/components/controls/{DshDaterange.less → base/DshDaterange.less} +0 -0
- /package/src/styles/components/controls/{DshDivider.less → base/DshDivider.less} +0 -0
- /package/src/styles/components/controls/{DshNumberange.less → base/DshNumberange.less} +0 -0
- /package/src/styles/components/controls/{DshPackage.less → senior/DshPackage.less} +0 -0
- /package/src/styles/components/controls/{cascaderTable.less → senior/cascaderTable.less} +0 -0
- /package/src/styles/components/controls/{flatTable.less → senior/flatTable.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,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
|
|
@@ -6,18 +6,30 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<!-- 图片堆叠显示 -->
|
|
9
|
-
<div
|
|
10
|
-
|
|
9
|
+
<div
|
|
10
|
+
v-else-if="users.length > maxLength"
|
|
11
|
+
:style="{ ...roundStyle }"
|
|
12
|
+
>
|
|
13
|
+
<span
|
|
14
|
+
v-for="(user, index) in userList"
|
|
15
|
+
:key="index"
|
|
16
|
+
class="DshAvatar-img"
|
|
17
|
+
>
|
|
11
18
|
<img :src="user && user.avatarurl || avatarSrc">
|
|
12
19
|
</span>
|
|
13
20
|
<span :style="{'margin-left': (userList.length + 1) * 12 + 6 + 'px'}">
|
|
14
|
-
{{userList[userList.length - 1] && userList[userList.length - 1].realname || userList[userList.length - 1] && userList[userList.length - 1].name
|
|
21
|
+
{{ userList[userList.length - 1] && userList[userList.length - 1].realname || userList[userList.length - 1] && userList[userList.length - 1].name }}
|
|
15
22
|
</span>
|
|
16
23
|
</div>
|
|
17
24
|
|
|
18
25
|
<!-- 单个显示 -->
|
|
19
26
|
<template v-else>
|
|
20
|
-
<div
|
|
27
|
+
<div
|
|
28
|
+
v-for="(user, index) in users"
|
|
29
|
+
:key="index"
|
|
30
|
+
class="DshAvatar-round"
|
|
31
|
+
:style="{ ...roundStyle }"
|
|
32
|
+
>
|
|
21
33
|
<div class="DshAvatar-box">
|
|
22
34
|
<div class="DshAvatar-img">
|
|
23
35
|
<img :src="user && user.avatarurl || avatarSrc">
|
|
@@ -32,7 +44,6 @@
|
|
|
32
44
|
</template>
|
|
33
45
|
|
|
34
46
|
<script>
|
|
35
|
-
// 自定义列组件
|
|
36
47
|
export default {
|
|
37
48
|
name: "DshAvatar",
|
|
38
49
|
props: {
|
|
@@ -71,7 +82,11 @@
|
|
|
71
82
|
},
|
|
72
83
|
methods: {
|
|
73
84
|
init () {
|
|
74
|
-
this.users = this.$dataType(this.rowData[this.field]) === "object"
|
|
85
|
+
this.users = this.$dataType(this.rowData[this.field]) === "object"
|
|
86
|
+
? [this.rowData[this.field]]
|
|
87
|
+
: (this.$dataType(this.rowData[this.field]) === "array"
|
|
88
|
+
? this.rowData[this.field]
|
|
89
|
+
: []);
|
|
75
90
|
}
|
|
76
91
|
},
|
|
77
92
|
watch: {
|
|
@@ -84,66 +99,3 @@
|
|
|
84
99
|
}
|
|
85
100
|
};
|
|
86
101
|
</script>
|
|
87
|
-
|
|
88
|
-
<style lang="less">
|
|
89
|
-
.DshAvatar {
|
|
90
|
-
position: relative;
|
|
91
|
-
span {
|
|
92
|
-
display: inline-block;
|
|
93
|
-
margin-left: 20px;
|
|
94
|
-
line-height: 22px;
|
|
95
|
-
}
|
|
96
|
-
&-img {
|
|
97
|
-
width: 22px;
|
|
98
|
-
height: 22px;
|
|
99
|
-
padding: 1px;
|
|
100
|
-
display: inline-block;
|
|
101
|
-
line-height: 20px;
|
|
102
|
-
background: #fff;
|
|
103
|
-
border-radius: 50%;
|
|
104
|
-
img {
|
|
105
|
-
width: 20px;
|
|
106
|
-
height: 20px;
|
|
107
|
-
display: inline-block;
|
|
108
|
-
border-radius: 50%;
|
|
109
|
-
}
|
|
110
|
-
&:nth-child(1) {
|
|
111
|
-
position: absolute;
|
|
112
|
-
left: 0px;
|
|
113
|
-
top: 50%;
|
|
114
|
-
margin-top: -10px;
|
|
115
|
-
}
|
|
116
|
-
&:nth-child(2) {
|
|
117
|
-
position: absolute;
|
|
118
|
-
left: 12px;
|
|
119
|
-
top: 50%;
|
|
120
|
-
margin-top: -10px;
|
|
121
|
-
}
|
|
122
|
-
&:nth-child(3) {
|
|
123
|
-
position: absolute;
|
|
124
|
-
left: 24px;
|
|
125
|
-
top: 50%;
|
|
126
|
-
margin-top: -10px;
|
|
127
|
-
}
|
|
128
|
-
&:nth-child(4) {
|
|
129
|
-
position: absolute;
|
|
130
|
-
left: 36px;
|
|
131
|
-
top: 50%;
|
|
132
|
-
margin-top: -10px;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
&-round {
|
|
136
|
-
display: inline-block;
|
|
137
|
-
margin-right: 8px;
|
|
138
|
-
}
|
|
139
|
-
&-box {
|
|
140
|
-
position: relative;
|
|
141
|
-
img {
|
|
142
|
-
width: 20px;
|
|
143
|
-
height: 20px;
|
|
144
|
-
display: inline-block;
|
|
145
|
-
border-radius: 50%;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
</style>
|
|
@@ -83,46 +83,3 @@
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
</script>
|
|
86
|
-
|
|
87
|
-
<style lang="less" scoped>
|
|
88
|
-
.DshColorPanel {
|
|
89
|
-
&-rel {
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
}
|
|
92
|
-
&-list {
|
|
93
|
-
font-size: 15px;
|
|
94
|
-
display: flex;
|
|
95
|
-
width: 293px;
|
|
96
|
-
height: 72px;
|
|
97
|
-
flex-wrap: wrap;
|
|
98
|
-
justify-content: space-around;
|
|
99
|
-
align-items: center;
|
|
100
|
-
&-item {
|
|
101
|
-
padding: 6px;
|
|
102
|
-
&-big {
|
|
103
|
-
width: 15px;
|
|
104
|
-
height: 15px;
|
|
105
|
-
display: inline-block;
|
|
106
|
-
border-radius: 50%;
|
|
107
|
-
}
|
|
108
|
-
&-small {
|
|
109
|
-
width: 12px;
|
|
110
|
-
height: 12px;
|
|
111
|
-
position: absolute;
|
|
112
|
-
display: inline-block;
|
|
113
|
-
transform: translate(1.5px,1.5px);
|
|
114
|
-
border-radius: 50%;
|
|
115
|
-
&:hover + span{
|
|
116
|
-
border-width: 1px;
|
|
117
|
-
border-style: solid;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
</style>
|
|
124
|
-
<style lang="less">
|
|
125
|
-
.DshColorPanel {
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
</style>
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
let setType = this.propsObj.btnType || this.type;
|
|
43
43
|
if (["cancel"].includes(defaultType)) {
|
|
44
44
|
setType = "primary";
|
|
45
|
-
} else if (["errorLine"].includes(defaultType)) {
|
|
45
|
+
} else if (["errorLine", "primaryLine"].includes(defaultType)) {
|
|
46
46
|
setType = "default";
|
|
47
47
|
} else if (["linkText", "primaryText", "errorText"].includes(defaultType)) {
|
|
48
48
|
setType = "text";
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
class: ["cancel", "linkText", "primaryText", "errorLine", "errorText"].includes(defaultType) ? `ivu-btn-${defaultType}` : "",
|
|
51
|
+
class: ["cancel", "linkText", "primaryText", "errorLine", "errorText", "primaryLine"].includes(defaultType) ? `ivu-btn-${defaultType}` : "",
|
|
52
52
|
...this.propsObj,
|
|
53
53
|
btnType: setType,
|
|
54
54
|
customIcon: this.propsObj.customIcon ? `bico-font ${this.propsObj.customIcon}` : undefined
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Tooltip
|
|
3
|
-
class="
|
|
3
|
+
class="BriTooltip"
|
|
4
4
|
style="width: 100%;"
|
|
5
5
|
:disabled="disabled"
|
|
6
6
|
:content="content"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<script>
|
|
26
26
|
export default {
|
|
27
|
-
name: "
|
|
27
|
+
name: "BriTooltip",
|
|
28
28
|
props: {
|
|
29
29
|
content: String,
|
|
30
30
|
propsObj: {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
<template v-else>
|
|
80
80
|
<bri-button
|
|
81
|
-
v-for="(operationItem, index) in
|
|
81
|
+
v-for="(operationItem, index) in flatList"
|
|
82
82
|
:key="operationItem.type"
|
|
83
83
|
:style="operationItem.style"
|
|
84
84
|
:class="[
|
|
@@ -97,6 +97,25 @@
|
|
|
97
97
|
{{ operationItem.name }}
|
|
98
98
|
</span>
|
|
99
99
|
</bri-button>
|
|
100
|
+
|
|
101
|
+
<dsh-dropdown
|
|
102
|
+
v-if="moreList.length"
|
|
103
|
+
class="DshButtons-dropdown"
|
|
104
|
+
:list="moreList"
|
|
105
|
+
trigger="hover"
|
|
106
|
+
@click="emit($event)"
|
|
107
|
+
>
|
|
108
|
+
<slot name="more">
|
|
109
|
+
<bri-button
|
|
110
|
+
class="DshButtons-dropdown-more"
|
|
111
|
+
:propsObj="moreBtnOperationObj"
|
|
112
|
+
>
|
|
113
|
+
<span class="DshButtons-dropdown-more-name">
|
|
114
|
+
{{ moreBtnOperationObj.name }}
|
|
115
|
+
</span>
|
|
116
|
+
</bri-button>
|
|
117
|
+
</slot>
|
|
118
|
+
</dsh-dropdown>
|
|
100
119
|
</template>
|
|
101
120
|
</div>
|
|
102
121
|
</template>
|
|
@@ -143,11 +162,18 @@
|
|
|
143
162
|
name: "更多",
|
|
144
163
|
type: "more",
|
|
145
164
|
size: "default",
|
|
146
|
-
customIcon: "bico-
|
|
165
|
+
customIcon: "bico-gengduo",
|
|
166
|
+
btnType: "linkText"
|
|
147
167
|
}
|
|
148
168
|
};
|
|
149
169
|
},
|
|
150
170
|
computed: {
|
|
171
|
+
flatList () {
|
|
172
|
+
return this.list.slice(0, this.maxFlatNum);
|
|
173
|
+
},
|
|
174
|
+
moreList () {
|
|
175
|
+
return this.list.slice(this.maxFlatNum);
|
|
176
|
+
},
|
|
151
177
|
leftFlatList () {
|
|
152
178
|
return this.leftList.slice(0, this.maxFlatNum);
|
|
153
179
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span>
|
|
2
|
+
<span class="DshCrumbItem">
|
|
3
3
|
<a
|
|
4
4
|
v-if="to"
|
|
5
5
|
:href="linkUrl"
|
|
@@ -17,19 +17,21 @@
|
|
|
17
17
|
>
|
|
18
18
|
<slot></slot>
|
|
19
19
|
</span>
|
|
20
|
+
|
|
20
21
|
<span
|
|
22
|
+
v-if="!showSeparator"
|
|
21
23
|
:class="separatorClasses"
|
|
22
24
|
v-html="separator"
|
|
23
|
-
v-if="!showSeparator"
|
|
24
25
|
></span>
|
|
25
26
|
<span
|
|
26
|
-
:class="separatorClasses"
|
|
27
27
|
v-else
|
|
28
|
+
:class="separatorClasses"
|
|
28
29
|
>
|
|
29
30
|
<slot name="separator"></slot>
|
|
30
31
|
</span>
|
|
31
32
|
</span>
|
|
32
33
|
</template>
|
|
34
|
+
|
|
33
35
|
<script>
|
|
34
36
|
const prefixCls = "dsh-crumb-item";
|
|
35
37
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
>
|
|
6
6
|
<Icon
|
|
7
7
|
v-for="(operationItem, index) in list"
|
|
8
|
-
:key="operationItem._key || operationItem._id ||
|
|
8
|
+
:key="operationItem._key || operationItem._id || index"
|
|
9
9
|
:style="operationItem.style"
|
|
10
10
|
:class="[
|
|
11
11
|
'DshIcons-item',
|
|
@@ -47,17 +47,3 @@
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
</script>
|
|
50
|
-
|
|
51
|
-
<style lang="less" scoped>
|
|
52
|
-
.DshIcons {
|
|
53
|
-
display: inline-block;
|
|
54
|
-
&-item {
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
<style lang="less">
|
|
60
|
-
.DshIcons {
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
</style>
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
<Tag
|
|
4
4
|
v-for="(tagItem, tagIndex) in list"
|
|
5
5
|
:key="tagIndex"
|
|
6
|
+
:disabled="propsObj.disabled || tagItem.disabled"
|
|
6
7
|
:name="tagIndex"
|
|
7
8
|
:type="propsObj.type"
|
|
8
|
-
:closable="
|
|
9
|
+
:closable="closable(tagItem)"
|
|
9
10
|
:checkable="propsObj.checkable"
|
|
10
11
|
:checked="propsObj.checked"
|
|
11
12
|
:color="propsObj.color || 'default'"
|
|
@@ -39,7 +40,11 @@
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
data () {
|
|
42
|
-
return {
|
|
43
|
+
return {
|
|
44
|
+
closable (tagItem) {
|
|
45
|
+
return this.propsObj.disabled || tagItem.disabled ? false : (this.propsObj.closable !== false);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
43
48
|
},
|
|
44
49
|
computed: {},
|
|
45
50
|
created () {},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
>
|
|
25
25
|
<!-- 左 -->
|
|
26
26
|
<span class="DshFormItem-label-left">
|
|
27
|
-
<
|
|
27
|
+
<bri-tooltip
|
|
28
28
|
:content="formItem._name"
|
|
29
29
|
transfer
|
|
30
30
|
>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
:render="tipsRender(formItem,formData)"
|
|
50
50
|
></dsh-render>
|
|
51
51
|
</span>
|
|
52
|
-
</
|
|
52
|
+
</bri-tooltip>
|
|
53
53
|
</span>
|
|
54
54
|
|
|
55
55
|
<!-- 右 -->
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
class="DshFormItem-label-right"
|
|
59
59
|
>
|
|
60
60
|
<slot name="extra">
|
|
61
|
-
<
|
|
61
|
+
<bri-tooltip
|
|
62
62
|
:content="formItem._description"
|
|
63
63
|
transfer
|
|
64
64
|
style="height: 14px;"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<span class="DshFormItem-label-description dsh-ellipsis">
|
|
67
67
|
{{ formItem._description && `* ${formItem._description}` }}
|
|
68
68
|
</span>
|
|
69
|
-
</
|
|
69
|
+
</bri-tooltip>
|
|
70
70
|
</slot>
|
|
71
71
|
</span>
|
|
72
72
|
</div>
|
|
@@ -117,10 +117,10 @@
|
|
|
117
117
|
return [];
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
// 实际最精确值是
|
|
120
|
+
// 实际最精确值是68px(label:30px, control:32px, 上下padding各: 3px,因为ivu-form-item-content里line-height: 32px导致有问题,故先70px
|
|
121
121
|
height: {
|
|
122
122
|
type: [String, Number],
|
|
123
|
-
default: "
|
|
123
|
+
default: "70"
|
|
124
124
|
},
|
|
125
125
|
rowStyle: {
|
|
126
126
|
type: Object,
|