bri-components 1.0.3 → 1.1.0

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 (99) 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/7.bri-components.min.js +1 -0
  9. package/lib/8.bri-components.min.js +1 -0
  10. package/lib/9.bri-components.min.js +1 -0
  11. package/lib/bri-components.min.js +16 -6
  12. package/lib/styles/bundle.css +0 -2
  13. package/package.json +121 -120
  14. package/src/components/controls/base/BriLabels.vue +117 -0
  15. package/src/components/controls/base/DshCascader.vue +23 -38
  16. package/src/components/controls/base/DshCascaderMultiple.vue +1 -1
  17. package/src/components/controls/base/DshCheckbox.vue +14 -4
  18. package/src/components/controls/base/DshCoordinates.vue +5 -9
  19. package/src/components/controls/base/DshDate.vue +10 -34
  20. package/src/components/controls/base/DshDivider.vue +1 -1
  21. package/src/components/controls/base/DshEditor.vue +52 -44
  22. package/src/components/controls/base/DshInput.vue +18 -45
  23. package/src/components/controls/base/DshLabels.vue +8 -4
  24. package/src/components/controls/base/DshNumber/DshNumber.vue +6 -20
  25. package/src/components/controls/base/DshNumberange.vue +1 -1
  26. package/src/components/controls/base/DshPackage.vue +7 -1
  27. package/src/components/controls/base/DshSelect.vue +15 -5
  28. package/src/components/controls/base/DshSwitch.vue +2 -6
  29. package/src/components/controls/base/YSerialNumber.vue +0 -1
  30. package/src/components/controls/base/ZUpload/index.vue +16 -10
  31. package/src/components/controls/base/ZUpload/upload-list.vue +17 -12
  32. package/src/components/controls/base/ZUpload/uploadMixin.js +1 -5
  33. package/src/components/controls/base/controlShow.vue +52 -0
  34. package/src/components/controls/base/textMultiple/DshTextMultiple.vue +1 -1
  35. package/src/components/controls/controlMap.js +4 -0
  36. package/src/components/controls/controlMixin.js +21 -20
  37. package/src/components/controls/senior/cascaderTable.vue +188 -0
  38. package/src/components/controls/senior/flatTable.vue +131 -0
  39. package/src/components/form/DshForm.vue +0 -5
  40. package/src/components/list/BriFlatTable.vue +430 -0
  41. package/src/components/list/BriTable.vue +184 -0
  42. package/src/components/list/DshBox/DshPanel.vue +63 -79
  43. package/src/components/list/DshBox/DshTable.vue +29 -39
  44. package/src/components/list/DshCascaderTable.vue +6 -11
  45. package/src/components/list/DshFlatTable.vue +9 -17
  46. package/src/components/other/BriTransfer.vue +71 -0
  47. package/src/components/small/BriButton.vue +65 -0
  48. package/src/components/small/BriTree.vue +42 -0
  49. package/src/components/small/Ctooltip.vue +1 -1
  50. package/src/components/small/DshButtons.vue +12 -42
  51. package/src/components/unit/DshFormItem.vue +11 -6
  52. package/src/components/unit/DshUnit.vue +1 -3
  53. package/src/components/unit/unitMixin.js +4 -1
  54. package/src/index.js +24 -4
  55. package/src/styles/bundle.css +0 -2
  56. package/src/styles/common/common.less +2 -2
  57. package/src/styles/common/control.less +53 -0
  58. package/src/styles/common/index.less +1 -0
  59. package/src/styles/components/controls/BriLabels.less +23 -0
  60. package/src/styles/components/controls/DshCascader.less +3 -3
  61. package/src/styles/components/controls/DshCheckbox.less +1 -1
  62. package/src/styles/components/controls/DshCoordinates.less +3 -3
  63. package/src/styles/components/controls/DshDate.less +54 -0
  64. package/src/styles/components/controls/DshDaterange.less +1 -1
  65. package/src/styles/components/controls/DshEditor.less +27 -9
  66. package/src/styles/components/controls/DshInput.less +5 -5
  67. package/src/styles/components/controls/DshLabels.less +1 -1
  68. package/src/styles/components/controls/DshSelect.less +46 -30
  69. package/src/styles/components/controls/ZUpload.less +82 -91
  70. package/src/styles/components/controls/cascaderTable.less +33 -0
  71. package/src/styles/components/controls/controlShow.less +12 -0
  72. package/src/styles/components/controls/flatTable.less +33 -0
  73. package/src/styles/components/form/DshAdvSearchForm.less +6 -6
  74. package/src/styles/components/index.less +10 -0
  75. package/src/styles/components/list/BriFlatTable.less +8 -0
  76. package/src/styles/components/list/BriTable.less +155 -0
  77. package/src/styles/components/list/DshFlatTable.less +3 -8
  78. package/src/styles/components/list/evTable.less +1 -1
  79. package/src/styles/components/other/BriTransfer.less +65 -0
  80. package/src/styles/components/other/DshEditPanel.less +2 -2
  81. package/src/styles/components/other/DshMenuNav.less +5 -5
  82. package/src/styles/components/other/ZGantt.less +5 -5
  83. package/src/styles/components/small/BriButton.less +259 -0
  84. package/src/styles/components/small/BriTree.less +57 -0
  85. package/src/styles/components/small/Ctooltip.less +14 -0
  86. package/src/styles/components/small/DshButtons.less +1 -1
  87. package/src/styles/components/small/DshControlDefine.less +2 -2
  88. package/src/styles/components/small/DshDropdown.less +1 -1
  89. package/src/styles/components/small/DshPage.less +1 -1
  90. package/src/styles/components/small/DshTabs.less +2 -2
  91. package/src/styles/components/unit/DshFormItem.less +5 -6
  92. package/src/styles/index.less +1 -5
  93. package/src/styles/plugin/easytable.less +22 -0
  94. package/src/styles/plugin/index.less +2 -0
  95. package/src/styles/plugin/iview.less +33 -0
  96. package/src/styles/variables.less +71 -88
  97. package/src/utils/table.js +72 -978
  98. package/src/styles/define.less +0 -374
  99. package/src/styles/view_reset.less +0 -452
