bri-components 1.1.2 → 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 (80) 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 +9 -8
  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 +72 -59
  21. package/src/components/controls/base/DshInput.vue +66 -59
  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 +6 -4
  33. package/src/components/controls/controlMixin.js +36 -26
  34. package/src/components/controls/controlShow.vue +44 -0
  35. package/src/components/controls/{base → senior}/BriLabels.vue +7 -12
  36. package/src/components/controls/{base → senior}/DshPackage.vue +6 -25
  37. package/src/components/controls/senior/cascaderTable.vue +52 -51
  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 +10 -3
  43. package/src/components/list/BriFlatTable.vue +5 -5
  44. package/src/components/list/BriTable.vue +6 -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/DshCascaderTable.vue +1 -1
  48. package/src/components/small/DshControlDefine.vue +1 -1
  49. package/src/components/small/DshModal.vue +0 -134
  50. package/src/components/unit/DshFormItem.vue +7 -10
  51. package/src/components/unit/DshUnit.vue +1 -11
  52. package/src/components/unit/unitMixin.js +8 -5
  53. package/src/index.js +5 -10
  54. package/src/styles/common/control.less +49 -12
  55. package/src/styles/components/controls/BriLabels.less +4 -2
  56. package/src/styles/components/controls/DshCheckbox.less +45 -42
  57. package/src/styles/components/controls/DshCoordinates.less +24 -27
  58. package/src/styles/components/controls/DshDate.less +1 -52
  59. package/src/styles/components/controls/DshEditor.less +51 -34
  60. package/src/styles/components/controls/DshInput.less +13 -34
  61. package/src/styles/components/controls/DshNumber.less +33 -0
  62. package/src/styles/components/controls/DshNumberange.less +8 -3
  63. package/src/styles/components/controls/DshSelect.less +78 -92
  64. package/src/styles/components/controls/ZUpload.less +1 -2
  65. package/src/styles/components/controls/cascaderTable.less +10 -24
  66. package/src/styles/components/controls/controlShow.less +3 -1
  67. package/src/styles/components/controls/flatTable.less +10 -23
  68. package/src/styles/components/form/DshAdvSearchForm.less +0 -9
  69. package/src/styles/components/form/DshDefaultSearch.less +0 -20
  70. package/src/styles/components/index.less +2 -1
  71. package/src/styles/components/other/InfoCascader.less +4 -4
  72. package/src/styles/components/small/DshControlDefine.less +4 -7
  73. package/src/styles/components/small/DshDropdown.less +1 -0
  74. package/src/styles/components/small/DshModal.less +207 -0
  75. package/src/styles/components/unit/DshFormItem.less +2 -0
  76. package/src/styles/reset.less +14 -0
  77. package/src/utils/table.js +3 -3
  78. package/src/components/controls/base/DshLabels.vue +0 -309
  79. package/src/components/controls/base/controlShow.vue +0 -52
  80. package/src/styles/components/controls/DshLabels.less +0 -187
@@ -21,25 +21,7 @@
21
21
  }
22
22
  }
23
23
 
