bri-components 1.2.14 → 1.2.16

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.
Files changed (41) hide show
  1. package/lib/0.bri-components.min.js +1 -1
  2. package/lib/1.bri-components.min.js +1 -1
  3. package/lib/2.bri-components.min.js +1 -1
  4. package/lib/3.bri-components.min.js +1 -1
  5. package/lib/4.bri-components.min.js +1 -1
  6. package/lib/5.bri-components.min.js +1 -1
  7. package/lib/6.bri-components.min.js +1 -1
  8. package/lib/bri-components.min.js +11 -11
  9. package/package.json +1 -1
  10. package/src/{components/other → abolish}/DshEditPanel.vue +1 -1
  11. package/src/components/controls/base/DshCheckbox.vue +0 -1
  12. package/src/components/controls/base/DshSelect.vue +0 -1
  13. package/src/components/controls/senior/cascaderTable.vue +6 -1
  14. package/src/components/controls/senior/flatTable.vue +17 -12
  15. package/src/components/controls/senior/selectDepartments.vue +8 -44
  16. package/src/components/controls/senior/selectUsers/selectUsers.vue +7 -7
  17. package/src/components/list/BriTable.vue +5 -7
  18. package/src/components/list/BriTree.vue +1 -1
  19. package/src/components/list/DshBox/DshTable.vue +5 -4
  20. package/src/components/small/DshModal.vue +4 -2
  21. package/src/index.js +20 -34
  22. package/src/styles/common/text.less +1 -2
  23. package/src/styles/components/controls/base/DshCheckbox.less +43 -43
  24. package/src/styles/components/controls/base/DshSelect.less +35 -35
  25. package/src/styles/components/controls/senior/selectDepartments.less +7 -40
  26. package/src/styles/components/controls/senior/selectUsers/selectUsers.less +26 -30
  27. package/src/styles/components/index.less +12 -13
  28. package/src/styles/components/list/BriTable.less +10 -4
  29. package/src/styles/components/list/DshBox/DshTable.less +9 -1
  30. package/src/styles/components/small/DshButtons.less +2 -9
  31. package/src/styles/components/small/DshModal.less +137 -92
  32. package/src/utils/table.js +4 -3
  33. /package/src/{styles/components/small → abolish}/DshCrumbItem.less +0 -0
  34. /package/src/{styles/components/small → abolish}/DshCrumbs.less +0 -0
  35. /package/src/{components/small → abolish}/DshCrumbs.vue +0 -0
  36. /package/src/{components/small → abolish}/DshCrumbsItem.vue +0 -0
  37. /package/src/{styles/components/other → abolish}/DshEditPanel.less +0 -0
  38. /package/src/{styles/components/other → abolish}/DshMenu.less +0 -0
  39. /package/src/{components/other → abolish}/DshMenu.vue +0 -0
  40. /package/src/components/{other → small}/DshBtnModal.vue +0 -0
  41. /package/src/styles/components/{other → small}/DshBtnModal.less +0 -0
@@ -147,44 +147,44 @@
147
147
  .ivu-select-selection {
148
148
  // .bri-control-edit();
149
149
  }