@@ -9,14 +9,14 @@
9
9
  }
10
10
 
11
11
  &-ellipsis-readonly {
12
- color: @activeDarkGreyColor;
13
- border-color: @readonlyBorderColor;
12
+ color: @textColor-readonly;
13
+ border-color: @border-readonly;
14
14
  }
15
15
 
16
16
  &-ellipsis-disabled {
17
- background-color: @disabledBgColor;
18
- color: @disabledColor;
19
- border-color: @readonlyBorderColor;
17
+ background-color: @inputBg-disabled;
18
+ color: @textColor-disabled;
19
+ border-color: @border-readonly;
20
20
  }
21
21
 
22
22
  &-textarea-show {
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  &-nodata{
118
- color: @subColor;
118
+ color: @textColor;
119
119
  }
120
120
  }
121
121
 
@@ -128,45 +128,61 @@
128
128
  }
129
129
 
130
130
  each(@resourceColor, {
131
- .color-@{index} {
132
- .ivu-radio {
133
- .ivu-radio-inner {
134
- border-color: @value;
131
+ .color-@{index} {
132
+ .ivu-radio {
133
+ .ivu-radio-inner {
134
+ border-color: @value;
135
+ }
135
136
  }
136
- }
137
137
 
138
- .ivu-radio-checked {
139
- .ivu-radio-inner {
140
- &::after {
141
- background-color: @value;
138
+ .ivu-radio-checked {
139
+ .ivu-radio-inner {
140
+ &::after {
141
+ background-color: @value;
142
+ }
142
143
  }
143
144
  }
144
145
  }
145
146
  }
146
- });
147
+
148
+ );
149
+ }
147
150
  }
148
- }
149
151
 
