bri-components 1.1.1 → 1.1.3

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 (91) 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/10.bri-components.min.js +1 -0
  4. package/lib/2.bri-components.min.js +1 -1
  5. package/lib/3.bri-components.min.js +1 -1
  6. package/lib/4.bri-components.min.js +1 -1
  7. package/lib/5.bri-components.min.js +1 -1
  8. package/lib/6.bri-components.min.js +1 -1
  9. package/lib/7.bri-components.min.js +1 -1
  10. package/lib/8.bri-components.min.js +1 -1
  11. package/lib/9.bri-components.min.js +1 -1
  12. package/lib/bri-components.min.js +6 -6
  13. package/package.json +1 -1
  14. package/src/components/controls/base/DshCascader.vue +14 -11
  15. package/src/components/controls/base/DshCascaderMultiple.vue +13 -4
  16. package/src/components/controls/base/DshCheckbox.vue +16 -19
  17. package/src/components/controls/base/DshCoordinates.vue +15 -11
  18. package/src/components/controls/base/DshDate.vue +24 -37
  19. package/src/components/controls/base/DshDaterange.vue +3 -1
  20. package/src/components/controls/base/DshEditor.vue +73 -49
  21. package/src/components/controls/base/DshInput.vue +66 -52
  22. package/src/components/controls/base/DshNumber/BriInputNumber/BriInputNumber.vue +1 -1
  23. package/src/components/controls/base/DshNumber/DshNumber.vue +50 -48
  24. package/src/components/controls/base/DshNumberange.vue +11 -21
  25. package/src/components/controls/base/DshSelect.vue +12 -16
  26. package/src/components/controls/base/YSerialNumber.vue +10 -3
  27. package/src/components/controls/base/ZUpload/index.vue +16 -12
  28. package/src/components/controls/base/ZUpload/upload-list.vue +20 -13
  29. package/src/components/controls/base/ZUpload/uploadMixin.js +5 -1
  30. package/src/components/controls/base/textMultiple/DshTextMultiple.vue +13 -5
  31. package/src/components/controls/base/textMultiple/MultipleInput.vue +5 -5
  32. package/src/components/controls/controlMap.js +7 -5
  33. package/src/components/controls/controlMixin.js +54 -30
  34. package/src/components/controls/controlShow.vue +44 -0
  35. package/src/components/controls/{base → senior}/BriLabels.vue +55 -24
  36. package/src/components/controls/{base → senior}/DshPackage.vue +6 -25
  37. package/src/components/controls/senior/cascaderTable.vue +91 -84
  38. package/src/components/controls/senior/flatTable.vue +20 -17
  39. package/src/components/controls/{base → special}/DshBack.vue +4 -4
  40. package/src/components/controls/{base → special}/DshUndeveloped.vue +3 -1
  41. package/src/components/form/DshAdvSearchForm.vue +10 -1
  42. package/src/components/form/DshForm.vue +14 -20
  43. package/src/components/list/BriFlatTable.vue +5 -7
  44. package/src/components/list/BriTable.vue +12 -8
  45. package/src/components/list/DshBox/DshCard.vue +2 -2
  46. package/src/components/list/DshBox/DshCrossTable.vue +4 -8
  47. package/src/components/list/DshBox/DshSingleData.vue +0 -7
  48. package/src/components/list/DshCascaderTable.vue +3 -4
  49. package/src/components/list/ZTree.vue +1 -1
  50. package/src/components/other/ZLoading.vue +32 -3
  51. package/src/components/small/BriDrawer.vue +132 -0
  52. package/src/components/small/DshButtons.vue +3 -3
  53. package/src/components/small/DshControlDefine.vue +1 -1
  54. package/src/components/small/DshModal.vue +0 -110
  55. package/src/components/unit/DshFormItem.vue +42 -46
  56. package/src/components/unit/DshUnit.vue +10 -13
  57. package/src/components/unit/unitMixin.js +4 -9
  58. package/src/index.js +12 -14
  59. package/src/styles/common/box.less +29 -0
  60. package/src/styles/common/control.less +50 -12
  61. package/src/styles/components/controls/BriLabels.less +33 -17
  62. package/src/styles/components/controls/DshCascader.less +7 -3
  63. package/src/styles/components/controls/DshCheckbox.less +45 -42
  64. package/src/styles/components/controls/DshCoordinates.less +24 -27
  65. package/src/styles/components/controls/DshDate.less +1 -52
  66. package/src/styles/components/controls/DshEditor.less +51 -34
  67. package/src/styles/components/controls/DshInput.less +13 -34
  68. package/src/styles/components/controls/DshNumber.less +33 -0
  69. package/src/styles/components/controls/DshNumberange.less +8 -3
  70. package/src/styles/components/controls/DshSelect.less +78 -92
  71. package/src/styles/components/controls/ZUpload.less +1 -2
  72. package/src/styles/components/controls/cascaderTable.less +10 -24
  73. package/src/styles/components/controls/controlShow.less +3 -1
  74. package/src/styles/components/controls/flatTable.less +10 -23
  75. package/src/styles/components/form/DshAdvSearchForm.less +0 -9
  76. package/src/styles/components/form/DshDefaultSearch.less +0 -20
  77. package/src/styles/components/index.less +3 -2
  78. package/src/styles/components/other/InfoCascader.less +4 -0
  79. package/src/styles/components/other/ZLoading.less +23 -7
  80. package/src/styles/components/small/BriDrawer.less +34 -0
  81. package/src/styles/components/small/DshControlDefine.less +6 -8
  82. package/src/styles/components/small/DshDropdown.less +12 -8
  83. package/src/styles/components/small/DshModal.less +207 -0
  84. package/src/styles/components/small/DshTitle.less +1 -1
  85. package/src/styles/components/unit/DshFormItem.less +7 -3
  86. package/src/styles/plugin/iview.less +7 -3
  87. package/src/styles/reset.less +16 -2
  88. package/src/utils/table.js +5 -6
  89. package/src/components/controls/base/DshLabels.vue +0 -309
  90. package/src/components/controls/base/controlShow.vue +0 -52
  91. package/src/styles/components/controls/DshLabels.less +0 -187
