bri-components 1.2.13 → 1.2.15

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 (37) 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 +2 -2
  10. package/src/components/controls/base/BriUpload/uploadMixin.js +16 -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 +16 -10
  14. package/src/components/controls/senior/flatTable.vue +17 -12
  15. package/src/components/list/BriTable.vue +5 -7
  16. package/src/components/list/DshBox/DshTable.vue +5 -4
  17. package/src/components/unit/DshFormItem.vue +3 -1
  18. package/src/index.js +20 -34
  19. package/src/styles/common/text.less +1 -2
  20. package/src/styles/components/controls/base/DshCascader/DshCascader.less +7 -12
  21. package/src/styles/components/controls/base/DshCheckbox.less +3 -8
  22. package/src/styles/components/controls/base/DshSelect.less +102 -104
  23. package/src/styles/components/index.less +12 -13
  24. package/src/styles/components/list/BriTable.less +10 -4
  25. package/src/styles/components/list/DshBox/DshTable.less +9 -1
  26. package/src/styles/components/small/DshButtons.less +2 -9
  27. package/src/utils/table.js +4 -3
  28. /package/src/{styles/components/small → abolish}/DshCrumbItem.less +0 -0
  29. /package/src/{styles/components/small → abolish}/DshCrumbs.less +0 -0
  30. /package/src/{components/small → abolish}/DshCrumbs.vue +0 -0
  31. /package/src/{components/small → abolish}/DshCrumbsItem.vue +0 -0
  32. /package/src/{styles/components/other → abolish}/DshEditPanel.less +0 -0
  33. /package/src/{components/other → abolish}/DshEditPanel.vue +0 -0
  34. /package/src/{styles/components/other → abolish}/DshMenu.less +0 -0
  35. /package/src/{components/other → abolish}/DshMenu.vue +0 -0
  36. /package/src/components/{other → small}/DshBtnModal.vue +0 -0
  37. /package/src/styles/components/{other → small}/DshBtnModal.less +0 -0
@@ -11,7 +11,6 @@
11
11
  border-radius: 4px;
12
12
  border: none;
13
13
  color: #FFF;
14
- margin-bottom: 5px;
15
14
  margin-right: 16px;
16
15
  }
17
16
 
@@ -47,146 +46,145 @@
47
46
  }
48
47
 
