bri-components 1.0.5 → 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 (98) 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 +13 -5
  12. package/lib/styles/bundle.css +0 -2
  13. package/package.json +2 -1
  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 +18 -12
  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 -3
  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 +4 -9
  43. package/src/components/list/DshBox/DshTable.vue +29 -39
  44. package/src/components/list/DshCascaderTable.vue +6 -11
  45. package/src/components/other/BriTransfer.vue +71 -0
  46. package/src/components/small/BriButton.vue +65 -0
  47. package/src/components/small/BriTree.vue +42 -0
  48. package/src/components/small/Ctooltip.vue +1 -1
  49. package/src/components/small/DshButtons.vue +12 -42
  50. package/src/components/unit/DshFormItem.vue +0 -2
  51. package/src/components/unit/DshUnit.vue +1 -1
  52. package/src/components/unit/unitMixin.js +4 -1
  53. package/src/index.js +24 -4
  54. package/src/styles/bundle.css +0 -2
  55. package/src/styles/common/common.less +2 -2
  56. package/src/styles/common/control.less +53 -0
  57. package/src/styles/common/index.less +1 -0
  58. package/src/styles/components/controls/BriLabels.less +23 -0
  59. package/src/styles/components/controls/DshCascader.less +3 -3
  60. package/src/styles/components/controls/DshCheckbox.less +1 -1
  61. package/src/styles/components/controls/DshCoordinates.less +3 -3
  62. package/src/styles/components/controls/DshDate.less +54 -0
  63. package/src/styles/components/controls/DshDaterange.less +1 -1
  64. package/src/styles/components/controls/DshEditor.less +27 -9
  65. package/src/styles/components/controls/DshInput.less +5 -5
  66. package/src/styles/components/controls/DshLabels.less +1 -1
  67. package/src/styles/components/controls/DshSelect.less +46 -30
  68. package/src/styles/components/controls/ZUpload.less +82 -91
  69. package/src/styles/components/controls/cascaderTable.less +33 -0
  70. package/src/styles/components/controls/controlShow.less +12 -0
  71. package/src/styles/components/controls/flatTable.less +33 -0
  72. package/src/styles/components/form/DshAdvSearchForm.less +6 -6
  73. package/src/styles/components/index.less +10 -0
  74. package/src/styles/components/list/BriFlatTable.less +8 -0
  75. package/src/styles/components/list/BriTable.less +155 -0
  76. package/src/styles/components/list/DshFlatTable.less +3 -8
  77. package/src/styles/components/list/evTable.less +1 -1
  78. package/src/styles/components/other/BriTransfer.less +65 -0
  79. package/src/styles/components/other/DshEditPanel.less +2 -2
  80. package/src/styles/components/other/DshMenuNav.less +5 -5
  81. package/src/styles/components/other/ZGantt.less +5 -5
  82. package/src/styles/components/small/BriButton.less +259 -0
  83. package/src/styles/components/small/BriTree.less +57 -0
  84. package/src/styles/components/small/Ctooltip.less +14 -0
  85. package/src/styles/components/small/DshButtons.less +1 -1
  86. package/src/styles/components/small/DshControlDefine.less +2 -2
  87. package/src/styles/components/small/DshDropdown.less +1 -1
  88. package/src/styles/components/small/DshPage.less +1 -1
  89. package/src/styles/components/small/DshTabs.less +2 -2
  90. package/src/styles/components/unit/DshFormItem.less +5 -6
  91. package/src/styles/index.less +1 -5
  92. package/src/styles/plugin/easytable.less +22 -0
  93. package/src/styles/plugin/index.less +2 -0
  94. package/src/styles/plugin/iview.less +33 -0
  95. package/src/styles/variables.less +71 -88
  96. package/src/utils/table.js +72 -978
  97. package/src/styles/define.less +0 -374
  98. package/src/styles/view_reset.less +0 -452
