bri-components 1.1.6 → 1.2.1
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/8.bri-components.min.js +1 -1
- package/lib/9.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/.DS_Store +0 -0
- package/src/abolish/DshFileShow.less +61 -0
- package/src/{components/small → abolish}/DshFileShow.vue +30 -105
- package/src/abolish/DshFlatTable.vue +1 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/controls/.DS_Store +0 -0
- package/src/components/controls/base/BriUpload/{index.vue → BriUpload.vue} +4 -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 +100 -100
- package/src/components/controls/base/DshCascader/InfoCascader.vue +3 -4
- package/src/components/controls/base/DshCheckbox.vue +11 -11
- 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 +3 -3
- package/src/components/controls/base/DshSwitch.vue +2 -2
- package/src/components/controls/controlMap.js +5 -1
- package/src/components/controls/controlMixin.js +16 -17
- package/src/components/controls/senior/.DS_Store +0 -0
- package/src/components/controls/senior/BriLabels.vue +200 -171
- package/src/components/controls/senior/selectDepartments.vue +380 -0
- package/src/components/controls/senior/selectUsers/DepartmentMenu.vue +191 -0
- package/src/components/controls/senior/selectUsers/selectUsers.vue +482 -0
- package/src/components/controls/special/DshUndeveloped.vue +0 -6
- package/src/components/form/DshForm.vue +4 -17
- package/src/components/list/BriCard.vue +52 -0
- package/src/components/list/BriTable.vue +1 -1
- package/src/components/list/{ZTree.vue → BriTree.vue} +9 -8
- package/src/components/list/BriTreeItem.vue +110 -0
- 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 +8 -3
- package/src/components/unit/DshFormItem.vue +4 -4
- package/src/components/unit/DshUnit.vue +0 -8
- package/src/index.js +99 -106
- package/src/styles/.DS_Store +0 -0
- package/src/styles/common/control.less +76 -68
- package/src/styles/components/.DS_Store +0 -0
- package/src/styles/components/controls/base/BriUpload/BriUpload.less +167 -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 +71 -0
- package/src/styles/components/controls/base/DshCascader/index.less +2 -0
- package/src/styles/components/controls/base/DshCheckbox.less +68 -71
- package/src/styles/components/controls/base/DshDate.less +12 -0
- package/src/styles/components/controls/base/DshEditor.less +27 -48
- package/src/styles/components/controls/base/DshInput.less +6 -2
- package/src/styles/components/controls/base/DshNumber.less +44 -27
- package/src/styles/components/controls/base/DshSelect.less +12 -1
- package/src/styles/components/controls/senior/BriLabels.less +34 -103
- package/src/styles/components/controls/senior/cascaderTable.less +1 -1
- package/src/styles/components/controls/senior/flatTable.less +1 -1
- package/src/styles/components/controls/senior/selectDepartments.less +106 -0
- package/src/styles/components/controls/senior/selectUsers/DepartmentMenu.less +37 -0
- package/src/styles/components/controls/senior/selectUsers/index.less +2 -0
- package/src/styles/components/controls/senior/selectUsers/selectUsers.less +167 -0
- 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 +2 -3
- package/src/styles/components/form/DshForm.less +13 -0
- package/src/styles/components/index.less +47 -36
- package/src/styles/components/list/BriCard.less +50 -0
- 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/BriTreeItem.less +50 -0
- 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 -5
- 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'"
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
@on-change="changeChecked"
|
|
16
17
|
>
|
|
17
18
|
<slot :tagItem="tagItem">
|
|
18
|
-
{{ tagItem }}
|
|
19
|
+
{{ $dataType(tagItem) === "object" ? tagItem.realname || tagItem.full_name || tagItem.name : tagItem }}
|
|
19
20
|
</slot>
|
|
20
21
|
</Tag>
|
|
21
22
|
</div>
|
|
@@ -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
|
@@ -12,19 +12,18 @@ import DshBox from "./components/list/DshBox/DshBox.vue";
|
|
|
12
12
|
import DshTable from "./components/list/DshBox/DshTable.vue";
|
|
13
13
|
import DshList from "./components/list/DshBox/DshList.vue";
|
|
14
14
|
|
|
15
|
-
import BriTable from "./components/list/BriTable.vue";
|
|
16
|
-
import ZTree from "./components/list/ZTree.vue";
|
|
17
15
|
import BriFlatTable from "./components/list/BriFlatTable.vue";
|
|
16
|
+
import BriTable from "./components/list/BriTable.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,86 @@ 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 BriCard from "./components/list/BriCard.vue";
|
|
70
|
+
import BriTree from "./components/list/BriTree.vue";
|
|
71
|
+
import BriTreeItem from "./components/list/BriTreeItem.vue";
|
|
72
|
+
|
|
76
73
|
// controls
|
|
77
74
|
import BriInputs from "./components/controls/base/BriInputs.vue";
|
|
78
75
|
import DshNumberange from "./components/controls/base/DshNumberange.vue";
|
|
79
76
|
import DshDate from "./components/controls/base/DshDate.vue";
|
|
80
77
|
import DshDaterange from "./components/controls/base/DshDaterange.vue";
|
|
81
78
|
import DshSwitch from "./components/controls/base/DshSwitch.vue";
|
|
82
|
-
import BriUpload from "./components/controls/base/BriUpload/
|
|
79
|
+
import BriUpload from "./components/controls/base/BriUpload/BriUpload.vue";
|
|
83
80
|
import BriUploadImage from "./components/controls/base/BriUpload/BriUploadImage.vue";
|
|
84
81
|
import DshCoordinates from "./components/controls/base/DshCoordinates.vue";
|
|
85
82
|
import DshEditor from "./components/controls/base/DshEditor.vue";
|
|
86
83
|
import DshDivider from "./components/controls/base/DshDivider.vue";
|
|
87
|
-
|
|
88
|
-
/* 不挂载全局 */
|
|
89
84
|
import DshPackage from "./components/controls/senior/DshPackage.vue";
|
|
90
85
|
import DshBack from "./components/controls/special/DshBack.vue";
|
|
91
86
|
import DshUndeveloped from "./components/controls/special/DshUndeveloped.vue";
|
|
87
|
+
|
|
92
88
|
// other
|
|
93
|
-
import
|
|
94
|
-
import
|
|
89
|
+
import BriCollapseTree from "./components/other/BriCollapseTree.vue";
|
|
90
|
+
import BriGantt from "./components/other/BriGantt.vue";
|
|
91
|
+
import BriIframe from "./components/other/BriIframe.vue";
|
|
95
92
|
|
|
96
93
|
// !!!!!!挂载全局的组件,不是别写在这
|
|
97
94
|
const map = {
|
|
98
95
|
DshDraggable,
|
|
99
96
|
DshCropper,
|
|
100
97
|
|
|
98
|
+
// list
|
|
101
99
|
DshBox,
|
|
102
100
|
DshTable,
|
|
103
101
|
DshList,
|
|
102
|
+
|
|
103
|
+
BriFlatTable, // 可取消全局
|
|
104
104
|
BriTable,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
DshCascaderTable,
|
|
105
|
+
DshCascaderTable, // 可取消全局
|
|
106
|
+
DshPage,
|
|
108
107
|
|
|
108
|
+
// form
|
|
109
109
|
DshForm,
|
|
110
110
|
DshAdvSearchForm,
|
|
111
111
|
DshDefaultSearch,
|
|
112
|
-
|
|
113
|
-
DshUnit,
|
|
112
|
+
// unit
|
|
114
113
|
DshFormItem,
|
|
114
|
+
DshUnit,
|
|
115
115
|
|
|
116
|
+
// controls
|
|
116
117
|
DshInput,
|
|
117
118
|
DshNumber,
|
|
118
119
|
DshSelect,
|
|
119
120
|
DshCheckbox,
|
|
120
121
|
DshCascader,
|
|
121
122
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
DshMenuNav,
|
|
125
|
-
DshBtnModal,
|
|
123
|
+
// other
|
|
124
|
+
BriLoading,
|
|
126
125
|
DshAvatar,
|
|
126
|
+
DshBtnModal,
|
|
127
127
|
DshEditPanel,
|
|
128
128
|
DshColorPanel,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
ZCollapseTree,
|
|
132
|
-
ZLoading,
|
|
133
|
-
BriTransfer,
|
|
129
|
+
DshMenu,
|
|
130
|
+
DshMenuNav,
|
|
134
131
|
|
|
135
|
-
|
|
132
|
+
// small
|
|
133
|
+
BriButton,
|
|
136
134
|
BriDrawer,
|
|
137
|
-
|
|
138
|
-
DshRender,
|
|
139
|
-
DshTdRender,
|
|
140
|
-
DshTitle,
|
|
135
|
+
BriTooltip,
|
|
141
136
|
DshButtons,
|
|
142
|
-
DshIcons,
|
|
143
|
-
DshTags,
|
|
144
137
|
DshCrumbs,
|
|
145
138
|
DshCrumbsItem,
|
|
146
|
-
|
|
139
|
+
DshDropdown,
|
|
140
|
+
DshIcons,
|
|
141
|
+
DshModal,
|
|
147
142
|
DshSteps,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
BriSvg
|
|
143
|
+
DshTabs,
|
|
144
|
+
DshTags,
|
|
145
|
+
DshTitle,
|
|
146
|
+
DshRender,
|
|
147
|
+
DshTdRender
|
|
155
148
|
};
|
|
156
149
|
const install = function (Vue, opts = {}) {
|
|
157
150
|
ViewUI.LoadingBar.config({
|
|
@@ -187,64 +180,37 @@ export {
|
|
|
187
180
|
DshDraggable,
|
|
188
181
|
DshCropper,
|
|
189
182
|
|
|
183
|
+
Error500,
|
|
184
|
+
Error403,
|
|
185
|
+
Error404,
|
|
186
|
+
|
|
190
187
|
DshBox,
|
|
191
188
|
DshTable,
|
|
192
189
|
DshList,
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
|
|
191
|
+
BriCard,
|
|
195
192
|
BriFlatTable,
|
|
193
|
+
BriTable,
|
|
194
|
+
BriTree,
|
|
195
|
+
BriTreeItem,
|
|
196
196
|
DshCascaderTable,
|
|
197
|
+
DshPage,
|
|
197
198
|
|
|
199
|
+
// form
|
|
198
200
|
DshForm,
|
|
199
201
|
DshAdvSearchForm,
|
|
200
202
|
DshDefaultSearch,
|
|
201
|
-
|
|
202
|
-
DshUnit,
|
|
203
|
+
// unit
|
|
203
204
|
DshFormItem,
|
|
205
|
+
DshUnit,
|
|
204
206
|
|
|
207
|
+
// controls
|
|
205
208
|
DshInput,
|
|
206
209
|
DshNumber,
|
|
207
210
|
DshSelect,
|
|
208
211
|
DshCheckbox,
|
|
209
212
|
DshCascader,
|
|
210
213
|
|
|
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
214
|
BriInputs,
|
|
249
215
|
DshNumberange,
|
|
250
216
|
DshDate,
|
|
@@ -255,11 +221,38 @@ export {
|
|
|
255
221
|
DshCoordinates,
|
|
256
222
|
DshEditor,
|
|
257
223
|
DshDivider,
|
|
258
|
-
|
|
259
224
|
DshPackage,
|
|
260
225
|
DshBack,
|
|
261
226
|
DshUndeveloped,
|
|
262
227
|
|
|
263
|
-
|
|
264
|
-
|
|
228
|
+
// other
|
|
229
|
+
BriCode,
|
|
230
|
+
BriLoading,
|
|
231
|
+
DshAvatar,
|
|
232
|
+
DshBtnModal,
|
|
233
|
+
DshColorPanel,
|
|
234
|
+
DshEditPanel,
|
|
235
|
+
DshMenu,
|
|
236
|
+
DshMenuNav,
|
|
237
|
+
|
|
238
|
+
BriCollapseTree,
|
|
239
|
+
BriGantt,
|
|
240
|
+
BriIframe,
|
|
241
|
+
|
|
242
|
+
// small
|
|
243
|
+
BriButton,
|
|
244
|
+
BriDrawer,
|
|
245
|
+
DshButtons,
|
|
246
|
+
BriTooltip,
|
|
247
|
+
DshCrumbs,
|
|
248
|
+
DshCrumbsItem,
|
|
249
|
+
DshDropdown,
|
|
250
|
+
DshIcons,
|
|
251
|
+
DshModal,
|
|
252
|
+
DshSteps,
|
|
253
|
+
DshTabs,
|
|
254
|
+
DshTags,
|
|
255
|
+
DshTitle,
|
|
256
|
+
DshRender,
|
|
257
|
+
DshTdRender
|
|
265
258
|
};
|
|
Binary file
|