150
- &-select-prefix {
151
- color: @themeColor;
152
- }
152
+ &-select-prefix {
153
+ color: @themeColor;
154
+ }
153
155
 
154
- &-tooltip {
155
- display: flex;
156
- align-items: center;
157
- width: 100%;
158
- }
156
+ &-tooltip {
157
+ display: flex;
158
+ align-items: center;
159
+ width: 100%;
160
+ }
159
161
 
160
- &-content {
161
- display: inline-block;
162
- text-align: center;
163
- max-width: 100%;
164
- line-height: 100%;
165
- vertical-align: middle;
166
- width: fit-content;
167
- border-radius: 14px;
168
- line-height: 100%;
169
- padding: 5px 10px;
170
- font-size: 14px;
162
+ &-content {
163
+ display: inline-block;
164
+ text-align: center;
165
+ max-width: 100%;
166
+ line-height: 100%;
167
+ vertical-align: middle;
168
+ width: fit-content;
169
+ border-radius: 14px;
170
+ line-height: 100%;
171
+ padding: 5px 10px;
172
+ font-size: 14px;
173
+ }
171
174
  }
175
+
176
+ .ivu-select-item {
177
+ margin: 4px 8px;
178
+ border-radius: @borderRadius;
179
+
180
+ &:hover {
181
+ background: @bgColor;
182
+ }
183
+
184
+ &-selected {
185
+ background-color: @theme-focus !important;
186
+ color: @themeColor;
187
+ }
172
188
  }