150
- }
151
-
152
- .ivu-select-disabled {
153
- .ivu-select-selection {
154
- .bri-control-disabled();
155
-
156
- &:hover {
157
- border-color: @border-disabled;
158
- }
159
- }
160
-
161
- .ivu-select-input[disabled] {
162
- color: @textColor;
163
- -webkit-text-fill-color: @textColor;
164
- }
165
- }
166
-
167
- .ivu-select-item {
168
- margin: 4px 8px;
169
- border-radius: @borderRadius;
170
-
171
- &:hover {
172
- background: @bgColor;
173
- }
174
-
175
- &-selected {
176
- background-color: @theme-focus;
177
- color: @themeColor;
178
- }
179
-
150
+
180
151
  &-disabled {
181
152
  .ivu-select-selection {
182
153
  .bri-control-disabled();
154
+
155
+ &:hover {
156
+ border-color: @border-disabled;
157
+ }
158
+ }
159
+
160
+ .ivu-select-input[disabled] {
161
+ color: @textColor;
162
+ -webkit-text-fill-color: @placeholder-disabled-color;
183
163
  }
184
164
  }
185
-
186
- &-input[disabled] {
187
- color: @textColor-disabled;
188
- -webkit-text-fill-color: @textColor-disabled;
165
+
166
+ &-item {
167
+ margin: 4px 8px;
168
+ border-radius: @borderRadius;
169
+
170
+ &:hover {
171
+ background: @bgColor;
172
+ }
173
+
174
+ &-selected {
175
+ background-color: @theme-focus;
176
+ color: @themeColor;
177
+ }
178
+
179
+ &-disabled {
180
+ .ivu-select-selection {
181
+ .bri-control-disabled();
182
+ }
183
+ }
184
+
185
+ &-input[disabled] {
186
+ color: @textColor-disabled;
187
+ -webkit-text-fill-color: @textColor-disabled;
188
+ }
189
189
  }
190
- }
190
+ }
@@ -1,30 +1,8 @@
1
1
  .selectDepartments {
2
2
  width: 100%;
3
3
 
4
- &-edit {
5
-
6
- }
7
-
8
- &-show {
9
-
10
- }
11
-
12
- // 传到子组件里的class!!!
13
- &-modal {
14
- .ivu-modal {
15
- width: 800px!important;
16
- }
17
- }
18
- // 传到子组件里的class!!!
19
- &-cascaderModal {
20
- .ivu-modal {
21
- width: 600px !important;
22
- }
23
- }
24
-
25
4
  &-list {
26
- height: 600px;
27
- padding: 15px 20px;
5
+ height: 500px;
28
6
  .dsh-flex-col-start-stretch();
29
7
 
30
8
  .list {
@@ -34,11 +12,9 @@
34
12
  display: flex;
35
13
  flex-wrap: wrap;
36
14
  align-items: center;
37
-
38
- &-label {
39
15
 
40
- }
41
-
16
+ &-label {}
17
+
42
18
  .item {
43
19
  max-width: 230px;
44
20
  height: 24px;
@@ -63,17 +39,17 @@
63
39
  }
64
40
  }
65
41
  }
66
-
42
+
67
43
  &-search {
68
44
  padding: 10px 15px;
69
45
  }
70
-
46
+
71
47
  &-center {
72
48
  flex: 1;
73
49
  min-height: 100px;
74
50
  padding: 5px 0 10px;
75
51
  overflow: auto;
76
-
52
+
77
53
  &-tree {
78
54
  .tree {
79
55
  &-nodata {
@@ -81,7 +57,7 @@
81
57
  }
82
58
  }
83
59
  }
84
-
60
+
85
61
  &-card {
86
62
  .card {
87
63
  &-high-title {
@@ -92,15 +68,6 @@
92
68
  }
93
69
  }
94
70
  }
95
-
96
- &-footer {
97
- text-align: right;
98
-
99
- .ivu-btn {
100
- width: 120px;
101
- height: 38px;
102
- }
103
- }
104
71
  }
105
72
  }
106
73
  }