49
48
  each(@resourceColor, {
50
- .color-@{index} {
51
- .ivu-radio {
52
- .ivu-radio-inner {
53
- border-color: @value;
54
- }
49
+ .color-@{index} {
50
+ .ivu-radio {
51
+ .ivu-radio-inner {
52
+ border-color: @value;
55
53
  }
54
+ }
56
55
 
57
- .ivu-radio-checked {
58
- .ivu-radio-inner {
59
- &::after {
60
- background-color: @value;
61
- }
56
+ .ivu-radio-checked {
57
+ .ivu-radio-inner {
58
+ &::after {
59
+ background-color: @value;
62
60
  }
63
61
  }
64
62
  }
65
63
  }
64
+ });
65
+ }
66
66
 
67
- );
68
- }
69
-
70
- &-scroll {
71
- overflow-x: auto;
72
- overflow-y: hidden;
73
- white-space: nowrap;
67
+ &-scroll {
68
+ overflow-x: auto;
69
+ overflow-y: hidden;
70
+ white-space: nowrap;
74
71
 
75
- &::-webkit-scrollbar {
76
- height: 6px;
77
- }
72
+ &::-webkit-scrollbar {
73
+ height: 6px;
74
+ }
78
75
 
79
- &:-webkit-scrollbar-thumb {
80
- border-radius: 3px;
81
- background: rgba(51, 51, 51, .1);
82
- background-clip: border-box;
83
- }
76
+ &:-webkit-scrollbar-thumb {
77
+ border-radius: 3px;
78
+ background: rgba(51, 51, 51, .1);
79
+ background-clip: border-box;
84
80
  }
85
81
  }
82
+ }
86
83
 
87
- &-modal {
88
- .ivu-modal-wrap {
89
- display: flex;
90
- align-items: center;
91
- justify-content: center;
92
- }
84
+ &-modal {
85
+ .ivu-modal-wrap {
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: center;
89
+ }
93
90
 
94
- .ivu-modal {
95
- width: 544px !important;
96
- position: static;
97
- }
91
+ .ivu-modal {
92
+ width: 544px !important;
93
+ position: static;
94
+ }
98
95
 
99
- .ivu-modal-content {
100
- border-radius: 8px;
101
- }
96
+ .ivu-modal-content {
97
+ border-radius: 8px;
98
+ }
102
99
 
103
- .ivu-modal-header {
104
- border-bottom: none;
105
- padding: 32px 32px 0;
100
+ .ivu-modal-header {
101
+ border-bottom: none;
102
+ padding: 32px 32px 0;
106
103
 
107
- .ivu-modal-header-inner {
108
- font-size: 18px;
109
- font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
110
- font-weight: 600;
111
- color: #252F36;
112
- }
104
+ .ivu-modal-header-inner {
105
+ font-size: 18px;
106
+ font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
107
+ font-weight: 600;
108
+ color: #252F36;
113
109
  }
110
+ }
114
111
 
115
112
 
116
- .DshModal-close {
117
- right: 30px !important;
118
- top: 30px !important;
119
- background: #F4F6F8;
120
- border-radius: 4px 4px 4px 4px;
121
- }
113
+ .DshModal-close {
114
+ right: 30px !important;
115
+ top: 30px !important;
116
+ background: #F4F6F8;
117
+ border-radius: 4px 4px 4px 4px;
118
+ }
122
119
 
123
- .ivu-modal-body {
124
- padding: 24px 32px 32px;
125
- }
120
+ .ivu-modal-body {
121
+ padding: 24px 32px 32px;
122
+ }
126
123
 
127
- &-footer {
128
- margin-top: 24px;
129
- text-align: right;
124
+ &-footer {
125
+ margin-top: 24px;
126
+ text-align: right;
130
127
 
131
- .ivu-btn {
132
- font-size: 16px;
133
- font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
134
- font-weight: 600;
135
- border-radius: 4px;
136
- }
128
+ .ivu-btn {
129
+ font-size: 16px;
130
+ font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
131
+ font-weight: 600;
132
+ border-radius: 4px;
137
133
  }
138
134
  }
135
+ }
139
136
 
140
- &-tip {
141
- cursor: pointer;
137
+ &-tip {
138
+ cursor: pointer;
142
139
 
143
- .ivu-radio {
144
- display: none;
145
- }
140
+ .ivu-radio {
141
+ display: none;
146
142
  }
147
143
  }
144
+ }
148
145
 
149
146
  .ivu-select {
150
147
  .ivu-select-selection {
151
148
  // .bri-control-edit();
152
149
  }
153
- }
154
-
155
- .ivu-select-disabled {
156
- .ivu-select-selection {
157
- .bri-control-disabled();
158
150
 
159
- &:hover {
160
- border-color: @border-disabled;
161
- }
162
- }
163
- .ivu-select-input[disabled] {
164
- color: @textColor;
165
- -webkit-text-fill-color: @textColor;
166
- }
167
- }
168
-
169
- .ivu-select-item {
170
- margin: 4px 8px;
171
- border-radius: @borderRadius;
172
-
173
- &:hover {
174
- background: @bgColor;
175
- }
176
-
177
- &-selected {
178
- background-color: @theme-focus;
179
- color: @themeColor;
180
- }
181
-
182
151
  &-disabled {
183
152
  .ivu-select-selection {
184
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;
185
163
  }
186
164
  }
187
-
188
- &-input[disabled] {
189
- color: @textColor-disabled;
190
- -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
+ }
191
189
  }
192
- }
190
+ }
@@ -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
  }
@@ -1,7 +1,8 @@
1
1
  /* -------------------- 表格 -------------- */
2
2
  // 转化表单字段属性 to 表格参数, 是否需要过滤tag
3
- const transformToColumns = function (form) {
4
- let headerFilter = this.listPropsObj && this.listPropsObj.headerFilter;
3
+ const transformToColumns = function (form, {
4
+ headerFilter = false
5
+ } = {}) {
5
6
  return form
6
7
  .filter(col => col._type !== "tag")
7
8
  .map(col => {
@@ -60,7 +61,7 @@ const transformToColumns = function (form) {
60
61
  ? {
61
62
  filter: headerFilter ? {
62
63
  isMultiple: true,
63
- maxHeight: 300,
64
+ maxHeight: 250,
64
65
  filterList: col._data.map(item => ({
65
66
  ...item,
66
67
  value: item._key,
File without changes
File without changes
File without changes