bri-components 1.1.6 → 1.2.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 (111) 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 +6 -6
  9. package/lib/styles/bri-components.css +1 -1
  10. package/package.json +1 -1
  11. package/src/abolish/DshFileShow.less +61 -0
  12. package/src/{components/small → abolish}/DshFileShow.vue +30 -105
  13. package/src/components/controls/base/BriUpload/{index.vue → BriUpload.vue} +3 -3
  14. package/src/components/controls/base/BriUpload/{upload-list.vue → uploadList.vue} +17 -13
  15. package/src/components/controls/base/BriUpload/uploadMixin.js +1 -5
  16. package/src/components/controls/base/DshCascader/DshCascader.vue +91 -93
  17. package/src/components/controls/base/DshCheckbox.vue +3 -3
  18. package/src/components/controls/base/DshCoordinates.vue +2 -2
  19. package/src/components/controls/base/DshDate.vue +21 -10
  20. package/src/components/controls/base/DshEditor.vue +33 -48
  21. package/src/components/controls/base/DshInput.vue +21 -19
  22. package/src/components/controls/base/DshNumber/DshNumber.vue +23 -22
  23. package/src/components/controls/base/DshSelect.vue +2 -2
  24. package/src/components/controls/base/DshSwitch.vue +2 -2
  25. package/src/components/controls/controlMap.js +1 -1
  26. package/src/components/controls/controlMixin.js +5 -8
  27. package/src/components/controls/senior/BriLabels.vue +72 -54
  28. package/src/components/controls/special/DshUndeveloped.vue +0 -6
  29. package/src/components/form/DshForm.vue +4 -17
  30. package/src/components/list/BriTable.vue +1 -1
  31. package/src/components/list/{ZTree.vue → BriTree.vue} +9 -8
  32. package/src/components/list/DshBox/DshCard.vue +4 -4
  33. package/src/components/list/DshBox/DshCrossTable.vue +4 -4
  34. package/src/components/list/DshBox/DshList.vue +2 -2
  35. package/src/components/list/DshBox/DshPanel.vue +5 -5
  36. package/src/components/list/DshBox/DshTable.vue +21 -80
  37. package/src/components/list/DshCascaderTable.vue +2 -2
  38. package/src/components/other/{ZCode.vue → BriCode.vue} +2 -9
  39. package/src/components/other/{ZCollapseTree.vue → BriCollapseTree.vue} +37 -16
  40. package/src/components/other/{ZIframe.vue → BriIframe.vue} +7 -23
  41. package/src/components/other/{ZLoading.vue → BriLoading.vue} +25 -11
  42. package/src/components/other/BriSvg.vue +2 -2
  43. package/src/components/other/DshAvatar.vue +21 -69
  44. package/src/components/other/DshColorPanel.vue +0 -43
  45. package/src/components/small/{Ctooltip.vue → BriTooltip.vue} +2 -2
  46. package/src/components/small/DshButtons.vue +2 -2
  47. package/src/components/small/DshCrumbs.vue +1 -0
  48. package/src/components/small/DshCrumbsItem.vue +5 -3
  49. package/src/components/small/DshIcons.vue +0 -14
  50. package/src/components/small/DshTags.vue +7 -2
  51. package/src/components/unit/DshFormItem.vue +4 -4
  52. package/src/components/unit/DshUnit.vue +0 -8
  53. package/src/index.js +93 -104
  54. package/src/styles/common/control.less +56 -51
  55. package/src/styles/components/controls/base/BriUpload/BriUpload.less +159 -0
  56. package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +81 -0
  57. package/src/styles/components/controls/base/BriUpload/index.less +3 -0
  58. package/src/styles/components/controls/base/BriUpload/uploadList.less +164 -0
  59. package/src/styles/components/controls/base/DshCascader/DshCascader.less +124 -0
  60. package/src/styles/components/controls/base/DshCascader/index.less +2 -0
  61. package/src/styles/components/controls/base/DshCheckbox.less +3 -2
  62. package/src/styles/components/controls/base/DshDate.less +12 -0
  63. package/src/styles/components/controls/base/DshEditor.less +25 -47
  64. package/src/styles/components/controls/base/DshInput.less +9 -1
  65. package/src/styles/components/controls/base/DshNumber.less +43 -26
  66. package/src/styles/components/controls/base/DshSelect.less +11 -0
  67. package/src/styles/components/controls/senior/BriLabels.less +29 -12
  68. package/src/styles/components/controls/special/DshBack.less +3 -0
  69. package/src/styles/components/controls/special/DshUndeveloped.less +3 -0
  70. package/src/styles/components/form/DshAdvSearchForm.less +0 -1
  71. package/src/styles/components/form/DshDefaultSearch.less +1 -1
  72. package/src/styles/components/form/DshForm.less +13 -0
  73. package/src/styles/components/index.less +43 -36
  74. package/src/styles/components/list/BriTable.less +9 -9
  75. package/src/styles/components/list/{ZTree.less → BriTree.less} +11 -7
  76. package/src/styles/components/list/DshBox/DshTable.less +11 -0
  77. package/src/styles/components/other/BriCode.less +5 -0
  78. package/src/styles/components/other/{ZCollapseTree.less → BriCollapseTree.less} +2 -2
  79. package/src/styles/components/other/BriIframe.less +16 -0
  80. package/src/styles/components/other/{ZLoading.less → BriLoading.less} +3 -3
  81. package/src/styles/components/other/DshAvatar.less +64 -0
  82. package/src/styles/components/other/DshBtnModal.less +3 -0
  83. package/src/styles/components/other/DshColorPanel.less +40 -0
  84. package/src/styles/components/other/DshEditPanel.less +2 -2
  85. package/src/styles/components/small/BriButton.less +3 -2
  86. package/src/styles/components/small/{Ctooltip.less → BriTooltip.less} +2 -1
  87. package/src/styles/components/small/DshCrumbs.less +0 -0
  88. package/src/styles/components/small/DshDropdown.less +5 -3
  89. package/src/styles/components/small/DshIcons.less +7 -0
  90. package/src/styles/components/small/DshTags.less +17 -0
  91. package/src/styles/components/unit/DshFormItem.less +4 -4
  92. package/src/styles/components/unit/DshUnit.less +5 -0
  93. package/src/utils/table.js +8 -0
  94. package/src/components/controls/controlShow.vue +0 -44
  95. package/src/components/other/YNoPermission.vue +0 -45
  96. package/src/components/small/BriTree.vue +0 -42
  97. package/src/styles/components/controls/base/BriUpload.less +0 -436
  98. package/src/styles/components/controls/base/DshCascader.less +0 -110
  99. package/src/styles/components/controls/controlShow.less +0 -12
  100. package/src/styles/components/other/ZCode.less +0 -1
  101. /package/src/{styles/components/other → abolish}/BriTransfer.less +0 -0
  102. /package/src/{components/other → abolish}/BriTransfer.vue +0 -0
  103. /package/src/{styles/components/small → abolish}/BriTree.less +0 -0
  104. /package/src/components/{small → list}/DshPage.vue +0 -0
  105. /package/src/components/other/{ZGantt.vue → BriGantt.vue} +0 -0
  106. /package/src/components/other/{menu/DshMenu.vue → DshMenu.vue} +0 -0
  107. /package/src/components/other/{menu/DshMenuNav.vue → DshMenuNav.vue} +0 -0
  108. /package/src/styles/components/controls/base/{InfoCascader.less → DshCascader/InfoCascader.less} +0 -0
  109. /package/src/styles/components/{small → list}/DshPage.less +0 -0
  110. /package/src/styles/components/other/{ZGantt.less → BriGantt.less} +0 -0
  111. /package/src/{components/controls/base/BriUpload/upload-listItem.vue → styles/components/small/DshCrumbItem.less} +0 -0
