bri-components 1.2.44 → 1.2.46

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.44",
3
+ "version": "1.2.46",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -447,7 +447,7 @@
447
447
  this.selections = this.selections.filter(checkItem => checkItem._id !== row._id);
448
448
  }
449
449
 
450
- this.$emit("selectChange", this.selections, row, bool);
450
+ this.$emit("changeSelect", this.selections, row, bool);
451
451
  },
452
452
  // 点击 -添加行
453
453
  clickCreate (operationItem, row, index, list) {
@@ -6,7 +6,7 @@
6
6
  :columns="showColumns"
7
7
  :data="listData"
8
8
  :footer-data="footerData"
9
- @selectChange="changeSelect"
9
+ @changeSelect="changeSelect"
10
10
  @selectAll="changeSelect"
11
11
  ></bri-table>
12
12
 
@@ -378,7 +378,7 @@
378
378
  });
379
379
  },
380
380
  changeSelect (list) {
381
- this.$emit("selectChange", list);
381
+ this.$emit("changeSelect", list);
382
382
  },
383
383
  // 表单控件值改变
384
384
  changeVal (operationItem, col, row, rowIndex, params) {
@@ -145,7 +145,7 @@
145
145
  // 行选择改变事件
146
146
  selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
147
147
  this.$emit(
148
- "selectChange",
148
+ "changeSelect",
149
149
  this.data.filter(dataItem => selectedRowKeys.includes(dataItem[this.selfPropsObj.rowKeyFieldName])),
150
150
  { row, isSelected, selectedRowKeys }
151
151
  );
@@ -16,7 +16,7 @@
16
16
  :noDataText="listPropsObj && listPropsObj.noDataText || '暂无内容...'"
17
17
  @clickRow="clickRow"
18
18
  @sortChange="changeSort"
19
- @selectChange="changeSelect"
19
+ @changeSelect="changeSelect"
20
20
  @selectAll="selectAll"
21
21
  @select="select"
22
22
  @groupScroll="groupScroll"
@@ -117,7 +117,7 @@
117
117
  },
118
118
  // 改变选择项
119
119
  changeSelect (...params) {
120
- this.$emit("selectChange", ...params);
120
+ this.$emit("changeSelect", ...params);
121
121
  },
122
122
  // 切换全选
123
123
  selectAll (...params) {
@@ -605,7 +605,7 @@
605
605
  },
606
606
  // 改变选择项
607
607
  changeSelect () {
608
- this.$emit("selectChange", this.selectIds, this.selections);
608
+ this.$emit("changeSelect", this.selectIds, this.selections);
609
609
  }
610
610
  // change (...params) {
611
611
  // this.$emit("change", ...params);
@@ -21,7 +21,6 @@
21
21
  class="list-cols-right row"
22
22
  :style="{
23
23
  paddingLeft: multiple ? '48px' : '0px',
24
- background: useColBg ? '#f0f0f0' : 'none'
25
24
  }"
26
25
  >
27
26
  <div
@@ -57,20 +56,13 @@
57
56
 
58
57
  <!-- 行 -->
59
58
  <div class="list-rows">
60
- <!-- 加载中 -->
61
- <div
59
+ <!-- 加载 -->
60
+ <bri-loading
62
61
  v-if="isLoading"
63
62
  class="list-loading"
64
- >
65
- <div class="list-loading-wrap"></div>
66
- <div class="list-loading-content">
67
- <span>
68
- <i class="list-loading-content-icon"></i>
69
- </span>
70
- </div>
71
- </div>
72
-
73
- <!-- 加载完 -->
63
+ mode="middle"
64
+ center
65
+ />
74
66
  <template v-else>
75
67
  <!-- 有数据 -->
76
68
  <template v-if="data.length">
@@ -196,7 +188,6 @@
196
188
  default () {
197
189
  return {
198
190
  multiple: true,
199
- useColBg: true,
200
191
  sequence: false
201
192
  };
202
193
  }
@@ -237,9 +228,6 @@
237
228
  multiple () {
238
229
  return this.propsObj.multiple !== false;
239
230
  },
240
- useColBg () {
241
- return this.propsObj.useColBg !== false;
242
- },
243
231
  sequence () {
244
232
  return this.propsObj.sequence && this.propsObj.sequence !== false;
245
233
  }
@@ -274,7 +262,7 @@
274
262
  },
275
263
  // 改变选择项
276
264
  changeSelect () {
277
- this.$emit("selectChange", this.selectIds, this.selections);
265
+ this.$emit("changeSelect", this.selectIds, this.selections);
278
266
  },
279
267
 
280
268
  change (...params) {
@@ -6,7 +6,7 @@
6
6
  :propsObj="propsObj"
7
7
  :isLoading="isLoading"
8
8
  :noDataText="noDataText"
9
- @selectChange="changeSelect"
9
+ @changeSelect="changeSelect"
10
10
  @selectAll="changeSelect"
11
11
  @click-row="clickRow"
12
12
  @sort-change="changeSort"
@@ -189,7 +189,7 @@
189
189
  },
190
190
  // 改变选择项
191
191
  changeSelect (...params) {
192
- this.$emit("selectChange", params[0].map(item => item._id), ...params);
192
+ this.$emit("changeSelect", params[0].map(item => item._id), ...params);
193
193
  }
194
194
  // // 切换全选
195
195
  // selectAll (...params) {
