bri-components 1.2.65 → 1.2.67
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/package.json +1 -1
- package/src/components/controls/base/DshInput/DshInput.vue +87 -69
- package/src/components/controls/base/DshSelect/DshCheckbox.vue +6 -2
- package/src/components/controls/base/DshSelect/DshSelect.vue +1 -0
- package/src/components/controls/control.less +88 -20
- package/src/components/controls/mixins/cascaderMixin.js +16 -7
- package/src/components/controls/mixins/selectMixin.js +19 -4
- package/src/components/controls/senior/selectDepartments.vue +1 -1
- package/src/components/form/DshForm.vue +8 -2
- package/src/components/list/BriCard.vue +1 -1
- package/src/components/list/BriTable.vue +1 -1
- package/src/components/list/DshBox/DshBox.vue +1 -1
- package/src/components/list/DshBox/DshCard.vue +295 -156
- package/src/components/list/DshBox/DshCrossTable.vue +1 -1
- package/src/components/list/DshBox/DshList.vue +7 -14
- package/src/components/list/DshBox/DshPanel.vue +378 -262
- package/src/components/list/DshCascaderTable.vue +1 -1
- package/src/components/other/BriLoading.vue +1 -1
- package/src/components/small/DshDropdown.vue +7 -4
- package/src/components/unit/DshFormUnit.vue +80 -62
- package/src/styles/components/list/DshBox/DshList.less +2 -3
- package/src/styles/global/control.less +1 -2
- package/src/styles/global/text.less +10 -3
- package/src/styles/reset-iview-controls.less +32 -15
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
v-else
|
|
82
82
|
class="nodata"
|
|
83
83
|
>
|
|
84
|
-
|
|
84
|
+
暂无内容...
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
@@ -170,7 +170,6 @@
|
|
|
170
170
|
|
|
171
171
|
&-data {
|
|
172
172
|
width: 100%;
|
|
173
|
-
// max-height: 300px;
|
|
174
173
|
padding: 0 8px;
|
|
175
174
|
overflow: auto;
|
|
176
175
|
|
|
@@ -201,8 +200,12 @@
|
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
|
|
204
|
-
.ivu-dropdown-item
|
|
205
|
-
|
|
203
|
+
.ivu-dropdown-item {
|
|
204
|
+
white-space: normal;
|
|
205
|
+
|
|
206
|
+
&-divided:before {
|
|
207
|
+
margin: 0px;
|
|
208
|
+
}
|
|
206
209
|
}
|
|
207
210
|
}
|
|
208
211
|
|
|
@@ -6,14 +6,9 @@
|
|
|
6
6
|
'DshFormUnit-required': canEdit && formItem._required,
|
|
7
7
|
'DshFormUnit-line': formItem._line
|
|
8
8
|
},
|
|
9
|
-
formControlClass
|
|
9
|
+
formControlClass
|
|
10
10
|
]"
|
|
11
|
-
:style="
|
|
12
|
-
width: `calc(${(formItem._br ? (formItem._span || 24)/24 : 1) * 100}% - 12px)`,
|
|
13
|
-
height: formItem._br || (formItem._span || 24) === 24 ? undefined : `${height}px`,
|
|
14
|
-
minHeight: `${46}px`,
|
|
15
|
-
...rowStyle
|
|
16
|
-
}"
|
|
11
|
+
:style="unitStyle"
|
|
17
12
|
>
|
|
18
13
|
<!-- label -->
|
|
19
14
|
<div
|
|
@@ -76,6 +71,7 @@
|
|
|
76
71
|
<slot>
|
|
77
72
|
<component
|
|
78
73
|
class="DshFormUnit-control-component"
|
|
74
|
+
:style="{ 'text-align': formItem._lineAlign }"
|
|
79
75
|
ref="control"
|
|
80
76
|
:is="curComponentName"
|
|
81
77
|
:canEdit="canEdit"
|
|
@@ -139,7 +135,20 @@
|
|
|
139
135
|
showTipModal: false // tipsRender使用,不可删除
|
|
140
136
|
};
|
|
141
137
|
},
|
|
142
|
-
computed: {
|
|
138
|
+
computed: {
|
|
139
|
+
unitStyle () {
|
|
140
|
+
return {
|
|
141
|
+
width: `calc(${(this.formItem._br ? (this.formItem._span || 24) / 24 : 1) * 100}% - 12px)`,
|
|
142
|
+
height: this.formItem._br || (this.formItem._span || 24) === 24
|
|
143
|
+
? undefined
|
|
144
|
+
: this.canEdit ? `${this.height}px` : `${this.height - 10}px`,
|
|
145
|
+
minHeight: "42px",
|
|
146
|
+
padding: this.canEdit ? undefined : "0px 10px", // 详情查看页时,不要上下的padding,为了美观
|
|
147
|
+
|
|
148
|
+
...this.rowStyle
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
},
|
|
143
152
|
created () {},
|
|
144
153
|
methods: {
|
|
145
154
|
// 校验方法 -供外部使用
|
|
@@ -155,7 +164,9 @@
|
|
|
155
164
|
? formItem._tipsRender.call(this, formItem, formData)
|
|
156
165
|
: formItem._openTip
|
|
157
166
|
? (h) => {
|
|
158
|
-
return h("span", {
|
|
167
|
+
return h("span", {
|
|
168
|
+
class: "DshFormUnit-tip"
|
|
169
|
+
}, [
|
|
159
170
|
h("Icon", {
|
|
160
171
|
props: {
|
|
161
172
|
type: "md-help-circle"
|
|
@@ -165,37 +176,18 @@
|
|
|
165
176
|
},
|
|
166
177
|
on: {
|
|
167
178
|
click: () => {
|
|
168
|
-
|
|
169
|
-
if (formItem._tipUrl) {
|
|
170
|
-
this.$https({
|
|
171
|
-
url: {
|
|
172
|
-
module: "customPage",
|
|
173
|
-
name: formItem._tipUrl
|
|
174
|
-
},
|
|
175
|
-
params: {
|
|
176
|
-
formData: formData,
|
|
177
|
-
propsObj: formItem
|
|
178
|
-
},
|
|
179
|
-
callback: res => {
|
|
180
|
-
this.showTipModal = true;
|
|
181
|
-
formItem._tipContent = res;
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
} else {
|
|
186
|
-
this.showTipModal = true;
|
|
187
|
-
}
|
|
179
|
+
this.clickOpenTip(formItem, formData);
|
|
188
180
|
}
|
|
189
181
|
}
|
|
190
182
|
}),
|
|
191
183
|
|
|
192
184
|
h("dsh-modal", {
|
|
185
|
+
class: "DshFormUnit-tip-modal",
|
|
193
186
|
props: {
|
|
194
187
|
value: this.showTipModal,
|
|
195
188
|
mode: "small",
|
|
196
189
|
propsObj: {
|
|
197
190
|
title: "温馨提示",
|
|
198
|
-
class: "DshFormUnit-modal",
|
|
199
191
|
showSlotClose: false,
|
|
200
192
|
maskClosable: true
|
|
201
193
|
}
|
|
@@ -234,6 +226,29 @@
|
|
|
234
226
|
]);
|
|
235
227
|
}
|
|
236
228
|
: undefined;
|
|
229
|
+
},
|
|
230
|
+
// 是否打开tip弹窗
|
|
231
|
+
clickOpenTip (formItem, formData) {
|
|
232
|
+
if (formItem._tipKind === "dynamic" && !formItem._tipContent) {
|
|
233
|
+
if (formItem._tipUrl) {
|
|
234
|
+
this.$https({
|
|
235
|
+
url: {
|
|
236
|
+
module: "customPage",
|
|
237
|
+
name: formItem._tipUrl
|
|
238
|
+
},
|
|
239
|
+
params: {
|
|
240
|
+
formData: formData,
|
|
241
|
+
propsObj: formItem
|
|
242
|
+
},
|
|
243
|
+
callback: res => {
|
|
244
|
+
this.showTipModal = true;
|
|
245
|
+
formItem._tipContent = res;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
this.showTipModal = true;
|
|
251
|
+
}
|
|
237
252
|
}
|
|
238
253
|
}
|
|
239
254
|
};
|
|
@@ -245,28 +260,28 @@
|
|
|
245
260
|
padding: 0px 10px 10px;
|
|
246
261
|
|
|
247
262
|
&-label {
|
|
248
|
-
|
|
249
|
-
padding: 5px 0px 5px;
|
|
263
|
+
padding: 5px 0px;
|
|
250
264
|
line-height: 20px;
|
|
251
265
|
font-size: @smallSize;
|
|
266
|
+
position: relative;
|
|
252
267
|
display: flex;
|
|
253
268
|
align-items: center;
|
|
254
269
|
|
|
255
270
|
&-left {
|
|
256
|
-
flex:
|
|
257
|
-
min-width:
|
|
258
|
-
position: relative;
|
|
271
|
+
flex: 3;
|
|
272
|
+
min-width: 0px;
|
|
259
273
|
}
|
|
260
274
|
|
|
261
275
|
&-right {
|
|
262
276
|
flex: 1;
|
|
263
277
|
min-width: 0px;
|
|
278
|
+
padding-left: 10px;
|
|
264
279
|
text-align: right;
|
|
265
280
|
}
|
|
266
281
|
|
|
267
282
|
&-name {
|
|
268
|
-
font-size: @textSize;
|
|
269
283
|
.dsh-ellipsis();
|
|
284
|
+
font-size: @textSize;
|
|
270
285
|
|
|
271
286
|
&-edit {
|
|
272
287
|
color: @textColor;
|
|
@@ -288,13 +303,14 @@
|
|
|
288
303
|
}
|
|
289
304
|
|
|
290
305
|
&-control {
|
|
291
|
-
overflow: hidden;
|
|
306
|
+
// overflow: hidden;
|
|
292
307
|
|
|
293
308
|
&-component {
|
|
294
309
|
|
|
295
310
|
}
|
|
296
311
|
}
|
|
297
312
|
|
|
313
|
+
// 左右显示时
|
|
298
314
|
&-line {
|
|
299
315
|
display: flex;
|
|
300
316
|
justify-content: space-between;
|
|
@@ -302,10 +318,9 @@
|
|
|
302
318
|
|
|
303
319
|
.DshFormUnit-label {
|
|
304
320
|
max-width: 280px;
|
|
305
|
-
margin: 0px 8px 0px -10px; //
|
|
321
|
+
margin: 0px 8px 0px -10px; // line模式下显示必填
|
|
306
322
|
padding-left: 10px;
|
|
307
323
|
font-size: @textSize;
|
|
308
|
-
overflow: hidden;
|
|
309
324
|
|
|
310
325
|
&-left {
|
|
311
326
|
flex: 1;
|
|
@@ -314,7 +329,7 @@
|
|
|
314
329
|
|
|
315
330
|
&-right {
|
|
316
331
|
flex: none;
|
|
317
|
-
max-width:
|
|
332
|
+
max-width: 70px;
|
|
318
333
|
min-width: 0px;
|
|
319
334
|
}
|
|
320
335
|
}
|
|
@@ -330,7 +345,7 @@
|
|
|
330
345
|
}
|
|
331
346
|
|
|
332
347
|
&-required {
|
|
333
|
-
.DshFormUnit-label
|
|
348
|
+
.DshFormUnit-label::before {
|
|
334
349
|
position: absolute;
|
|
335
350
|
left: -10px;
|
|
336
351
|
|
|
@@ -345,29 +360,32 @@
|
|
|
345
360
|
}
|
|
346
361
|
}
|
|
347
362
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
363
|
+
// 提示框的
|
|
364
|
+
&-tip {
|
|
365
|
+
&-modal {
|
|
366
|
+
.wrap {
|
|
367
|
+
width: 100%;
|
|
368
|
+
height: 100%;
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-direction: column;
|
|
371
|
+
|
|
372
|
+
&-content {
|
|
373
|
+
flex: 1;
|
|
374
|
+
min-height: 0px;
|
|
375
|
+
padding: 0px 12px;
|
|
376
|
+
overflow: auto;
|
|
377
|
+
}
|
|
361
378
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
379
|
+
&-btns {
|
|
380
|
+
margin: 10px 0px;
|
|
381
|
+
text-align: right;
|
|
365
382
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
383
|
+
.ivu-btn {
|
|
384
|
+
font-size: 16px;
|
|
385
|
+
font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
border-radius: 4px;
|
|
388
|
+
}
|
|
371
389
|
}
|
|
372
390
|
}
|
|
373
391
|
}
|
|
@@ -6,13 +6,21 @@
|
|
|
6
6
|
color: @textColor;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
#dsh-nodata {
|
|
10
10
|
width: 100%;
|
|
11
11
|
padding: 20px 10px;
|
|
12
12
|
text-align: center;
|
|
13
13
|
font-size: 14px;
|
|
14
14
|
font-weight: 500;
|
|
15
|
-
color: @
|
|
15
|
+
color: @placeholderColor;
|
|
16
|
+
}
|
|
17
|
+
#dsh-nodata-large {
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding: 20px 10px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
color: @placeholderColor;
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
.dsh-subtip {
|
|
@@ -21,7 +29,6 @@
|
|
|
21
29
|
font-size: 12px;
|
|
22
30
|
font-weight: 500;
|
|
23
31
|
color: @placeholderColor;
|
|
24
|
-
// background-color: #f3f3f3;
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
// 出现三个点
|
|
@@ -62,24 +62,10 @@
|
|
|
62
62
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&-disabled {
|
|
66
|
-
.ivu-select-selection {
|
|
67
|
-
.bri-control-disabled();
|
|
68
|
-
|
|
69
|
-
&:hover {
|
|
70
|
-
border-color: @border-disabled;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ivu-select-input[disabled] {
|
|
75
|
-
color: @textColor;
|
|
76
|
-
-webkit-text-fill-color: @placeholder-disabled-color;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
65
|
&-item {
|
|
81
66
|
margin: 4px 8px;
|
|
82
67
|
border-radius: @borderRadius;
|
|
68
|
+
white-space: normal;
|
|
83
69
|
|
|
84
70
|
&:hover {
|
|
85
71
|
background: @bgColor;
|
|
@@ -101,6 +87,37 @@
|
|
|
101
87
|
-webkit-text-fill-color: @textColor-disabled;
|
|
102
88
|
}
|
|
103
89
|
}
|
|
90
|
+
|
|
91
|
+
&-disabled {
|
|
92
|
+
.ivu-select-selection {
|
|
93
|
+
.bri-control-disabled();
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
border-color: @border-disabled;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ivu-select-input[disabled] {
|
|
101
|
+
color: @textColor;
|
|
102
|
+
-webkit-text-fill-color: @placeholder-disabled-color;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// 多选状态
|
|
107
|
+
&-multiple {
|
|
108
|
+
// 下拉面板项
|
|
109
|
+
.ivu-select-item {
|
|
110
|
+
// 压住iview同等权重的css
|
|
111
|
+
&-selected {
|
|
112
|
+
background-color: @theme-focus;
|
|
113
|
+
color: @themeColor;
|
|
114
|
+
|
|
115
|
+
&::after {
|
|
116
|
+
// content: ""; // 多选时下拉项选中的对勾
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
104
121
|
}
|
|
105
122
|
|
|
106
123
|
.ivu-cascader {
|