@@ -1,64 +1,81 @@
1
1
  .DshEditor {
2
- &-unit {
3
- .unit-show();
4
- display: inline-block;
2
+ .DshEditor-common () {
3
+
4
+ };
5
+
6
+
7
+ &-edit {
8
+ border: 1px solid @borderColor;
9
+ cursor: pointer;
10
+
11
+ &:hover {
12
+ border-color: @theme-hover;
13
+ }
14
+
15
+ &-placeholder {
16
+ color: @input-placeholder-color;
17
+ }
5
18
  }
19
+
6
20
  &-wrap {
7
21
  border: 1px solid @themeColor;
8
22
  border-radius: 4px;
9
23
  background: #fff;
10
24
 
25
+ &-toolbar {
26
+ margin-top: 5px;
27
+ }
28
+
29
+ &-text {
30
+ min-height: 130px;
31
+ ul li {
32
+ list-style: disc;
33
+ }
34
+
35
+ ol li {
36
+ list-style: auto;
37
+ }
38
+ }
39
+
11
40
  &-btn {
12
41
  text-align: right;
13
42
  padding: 10px;
14
43
  }
15
44
  }
45
+
46
+ &-unit {
47
+ .unit-show();
48
+ display: inline-block;
49
+
50
+ &-nodata {
51
+ .control-notext();
52
+ }
53
+ }
54
+
16
55
  &-show {
17
56
  height: 100%;
18
57
  min-height: 32px;
19
58
  padding: 4px 10px;
20
59
  border-radius: @borderRadius;
21
- p {
22
- font-size: 14px !important;
23
- }
24
60
 
25
- li {
26
- margin-left: 20px;
27
- }
28
-
29
- ul li {
30
- list-style: disc;
61
+ &-disabled {
62
+ .control-disabled();
31
63
  }
32
64
 
33
- ol li {
34
- list-style: auto;
35
- }
36
65
  &-nodata {
66
+ padding-left: 0px;
37
67
  border: none;
38
68
  color: @grey3;
39
- padding-left: 0px;
40
69
  }
41
- &-disabled {
42
- border: 1px solid @border-disabled;
43
- cursor: not-allowed;
44
- }
45
- }
46
- &-edit {
47
- border: 1px solid @borderColor;
48
- cursor: pointer;
49
- &-placeholder {
50
- color: @input-placeholder-color;
70
+
71
+ p {
72
+ font-size: 14px !important;
51
73
  }
52
- &:hover {
53
- border-color: @theme-hover;
74
+
75
+ li {
76
+ margin-left: 20px;
54
77
  }
55
- }
56
- .toolbar {
57
- margin-top: 5px;
58
- }
59
78
 
60
- .text {
61
- min-height: 130px;
62
79
  ul li {
63
80
  list-style: disc;
64
81
  }
@@ -1,46 +1,25 @@
1
1
  .DshInput {
2
2
  width: 100%;
3
3
 
4
- &-notAllowed {
5
- border: 1px solid #A7A7A7;
6
- // border-radius: 4px;
7
- height: 32px;
8
- cursor: not-allowed;
9
- }
10
-
11
- &-ellipsis-readonly {
12
- color: @textColor-readonly;
13
- border-color: @border-readonly;
14
- }
15
-
16
- &-ellipsis-disabled {
17
- background-color: @inputBg-disabled;
18
- color: @textColor-disabled;
19
- border-color: @border-readonly;
20
- }
21
-
22
- &-textarea-show {
23
- white-space: pre-wrap;
24
- min-height: 32px;
25
- height: auto;
26
-
27
- &.control-default-readonly{
28
- height: auto;
4
+ &-show {
5
+ &-textarea {
6
+ display: inline-block;
7
+ width: 100%;
8
+ height: auto;
9
+ white-space: pre-wrap;
10
+ min-height: 32px;
29
11
  }
30
12
  }
31
-
32
-
33
13
  }
34
14
 
35
- .DshInput {
36
- .ivu-tooltip {
37
- width: 100%;
38
- display: flex;
39
- }
40
- }
41
15
  .ivu-input {
42
16
  .control-edit();
17
+ cursor: text;
18
+
43
19
  &[disabled] {
44
- .control-disabled();
20
+ .control-disabled();
21
+ &:hover {
22
+ border-color: @border-disabled;
23
+ }
45
24
  }
46
25
  }
@@ -0,0 +1,33 @@
1
+ .DshNumber {
2
+ width: 100%;
3
+
4
+ &-suffix {
5
+ min-width: 32px;
6
+ border-left: 1px solid @borderColor;
7
+ background-color: #F0F0F0;
8
+ text-align: center;
9
+ color: @textColor;
10
+ }
11
+ }
12
+ .ivu-input-number {
13
+ width: 100%;
14
+
15
+ &-input {
16
+ background-color: transparent;
17
+ opacity: 1;
18
+ }
19
+
20
+ &-disabled {
21
+ .control-disabled();
22
+
23
+ &:hover {
24
+ border-color: @border-disabled;
25
+ }
26
+
27
+ .DshNumber-suffix {
28
+ color: @textColor-disabled;
29
+ background-color: transparent;
30
+ border-color: transparent;
31
+ }
32
+ }
33
+ }
@@ -14,11 +14,16 @@
14
14
  color: @textColor;
15
15
  }
16
16
 
17
+ &-suffix {
18
+ padding-right: 24px;
19
+ padding-left: 8px;
20
+ line-height: 30px;
21
+ white-space: nowrap;
22
+ }
23
+
17
24
  input {
18
25
  text-overflow: ellipsis;
19
26
  overflow: hidden;
20
27
  white-space: nowrap;
21
28
  }
22
- }
23
-
24
- .DshNumberange {}
29
+ }
@@ -4,6 +4,67 @@
4
4
  &-radioGroup {
5
5
  width: 100%;
6
6
 
7
+ &-useColor {
8
+ .ivu-radio-border {
9
+ height: 32px;
10
+ line-height: 32px;
11
+ border-radius: 4px;
12
+ border: none;
13
+ color: #FFF;
14
+ margin-bottom: 5px;
15
+ margin-right: 16px;
16
+ }
17
+
18
+ .ivu-radio {
19
+ .ivu-radio-inner {
20
+ border: 2px solid @themeColor;
21
+ background-color: transparent;
22
+ width: 14px;
23
+ height: 14px;
24
+
25
+ &::after {
26
+ width: 6px;
27
+ height: 6px;
28
+ left: 2px;
29
+ top: 2px;
30
+ background-color: transparent;
31
+ opacity: 1;
32
+ transform: scale(1);
33
+ }
34
+ }
35
+
36
+ .ivu-radio-focus {
37
+ box-shadow: 0 0 0 0;
38
+ }
39
+ }
40
+
41
+ .ivu-radio-checked {
42
+ .ivu-radio-inner {
43
+ &::after {
44
+ background-color: @themeColor;
45
+ }
46
+ }
47
+ }
48
+
49
+ each(@resourceColor, {
50
+ .color-@{index} {
51
+ .ivu-radio {
52
+ .ivu-radio-inner {
53
+ border-color: @value;
54
+ }
55
+ }
56
+
57
+ .ivu-radio-checked {
58
+ .ivu-radio-inner {
59
+ &::after {
60
+ background-color: @value;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ });
66
+ }
67
+
7
68
  &-scroll {
8
69
  overflow-x: auto;
9
70
  overflow-y: hidden;
@@ -74,7 +135,11 @@
74
135
  }
75
136
  }
76
137
 
77
- .Dshselect-tip {
138
+ &-value {
139
+ .DshCheckbox-value();
140
+ }
141
+
142
+ &-tip {
78
143
  cursor: pointer;
79
144
 
80
145
  .ivu-radio {
@@ -83,96 +148,6 @@
83
148
  }
84
149
  }
85
150
 
86
- .DshSelect {
87
- &-radioGroup {
88
- &-useColor {
89
- .ivu-radio-border {
90
- height: 32px;
91
- line-height: 32px;
92
- border-radius: 4px;
93
- border: none;
94
- color: #FFF;
95
- margin-bottom: 5px;
96
- margin-right: 16px;
97
- }
98
-
99
- .ivu-radio {
100
- .ivu-radio-inner {
101
- border: 2px solid @themeColor;
102
- background-color: transparent;
103
- width: 14px;
104
- height: 14px;
105
-
106
- &::after {
107
- width: 6px;
108
- height: 6px;
109
- left: 2px;
110
- top: 2px;
111
- background-color: transparent;
112
- opacity: 1;
113
- transform: scale(1);
114
- }
115
- }
116
-
117
- .ivu-radio-focus {
118
- box-shadow: 0 0 0 0;
119
- }
120
- }
121
-
122
- .ivu-radio-checked {
123
- .ivu-radio-inner {
124
- &::after {
125
- background-color: @themeColor;
126
- }
127
- }
128
- }
129
-
130
- each(@resourceColor, {
131
- .color-@{index} {
132
- .ivu-radio {
133
- .ivu-radio-inner {
134
- border-color: @value;
135
- }
136
- }
137
-
138
- .ivu-radio-checked {
139
- .ivu-radio-inner {
140
- &::after {
141
- background-color: @value;
142
- }
143
- }
144
- }
145
- }
146
- }
147
-
148
- );
149
- }
150
- }
151
-
152
- &-select-prefix {
153
- color: @themeColor;
154
- }
155
-
156
- &-tooltip {
157
- display: flex;
158
- align-items: center;
159
- width: 100%;
160
- }
161
-
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
- }
174
- }
175
-
176
151
  .ivu-select-item {
177
152
  margin: 4px 8px;
178
153
  border-radius: @borderRadius;
@@ -185,4 +160,15 @@
185
160
  background-color: @theme-focus !important;
186
161
  color: @themeColor;
187
162
  }
188
- }
163
+
164
+ &-disabled {
165
+ .ivu-select-selection {
166
+ .control-disabled();
167
+ }
168
+ }
169
+
170
+ &-input[disabled] {
171
+ color: @textColor-disabled;
172
+ -webkit-text-fill-color: @textColor-disabled;
173
+ }
174
+ }
@@ -421,8 +421,7 @@
421
421
  }
422
422
 
423
423
  .ZUpload-disabled {
424
- cursor: not-allowed;
425
- border-color: @border-disabled;
424
+ .control-disabled();
426
425
  .ZUploa-old-wrapper {
427
426
  margin: 0px;
428
427
  }
@@ -1,33 +1,19 @@
1
1
  .cascaderTable {
2
+
2
3
  &-unit {
3
- .unit-show()
4
+ .unit-show();
5
+
6
+ &-text {
7
+
8
+ }
4
9
  }
10
+
5
11
  &-btns {
6
12
  text-align: right;
7
13
  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;
14
+
15
+ &-item {
16
+
31
17
  }
32
18
  }
33
19
  }
@@ -1,9 +1,11 @@
1
1
  .controlShow {
2
2
  &-val {
3
+ .dsh-ellipsis();
3
4
  height: 100%;
4
5
  }
5
-
6
+
6
7
  &-nodata {
8
+ .dsh-ellipsis();
7
9
  color: rgba(0, 0, 0, 0.4);
8
10
  font-weight: 400;
9
11
  }
@@ -1,33 +1,20 @@
1
1
  .flatTable {
2
2
  width: 100%;
3
+
3
4
  &-unit {
4
- .unit-show()
5
+ .unit-show();
6
+
7
+ &-text {
8
+
9
+ }
5
10
  }
11
+
6
12
  &-btns {
7
13
  text-align: right;
8
14
  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;
15
+
16
+ &-item {
17
+
31
18
  }
32
19
  }
33
20
  }
@@ -111,15 +111,6 @@
111
111
  }
112
112
  }
113
113
  }
114
-
115
- &.DshFormItem-labels{
116
- overflow: initial;
117
- .DshLabels {
118
- width: 100%;
119
- padding: 0;
120
- }
121
-
122
- }
123
114
  }
124
115
  }
125
116
 
@@ -1,14 +1,6 @@
1
1
  .DshDefaultSearch {
2
2
  position: relative;
3
3
 
4
- // .ivu-input {
5
- // border-radius: 0;
6
- // }
7
-
8
- // .DshLabels-show {
9
- // border-radius: 0;
10
- // }
11
-
12
4
  &-item {
13
5
  padding: 0 !important;
14
6
  padding-bottom: 6px !important;
@@ -17,18 +9,6 @@
17
9
  margin-bottom: 0px !important;
18
10
 
19
11
  &-name {}
20
-
21
- &.DshFormItem-labels {
22
- .DshLabels {
23
- position: static;
24
- width: 100%;
25
- padding: 0;
26
-
27
- &-searchResult {
28
- position: fixed;
29
- }
30
- }
31
- }
32
12
  }
33
13
 
34
14
  &-form {
@@ -4,13 +4,13 @@
4
4
  @import "./controls/DshDaterange.less";
5
5
  @import "./controls/DshDivider.less";
6
6
  @import "./controls/DshInput.less";
7
+ @import "./controls/DshNumber.less";
7
8
  @import "./controls/DshNumberange.less";
8
9
  @import "./controls/DshSelect.less";
9
10
  @import "./controls/ZUpload.less";
10
11
  @import "./controls/DshCascader.less";
11
12
  @import "./controls/DshEditor.less";
12
13
  @import "./controls/MultipleInput.less";
13
- @import "./controls/DshLabels.less";
14
14
  @import "./controls/BriLabels.less";
15
15
  @import "./controls/DshPackage.less";
16
16
  @import "./controls/flatTable.less";
@@ -53,7 +53,8 @@
53
53
  @import "./small/DshSteps.less";
54
54
  @import "./small/DshControlDefine.less";
55
55
  @import "./small/BriButton.less";
56
- @import "./small/BriTree.less";
56
+ @import "./small/BriDrawer.less";
57
+ @import "./small/DshModal.less";
57
58
 
58
59
  // unit
59
60
  @import "./unit/DshFormItem.less";
@@ -43,6 +43,10 @@
43
43
  color: #3D84EE;
44
44
  background-color: #eee;
45
45
  }
46
+
47
+ .ivu-tree-empty {
48
+ text-align: center;
49
+ }
46
50
  }
47
51
 
48
52
  &-footer {
@@ -19,18 +19,34 @@
19
19
  width: 100%;
20
20
  height: 100%;
21
21
 
22
+ @keyframes spin {
23
+ from { transform: rotate(0deg); }
24
+ to { transform: rotate(360deg); }
25
+ }
26
+
22
27
  .ZLoading-main {
23
28
  width: 100%;
24
29
  height: 100%;
25
-
26
- img {
27
- width: auto;
28
- height: auto;
29
- max-width: 100%;
30
- max-height: 100%;
30
+ .dsh-flex();
31
+
32
+ &-content {
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: center;
31
36
  }
32
37
 
33
- .dsh-flex();
38
+ &-loading {
39
+ border-radius: 50%;
40
+ background: conic-gradient(#5EC4CF 50%, white);
41
+ --mask: radial-gradient(closest-side, transparent 70%, black 71%);
42
+ -webkit-mask-image: var(--mask);
43
+ mask-image: var(--mask);
44
+ animation: spin 1s linear infinite;
45
+ }
46
+ &-loadingText {
47
+ margin-top: 8px;
48
+ color: @themeColor;
49
+ }
34
50
  }
35
51
  }
36
52
  }
@@ -0,0 +1,34 @@
1
+ .BriDrawer {
2
+ .ivu-drawer-header {
3
+ padding: 16px 16px 15px;
4
+ }
5
+ .ivu-drawer-body {
6
+ padding: 0px;
7
+ }
8
+ .ivu-drawer-close {
9
+ top: 18px;
10
+ right: 18px
11
+ }
12
+ &-header {
13
+ color: @textColor;
14
+ font-weight: 500;
15
+ font-size: @smallTitleSize;
16
+ line-height: @smallTitleHeight;
17
+ }
18
+ &-close {
19
+ color: @contentColor;
20
+ }
21
+ &-main {
22
+ height: 100%;
23
+ display: flex;
24
+ flex-direction: column;
25
+ }
26
+ &-body {
27
+ flex: 1;
28
+ overflow: auto;
29
+ }
30
+ &-footer {
31
+ border-top: 1px solid @borderColor;
32
+ padding: 11px 16px 12px;
33
+ }
34
+ }