@@ -1,5 +1,29 @@
1
- .pointer {
2
- cursor: pointer;
1
+ .bri-scrollbar3 {
2
+ overflow: auto;
3
+
4
+ &::-webkit-scrollbar {
5
+ width: 6px;
6
+ height: 6px;
7
+ }
8
+
9
+ &::-webkit-scrollbar-thumb {
10
+ border-radius: 3px;
11
+ background: rgba(51, 51, 51, .1);
12
+ background-clip: border-box;
13
+ }
14
+ }
15
+ // 宽度为6
16
+ .bri-scrollbar6 {
17
+ &::-webkit-scrollbar {
18
+ height: 6px;
19
+ width: 6px;
20
+ }
21
+
22
+ &::-webkit-scrollbar-thumb {
23
+ border-radius: 3px;
24
+ background: rgba(51, 51, 51, .1);
25
+ background-clip: border-box;
26
+ }
3
27
  }
4
28
 
5
29
  #dsh-sign-change () {
@@ -3,49 +3,20 @@
3
3
 
4
4
  .list {
5
5
  &-loading {
6
- min-height: 100px;
7
-
8
- &-wrap {
9
- display: block;
10
- height: 100%;
11
- width: 100%;
12
- background-color: #fff;
13
- z-index: 99999;
14
- position: relative;
15
- opacity: 0.6;
16
- }
17
-
18
- &-content {
19
- z-index: 9999999;
20
- position: absolute;
21
- top: 30px;
22
- left: 50%;
23
- }
24
-
25
- &-icon {
26
- -moz-animation: spin 2.3s infinite linear;
27
- -o-animation: spin 2.3s infinite linear;
28
- -webkit-animation: spin 2.3s infinite linear;
29
- animation: spin 2.3s infinite linear;
30
- display: inline-block;
31
- font-size: 28px;
32
- opacity:0.6;
33
-
34
- &:before {
35
- content: '\e838';
36
- }
37
- }
6
+ margin-top: 120px;
38
7
  }
39
8
 
40
9
  &-cols,
41
10
  &-rows {
42
11
  position: relative;
12
+
43
13
  &-left {
44
14
  width: 48px;
45
15
  text-align: center;
46
16
  position: absolute;
47
17
  left: 0;
48
18
  top: 0;
19
+
49
20
  label {
50
21
  display: inline-block;
51
22
  height: 36px;
@@ -60,6 +31,7 @@
60
31
  line-height: 20px;
61
32
  display: flex;
62
33
  justify-content: space-between;
34
+
63
35
  &-item {
64
36
  min-width: 120px;
65
37
  height: 100%;
@@ -73,16 +45,21 @@
73
45
  &-cols {
74
46
  height: @height;
75
47
  background: #f0f0f0;
48
+
76
49
  &-left {}
77
- &-right {}
50
+ &-right {
51
+
52
+ }
78
53
 
79
54
  .row {
80
55
  font-weight: 700;
56
+
81
57
  &-item {
82
58
  padding: 10px 16px;
83
59
  border-top: 1px #e5e5e5 solid;
84
60
  border-bottom: 1px #f0f0f0 solid;
85
61
  border-left: 1px #e5e5e5 solid;
62
+ background: #f0f0f0;
86
63
 
87
64
  &:last-child{
88
65
  border-right: 1px #e5e5e5 solid;
@@ -107,19 +84,20 @@
107
84
  line-height: 20px;
108
85
  }
109
86
  }
87
+
110
88
  &-right {}
111
89
 
112
90
  .row {
113
91
  height: 44px;
114
92
  line-height: 20px;
115
-
116
93
  cursor: pointer;
94
+
117
95
  &-item {
118
96
  display: flex;
119
97
  border: 1px solid #E5E5E5;
120
98
  border-width: 0 0 1px 1px;
121
99
 
122
- &:last-child{
100
+ &:last-child {
123
101
  border-width: 0 1px 1px 1px;
124
102
  }
125
103
 
@@ -44,54 +44,4 @@ li {
44
44
  background: rgba(187, 187, 187, 0.8);
45
45
  background-clip: padding-box;
46
46
  border: 2px solid rgba(0, 0, 0, 0);
47
- }
48
-
49
- // 宽度为6
50
- .bri-scrollbar6 {
51
- &::-webkit-scrollbar {
52
- height: 6px;
53
- width: 6px;
54
- }
55
-
56
- &::-webkit-scrollbar-thumb {
57
- border-radius: 3px;
58
- background: rgba(51, 51, 51, .1);
59
- background-clip: border-box;
60
- }
61
- }
62
-
63
- .bri-scrollbar3 {
64
- overflow: auto;
65
- &::-webkit-scrollbar {
66
- width: 6px;
67
- height: 6px;
68
- }
69
-
70
- &:-webkit-scrollbar-thumb {
71
- border-radius: 3px;
72
- background: rgba(51, 51, 51, .1);
73
- background-clip: border-box;
74
- }
75
- }
76
-
77
- .dsh-scrollbar3::-webkit-scrollbar {
78
- height: 3px;
79
- width: 3px;
80
-
81
- &::-webkit-scrollbar-thumb {
82
- border-radius: 3px;
83
- background: rgba(225, 232, 237, 1);
84
- background-clip: border-box;
85
- }
86
- }
87
-
88
- .dsh-scrollbar6::-webkit-scrollbar {
89
- height: 6px;
90
- width: 6px;
91
-
92
- &::-webkit-scrollbar-thumb {
93
- border-radius: 5px;
94
- background: rgba(225, 232, 237, 1);
95
- background-clip: border-box;
96
- }
97
47
  }