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.
- package/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/10.bri-components.min.js +1 -0
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -1
- package/lib/8.bri-components.min.js +1 -1
- package/lib/9.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/package.json +1 -1
- package/src/components/controls/base/DshCascader.vue +14 -11
- package/src/components/controls/base/DshCascaderMultiple.vue +13 -4
- package/src/components/controls/base/DshCheckbox.vue +16 -19
- package/src/components/controls/base/DshCoordinates.vue +9 -8
- package/src/components/controls/base/DshDate.vue +24 -37
- package/src/components/controls/base/DshDaterange.vue +3 -1
- package/src/components/controls/base/DshEditor.vue +72 -59
- package/src/components/controls/base/DshInput.vue +66 -59
- package/src/components/controls/base/DshNumber/BriInputNumber/BriInputNumber.vue +1 -1
- package/src/components/controls/base/DshNumber/DshNumber.vue +50 -48
- package/src/components/controls/base/DshNumberange.vue +11 -21
- package/src/components/controls/base/DshSelect.vue +12 -16
- package/src/components/controls/base/YSerialNumber.vue +10 -3
- package/src/components/controls/base/ZUpload/index.vue +16 -12
- package/src/components/controls/base/ZUpload/upload-list.vue +20 -13
- package/src/components/controls/base/ZUpload/uploadMixin.js +5 -1
- package/src/components/controls/base/textMultiple/DshTextMultiple.vue +13 -5
- package/src/components/controls/base/textMultiple/MultipleInput.vue +5 -5
- package/src/components/controls/controlMap.js +6 -4
- package/src/components/controls/controlMixin.js +36 -26
- package/src/components/controls/controlShow.vue +44 -0
- package/src/components/controls/{base → senior}/BriLabels.vue +7 -12
- package/src/components/controls/{base → senior}/DshPackage.vue +6 -25
- package/src/components/controls/senior/cascaderTable.vue +52 -51
- package/src/components/controls/senior/flatTable.vue +20 -17
- package/src/components/controls/{base → special}/DshBack.vue +4 -4
- package/src/components/controls/{base → special}/DshUndeveloped.vue +3 -1
- package/src/components/form/DshAdvSearchForm.vue +10 -1
- package/src/components/form/DshForm.vue +10 -3
- package/src/components/list/BriFlatTable.vue +5 -5
- package/src/components/list/BriTable.vue +6 -8
- package/src/components/list/DshBox/DshCard.vue +2 -2
- package/src/components/list/DshBox/DshCrossTable.vue +4 -8
- package/src/components/list/DshCascaderTable.vue +1 -1
- package/src/components/small/DshControlDefine.vue +1 -1
- package/src/components/small/DshModal.vue +0 -134
- package/src/components/unit/DshFormItem.vue +7 -10
- package/src/components/unit/DshUnit.vue +1 -11
- package/src/components/unit/unitMixin.js +8 -5
- package/src/index.js +5 -10
- package/src/styles/common/control.less +49 -12
- package/src/styles/components/controls/BriLabels.less +4 -2
- package/src/styles/components/controls/DshCheckbox.less +45 -42
- package/src/styles/components/controls/DshCoordinates.less +24 -27
- package/src/styles/components/controls/DshDate.less +1 -52
- package/src/styles/components/controls/DshEditor.less +51 -34
- package/src/styles/components/controls/DshInput.less +13 -34
- package/src/styles/components/controls/DshNumber.less +33 -0
- package/src/styles/components/controls/DshNumberange.less +8 -3
- package/src/styles/components/controls/DshSelect.less +78 -92
- package/src/styles/components/controls/ZUpload.less +1 -2
- package/src/styles/components/controls/cascaderTable.less +10 -24
- package/src/styles/components/controls/controlShow.less +3 -1
- package/src/styles/components/controls/flatTable.less +10 -23
- package/src/styles/components/form/DshAdvSearchForm.less +0 -9
- package/src/styles/components/form/DshDefaultSearch.less +0 -20
- package/src/styles/components/index.less +2 -1
- package/src/styles/components/other/InfoCascader.less +4 -4
- package/src/styles/components/small/DshControlDefine.less +4 -7
- package/src/styles/components/small/DshDropdown.less +1 -0
- package/src/styles/components/small/DshModal.less +207 -0
- package/src/styles/components/unit/DshFormItem.less +2 -0
- package/src/styles/reset.less +14 -0
- package/src/utils/table.js +3 -3
- package/src/components/controls/base/DshLabels.vue +0 -309
- package/src/components/controls/base/controlShow.vue +0 -52
- package/src/styles/components/controls/DshLabels.less +0 -187
|
@@ -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
|
-
|
|
10
|
-
|
|
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,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
|
-
|
|
11
|
-
|
|
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
|
}
|
|
@@ -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";
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
@import "./small/DshControlDefine.less";
|
|
55
55
|
@import "./small/BriButton.less";
|
|
56
56
|
@import "./small/BriDrawer.less";
|
|
57
|
+
@import "./small/DshModal.less";
|
|
57
58
|
|
|
58
59
|
// unit
|
|
59
60
|
@import "./unit/DshFormItem.less";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
&-multiplerow {
|
|
5
5
|
height: 70px;
|
|
6
|
-
|
|
7
6
|
.dsh-control-define-text {
|
|
7
|
+
overflow-y: auto;
|
|
8
8
|
.DshTags {
|
|
9
9
|
flex-wrap: wrap;
|
|
10
10
|
}
|
|
@@ -23,13 +23,10 @@
|
|
|
23
23
|
width: 100%;
|
|
24
24
|
height: 100%;
|
|
25
25
|
display: flex;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
overflow-x: auto;
|
|
26
|
+
padding: 2px 8px;
|
|
27
|
+
.bri-scrollbar3();
|
|
29
28
|
overflow-y: hidden;
|
|
30
|
-
|
|
31
|
-
.bri-scrollbar6();
|
|
32
|
-
|
|
29
|
+
|
|
33
30
|
.DshTags {
|
|
34
31
|
display: flex;
|
|
35
32
|
white-space: nowrap;
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
.DshModal {
|
|
2
|
+
&-header {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
&-close {
|
|
7
|
+
padding: 2px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 10px;
|
|
10
|
+
right: 10px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-default,
|
|
15
|
+
&-middle,
|
|
16
|
+
&-large,
|
|
17
|
+
&-small {
|
|
18
|
+
.ivu-modal-wrap {
|
|
19
|
+
.ivu-modal {
|
|
20
|
+
margin: auto;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0px;
|
|
23
|
+
bottom: 0px;
|
|
24
|
+
left: 0px;
|
|
25
|
+
right: 0px;
|
|
26
|
+
.ivu-modal-content {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
.ivu-modal-close {}
|
|
32
|
+
|
|
33
|
+
.ivu-modal-header {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 44px;
|
|
36
|
+
padding: 10px 40px 10px 16px;
|
|
37
|
+
}
|
|
38
|
+
.ivu-modal-body {
|
|
39
|
+
width: 100%;
|
|
40
|
+
flex: 1;
|
|
41
|
+
min-height: 200px;
|
|
42
|
+
padding: 0px;
|
|
43
|
+
overflow: auto;
|
|
44
|
+
}
|
|
45
|
+
.ivu-modal-footer {
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 50px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-default {
|
|
55
|
+
.ivu-modal-wrap {
|
|
56
|
+
.ivu-modal {
|
|
57
|
+
width: 750px !important;
|
|
58
|
+
height: 550px !important;
|
|
59
|
+
max-height: 100%;
|
|
60
|
+
max-width: 100%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&-small {
|
|
65
|
+
.ivu-modal-wrap {
|
|
66
|
+
.ivu-modal {
|
|
67
|
+
width: 500px !important;
|
|
68
|
+
height: 400px !important;
|
|
69
|
+
max-height: 100%;
|
|
70
|
+
max-width: 100%;
|
|
71
|
+
.ivu-modal-content{
|
|
72
|
+
.DshModal-close {
|
|
73
|
+
top: 20px;
|
|
74
|
+
right: 24px;
|
|
75
|
+
color: rgba(0,0,0,0.6);
|
|
76
|
+
font-size: 16px!important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ivu-modal-header {
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 44px;
|
|
82
|
+
padding: 20px 24px 0px 24px;
|
|
83
|
+
border-bottom: none;
|
|
84
|
+
&-inner {
|
|
85
|
+
color: rgba(0,0,0,0.9);
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
line-height: 24px;
|
|
89
|
+
height: 24px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.ivu-modal-body {
|
|
93
|
+
padding: 16px 24px 20px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&-middle {
|
|
100
|
+
.ivu-modal-wrap {
|
|
101
|
+
.ivu-modal {
|
|
102
|
+
width: 1000px !important;
|
|
103
|
+
height: 800px !important;
|
|
104
|
+
max-height: 100%;
|
|
105
|
+
max-width: 100%;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
&-large {
|
|
110
|
+
.ivu-modal-wrap {
|
|
111
|
+
.ivu-modal {
|
|
112
|
+
width: 80% !important;
|
|
113
|
+
height: 90% !important;
|
|
114
|
+
min-width: 1000px !important;
|
|
115
|
+
max-height: 100%;
|
|
116
|
+
max-width: 100%;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
&-auto {
|
|
121
|
+
.ivu-modal-wrap {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
.ivu-modal {
|
|
126
|
+
top: 0px;
|
|
127
|
+
max-height: 100%;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.bri-modal-flex {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
|
|
138
|
+
.ivu-modal {
|
|
139
|
+
top: 0px
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ivu-modal-content {
|
|
143
|
+
height: 100%;
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ivu-modal-body {
|
|
149
|
+
flex: 1;
|
|
150
|
+
overflow: auto;
|
|
151
|
+
padding: 0px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// 默认模态框brimodal
|
|
156
|
+
.bri-modal {
|
|
157
|
+
.ivu-modal-header {
|
|
158
|
+
padding: 14px 36px;
|
|
159
|
+
|
|
160
|
+
.ivu-modal-header-inner {
|
|
161
|
+
color: @titleColor;
|
|
162
|
+
font-size: @titleSize;
|
|
163
|
+
font-weight: bold;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ivu-modal-body {
|
|
168
|
+
padding: 16px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ivu-modal-footer {
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
padding: 20px;
|
|
175
|
+
|
|
176
|
+
button {
|
|
177
|
+
width: 48%;
|
|
178
|
+
height: 44px;
|
|
179
|
+
line-height: 44px;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&-content {
|
|
184
|
+
padding: 20px 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-footer {
|
|
188
|
+
display: flex;
|
|
189
|
+
justify-content: space-between;
|
|
190
|
+
padding: 20px 0;
|
|
191
|
+
|
|
192
|
+
button {
|
|
193
|
+
flex: 1;
|
|
194
|
+
margin: 0 10px;
|
|
195
|
+
height: 44px;
|
|
196
|
+
line-height: 44px;
|
|
197
|
+
|
|
198
|
+
&:first-child {
|
|
199
|
+
margin-left: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:last-child {
|
|
203
|
+
margin-right: 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
package/src/styles/reset.less
CHANGED
|
@@ -60,6 +60,20 @@ li {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
.bri-scrollbar3 {
|
|
64
|
+
overflow: auto;
|
|
65
|
+
&::-webkit-scrollbar {
|
|
66
|
+
width: 6px;
|
|
67
|
+
height: 6px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:-webkit-scrollbar-thumb {
|
|
71
|
+
border-radius: 3px;
|
|
72
|
+
background: rgba(51, 51, 51, .1);
|
|
73
|
+
background-clip: border-box;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
63
77
|
.dsh-scrollbar3::-webkit-scrollbar {
|
|
64
78
|
height: 3px;
|
|
65
79
|
width: 3px;
|
package/src/utils/table.js
CHANGED
|
@@ -36,7 +36,7 @@ const transformToColumns = function (form) {
|
|
|
36
36
|
renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
37
37
|
return h("dsh-unit", {
|
|
38
38
|
props: {
|
|
39
|
-
|
|
39
|
+
canEdit: false,
|
|
40
40
|
rowIndex: rowIndex,
|
|
41
41
|
formData: row,
|
|
42
42
|
formItem: col
|
|
@@ -49,7 +49,7 @@ const transformToColumns = function (form) {
|
|
|
49
49
|
...(
|
|
50
50
|
["select", "checkbox"].includes(col._type)
|
|
51
51
|
? {
|
|
52
|
-
filter: {
|
|
52
|
+
filter: this.listPropsObj && this.listPropsObj.headerFilter ? {
|
|
53
53
|
isMultiple: true,
|
|
54
54
|
maxHeight: 300,
|
|
55
55
|
filterList: col._data.map(item => ({
|
|
@@ -78,7 +78,7 @@ const transformToColumns = function (form) {
|
|
|
78
78
|
};
|
|
79
79
|
this.filterReset && this.filterReset(conditionItem);
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
} : null
|
|
82
82
|
}
|
|
83
83
|
: {}
|
|
84
84
|
),
|