24
- &-value {
25
- height: 24px;
26
- line-height: 20px;
27
- padding: 2px 8px;
28
- border-radius: 4px;
29
- margin-right: 16px;
30
-
31
- &:last-of-type {
32
- margin-right: 0px;
33
- }
34
-
35
- &-wrapper {
36
- display: flex;
37
- min-height: 32px;
38
- padding: 4px 0;
39
- }
40
- }
41
-
42
- .Dshcheckbox-tip {
24
+ &-tip {
43
25
  cursor: pointer;
44
26
 
45
27
  .ivu-checkbox {
@@ -47,32 +29,34 @@
47
29
  }
48
30
  }
49
31
 
50
- .ivu-select-multiple .ivu-select-selection {
51
- height: 32px;
52
-
53
- &>div {
54
- overflow-x: auto;
55
- overflow-y: hidden;
56
- white-space: nowrap;
57
-
58
- .ivu-tag {
59
- margin: 2px 4px 4px 0;
60
- }
61
-
62
- &::-webkit-scrollbar {
63
- height: 8px;
64
- }
65
-
66
- &:-webkit-scrollbar-thumb {
67
- border-radius: 3px;
68
- background: rgba(51, 51, 51, .1);
69
- background-clip: border-box;
32
+ .ivu-select-multiple {
33
+ .ivu-select-selection {
34
+ height: 32px;
35
+
36
+ &>div {
37
+ overflow-x: auto;
38
+ overflow-y: hidden;
39
+ white-space: nowrap;
40
+
41
+ .ivu-tag {
42
+ margin: 2px 4px 4px 0;
43
+ }
44
+
45
+ &::-webkit-scrollbar {
46
+ height: 8px;
47
+ }
48
+
49
+ &:-webkit-scrollbar-thumb {
50
+ border-radius: 3px;
51
+ background: rgba(51, 51, 51, .1);
52
+ background-clip: border-box;
53
+ }
70
54
  }
71
55
  }
72
- }
73
56
 
74
- .ivu-select-multiple .ivu-select-item-selected:after {
75
- content: none;
57
+ .ivu-select-item-selected:after {
58
+ content: none;
59
+ }
76
60
  }
77
61
  }
78
62
 
@@ -153,4 +137,23 @@
153
137
  font-size: 14px;
154
138
  vertical-align: middle;
155
139
  }
140
+ }
141
+
142
+ // TODO:必须单独拿出来,DshSelect组件里在混入此样式
143
+ .DshCheckbox-value {
144
+ height: 24px;
145
+ line-height: 20px;
146
+ padding: 2px 8px;
147
+ border-radius: 4px;
148
+ margin-right: 16px;
149
+
150
+ &:last-of-type {
151
+ margin-right: 0px;
152
+ }
153
+
154
+ &-wrapper {
155
+ display: flex;
156
+ min-height: 32px;
157
+ padding: 4px 0;
158
+ }
156
159
  }
@@ -1,15 +1,15 @@
1
1
  .DshCoordinates {
2
2
  width: 100%;
3
- line-height: 32px;
3
+ line-height: 30px;
4
+
4
5
  .textRight {
5
6
  text-align: right;
6
7
  }
7
8
 
8
9
  &-wrap {
9
10
  position: relative;
10
- padding: 0 8px;
11
- .control-edit();
12
- &-zuobiao{
11
+ padding: 0 32px 0 8px;
12
+ &-zuobiao {
13
13
  color: #e5e5e5;
14
14
  line-height: 32px;
15
15
  position: absolute;
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  &-notext {
33
- .control-placeholder();
33
+ color: @placeholderColor;
34
34
  }
35
35
 
36
36
  &-message {
@@ -46,32 +46,29 @@
46
46
  height: 100%;
47
47
  }
48
48
 
49
- &-readonly {
50
- cursor: not-allowed;
51
- }
52
49
  &-show {
53
50
  padding: 0 8px;
51
+ line-height: 32px;
54
52
  }
55
- }
56
-
57
-
58
- .DshCoordinates-modal {
59
- &-header {
60
- padding: 5px 0px;
61
-
62
- &-text {
63
- font-size: @textSize;
64
- line-height: 18px;
53
+
54
+ &-modal {
55
+ &-header {
56
+ padding: 5px 0px;
57
+
58
+ &-text {
59
+ font-size: @textSize;
60
+ line-height: 18px;
61
+ }
65
62
  }
66
- }
67
-
68
- .ivu-modal-content {
69
- overflow: hidden;
70
- height: 100%;
71
-
72
- .ivu-modal-body {
73
- padding: 0px;
63
+
64
+ .ivu-modal-content {
65
+ overflow: hidden;
74
66
  height: 100%;
67
+
68
+ .ivu-modal-body {
69
+ padding: 0px;
70
+ height: 100%;
71
+ }
75
72
  }
76
73
  }
77
- }
74
+ }
@@ -1,54 +1,3 @@
1
1
  .DshDate {
2
2
  width: 100%;
3
- }
4
-
5
- // .ivu-date-picker-cells-year .ivu-date-picker-cells-cell-focused,
6
- // .ivu-date-picker-cells-month .ivu-date-picker-cells-cell-focused {
7
- // position: relative;
8
-
9
- // em {
10
- // background-color: transparent;
11
- // color: @themeColor;
12
- // }
13
-
14
- // &::after {
15
- // position: absolute;
16
- // bottom: -5px;
17
- // right: calc(50% - 3px);
18
- // content: "";
19
- // width: 6px;
20
- // height: 6px;
21
- // border-radius: 50%;
22
- // background-color: @themeColor;
23
- // }
24
- // }
25
-
26
- // .ivu-date-picker-cells {
27
- // &-focused em {
28
- // box-shadow: none;
29
- // }
30
-
31
- // span em {
32
- // border-radius: 50%;
33
- // }
34
-
35
- // &-cell-today {
36
- // em {
37
- // position: relative;
38
- // color: @themeColor;
39
-
40
- // &::after {
41
- // content: '';
42
- // display: block;
43
- // width: 6px;
44
- // height: 6px;
45
- // border-radius: 50%;
46
- // background: #3DB8C5;
47
- // position: absolute;
48
- // top: auto;
49
- // bottom: -5px;
50
- // right: calc(50% - 3px);
51
- // }
52
- // }
53
- // }
54
- // }
3
+ }
@@ -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
  }