@@ -1,9 +1,11 @@
1
1
  .ZUpload {
2
2
  width: 100%;
3
3
  height: 100%;
4
- background: #FFF;
5
4
  position: relative;
6
5
  overflow: hidden;
6
+ border: 1px solid @borderColor;
7
+ border-radius: @borderRadius;
8
+ background-color: @white;
7
9
 
8
10
  // 外围
9
11
  &-old {
@@ -11,37 +13,28 @@
11
13
  display: flex;
12
14
 
13
15
  &-wrapper {
14
- min-width: 80px;
16
+ min-width: 120px;
15
17
  height: 100%;
16
- margin: 8px 0px 8px 8px;
17
- border: none;
18
+ margin: 16px 0px 16px 16px;
18
19
  border-radius: 0px;
19
-
20
+ border: none;
20
21
  &:hover {
21
22
  border: none
22
23
  }
23
24
  }
24
25
 
25
26
  &-imageadd {
26
- width: 80px;
27
- height: 80px;
28
- border-radius: 0px;
29
- background: transparent!important;
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
27
+ .dsh-flex-col-center-center();
28
+ width: 120px;
29
+ height: 120px;
33
30
  position: relative;
34
- border: 1px @shenpi-themeColor dashed;
35
- color:@shenpi-themeColor;
36
-
37
- i {
38
- color: @iconDefaultGreyColor;
39
- font-size: 14px;
40
-
41
- &.bico-tianjia1{
42
- color: @shenpi-themeColor;
43
- margin-right: 8px;
44
- }
31
+ border: 1px @borderColor dashed;
32
+ color: @themeColor;
33
+ border-radius: @borderRadius;
34
+ cursor: pointer;
35
+ &:hover {
36
+ border-color: @themeColor;
37
+ background-color: @theme-focus;
45
38
  }
46
39
  }
47
40
 
@@ -54,10 +47,10 @@
54
47
  margin-top: -25px;
55
48
  margin-left: -25px;
56
49
  border-radius: 50%;
57
- background-color: #f4f5fa;
50
+ background-color: @inputBg-readonly;
58
51
 
59
52
  i {
60
- color: #5cb85c;
53
+ color: @scuess-color;
61
54
  font-size: 40px;
62
55
  }
63
56
  }
@@ -68,29 +61,27 @@
68
61
  display: flex;
69
62
 
70
63
  &-wrapper {
71
- min-width: 50px;
72
- background-color: @uploadBackgroundColor;
64
+ min-width: 30px;
65
+ background-color: @border-readonly;
73
66
  height: 30px;
74
67
  line-height: 30px;
75
68
  border: none;
76
-
69
+ border-radius: 0px !important;
77
70
  &:hover {
78
71
  border: none
79
72
  }
80
73
  }
81
74
 
82
75
  &-imageadd {
83
- display: flex;
84
- justify-content: space-between;
85
- align-items: center;
86
- white-space: nowrap;
87
- font-size: 14px;
88
- padding: 0 3px;
76
+ .dsh-flex-row-center-center();
89
77
  height: 30px;
90
- position: relative;
91
-
92
- i {
93
- color: @iconDefaultGreyColor;
78
+ background-color: @btn-hover;
79
+ color: @textColor;
80
+ border: none;
81
+ border-radius: 0px;
82
+ &:hover {
83
+ color: @themeColor;
84
+ background-color: @theme-focus;
94
85
  }
95
86
  }
96
87
 
@@ -104,9 +95,8 @@
104
95
  margin-left: -12px;
105
96
  background-color: #f4f5fa;
106
97
  border-radius: 50%;
107
-
108
98
  i {
109
- color: #5cb85c;
99
+ color: @scuess-color;
110
100
  font-size: 24px;
111
101
  }
112
102
  }
@@ -119,15 +109,15 @@
119
109
 
120
110
  // 普通文件
121
111
  &-old {
122
- margin: 8px 8px 8px;
112
+ margin: 16px;
123
113
  }
124
114
 
125
115
  &-nodata {
126
116
  width: 100%;
127
117
  height: 100%;
128
118
  text-align: center;
129
- line-height: 80px;
130
- color: #929292;
119
+ line-height: 120px;
120
+ color: @placeholderColor;
131
121
  white-space: nowrap;
132
122
 
133
123
  span {
@@ -141,8 +131,8 @@
141
131
  }
142
132
 
143
133
  &-listItem {
144
- flex: 0 0 80px;
145
- height: 80px;
134
+ flex: 0 0 120px;
135
+ height: 120px;
146
136
  margin-right: 10px;
147
137
  background: #f4f5fa;
148
138
  text-align: center;
@@ -151,7 +141,7 @@
151
141
  flex-direction: column;
152
142
  justify-content: space-between;
153
143
  position: relative;
154
-
144
+ border-radius: @borderRadius;
155
145
  &:hover {
156
146
  .uploadList-listItem-action {
157
147
  display: flex !important;
@@ -193,7 +183,7 @@
193
183
  top: 0px;
194
184
  left: 0px;
195
185
  bottom: 0px;
196
- background-color: rgba(0, 0, 0, 0.5);
186
+ background-color: @placeholderColor;
197
187
  align-items: center;
198
188
  justify-content: center;
199
189
 
@@ -211,22 +201,22 @@
211
201
  &-inline {
212
202
  height: 30px;
213
203
  line-height: 30px;
214
-
215
204
  &-list {
216
205
  width: 100%;
217
206
  height: 100%;
218
207
  display: flex;
219
208
  flex-wrap: nowrap;
220
- overflow: auto;
209
+ overflow-x: auto;
210
+ overflow-y: hidden;
221
211
  padding-left: 3px;
222
212
  }
223
213
 
224
214
  &-listItem {
225
- flex: 0 0 50px;
215
+ flex: 0 0 48px;
226
216
  background: #f4f5fa;
227
217
  margin-right: 3px;
228
218
  position: relative;
229
-
219
+ border-radius: @borderRadius;
230
220
  img {
231
221
  max-width: 100%;
232
222
  max-height: 100%;
@@ -240,10 +230,10 @@
240
230
  right: 0;
241
231
  top: 0;
242
232
  bottom: 0;
243
- background-color: rgba(0, 0, 0, 0.4);
233
+ background-color: @placeholderColor;
244
234
  color: #fff;
245
235
  align-items: center;
246
-
236
+ justify-content: center;
247
237
  i {
248
238
  margin: 0px;
249
239
  }
@@ -266,6 +256,11 @@
266
256
  }
267
257
  }
268
258
  }
259
+
260
+ &-nodata {
261
+ padding-left: 7px;
262
+ color: @placeholderColor;
263
+ }
269
264
  }
270
265
  }
271
266
  }
@@ -401,46 +396,42 @@
401
396
  }
402
397
  }
403
398
 
404
- // 不同模式下的样式
405
- .ZUpload.control {
406
- &-default {
407
- &-edit {
408
- border: 1px solid @formBorderColor;
409
- border-radius: 0px;
410
- }
411
-
412
- &-readonly {
413
- border: 1px solid @readonlyBorderColor;
414
- border-radius: 0px;
415
- }
416
-
417
- &-disabled {
418
- border: 1px solid @readonlyBorderColor;
419
- border-radius: 0px;
420
- }
421
-
399
+ .ZUpload-readonly {
400
+ border: none;
401
+ border-radius: 0px;
402
+ background-color: transparent;
403
+ .ZUploa-old-wrapper {
404
+ margin: 0px;
422
405
  }
423
-
424
- &-rimless {
425
- &-edit {
426
- border: 1px solid @formBorderColor;
427
- border-radius: 0px;
428
- }
429
-
430
- &-readonly {
431
- padding: 5px 0;
432
-
433
- .uploadList-old {
434
- margin: 0;
435
- }
406
+ .uploadList-old {
407
+ margin: 0px;
408
+
409
+ }
410
+ .uploadList-listItem {
411
+ flex: 0 0 80px;
412
+ height: 80px;
413
+ }
414
+ .uploadList-inline {
415
+ height: 48px;
416
+ line-height: 48px;
417
+ &-listItem {
418
+ flex: 0 0 48px
436
419
  }
420
+ }
421
+ }
437
422
 
438
- &-disabled {
439
- padding: 5px 0;
440
-
441
- .uploadList-old {
442
- margin: 0;
443
- }
444
- }
423
+ .ZUpload-disabled {
424
+ cursor: not-allowed;
425
+ border-color: @border-disabled;
426
+ .ZUploa-old-wrapper {
427
+ margin: 0px;
428
+ }
429
+ .uploadList-old {
430
+ margin: 0px;
431
+
432
+ }
433
+ .uploadList-listItem {
434
+ flex: 0 0 80px;
435
+ height: 80px;
445
436
  }
446
437
  }
@@ -0,0 +1,33 @@
1
+ .cascaderTable {
2
+ &-unit {
3
+ .unit-show()
4
+ }
5
+ &-btns {
6
+ text-align: right;
7
+ color: @textColor;
8
+ }
9
+ &-con {
10
+ width:100%;
11
+ overflow:hidden;
12
+ background-color: #FFF;
13
+ &-icon {
14
+ font-size: 18px;
15
+ color: @themeColor;
16
+ }
17
+ &-outspan {
18
+ display: inline-block;
19
+ height: 24px;
20
+ line-height: 24px;
21
+ padding: 0 5px;
22
+ margin: auto;
23
+ background: rgba(96, 144, 237, 0.15);
24
+ border-radius: 12px;
25
+ text-align: center;
26
+ color: @themeColor;
27
+ }
28
+ &-innerspan {
29
+ font-size: 14px;
30
+ color: @themeColor;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,12 @@
1
+ .controlShow {
2
+ &-val {
3
+ display: inline-block;
4
+ width: 100%;
5
+ height: 100%;
6
+ }
7
+
8
+ &-nodata {
9
+ color: rgba(0, 0, 0, 0.4);
10
+ font-weight: 400;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ .flatTable {
2
+ width: 100%;
3
+ &-unit {
4
+ .unit-show()
5
+ }
6
+ &-btns {
7
+ text-align: right;
8
+ color: @textColor;
9
+ }
10
+ &-con {
11
+ width:100%;
12
+ overflow:hidden;
13
+ &-icon {
14
+ font-size: 18px;
15
+ color: @themeColor;
16
+ }
17
+ &-outspan {
18
+ display: inline-block;
19
+ height: 24px;
20
+ line-height: 24px;
21
+ padding: 0 5px;
22
+ margin: auto;
23
+ background: rgba(96, 144, 237, 0.15);
24
+ border-radius: 12px;
25
+ text-align: center;
26
+ color: @themeColor;
27
+ }
28
+ &-innerspan {
29
+ font-size: 14px;
30
+ color: @themeColor;
31
+ }
32
+ }
33
+ }
@@ -49,8 +49,8 @@
49
49
  &-loop {
50
50
  padding: 10px;
51
51
  margin: 6px;
52
- border: 1px solid @greyColor;
53
- background-color: @ghostBg;
52
+ border: 1px solid @placeholderColor;
53
+ background-color: #F4F8FF;
54
54
  }
55
55
 
56
56
  &-item {
@@ -66,7 +66,7 @@
66
66
  margin: 5px 0px;
67
67
  text-align: center;
68
68
  font-size: 16px;
69
- color: @subColor;
69
+ color: @textColor;
70
70
  }
71
71
 
72
72
  &-control {
@@ -76,7 +76,7 @@
76
76
  &-blank {
77
77
  text-align: center;
78
78
  line-height: 30px;
79
- color: @subColor;
79
+ color: @textColor;
80
80
  }
81
81
 
82
82
  &-extra {
@@ -96,7 +96,7 @@
96
96
  display: inline-block;
97
97
  padding: 5px;
98
98
  &:hover {
99
- background-color: @hoverBg;
99
+ background-color: #E8F3FD;
100
100
  }
101
101
  }
102
102
 
@@ -154,6 +154,6 @@
154
154
  margin: 20px 0px;
155
155
  text-align: center;
156
156
  font-size: 16px;
157
- color: @subColor;
157
+ color: #B8BECC;
158
158
  }
159
159
  }
@@ -11,7 +11,12 @@
11
11
  @import "./controls/DshEditor.less";
12
12
  @import "./controls/MultipleInput.less";
13
13
  @import "./controls/DshLabels.less";
14
+ @import "./controls/BriLabels.less";
14
15
  @import "./controls/DshPackage.less";
16
+ @import "./controls/flatTable.less";
17
+ @import "./controls/cascaderTable.less";
18
+ @import "./controls/controlShow.less";
19
+ @import "./controls/DshDate.less";
15
20
 
16
21
  // form
17
22
  @import "./form/DshAdvSearchForm.less";
@@ -24,6 +29,8 @@
24
29
  @import "./list/DshSingleData.less";
25
30
  @import "./list/DshCrossTable.less";
26
31
  @import "./list/ivu_reset.less";
32
+ @import "./list/BriTable.less";
33
+ @import "./list/BriFlatTable.less";
27
34
 
28
35
  // other
29
36
  @import "./other/DshEditPanel.less";
@@ -34,6 +41,7 @@
34
41
  @import "./other/ZGantt.less";
35
42
  @import "./other/InfoCascader.less";
36
43
  @import "./other/ZLoading.less";
44
+ @import "./other/BriTransfer.less";
37
45
 
38
46
  // small
39
47
  @import "./small/DshButtons.less";
@@ -44,6 +52,8 @@
44
52
  @import "./small/DshTitle.less";
45
53
  @import "./small/DshSteps.less";
46
54
  @import "./small/DshControlDefine.less";
55
+ @import "./small/BriButton.less";
56
+ @import "./small/BriTree.less";
47
57
 
48
58
  // unit
49
59
  @import "./unit/DshFormItem.less";
@@ -0,0 +1,8 @@
1
+ .BriFlatTable {
2
+ &-main {
3
+ height: auto;
4
+ }
5
+ &-create {
6
+ margin-top: 8px;
7
+ }
8
+ }