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
|
@@ -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>
|
|
@@ -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: {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
v-if="moreList.length"
|
|
103
103
|
class="DshButtons-dropdown"
|
|
104
104
|
:list="moreList"
|
|
105
|
-
|
|
105
|
+
trigger="hover"
|
|
106
106
|
@click="emit($event)"
|
|
107
107
|
>
|
|
108
108
|
<slot name="more">
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
type: "more",
|
|
164
164
|
size: "default",
|
|
165
165
|
customIcon: "bico-gengduo",
|
|
166
|
-
btnType: "
|
|
166
|
+
btnType: "linkText"
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
},
|
|
@@ -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
|
|
|
@@ -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>
|
package/src/index.js
CHANGED
|
@@ -13,18 +13,17 @@ import DshTable from "./components/list/DshBox/DshTable.vue";
|
|
|
13
13
|
import DshList from "./components/list/DshBox/DshList.vue";
|
|
14
14
|
|
|
15
15
|
import BriTable from "./components/list/BriTable.vue";
|
|
16
|
-
import ZTree from "./components/list/ZTree.vue";
|
|
17
16
|
import BriFlatTable from "./components/list/BriFlatTable.vue";
|
|
18
17
|
import DshCascaderTable from "./components/list/DshCascaderTable.vue";
|
|
18
|
+
import DshPage from "./components/list/DshPage.vue";
|
|
19
19
|
|
|
20
20
|
// form
|
|
21
21
|
import DshForm from "./components/form/DshForm.vue";
|
|
22
22
|
import DshAdvSearchForm from "./components/form/DshAdvSearchForm.vue";
|
|
23
23
|
import DshDefaultSearch from "./components/form/DshDefaultSearch.vue";
|
|
24
|
-
|
|
25
24
|
// unit
|
|
26
|
-
import DshUnit from "./components/unit/DshUnit.vue";
|
|
27
25
|
import DshFormItem from "./components/unit/DshFormItem.vue";
|
|
26
|
+
import DshUnit from "./components/unit/DshUnit.vue";
|
|
28
27
|
|
|
29
28
|
// controls
|
|
30
29
|
import DshInput from "./components/controls/base/DshInput.vue";
|
|
@@ -33,39 +32,32 @@ import DshSelect from "./components/controls/base/DshSelect.vue";
|
|
|
33
32
|
import DshCheckbox from "./components/controls/base/DshCheckbox.vue";
|
|
34
33
|
import DshCascader from "./components/controls/base/DshCascader/DshCascader.vue";
|
|
35
34
|
|
|
36
|
-
//
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import DshMenuNav from "./components/other/menu/DshMenuNav.vue";
|
|
40
|
-
import DshBtnModal from "./components/other/DshBtnModal.vue";
|
|
35
|
+
// other
|
|
36
|
+
import BriCode from "./components/other/BriCode.vue";
|
|
37
|
+
import BriLoading from "./components/other/BriLoading.vue";
|
|
41
38
|
import DshAvatar from "./components/other/DshAvatar.vue";
|
|
42
|
-
import
|
|
39
|
+
import DshBtnModal from "./components/other/DshBtnModal.vue";
|
|
43
40
|
import DshColorPanel from "./components/other/DshColorPanel.vue";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import ZLoading from "./components/other/ZLoading.vue";
|
|
48
|
-
import BriTransfer from "./components/other/BriTransfer.vue";
|
|
41
|
+
import DshEditPanel from "./components/other/DshEditPanel.vue";
|
|
42
|
+
import DshMenu from "./components/other/DshMenu.vue";
|
|
43
|
+
import DshMenuNav from "./components/other/DshMenuNav.vue";
|
|
49
44
|
|
|
50
45
|
// small
|
|
51
|
-
import
|
|
46
|
+
import BriButton from "./components/small/BriButton.vue";
|
|
52
47
|
import BriDrawer from "./components/small/BriDrawer.vue";
|
|
53
|
-
import
|
|
54
|
-
import DshRender from "./components/small/render.js";
|
|
55
|
-
import DshTdRender from "./components/small/DshTdRender.js";
|
|
56
|
-
import DshTitle from "./components/small/DshTitle.vue";
|
|
48
|
+
import BriTooltip from "./components/small/BriTooltip.vue";
|
|
57
49
|
import DshButtons from "./components/small/DshButtons.vue";
|
|
58
|
-
import DshIcons from "./components/small/DshIcons.vue";
|
|
59
|
-
import DshTags from "./components/small/DshTags.vue";
|
|
60
50
|
import DshCrumbs from "./components/small/DshCrumbs.vue";
|
|
61
51
|
import DshCrumbsItem from "./components/small/DshCrumbsItem.vue";
|
|
62
|
-
import
|
|
52
|
+
import DshDropdown from "./components/small/DshDropdown.vue";
|
|
53
|
+
import DshIcons from "./components/small/DshIcons.vue";
|
|
54
|
+
import DshModal from "./components/small/DshModal.vue";
|
|
63
55
|
import DshSteps from "./components/small/DshSteps.vue";
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
56
|
+
import DshTabs from "./components/small/DshTabs.vue";
|
|
57
|
+
import DshTags from "./components/small/DshTags.vue";
|
|
58
|
+
import DshTitle from "./components/small/DshTitle.vue";
|
|
59
|
+
import DshRender from "./components/small/render.js";
|
|
60
|
+
import DshTdRender from "./components/small/DshTdRender.js";
|
|
69
61
|
|
|
70
62
|
/* -------------------- 局部组件 ----------------------- */
|
|
71
63
|
// error
|
|
@@ -73,85 +65,84 @@ import Error500 from "./components/Error/Error500.vue";
|
|
|
73
65
|
import Error403 from "./components/Error/Error403.vue";
|
|
74
66
|
import Error404 from "./components/Error/Error404.vue";
|
|
75
67
|
|
|
68
|
+
// list
|
|
69
|
+
import BriTree from "./components/list/BriTree.vue";
|
|
70
|
+
|
|
76
71
|
// controls
|
|
77
72
|
import BriInputs from "./components/controls/base/BriInputs.vue";
|
|
78
73
|
import DshNumberange from "./components/controls/base/DshNumberange.vue";
|
|
79
74
|
import DshDate from "./components/controls/base/DshDate.vue";
|
|
80
75
|
import DshDaterange from "./components/controls/base/DshDaterange.vue";
|
|
81
76
|
import DshSwitch from "./components/controls/base/DshSwitch.vue";
|
|
82
|
-
import BriUpload from "./components/controls/base/BriUpload/
|
|
77
|
+
import BriUpload from "./components/controls/base/BriUpload/BriUpload.vue";
|
|
83
78
|
import BriUploadImage from "./components/controls/base/BriUpload/BriUploadImage.vue";
|
|
84
79
|
import DshCoordinates from "./components/controls/base/DshCoordinates.vue";
|
|
85
80
|
import DshEditor from "./components/controls/base/DshEditor.vue";
|
|
86
81
|
import DshDivider from "./components/controls/base/DshDivider.vue";
|
|
87
|
-
|
|
88
|
-
/* 不挂载全局 */
|
|
89
82
|
import DshPackage from "./components/controls/senior/DshPackage.vue";
|
|
90
83
|
import DshBack from "./components/controls/special/DshBack.vue";
|
|
91
84
|
import DshUndeveloped from "./components/controls/special/DshUndeveloped.vue";
|
|
85
|
+
|
|
92
86
|
// other
|
|
93
|
-
import
|
|
94
|
-
import
|
|
87
|
+
import BriCollapseTree from "./components/other/BriCollapseTree.vue";
|
|
88
|
+
import BriGantt from "./components/other/BriGantt.vue";
|
|
89
|
+
import BriIframe from "./components/other/BriIframe.vue";
|
|
95
90
|
|
|
96
91
|
// !!!!!!挂载全局的组件,不是别写在这
|
|
97
92
|
const map = {
|
|
98
93
|
DshDraggable,
|
|
99
94
|
DshCropper,
|
|
100
95
|
|
|
96
|
+
// list
|
|
101
97
|
DshBox,
|
|
102
98
|
DshTable,
|
|
103
99
|
DshList,
|
|
100
|
+
|
|
104
101
|
BriTable,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
BriFlatTable, // 可取消全局
|
|
103
|
+
DshCascaderTable, // 可取消全局
|
|
104
|
+
DshPage,
|
|
108
105
|
|
|
106
|
+
// form
|
|
109
107
|
DshForm,
|
|
110
108
|
DshAdvSearchForm,
|
|
111
109
|
DshDefaultSearch,
|
|
112
|
-
|
|
113
|
-
DshUnit,
|
|
110
|
+
// unit
|
|
114
111
|
DshFormItem,
|
|
112
|
+
DshUnit,
|
|
115
113
|
|
|
114
|
+
// controls
|
|
116
115
|
DshInput,
|
|
117
116
|
DshNumber,
|
|
118
117
|
DshSelect,
|
|
119
118
|
DshCheckbox,
|
|
120
119
|
DshCascader,
|
|
121
120
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
DshMenuNav,
|
|
125
|
-
DshBtnModal,
|
|
121
|
+
// other
|
|
122
|
+
BriLoading,
|
|
126
123
|
DshAvatar,
|
|
124
|
+
DshBtnModal,
|
|
127
125
|
DshEditPanel,
|
|
128
126
|
DshColorPanel,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
ZCollapseTree,
|
|
132
|
-
ZLoading,
|
|
133
|
-
BriTransfer,
|
|
127
|
+
DshMenu,
|
|
128
|
+
DshMenuNav,
|
|
134
129
|
|
|
135
|
-
|
|
130
|
+
// small
|
|
131
|
+
BriButton,
|
|
136
132
|
BriDrawer,
|
|
137
|
-
|
|
138
|
-
DshRender,
|
|
139
|
-
DshTdRender,
|
|
140
|
-
DshTitle,
|
|
133
|
+
BriTooltip,
|
|
141
134
|
DshButtons,
|
|
142
|
-
DshIcons,
|
|
143
|
-
DshTags,
|
|
144
135
|
DshCrumbs,
|
|
145
136
|
DshCrumbsItem,
|
|
146
|
-
|
|
137
|
+
DshDropdown,
|
|
138
|
+
DshIcons,
|
|
139
|
+
DshModal,
|
|
147
140
|
DshSteps,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
BriSvg
|
|
141
|
+
DshTabs,
|
|
142
|
+
DshTags,
|
|
143
|
+
DshTitle,
|
|
144
|
+
DshRender,
|
|
145
|
+
DshTdRender
|
|
155
146
|
};
|
|
156
147
|
const install = function (Vue, opts = {}) {
|
|
157
148
|
ViewUI.LoadingBar.config({
|
|
@@ -187,64 +178,35 @@ export {
|
|
|
187
178
|
DshDraggable,
|
|
188
179
|
DshCropper,
|
|
189
180
|
|
|
181
|
+
Error500,
|
|
182
|
+
Error403,
|
|
183
|
+
Error404,
|
|
184
|
+
|
|
190
185
|
DshBox,
|
|
191
186
|
DshTable,
|
|
192
187
|
DshList,
|
|
188
|
+
|
|
193
189
|
BriTable,
|
|
194
|
-
|
|
190
|
+
BriTree,
|
|
195
191
|
BriFlatTable,
|
|
196
192
|
DshCascaderTable,
|
|
193
|
+
DshPage,
|
|
197
194
|
|
|
195
|
+
// form
|
|
198
196
|
DshForm,
|
|
199
197
|
DshAdvSearchForm,
|
|
200
198
|
DshDefaultSearch,
|
|
201
|
-
|
|
202
|
-
DshUnit,
|
|
199
|
+
// unit
|
|
203
200
|
DshFormItem,
|
|
201
|
+
DshUnit,
|
|
204
202
|
|
|
203
|
+
// controls
|
|
205
204
|
DshInput,
|
|
206
205
|
DshNumber,
|
|
207
206
|
DshSelect,
|
|
208
207
|
DshCheckbox,
|
|
209
208
|
DshCascader,
|
|
210
209
|
|
|
211
|
-
ZCode,
|
|
212
|
-
DshMenu,
|
|
213
|
-
DshMenuNav,
|
|
214
|
-
DshBtnModal,
|
|
215
|
-
DshAvatar,
|
|
216
|
-
DshEditPanel,
|
|
217
|
-
DshColorPanel,
|
|
218
|
-
YNoPermission,
|
|
219
|
-
ZGantt,
|
|
220
|
-
ZCollapseTree,
|
|
221
|
-
ZLoading,
|
|
222
|
-
BriTransfer,
|
|
223
|
-
|
|
224
|
-
DshModal,
|
|
225
|
-
BriDrawer,
|
|
226
|
-
DshDropdown,
|
|
227
|
-
DshRender,
|
|
228
|
-
DshTdRender,
|
|
229
|
-
DshTitle,
|
|
230
|
-
DshButtons,
|
|
231
|
-
DshIcons,
|
|
232
|
-
DshTags,
|
|
233
|
-
DshCrumbs,
|
|
234
|
-
DshCrumbsItem,
|
|
235
|
-
DshTabs,
|
|
236
|
-
DshSteps,
|
|
237
|
-
Ctooltip,
|
|
238
|
-
DshPage,
|
|
239
|
-
DshFileShow,
|
|
240
|
-
BriButton,
|
|
241
|
-
BriTree,
|
|
242
|
-
|
|
243
|
-
/* 局部 */
|
|
244
|
-
Error500,
|
|
245
|
-
Error403,
|
|
246
|
-
Error404,
|
|
247
|
-
|
|
248
210
|
BriInputs,
|
|
249
211
|
DshNumberange,
|
|
250
212
|
DshDate,
|
|
@@ -255,11 +217,38 @@ export {
|
|
|
255
217
|
DshCoordinates,
|
|
256
218
|
DshEditor,
|
|
257
219
|
DshDivider,
|
|
258
|
-
|
|
259
220
|
DshPackage,
|
|
260
221
|
DshBack,
|
|
261
222
|
DshUndeveloped,
|
|
262
223
|
|
|
263
|
-
|
|
264
|
-
|
|
224
|
+
// other
|
|
225
|
+
BriCode,
|
|
226
|
+
BriLoading,
|
|
227
|
+
DshAvatar,
|
|
228
|
+
DshBtnModal,
|
|
229
|
+
DshColorPanel,
|
|
230
|
+
DshEditPanel,
|
|
231
|
+
DshMenu,
|
|
232
|
+
DshMenuNav,
|
|
233
|
+
|
|
234
|
+
BriCollapseTree,
|
|
235
|
+
BriGantt,
|
|
236
|
+
BriIframe,
|
|
237
|
+
|
|
238
|
+
// small
|
|
239
|
+
BriButton,
|
|
240
|
+
BriDrawer,
|
|
241
|
+
DshButtons,
|
|
242
|
+
BriTooltip,
|
|
243
|
+
DshCrumbs,
|
|
244
|
+
DshCrumbsItem,
|
|
245
|
+
DshDropdown,
|
|
246
|
+
DshIcons,
|
|
247
|
+
DshModal,
|
|
248
|
+
DshSteps,
|
|
249
|
+
DshTabs,
|
|
250
|
+
DshTags,
|
|
251
|
+
DshTitle,
|
|
252
|
+
DshRender,
|
|
253
|
+
DshTdRender
|
|
265
254
|
};
|