bri-components 1.2.27 → 1.2.29
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 +7 -7
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/components/form/{DshAdvSearchForm.vue → DshAdvSearch.vue} +22 -22
- package/src/components/other/{DshAvatar.vue → BriAvatar.vue} +6 -6
- package/src/components/unit/DshFormUnit.vue +1 -2
- package/src/index.js +57 -54
- package/src/styles/components/form/DshAdvSearchForm.less +2 -2
- package/src/styles/components/index.less +4 -5
- package/src/styles/components/list/BriCard.less +0 -10
- package/src/styles/components/other/DshAvatar.less +1 -1
- package/src/styles/components/unit/DshFormUnit.less +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="BriAvatar">
|
|
3
3
|
<!-- 无显示 -->
|
|
4
4
|
<template v-if="users.length == 0">
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<span
|
|
14
14
|
v-for="(user, index) in userList"
|
|
15
15
|
:key="index"
|
|
16
|
-
class="
|
|
16
|
+
class="BriAvatar-img"
|
|
17
17
|
>
|
|
18
18
|
<img :src="user && user.avatarurl || avatarSrc">
|
|
19
19
|
</span>
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
<div
|
|
28
28
|
v-for="(user, index) in users"
|
|
29
29
|
:key="index"
|
|
30
|
-
class="
|
|
30
|
+
class="BriAvatar-round"
|
|
31
31
|
:style="{ ...roundStyle }"
|
|
32
32
|
>
|
|
33
|
-
<div class="
|
|
34
|
-
<div class="
|
|
33
|
+
<div class="BriAvatar-box">
|
|
34
|
+
<div class="BriAvatar-img">
|
|
35
35
|
<img :src="user && user.avatarurl || avatarSrc">
|
|
36
36
|
</div>
|
|
37
37
|
<span>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
47
|
export default {
|
|
48
|
-
name: "
|
|
48
|
+
name: "BriAvatar",
|
|
49
49
|
props: {
|
|
50
50
|
rowData: {
|
|
51
51
|
type: Object
|
package/src/index.js
CHANGED
|
@@ -8,21 +8,21 @@ import { VeTable, VeLocale } from "vue-easytable";
|
|
|
8
8
|
import CN from "vue-easytable/libs/locale/lang/zh-CN.js";
|
|
9
9
|
|
|
10
10
|
// list
|
|
11
|
+
import BriTable from "./components/list/BriTable.vue";
|
|
12
|
+
import BriFlatTable from "./components/list/BriFlatTable.vue";
|
|
11
13
|
import DshBox from "./components/list/DshBox/DshBox.vue";
|
|
12
|
-
import DshTable from "./components/list/DshBox/DshTable.vue";
|
|
13
14
|
import DshList from "./components/list/DshBox/DshList.vue";
|
|
14
|
-
import
|
|
15
|
+
import DshTable from "./components/list/DshBox/DshTable.vue";
|
|
15
16
|
import DshPage from "./components/list/DshPage.vue";
|
|
16
|
-
import BriFlatTable from "./components/list/BriFlatTable.vue";
|
|
17
17
|
// import DshCascaderTable from "./components/list/DshCascaderTable.vue";
|
|
18
18
|
|
|
19
19
|
// form
|
|
20
20
|
import DshForm from "./components/form/DshForm.vue";
|
|
21
|
-
import
|
|
21
|
+
import DshAdvSearch from "./components/form/DshAdvSearch.vue";
|
|
22
22
|
import DshDefaultSearch from "./components/form/DshDefaultSearch.vue";
|
|
23
23
|
// unit
|
|
24
|
+
import DshFormUnit from "./components/unit/DshFormUnit.vue";
|
|
24
25
|
import DshListUnit from "./components/unit/DshListUnit.vue";
|
|
25
|
-
|
|
26
26
|
// controls
|
|
27
27
|
import BriControlInput from "./components/controls/BriControlInput.vue";
|
|
28
28
|
import DshInput from "./components/controls/base/DshInput.vue";
|
|
@@ -32,9 +32,10 @@ import DshCheckbox from "./components/controls/base/DshCheckbox.vue";
|
|
|
32
32
|
import DshCascader from "./components/controls/base/DshCascader/DshCascader.vue";
|
|
33
33
|
|
|
34
34
|
// other
|
|
35
|
+
import BriAvatar from "./components/other/BriAvatar.vue";
|
|
35
36
|
import BriLoading from "./components/other/BriLoading.vue";
|
|
37
|
+
import BriIframe from "./components/other/BriIframe.vue";
|
|
36
38
|
import BriSvg from "./components/other/BriSvg.vue";
|
|
37
|
-
import DshAvatar from "./components/other/DshAvatar.vue";
|
|
38
39
|
|
|
39
40
|
// small
|
|
40
41
|
import BriButton from "./components/small/BriButton.vue";
|
|
@@ -52,7 +53,7 @@ import DshRender from "./components/small/render.js";
|
|
|
52
53
|
import DshListRender from "./components/small/DshListRender.js";
|
|
53
54
|
|
|
54
55
|
/* -------------------- 局部组件 ----------------------- */
|
|
55
|
-
//
|
|
56
|
+
// Error
|
|
56
57
|
import Error500 from "./components/Error/Error500.vue";
|
|
57
58
|
import Error403 from "./components/Error/Error403.vue";
|
|
58
59
|
import Error404 from "./components/Error/Error404.vue";
|
|
@@ -62,9 +63,6 @@ import BriCard from "./components/list/BriCard.vue";
|
|
|
62
63
|
import BriTree from "./components/list/BriTree.vue";
|
|
63
64
|
import BriTreeItem from "./components/list/BriTreeItem.vue";
|
|
64
65
|
|
|
65
|
-
// unit
|
|
66
|
-
import DshFormUnit from "./components/unit/DshFormUnit.vue";
|
|
67
|
-
|
|
68
66
|
// controls
|
|
69
67
|
import BriInputs from "./components/controls/base/BriInputs.vue";
|
|
70
68
|
import DshNumberange from "./components/controls/base/DshNumberange.vue";
|
|
@@ -89,7 +87,6 @@ import DshMenuNav from "./components/other/DshMenuNav.vue";
|
|
|
89
87
|
import BriCode from "./components/other/BriCode.vue";
|
|
90
88
|
import BriCollapseTree from "./components/other/BriCollapseTree.vue";
|
|
91
89
|
import BriGantt from "./components/other/BriGantt.vue";
|
|
92
|
-
import BriIframe from "./components/other/BriIframe.vue";
|
|
93
90
|
import DshColorPanel from "./components/other/DshColorPanel.vue";
|
|
94
91
|
|
|
95
92
|
// small
|
|
@@ -101,19 +98,19 @@ const map = {
|
|
|
101
98
|
DshCropper,
|
|
102
99
|
|
|
103
100
|
// list
|
|
101
|
+
BriTable,
|
|
104
102
|
DshBox,
|
|
105
|
-
DshTable,
|
|
106
103
|
DshList,
|
|
107
|
-
|
|
104
|
+
DshTable,
|
|
108
105
|
DshPage,
|
|
109
106
|
|
|
110
107
|
// form
|
|
111
108
|
DshForm,
|
|
112
|
-
|
|
109
|
+
DshAdvSearch,
|
|
113
110
|
DshDefaultSearch,
|
|
114
111
|
// unit
|
|
112
|
+
DshFormUnit,
|
|
115
113
|
DshListUnit,
|
|
116
|
-
|
|
117
114
|
// controls
|
|
118
115
|
BriControlInput,
|
|
119
116
|
DshInput,
|
|
@@ -123,8 +120,10 @@ const map = {
|
|
|
123
120
|
DshCascader,
|
|
124
121
|
|
|
125
122
|
// other
|
|
123
|
+
BriAvatar,
|
|
126
124
|
BriLoading,
|
|
127
|
-
|
|
125
|
+
BriIframe,
|
|
126
|
+
BriSvg,
|
|
128
127
|
|
|
129
128
|
// small
|
|
130
129
|
BriButton,
|
|
@@ -142,6 +141,8 @@ const map = {
|
|
|
142
141
|
DshListRender
|
|
143
142
|
};
|
|
144
143
|
const install = function (Vue, opts = {}) {
|
|
144
|
+
const { globalMap = {} } = opts;
|
|
145
|
+
|
|
145
146
|
ViewUI.LoadingBar.config({
|
|
146
147
|
color: "#2d8cf0",
|
|
147
148
|
failedColor: "red",
|
|
@@ -157,10 +158,9 @@ const install = function (Vue, opts = {}) {
|
|
|
157
158
|
});
|
|
158
159
|
|
|
159
160
|
// 挂载组件
|
|
160
|
-
const { globalMap } = opts;
|
|
161
161
|
const componentMap = {
|
|
162
162
|
...map,
|
|
163
|
-
...
|
|
163
|
+
...globalMap
|
|
164
164
|
};
|
|
165
165
|
Object.keys(componentMap).forEach(key => {
|
|
166
166
|
Vue.component(key, componentMap[key]);
|
|
@@ -175,38 +175,61 @@ export {
|
|
|
175
175
|
DshDraggable,
|
|
176
176
|
DshCropper,
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
Error404,
|
|
181
|
-
|
|
178
|
+
// list
|
|
179
|
+
BriTable,
|
|
182
180
|
DshBox,
|
|
183
|
-
DshTable,
|
|
184
181
|
DshList,
|
|
185
|
-
|
|
182
|
+
DshTable,
|
|
186
183
|
DshPage,
|
|
187
|
-
BriFlatTable,
|
|
188
|
-
// DshCascaderTable,
|
|
189
|
-
|
|
190
|
-
BriCard,
|
|
191
|
-
BriTree,
|
|
192
|
-
BriTreeItem,
|
|
193
184
|
|
|
194
185
|
// form
|
|
195
186
|
DshForm,
|
|
196
|
-
|
|
187
|
+
DshAdvSearch,
|
|
197
188
|
DshDefaultSearch,
|
|
198
189
|
// unit
|
|
199
|
-
DshListUnit,
|
|
200
|
-
|
|
201
190
|
DshFormUnit,
|
|
202
|
-
|
|
191
|
+
DshListUnit,
|
|
203
192
|
// controls
|
|
193
|
+
BriControlInput,
|
|
204
194
|
DshInput,
|
|
205
195
|
DshNumber,
|
|
206
196
|
DshSelect,
|
|
207
197
|
DshCheckbox,
|
|
208
198
|
DshCascader,
|
|
209
199
|
|
|
200
|
+
// other
|
|
201
|
+
BriAvatar,
|
|
202
|
+
BriLoading,
|
|
203
|
+
BriIframe,
|
|
204
|
+
BriSvg,
|
|
205
|
+
|
|
206
|
+
// small
|
|
207
|
+
BriButton,
|
|
208
|
+
BriDrawer,
|
|
209
|
+
BriTooltip,
|
|
210
|
+
DshButtons,
|
|
211
|
+
DshDropdown,
|
|
212
|
+
DshIcons,
|
|
213
|
+
DshModal,
|
|
214
|
+
DshSteps,
|
|
215
|
+
DshTabs,
|
|
216
|
+
DshTags,
|
|
217
|
+
DshTitle,
|
|
218
|
+
DshRender,
|
|
219
|
+
DshListRender,
|
|
220
|
+
|
|
221
|
+
/* 只局部导出的 */
|
|
222
|
+
Error500,
|
|
223
|
+
Error403,
|
|
224
|
+
Error404,
|
|
225
|
+
|
|
226
|
+
BriFlatTable,
|
|
227
|
+
// DshCascaderTable,
|
|
228
|
+
|
|
229
|
+
BriCard,
|
|
230
|
+
BriTree,
|
|
231
|
+
BriTreeItem,
|
|
232
|
+
|
|
210
233
|
BriInputs,
|
|
211
234
|
DshNumberange,
|
|
212
235
|
DshDate,
|
|
@@ -223,32 +246,12 @@ export {
|
|
|
223
246
|
selectUsers,
|
|
224
247
|
selectDepartments,
|
|
225
248
|
|
|
226
|
-
// other
|
|
227
|
-
BriLoading,
|
|
228
|
-
BriSvg,
|
|
229
|
-
DshAvatar,
|
|
230
|
-
|
|
231
249
|
DshMenuNav,
|
|
232
250
|
BriCode,
|
|
233
251
|
BriCollapseTree,
|
|
234
252
|
BriGantt,
|
|
235
|
-
BriIframe,
|
|
236
253
|
DshColorPanel,
|
|
237
254
|
|
|
238
255
|
// small
|
|
239
|
-
BriButton,
|
|
240
|
-
BriDrawer,
|
|
241
|
-
DshButtons,
|
|
242
|
-
BriTooltip,
|
|
243
|
-
DshDropdown,
|
|
244
|
-
DshIcons,
|
|
245
|
-
DshModal,
|
|
246
|
-
DshSteps,
|
|
247
|
-
DshTabs,
|
|
248
|
-
DshTags,
|
|
249
|
-
DshTitle,
|
|
250
|
-
DshRender,
|
|
251
|
-
DshListRender,
|
|
252
|
-
|
|
253
256
|
DshBtnModal
|
|
254
257
|
};
|
|
@@ -17,12 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
// form
|
|
19
19
|
@import "./form/DshForm.less";
|
|
20
|
-
@import "./form/
|
|
20
|
+
@import "./form/DshAdvSearch.less";
|
|
21
21
|
@import "./form/DshDefaultSearch.less";
|
|
22
22
|
// unit
|
|
23
23
|
@import "./unit/DshFormUnit.less";
|
|
24
24
|
@import "./unit/DshListUnit.less";
|
|
25
|
-
|
|
26
25
|
// controls
|
|
27
26
|
@import "./controls/BriControlInput.less";
|
|
28
27
|
|
|
@@ -52,15 +51,15 @@
|
|
|
52
51
|
@import "./controls/special/DshUndeveloped.less";
|
|
53
52
|
|
|
54
53
|
// other
|
|
54
|
+
@import "./other/BriAvatar.less";
|
|
55
|
+
@import "./other/BriIframe.less";
|
|
55
56
|
@import "./other/BriLoading.less";
|
|
56
|
-
@import "./other/DshAvatar.less";
|
|
57
|
-
@import "./other/DshColorPanel.less";
|
|
58
57
|
|
|
58
|
+
@import "./other/DshColorPanel.less";
|
|
59
59
|
@import "./other/DshMenuNav.less";
|
|
60
60
|
@import "./other/BriCode.less";
|
|
61
61
|
@import "./other/BriCollapseTree.less";
|
|
62
62
|
@import "./other/BriGantt.less";
|
|
63
|
-
@import "./other/BriIframe.less";
|
|
64
63
|
|
|
65
64
|
// small
|
|
66
65
|
@import "./small/BriButton.less";
|