@@ -1,75 +1,71 @@
1
1
  .selectUsers {
2
2
  width: 100%;
3
3
 
4
- &-edit {
4
+ &-edit {}
5
5
 
6
- }
7
- &-show {
8
-
9
- }
6
+ &-show {}
10
7
 
11
8
  // 弹框部分
12
9
  &-modal {
13
10
  &-wrap {
14
11
  display: flex;
15
- padding: 20px;
16
- height: 550px;
12
+ height: 500px;
17
13
 
18
14
  &-left {
19
15
  width: 520px;
20
16
  overflow-y: auto;
21
17
  background: @white;
22
18
  border: 1px solid #E5E5E5;
23
-
19
+
24
20
  .search {
25
21
  padding: 10px 20px;
26
22
  }
27
-
23
+
28
24
  .content {
29
25
  display: flex;
30
26
  height: calc(100% - 52px);
31
27
  border-top: 1px solid #E5E5E5;
32
-
28
+
33
29
  &-menu {
34
30
  flex: 3;
35
31
  height: 100%;
36
32
  overflow: auto;
37
33
  }
38
-
34
+
39
35
  &-users {
40
36
  flex: 2;
41
37
  position: relative;
42
-
38
+
43
39
  .ivu-checkbox-checked .ivu-checkbox-inner {
44
40
  border-color: @themeColor;
45
41
  background-color: @themeColor;
46
42
  }
47
-
43
+
48
44
  &-list {
49
45
  border-left: 1px solid #E5E5E5;
50
46
  height: 100%;
51
47
  display: flex;
52
48
  flex-direction: column;
53
-
54
-
49
+
50
+
55
51
  &-checkAll {
56
52
  height: 40px;
57
53
  line-height: 40px;
58
54
  border-bottom: 1px solid #E5E5E5;
59
55
  padding-left: 15px;
60
56
  }
61
-
57
+
62
58
  &-selects {
63
59
  flex: 1;
64
60
  overflow: auto;
65
61
  padding: 15px;
66
-
62
+
67
63
  &-item {
68
64
  margin-bottom: 5px;
69
65
  }
70
66
  }
71
67
  }
72
-
68
+
73
69
  &-nodata {
74
70
  position: absolute;
75
71
  top: 50%;
@@ -77,17 +73,17 @@
77
73
  text-align: center;
78
74
  transform: translateY(-50%);
79
75
  }
80
-
76
+
81
77
  }
82
78
  }
83
79
  }
84
-
80
+
85
81
  &-center {
86
82
  width: 100px;
87
83
  display: flex;
88
84
  justify-content: center;
89
85
  align-items: center;
90
-
86
+
91
87
  .icon {
92
88
  width: 24px;
93
89
  height: 24px;
@@ -99,7 +95,7 @@
99
95
  text-align: center;
100
96
  }
101
97
  }
102
-
98
+
103
99
  &-right {
104
100
  flex: 1;
105
101
  width: 0px;
@@ -111,12 +107,12 @@
111
107
  overflow: auto;
112
108
  display: flex;
113
109
  flex-direction: column;
114
-
110
+
115
111
  .list {
116
112
  display: flex;
117
113
  flex-wrap: wrap;
118
114
  align-items: center;
119
-
115
+
120
116
  &-item {
121
117
  max-width: 150px;
122
118
  height: 24px;
@@ -128,11 +124,11 @@
128
124
  font-size: 12px;
129
125
  display: flex;
130
126
  align-items: center;
131
-
127
+
132
128
  &-name {
133
129
  .dsh-ellipsis();
134
130
  }
135
-
131
+
136
132
  &-delete {
137
133
  padding: 3px;
138
134
  margin-left: 5px;
@@ -142,15 +138,15 @@
142
138
  }
143
139
  }
144
140
  }
145
-
141
+
146
142
  &-footer {
147
143
  padding-bottom: 10px;
148
-
144
+
149
145
  .DshButtons {
150
146
  text-align: right;
151
147
  padding-right: 24px;
152
-
153
-
148
+
149
+
154
150
  .ivu-btn {
155
151
  width: 70px;
156
152
  height: 32px;
@@ -6,13 +6,14 @@
6
6
  @import "./list/DshBox/DshPanel.less";
7
7
  @import "./list/DshBox/DshSingleData.less";
8
8
  @import "./list/DshBox/DshList.less";
9
+ @import "./list/BriTable.less";
10
+ @import "./list/DshPage.less";
11
+
12
+ @import "./list/BriFlatTable.less"; // 不能注释flatTable在用
13
+ @import "./list/DshCascaderTable.less"; // 不能注释cascaderTable在用
9
14
  @import "./list/BriCard.less";
10
- @import "./list/BriFlatTable.less";
11
- @import "./list/BriTable.less";
12
15
  @import "./list/BriTree.less";
13
16
  @import "./list/BriTreeItem.less";
14
- @import "./list/DshCascaderTable.less";
15
- @import "./list/DshPage.less";
16
17
 
17
18
  // form
18
19
  @import "./form/DshForm.less";
@@ -51,25 +52,21 @@
51
52
  @import "./controls/special/DshUndeveloped.less";
52
53
 
53
54
  // other
54
- @import "./other/BriCode.less";
55
- @import "./other/BriCollapseTree.less";
56
- @import "./other/BriGantt.less";
57
- @import "./other/BriIframe.less";
58
55
  @import "./other/BriLoading.less";
59
56
  @import "./other/DshAvatar.less";
60
- @import "./other/DshBtnModal.less";
61
57
  @import "./other/DshColorPanel.less";
62
- @import "./other/DshEditPanel.less";
63
- @import "./other/DshMenu.less";
58
+
64
59
  @import "./other/DshMenuNav.less";
60
+ @import "./other/BriCode.less";
61
+ @import "./other/BriCollapseTree.less";
62
+ @import "./other/BriGantt.less";
63
+ @import "./other/BriIframe.less";
65
64
 
66
65
  // small
67
66
  @import "./small/BriButton.less";
68
67
  @import "./small/BriDrawer.less";
69
68
  @import "./small/BriTooltip.less";
70
69
  @import "./small/DshButtons.less";
71
- @import "./small/DshCrumbs.less";
72
- @import "./small/DshCrumbItem.less";
73
70
  @import "./small/DshDropdown.less";
74
71
  @import "./small/DshIcons.less";
75
72
  @import "./small/DshModal.less";
@@ -77,3 +74,5 @@
77
74
  @import "./small/DshTabs.less";
78
75
  @import "./small/DshTags.less";
79
76
  @import "./small/DshTitle.less";
77
+
78
+ @import "./small/DshBtnModal.less";
@@ -50,7 +50,7 @@
50
50
 
51
51
  &-ellipsis {
52
52
  max-width: calc(100% - 20px);
53
- }
53
+ }
54
54
 
55
55
  td {
56
56
  white-space: normal !important;
@@ -59,6 +59,7 @@
59
59
  &-th {
60
60
  border-bottom: none !important;
61
61
  }
62
+
62
63
  &-td {
63
64
  position: relative;
64
65
  }
@@ -92,7 +93,7 @@
92
93
 
93
94
  // 排序
94
95
  .ve-table-sort {
95
- position: absolute!important;
96
+ position: absolute !important;
96
97
  top: 7px;
97
98
  right: 20px;
98
99
 
@@ -119,6 +120,11 @@
119
120
  }
120
121
 
121
122
  .ve-dropdown-popper {
123
+ .ve-dropdown-items-warpper {
124
+ max-width: 200px;
125
+ min-width: 100px;
126
+ }
127
+
122
128
  .ve-dropdown-dd .ve-dropdown-items {
123
129
  border-radius: @borderRadius;
124
130
  border: none;
@@ -128,7 +134,7 @@
128
134
  // 重置
129
135
  .ve-dropdown-operation .ve-dropdown-operation-item:first-of-type {
130
136
  background-color: @borderColor;
131
- color: @textColor !important;
137
+ color: @textColor !important;
132
138
  margin-right: 8px;
133
139
  }
134
140
 
@@ -137,7 +143,7 @@
137
143
  width: 40px;
138
144
  height: 24px;
139
145
  opacity: 1;
140
- color: @white !important;
146
+ color: @white !important;
141
147
  font-weight: 500;
142
148
  font-family: "PingFang SC";
143
149
  text-align: center;
@@ -1,13 +1,21 @@
1
1
  .DshTable {
2
- width: 100%;
2
+ width: 100%;
3
3
  height: 100%;
4
+
5
+ .table-operation {
6
+ display: flex;
7
+ justify-content: center;
8
+ }
9
+
4
10
  .table-operation-btn {
5
11
  margin-left: 16px;
6
12
  padding: 0px;
13
+
7
14
  &:first-of-type {
8
15
  margin: 0px;
9
16
  }
10
17
  }
18
+
11
19
  .DshButtons-dropdown-more {
12
20
  padding: 0px;
13
21
  margin-left: 16px;
@@ -17,24 +17,17 @@
17
17
  justify-content: center;
18
18
  align-items: center;
19
19
 
20
- &-name {
21
-
22
- }
20
+ &-name {}
23
21
  }
24
22
  }
25
23
  }
26
24
 
27
25
  &-item {
28
- > span {
26
+ >span {
29
27
  width: 100%;
30
28
  .dsh-ellipsis();
31
29
  }
32
30
 
33
31
  &-name {}
34
32
  }
35
-
36
- .ivu-btn-text {
37
- background-color: transparent;
38
- color: @themeColor;
39
- }
40
33
  }