@@ -1,436 +0,0 @@
1
- .BriUpload {
2
- width: 100%;
3
- height: 100%;
4
- position: relative;
5
- overflow: hidden;
6
- border: 1px solid @borderColor;
7
- border-radius: @borderRadius;
8
- background-color: @white;
9
-
10
- // 外围
11
- &-old {
12
- overflow: hidden;
13
- display: flex;
14
-
15
- &-wrapper {
16
- min-width: 120px;
17
- height: 100%;
18
- margin: 16px 0px 16px 16px;
19
- border-radius: 0px;
20
- border: none;
21
- &:hover {
22
- border: none
23
- }
24
- }
25
-
26
- &-imageadd {
27
- .dsh-flex-col-center-center();
28
- width: 120px;
29
- height: 120px;
30
- position: relative;
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;
38
- }
39
- }
40
-
41
- &-circle {
42
- position: absolute;
43
- top: 50%;
44
- left: 50%;
45
- width: 50px !important;
46
- height: 50px !important;
47
- margin-top: -25px;
48
- margin-left: -25px;
49
- border-radius: 50%;
50
- background-color: @inputBg-readonly;
51
-
52
- i {
53
- color: @scuess-color;
54
- font-size: 40px;
55
- }
56
- }
57
- }
58
-
59
- &-new,
60
- &-inline {
61
- display: flex;
62
-
63
- &-wrapper {
64
- min-width: 30px;
65
- background-color: @border-readonly;
66
- height: 30px;
67
- line-height: 30px;
68
- border: none;
69
- border-radius: 0px !important;
70
- &:hover {
71
- border: none
72
- }
73
- }
74
-
75
- &-imageadd {
76
- .dsh-flex-row-center-center();
77
- height: 30px;
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;
85
- }
86
- }
87
-
88
- &-circle {
89
- position: absolute;
90
- top: 50%;
91
- left: 50%;
92
- width: 24px !important;
93
- height: 24px !important;
94
- margin-top: -12px;
95
- margin-left: -12px;
96
- background-color: #f4f5fa;
97
- border-radius: 50%;
98
- i {
99
- color: @scuess-color;
100
- font-size: 24px;
101
- }
102
- }
103
- }
104
-
105
- // 列表样式
106
- .uploadList {
107
- width: 100%;
108
- overflow: auto;
109
-
110
- // 普通文件
111
- &-old {
112
- margin: 16px;
113
- }
114
-
115
- &-nodata {
116
- width: 100%;
117
- height: 100%;
118
- text-align: center;
119
- line-height: 120px;
120
- color: @placeholderColor;
121
- white-space: nowrap;
122
-
123
- span {
124
- margin-left: 5px;
125
- }
126
- }
127
-
128
- &-list {
129
- display: flex;
130
- flex-wrap: nowrap;
131
- }
132
-
133
- &-listItem {
134
- flex: 0 0 120px;
135
- height: 120px;
136
- margin-right: 10px;
137
- background: #f4f5fa;
138
- text-align: center;
139
- overflow: hidden;
140
- display: inline-flex;
141
- flex-direction: column;
142
- justify-content: space-between;
143
- position: relative;
144
- border-radius: @borderRadius;
145
- &:hover {
146
- .uploadList-listItem-action {
147
- display: flex !important;
148
- }
149
- }
150
-
151
- &-show {
152
- display: flex;
153
- overflow: hidden;
154
- align-items: center;
155
- justify-content: center;
156
- flex: 2;
157
- min-height: 50px;
158
-
159
- img {
160
- max-width: 100%;
161
- max-height: 100%;
162
- }
163
- }
164
-
165
- &-name {
166
- flex: 1;
167
- display: flex;
168
- max-height: 32px;
169
-
170
- &-title {
171
- padding: 0 8px;
172
- overflow: hidden;
173
- text-overflow: ellipsis;
174
- white-space: nowrap;
175
- color: @themeColor;
176
- }
177
- }
178
-
179
- &-action {
180
- display: none !important;
181
- position: absolute;
182
- right: 0px;
183
- top: 0px;
184
- left: 0px;
185
- bottom: 0px;
186
- background-color: @placeholderColor;
187
- align-items: center;
188
- justify-content: center;
189
-
190
- &-icon {
191
- width: 22px;
192
- height: 22px;
193
- line-height: 22px;
194
- color: #fff;
195
- margin-left: 2px;
196
- }
197
- }
198
- }
199
-
200
- // 内部表格inline模式
201
- &-inline {
202
- height: 30px;
203
- line-height: 30px;
204
- &-list {
205
- width: 100%;
206
- height: 100%;
207
- display: flex;
208
- flex-wrap: nowrap;
209
- overflow-x: auto;
210
- overflow-y: hidden;
211
- padding-left: 3px;
212
- }
213
-
214
- &-listItem {
215
- flex: 0 0 48px;
216
- background: #f4f5fa;
217
- margin-right: 3px;
218
- position: relative;
219
- border-radius: @borderRadius;
220
- img {
221
- max-width: 100%;
222
- max-height: 100%;
223
- margin: auto;
224
- }
225
-
226
- &-action {
227
- display: none !important;
228
- position: absolute;
229
- left: 0;
230
- right: 0;
231
- top: 0;
232
- bottom: 0;
233
- background-color: @placeholderColor;
234
- color: #fff;
235
- align-items: center;
236
- justify-content: center;
237
- i {
238
- margin: 0px;
239
- }
240
- }
241
-
242
- &:hover {
243
- .uploadList-inline-listItem-action {
244
- display: flex !important;
245
- animation: toTop 0.1s;
246
- }
247
- }
248
-
249
- @keyframes toTop {
250
- from {
251
- top: 100%;
252
- }
253
-
254
- to {
255
- top: 0;
256
- }
257
- }
258
- }
259
-
260
- &-nodata {
261
- padding-left: 7px;
262
- color: @placeholderColor;
263
- }
264
- }
265
- }
266
- }
267
-
268
- // dropdownItem
269
- .uploadList-new-listItem {
270
- width: 150px;
271
- height: 37px;
272
- display: inline-flex;
273
- justify-content: space-between;
274
-
275
- &-show {
276
- flex: 0 0 34px;
277
- margin-right: 10px;
278
- background: #e9edf1;
279
- border-radius: 0px;
280
- display: flex;
281
- align-items: center;
282
- justify-content: center;
283
- overflow: hidden;
284
-
285
- img {
286
- max-width: 100%;
287
- max-height: 100%;
288
- }
289
- }
290
-
291
- &-right {
292
- height: 100%;
293
- flex: 1;
294
- overflow: hidden;
295
- text-align: right;
296
- }
297
-
298
- &-name {
299
- &-title {
300
- overflow: hidden;
301
- text-overflow: ellipsis;
302
- white-space: nowrap;
303
- color: @themeColor;
304
- line-height: 14px;
305
- }
306
- }
307
-
308
- &-action {
309
- display: block !important;
310
-
311
- &-icon {
312
- color: #9a9a9a;
313
- }
314
- }
315
- }
316
-
317
- .BriUploadImage {
318
- position: relative;
319
-
320
- &-set {
321
- width: 100%;
322
-
323
- &-img {
324
- width: 100px;
325
- height: 100px;
326
- float: left;
327
- background-repeat: no-repeat;
328
- background-position: center;
329
- background-size: contain;
330
- background-color: #fff;
331
- border: 1px solid @borderColor;
332
- border-radius: 0px;
333
- position: relative;
334
- overflow: hidden;
335
-
336
- &-action {
337
- color: @themeColor;
338
- cursor: pointer;
339
- }
340
-
341
- &-circle {
342
- position: absolute;
343
- top: 0px;
344
- bottom: 0px;
345
- left: 0px;
346
- right: 0px;
347
- background-color: #f4f5fa;
348
- display: flex;
349
- align-items: center;
350
- justify-content: center;
351
-
352
- .circle {
353
- width: 50px !important;
354
- height: 50px !important;
355
- }
356
-
357
- i {
358
- color: #5cb85c;
359
- font-size: 40px;
360
- }
361
- }
362
- }
363
-
364
- &-avatar {
365
- background-size: cover;
366
- }
367
-
368
- .wrap {
369
- width: 100px;
370
- height: 32px;
371
- position: relative;
372
- overflow: hidden;
373
- display: inline-block;
374
- line-height: 18px;
375
- text-align: center;
376
- vertical-align: middle;
377
- cursor: pointer;
378
-
379
- button {
380
- position: absolute;
381
- bottom: 0;
382
- left: 0;
383
- }
384
-
385
- .file {
386
- position: absolute;
387
- bottom: 0;
388
- left: 0;
389
- margin: 0;
390
- border: solid transparent;
391
- opacity: 0;
392
- filter: alpha(opacity=0);
393
- cursor: pointer;
394
- }
395
- }
396
- }
397
- }
398
-
399
- .BriUpload-readonly {
400
- border: none;
401
- border-radius: 0px;
402
- background-color: transparent;
403
- .ZUploa-old-wrapper {
404
- margin: 0px;
405
- }
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
419
- }
420
- }
421
- }
422
-
423
- .BriUpload-disabled {
424
- .control-disabled();
425
- .ZUploa-old-wrapper {
426
- margin: 0px;
427
- }
428
- .uploadList-old {
429
- margin: 0px;
430
-
431
- }
432
- .uploadList-listItem {
433
- flex: 0 0 80px;
434
- height: 80px;
435
- }
436
- }
@@ -1,110 +0,0 @@
1
- .DshCascader {
2
- width: 100%;
3
-
4
- #nodata () {
5
- display: inline-block;
6
- padding: 0px 8px;
7
- color: @placeholderColor;
8
- }
9
-
10
- // 多选
11
- &-multiple {
12
- width: 100%;
13
-
14
- &-input {
15
- .hasdata {
16
- width: 100%;
17
- height: 100%;
18
-
19
- &-multiple {
20
- width: 100%;
21
- height: 100%;
22
- padding: 0px 8px;
23
- .bri-scrollbar3();
24
- overflow-y: hidden;
25
- }
26
- }
27
-
28
- .nodata {
29
- #nodata();
30
- }
31
- }
32
- }
33
-
34
- // 单选 -新模式
35
- &-custom {
36
- &-input {
37
- .hasdata {
38
- width: 100%;
39
- height: 100%;
40
- padding: 0px 8px;
41
-
42
- &-text {
43
- .dsh-ellipsis();
44
- }
45
-
46
- &-clear {
47
- margin-left: 5px;
48
- }
49
- }
50
-
51
- .nodata {
52
- #nodata();
53
- }
54
- }
55
- }
56
-
57
- // 单选 -默认模式
58
- &-single {
59
- width: 100%;
60
- }
61
-
62
- // 查看
63
- &-show {
64
- .hasdata {
65
- width: 100%;
66
- height: 100%;
67
-
68
- &-multiple {
69
- width: 100%;
70
- height: 100%;
71
- padding: 0px 8px;
72
- .bri-scrollbar3();
73
- overflow-y: hidden;
74
- }
75
- }
76
-
77
- .nodata {
78
- #nodata();
79
- }
80
- }
81
-
82
- &-multiplerow {
83
- height: 70px;
84
-
85
- .hasdata {
86
- &-multiple {
87
- padding: 4px 8px;
88
- overflow-y: auto;
89
- display: flex;
90
- flex-wrap: wrap;
91
- }
92
- }
93
- }
94
- }
95
-
96
- .ivu-cascader {
97
- &-label {
98
- padding-right: 24px;
99
- }
100
-
101
- &-transfer {
102
- max-height: 400px !important;
103
-
104
- .ivu-cascader-menu {
105
- max-height: 400px;
106
- height: auto;
107
- max-width: 300px;
108
- }
109
- }
110
- }
@@ -1,12 +0,0 @@
1
- .controlShow {
2
- &-val {
3
- .dsh-ellipsis();
4
- height: 100%;
5
- }
6
-
7
- &-nodata {
8
- .dsh-ellipsis();
9
- color: rgba(0, 0, 0, 0.4);
10
- font-weight: 400;
11
- }
12
- }
File without changes