bri-components 1.2.28 → 1.2.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="DshAvatar">
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="DshAvatar-img"
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="DshAvatar-round"
30
+ class="BriAvatar-round"
31
31
  :style="{ ...roundStyle }"
32
32
  >
33
- <div class="DshAvatar-box">
34
- <div class="DshAvatar-img">
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: "DshAvatar",
48
+ name: "BriAvatar",
49
49
  props: {
50
50
  rowData: {
51
51
  type: Object
package/src/index.js CHANGED
@@ -21,6 +21,7 @@ import DshForm from "./components/form/DshForm.vue";
21
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
  // controls
26
27
  import BriControlInput from "./components/controls/BriControlInput.vue";
@@ -31,12 +32,14 @@ import DshCheckbox from "./components/controls/base/DshCheckbox.vue";
31
32
  import DshCascader from "./components/controls/base/DshCascader/DshCascader.vue";
32
33
 
33
34
  // other
35
+ import BriAvatar from "./components/other/BriAvatar.vue";
34
36
  import BriLoading from "./components/other/BriLoading.vue";
35
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
41
+ import DshRender from "./components/small/render.js";
42
+ import DshListRender from "./components/small/DshListRender.js";
40
43
  import BriButton from "./components/small/BriButton.vue";
41
44
  import BriDrawer from "./components/small/BriDrawer.vue";
42
45
  import BriTooltip from "./components/small/BriTooltip.vue";
@@ -48,8 +51,6 @@ import DshSteps from "./components/small/DshSteps.vue";
48
51
  import DshTabs from "./components/small/DshTabs.vue";
49
52
  import DshTags from "./components/small/DshTags.vue";
50
53
  import DshTitle from "./components/small/DshTitle.vue";
51
- import DshRender from "./components/small/render.js";
52
- import DshListRender from "./components/small/DshListRender.js";
53
54
 
54
55
  /* -------------------- 局部组件 ----------------------- */
55
56
  // Error
@@ -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";
@@ -111,8 +109,8 @@ const map = {
111
109
  DshAdvSearch,
112
110
  DshDefaultSearch,
113
111
  // unit
112
+ DshFormUnit,
114
113
  DshListUnit,
115
-
116
114
  // controls
117
115
  BriControlInput,
118
116
  DshInput,
@@ -122,8 +120,10 @@ const map = {
122
120
  DshCascader,
123
121
 
124
122
  // other
123
+ BriAvatar,
125
124
  BriLoading,
126
- DshAvatar,
125
+ BriIframe,
126
+ BriSvg,
127
127
 
128
128
  // small
129
129
  BriButton,
@@ -186,6 +186,8 @@ export {
186
186
  DshForm,
187
187
  DshAdvSearch,
188
188
  DshDefaultSearch,
189
+ // unit
190
+ DshFormUnit,
189
191
  DshListUnit,
190
192
  // controls
191
193
  BriControlInput,
@@ -196,10 +198,10 @@ export {
196
198
  DshCascader,
197
199
 
198
200
  // other
201
+ BriAvatar,
199
202
  BriLoading,
200
203
  BriIframe,
201
204
  BriSvg,
202
- DshAvatar,
203
205
 
204
206
  // small
205
207
  BriButton,
@@ -228,8 +230,6 @@ export {
228
230
  BriTree,
229
231
  BriTreeItem,
230
232
 
231
- DshFormUnit,
232
-
233
233
  BriInputs,
234
234
  DshNumberange,
235
235
  DshDate,
@@ -22,7 +22,6 @@
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";
@@ -26,16 +26,6 @@
26
26
  line-height: 50px;
27
27
  text-align: center;
28
28
  }
29
-
30
- .avatar {
31
- position: absolute;
32
- width: 40px;
33
- height: 40px;
34
- display: block;
35
- border-radius: 50%;
36
- left: 10px;
37
- top: 5px;
38
- }
39
29
  }
40
30
 
41
31
  &-active {
@@ -1,4 +1,4 @@
1
- .DshAvatar {
1
+ .BriAvatar {
2
2
  position: relative;
3
3
 
4
4
  span {