@@ -1,374 +0,0 @@
1
- // 下拉
2
- .dsh-dropdown {
3
- .list {
4
- &-item {
5
- padding: 10px 20px;
6
- color: #979797;
7
-
8
- &:hover {
9
- background-color: #FFF;
10
- color: @tabTextActiveColor;
11
- }
12
-
13
- &-icon {
14
- margin-right: 5px;
15
- }
16
-
17
- &-name {}
18
- }
19
- }
20
- }
21
-
22
- // 模态框
23
- .dsh-modal {
24
- &-content {
25
- min-height: 200px;
26
- padding: 20px 10px;
27
- }
28
-
29
- &-footer {
30
- padding: 10px;
31
- border-top: 1px solid @borderColor;
32
- text-align: center;
33
- }
34
- }
35
-
36
- .bri-modal-flex {
37
- display: flex;
38
- align-items: center;
39
- justify-content: center;
40
-
41
- .ivu-modal {
42
- top: 0px
43
- }
44
-
45
- .ivu-modal-content {
46
- height: 100%;
47
- display: flex;
48
- flex-direction: column;
49
- }
50
-
51
- .ivu-modal-body {
52
- flex: 1;
53
- overflow: auto;
54
- padding: 0px;
55
- }
56
- }
57
-
58
- .dsh-item {
59
- display: flex;
60
- flex-direction: row;
61
-
62
- &-left {
63
- width: 100px;
64
- }
65
-
66
- &-right {
67
- flex: 1;
68
- min-width: 0px;
69
- }
70
- }
71
-
72
- // 默认模态框brimodal
73
- .bri-modal {
74
- .ivu-modal-header {
75
- padding: 14px 36px;
76
-
77
- .ivu-modal-header-inner {
78
- color: @titleColor;
79
- font-size: @titleSize;
80
- font-weight: bold;
81
- }
82
- }
83
-
84
- .ivu-modal-body {
85
- padding: 16px;
86
- }
87
-
88
- .ivu-modal-footer {
89
- display: flex;
90
- justify-content: space-between;
91
- padding: 20px;
92
-
93
- button {
94
- width: 48%;
95
- height: 44px;
96
- line-height: 44px;
97
- }
98
- }
99
-
100
- &-content {
101
- padding: 20px 0;
102
- }
103
-
104
- &-footer {
105
- display: flex;
106
- justify-content: space-between;
107
- padding: 20px 0;
108
-
109
- button {
110
- flex: 1;
111
- margin: 0 10px;
112
- height: 44px;
113
- line-height: 44px;
114
-
115
- &:first-child {
116
- margin-left: 0;
117
- }
118
-
119
- &:last-child {
120
- margin-right: 0;
121
- }
122
- }
123
- }
124
- }
125
-
126
- // 默认底部flex布局
127
- .bri-footer {
128
- width: 100%;
129
- display: flex;
130
- justify-content: space-between;
131
- padding: 20px 0;
132
-
133
- button {
134
- flex: 1;
135
- margin: 0 10px;
136
- height: 44px;
137
- line-height: 44px;
138
-
139
- &:first-child {
140
- margin-left: 0;
141
- }
142
-
143
- &:last-child {
144
- margin-right: 0;
145
- }
146
- }
147
- }
148
-
149
- .dsh-footer-btns {
150
- width: 100%;
151
- display: flex;
152
- justify-content: space-between;
153
- padding: 20px 0;
154
-
155
- button {
156
- flex: 1;
157
- margin: 0 10px;
158
- height: 44px;
159
- line-height: 44px;
160
-
161
- &:first-child {
162
- margin-left: 0;
163
- }
164
-
165
- &:last-child {
166
- margin-right: 0;
167
- }
168
- }
169
- }
170
-
171
- .ycFormItem {
172
- input:not(.ivu-select-selection input),
173
- textarea,
174
- .ivu-input-number,
175
- .ivu-select-selection {
176
- border-color: @formBorderColor;
177
- background-color: @white;
178
- border-radius: 0px;
179
-
180
- &:focus,
181
- &:hover {
182
- border-color: @formFocusBorderColor !important;
183
- box-shadow: 0 0 0 1px rgba(61,132,238, 0.2) inset;
184
- }
185
- }
186
-
187
- .ivu-input-number-disabled,
188
- input:disabled:not(.ivu-select-selection input),
189
- textarea:disabled,
190
- .ivu-select-disabled .ivu-select-selection {
191
- background-color: @white;
192
- cursor: pointer;
193
- }
194
-
195
- .ivu-input-number-focused,
196
- .ivu-select-selection-focused {
197
- border-color: @formFocusBorderColor !important;
198
- }
199
-
200
- .ivu-input-number-handler-wrap {
201
- background-color: @cscecInputBg;
202
- }
203
-
204
- .ivu-radio-group-button .ivu-radio-wrapper-checked {
205
- background: #fff;
206
- border-color: @themeColor;
207
- color: @themeColor;
208
- box-shadow: -1px 0 0 0 @themeColor
209
- }
210
-
211
- .ivu-radio-group-button .ivu-radio-wrapper-checked:before,
212
- .ivu-radio-group-button .ivu-radio-wrapper:after {
213
- background: @themeColor;
214
- display: none;
215
- }
216
-
217
- .ivu-radio-group-button .ivu-radio-wrapper-checked:first-child {
218
- border-color: @themeColor;
219
- box-shadow: none;
220
- }
221
-
222
- .ivu-radio-group-button .ivu-radio-wrapper-checked:hover {
223
- border-color: @themeColor;
224
- color: @themeColor;
225
- }
226
-
227
- .ivu-radio-group-button .ivu-radio-wrapper:hover {
228
- color: @themeColor;
229
- }
230
-
231
- .ivu-radio-group-button .ivu-radio-wrapper-checked.ivu-radio-focus {
232
- box-shadow: -1px 0 0 0 @themeColor
233
- }
234
-
235
- .ivu-radio-group-button .ivu-radio-wrapper-checked.ivu-radio-focus:first-child {
236
- box-shadow: none;
237
- }
238
-
239
- .ivu-tooltip {
240
- display: flex;
241
- }
242
- }
243
-
244
- // form查看模式rimless公用样式
245
- .control {
246
- &-default {
247
- &-text {
248
- line-height: 20px;
249
- padding: 5px 0;
250
- }
251
-
252
- &-edit {
253
- border: 1px solid @formBorderColor;
254
- border-radius: 0px;
255
- padding: 0 5px;
256
- min-height: 32px;
257
- background-color: #fff;
258
- }
259
-
260
- &-readonly {
261
- border: 1px solid @readonlyBorderColor;
262
- border-radius: 4px;
263
- height: 32px;
264
- cursor: not-allowed;
265
- color: @activeDarkGreyColor;
266
- padding: 0 5px;
267
- background-color: #fff;
268
- }
269
-
270
- &-disabled {
271
- border: 1px solid @readonlyBorderColor;
272
- border-radius: 4px;
273
- height: 32px;
274
- cursor: not-allowed;
275
- background-color: @disabledBgColor;
276
- color: @disabledColor;
277
- }
278
- }
279
-
280
- &-rimless {
281
- width: 100%;
282
-
283
- &-edit {
284
- border: 1px solid @formBorderColor;
285
- border-radius: 4px;
286
- padding: 0 5px;
287
- min-height: 32px;
288
- background-color: #fff;
289
- }
290
-
291
- &-readonly {
292
- border: 1px solid @formBorderColor;
293
- padding: 0 5px;
294
- height: 32px;
295
- line-height: 32px;
296
- font-size: @formLabelSize;
297
- background-color: @formBgColor;
298
- color: @formTextColor;
299
- font-family: "Microsoft YaHei";
300
- }
301
-
302
- &-disabled {
303
- border: 1px solid @formBorderColor;
304
- padding: 0 5px;
305
- height: 32px;
306
- line-height: 32px;
307
- font-size: @formLabelSize;
308
- cursor: not-allowed;
309
- background-color: @formBgColor;
310
- color: @disabledColor;
311
- }
312
-
313
- &-span24 {
314
- padding-top: 5px;
315
- padding-bottom: 5px;
316
- }
317
- }
318
-
319
- &-rimless.DshDivider,
320
- &-rimless.DshFlatTable,
321
- &-rimless.DshCascaderTable,
322
- &-rimless.reference,
323
- &-rimless.referenceBy {
324
- margin-bottom: 10px;
325
- }
326
- }
327
-
328
- // 表格内控件
329
- .EvTable {
330
- font-size: @textSize !important;
331
-
332
- .v-table-header {
333
- font-size: @textSize !important;
334
- }
335
- }
336
-
337
- .table-select-common {
338
- display: inline-block;
339
- text-align: center;
340
- width: fit-content;
341
- max-width: 100%;
342
- line-height: 100%;
343
- vertical-align: middle;
344
- border-radius: @textSize;
345
- padding: 5px 10px;
346
- font-size: @textSize;
347
- height: 24px;
348
- }
349
-
350
- .table-icon-common {
351
- font-size: @commonTitleSize;
352
- color: @themeColor
353
- }
354
-
355
- .table-text-common {
356
- font-size: @textSize;
357
- color: @themeColor
358
- }
359
-
360
- .table-reference-icon {
361
- font-size: @textSize;
362
- color: @themeColor;
363
- padding-right: 3px;
364
- }
365
-
366
- .table-btn-common {
367
- padding: 0 5px;
368
- font-size: @textSmallSize;
369
- color: @themeColor;
370
- }
371
-
372
- .DshFormItem-editor {
373
- overflow: visible !important;
374
- }