bri-components 1.2.49 → 1.2.50
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 +2 -2
- package/src/components/controls/BriControlInput.vue +4 -3
- package/src/components/controls/base/DshCascader/DshCascader.vue +40 -23
- package/src/components/controls/base/DshCascader/InfoCascader.vue +7 -15
- package/src/components/controls/base/DshDate/DshDate.vue +146 -0
- package/src/components/controls/base/{DshDaterange.vue → DshDate/DshDaterange.vue} +55 -1
- package/src/components/controls/base/{BriInputs.vue → DshInput/BriInputs.vue} +1 -1
- package/src/components/controls/base/{DshInput.vue → DshInput/DshInput.vue} +24 -5
- package/src/components/controls/base/DshNumber/DshNumber.vue +74 -2
- package/src/components/controls/base/{DshNumberange.vue → DshNumber/DshNumberange.vue} +37 -2
- package/src/components/controls/base/DshSelect/DshCheckbox.vue +280 -0
- package/src/components/controls/base/DshSelect/DshSelect.vue +319 -0
- package/src/components/controls/base/DshSelect/selectMixin.js +241 -0
- package/src/components/controls/base/DshSwitch/DshSwitch.vue +84 -0
- package/src/components/controls/base/DshSwitch/switchMixin.js +73 -0
- package/src/components/controls/controlMap.js +8 -11
- package/src/components/controls/controlMixin.js +33 -5
- package/src/components/controls/senior/BriLabels.vue +1 -1
- package/src/components/controls/senior/selectDepartments.vue +9 -13
- package/src/components/controls/senior/selectUsers/selectUsers.vue +23 -21
- package/src/components/form/DshAdvSearch.vue +155 -3
- package/src/components/form/DshDefaultSearch.vue +94 -12
- package/src/components/form/DshForm.vue +24 -0
- package/src/components/form/searchMixin.js +5 -18
- package/src/components/other/BriGantt.vue +2 -2
- package/src/components/unit/DshFormUnit.vue +108 -0
- package/src/components/unit/DshListUnit.vue +6 -0
- package/src/index.js +10 -10
- package/src/styles/components/index.less +0 -14
- package/src/styles/components/other/BriGantt.less +1 -12
- package/src/styles/reset-iview.less +47 -1
- package/src/components/controls/base/DshCheckbox.vue +0 -213
- package/src/components/controls/base/DshDate.vue +0 -122
- package/src/components/controls/base/DshSelect.vue +0 -242
- package/src/components/controls/base/DshSwitch.vue +0 -70
- package/src/components/controls/base/selectMixin.js +0 -110
- package/src/styles/components/controls/base/DshCheckbox.less +0 -115
- package/src/styles/components/controls/base/DshDate.less +0 -15
- package/src/styles/components/controls/base/DshDaterange.less +0 -49
- package/src/styles/components/controls/base/DshNumber.less +0 -55
- package/src/styles/components/controls/base/DshNumberange.less +0 -29
- package/src/styles/components/controls/base/DshSelect.less +0 -190
- package/src/styles/components/form/DshAdvSearch.less +0 -149
- package/src/styles/components/form/DshDefaultSearch.less +0 -82
- package/src/styles/components/form/DshForm.less +0 -18
- package/src/styles/components/unit/DshFormUnit.less +0 -105
- package/src/styles/components/unit/DshListUnit.less +0 -3
|
@@ -71,18 +71,17 @@
|
|
|
71
71
|
</template>
|
|
72
72
|
|
|
73
73
|
<!-- 动态筛选字段,出现是有条件的 -->
|
|
74
|
-
<dsh-
|
|
74
|
+
<dsh-checkbox
|
|
75
75
|
v-else-if="conditionItem.parameterType === 'dynamicText'"
|
|
76
76
|
class="DshAdvSearch-conditions-item-control"
|
|
77
77
|
:value="conditionItem"
|
|
78
78
|
:propsObj="{
|
|
79
79
|
_name: `${conditionItem.formItem._name}的动态参数`,
|
|
80
80
|
_key: 'fieldParams',
|
|
81
|
-
_multiple: true,
|
|
82
81
|
_data: conditionItem.dynamicList
|
|
83
82
|
}"
|
|
84
83
|
@change="change(conditionItem, arguments)"
|
|
85
|
-
></dsh-
|
|
84
|
+
></dsh-checkbox>
|
|
86
85
|
|
|
87
86
|
<!-- 为空和不为空时 啥不显示 -->
|
|
88
87
|
<div
|
|
@@ -350,3 +349,156 @@
|
|
|
350
349
|
}
|
|
351
350
|
};
|
|
352
351
|
</script>
|
|
352
|
+
|
|
353
|
+
<style lang="less" scoped>
|
|
354
|
+
.DshAdvSearch {
|
|
355
|
+
#title {
|
|
356
|
+
font-weight: 400;
|
|
357
|
+
color: #999999;
|
|
358
|
+
font-size: 14px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&-title {
|
|
362
|
+
#title();
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
&-logic {
|
|
366
|
+
margin: 5px 0px 10px;
|
|
367
|
+
.dsh-flex-row-start-center();
|
|
368
|
+
|
|
369
|
+
&-title {
|
|
370
|
+
#title();
|
|
371
|
+
}
|
|
372
|
+
&-option {
|
|
373
|
+
flex: 1;
|
|
374
|
+
min-width: 100px;
|
|
375
|
+
margin-left: 20px;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
&-conditions {
|
|
380
|
+
&-delete {
|
|
381
|
+
display: none;
|
|
382
|
+
padding: 3px;
|
|
383
|
+
position: absolute;
|
|
384
|
+
top: 6px;
|
|
385
|
+
right: 2px;
|
|
386
|
+
color: red;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
&-loop,
|
|
390
|
+
&-item {
|
|
391
|
+
position: relative;
|
|
392
|
+
|
|
393
|
+
&:hover,
|
|
394
|
+
&-active {
|
|
395
|
+
.DshAdvSearch-conditions-delete {
|
|
396
|
+
display: inline-block;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
&-loop {
|
|
402
|
+
padding: 10px;
|
|
403
|
+
margin: 6px;
|
|
404
|
+
border: 1px solid @placeholderColor;
|
|
405
|
+
background-color: #F4F8FF;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
&-item {
|
|
409
|
+
padding: 0!important;
|
|
410
|
+
margin-bottom: 10px!important;
|
|
411
|
+
cursor: pointer;
|
|
412
|
+
|
|
413
|
+
.DshFormUnit-label-right {
|
|
414
|
+
flex: 6;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
&-loading {
|
|
418
|
+
margin: 5px 0px;
|
|
419
|
+
text-align: center;
|
|
420
|
+
font-size: 16px;
|
|
421
|
+
color: @textColor;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
&-control {
|
|
425
|
+
.dsh-margin-bottom5();
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
&-blank {
|
|
429
|
+
text-align: center;
|
|
430
|
+
line-height: 30px;
|
|
431
|
+
color: @placeholderColor;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
&-extra {
|
|
435
|
+
text-align: right;
|
|
436
|
+
padding-right: 10px;
|
|
437
|
+
|
|
438
|
+
.extra {
|
|
439
|
+
&-dynamic {
|
|
440
|
+
width: 90px;
|
|
441
|
+
display: inline-block;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&-operator {
|
|
445
|
+
.dsh-margin-right10();
|
|
446
|
+
|
|
447
|
+
&-wrap {
|
|
448
|
+
display: inline-block;
|
|
449
|
+
padding: 5px;
|
|
450
|
+
|
|
451
|
+
&:hover {
|
|
452
|
+
background-color: #E8F3FD;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
&-name {
|
|
457
|
+
display: inline-block;
|
|
458
|
+
min-width: 36px;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
&-icon {
|
|
462
|
+
.dsh-margin-left5();
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
&-btns {
|
|
471
|
+
width: 100%;
|
|
472
|
+
margin-top: 15px;
|
|
473
|
+
.dsh-flex-row-start-center();
|
|
474
|
+
|
|
475
|
+
&-field {
|
|
476
|
+
flex: 3;
|
|
477
|
+
|
|
478
|
+
&-list {
|
|
479
|
+
width: 330px;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
&-create {
|
|
483
|
+
#btn-style();
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
&-loop {
|
|
488
|
+
flex: 1;
|
|
489
|
+
margin-left: 12px;
|
|
490
|
+
|
|
491
|
+
&-create {
|
|
492
|
+
#btn-style();
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
&-nodata {
|
|
498
|
+
margin: 20px 0px;
|
|
499
|
+
text-align: center;
|
|
500
|
+
font-size: 16px;
|
|
501
|
+
color: #B8BECC;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="DshDefaultSearch
|
|
3
|
+
class="DshDefaultSearch"
|
|
4
4
|
:style="{
|
|
5
5
|
'margin-bottom': canUseFold ? '20px' : undefined
|
|
6
6
|
}"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
>
|
|
22
22
|
<dsh-form-unit
|
|
23
23
|
:key="conditionItem._id"
|
|
24
|
-
class="
|
|
24
|
+
class="item"
|
|
25
25
|
:formData="conditionItem"
|
|
26
26
|
:formItem="conditionItem.formItem"
|
|
27
27
|
height="46"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
>
|
|
32
32
|
<span
|
|
33
33
|
slot="label"
|
|
34
|
-
class="
|
|
34
|
+
class="item-name"
|
|
35
35
|
>
|
|
36
36
|
{{ conditionItem.formItem._name }}
|
|
37
37
|
</span>
|
|
@@ -53,11 +53,10 @@
|
|
|
53
53
|
v-if="canUseFold"
|
|
54
54
|
class="DshDefaultSearch-fold"
|
|
55
55
|
>
|
|
56
|
-
<!-- <div class="DshDefaultSearch-fold-zhanwei"></div> -->
|
|
57
56
|
<Icon
|
|
58
57
|
:class="[
|
|
59
|
-
'
|
|
60
|
-
isSpreadStatus ? 'arrow-up' : 'arrow-down'
|
|
58
|
+
'icon',
|
|
59
|
+
isSpreadStatus ? 'icon-arrow-up' : 'icon-arrow-down'
|
|
61
60
|
]"
|
|
62
61
|
custom="bico-font bico-shuangjiantou"
|
|
63
62
|
@click="toggleSpreadStatus"
|
|
@@ -165,9 +164,11 @@
|
|
|
165
164
|
getFormItem (formItem) {
|
|
166
165
|
return {
|
|
167
166
|
...this.formatFormItem(formItem),
|
|
167
|
+
isOnDftSearch: true,
|
|
168
168
|
|
|
169
169
|
_line: true,
|
|
170
170
|
_useColor: false,
|
|
171
|
+
_optionKind: "dropdown",
|
|
171
172
|
|
|
172
173
|
...(
|
|
173
174
|
// date、daterange类型的(formItem._type基本不会为daterange)
|
|
@@ -175,12 +176,6 @@
|
|
|
175
176
|
? {
|
|
176
177
|
_useShortcuts: false
|
|
177
178
|
}
|
|
178
|
-
// select、checkbox、以及switch(都会转成checkbox)类型的
|
|
179
|
-
: ["switch", "select", "checkbox"].includes(formItem._type)
|
|
180
|
-
? {
|
|
181
|
-
_optionKind: "dropdown",
|
|
182
|
-
_useColor: false
|
|
183
|
-
}
|
|
184
179
|
// labels类型的
|
|
185
180
|
: ["labels"].includes(formItem._type)
|
|
186
181
|
? {
|
|
@@ -201,3 +196,90 @@
|
|
|
201
196
|
}
|
|
202
197
|
};
|
|
203
198
|
</script>
|
|
199
|
+
|
|
200
|
+
<style lang="less" scoped>
|
|
201
|
+
.DshDefaultSearch {
|
|
202
|
+
position: relative;
|
|
203
|
+
background: #fff;
|
|
204
|
+
|
|
205
|
+
&-form {
|
|
206
|
+
position: relative;
|
|
207
|
+
z-index: 2;
|
|
208
|
+
|
|
209
|
+
.item {
|
|
210
|
+
padding: 0 !important;
|
|
211
|
+
padding-bottom: 6px !important;
|
|
212
|
+
padding-top: 6px !important;
|
|
213
|
+
margin-top: 0px !important;
|
|
214
|
+
margin-bottom: 0px !important;
|
|
215
|
+
|
|
216
|
+
&-name {}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
//展开图标
|
|
221
|
+
&-fold {
|
|
222
|
+
width: 100%;
|
|
223
|
+
text-align: center;
|
|
224
|
+
position: absolute;
|
|
225
|
+
bottom: -24px;
|
|
226
|
+
left: 0px;
|
|
227
|
+
|
|
228
|
+
.icon {
|
|
229
|
+
width: 48px;
|
|
230
|
+
height: 20px;
|
|
231
|
+
text-align: center;
|
|
232
|
+
line-height: 20px;
|
|
233
|
+
background: #fff;
|
|
234
|
+
box-shadow: 0 0 16px 0 rgba(51, 51, 51, 0.1);
|
|
235
|
+
font-size: 14px;
|
|
236
|
+
color: #999999;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
|
|
239
|
+
&-arrow-up {
|
|
240
|
+
transform: rotate(180deg);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&-arrow-down {
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
</style>
|
|
250
|
+
<style lang="less">
|
|
251
|
+
.DshDefaultSearch {
|
|
252
|
+
// 输入框/下拉框
|
|
253
|
+
input,
|
|
254
|
+
.ivu-select-selection,
|
|
255
|
+
.ivu-cascader-size-default,
|
|
256
|
+
.DshCascader-multiple-input,
|
|
257
|
+
.DshDaterange-item {
|
|
258
|
+
border-radius: 0;
|
|
259
|
+
|
|
260
|
+
.ivu-select-input {
|
|
261
|
+
top: 0px!important;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.DshCascader-multiple-input {
|
|
266
|
+
height: 32px;
|
|
267
|
+
padding: 1px 6px;
|
|
268
|
+
overflow: hidden!important;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.DshFormUnit-label {
|
|
272
|
+
width: 80px;
|
|
273
|
+
margin-right: 16px;
|
|
274
|
+
text-align: right;
|
|
275
|
+
|
|
276
|
+
&-right {
|
|
277
|
+
text-align: left;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&-name {
|
|
281
|
+
font-family: "Microsoft YaHei";
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
</style>
|
|
@@ -392,3 +392,27 @@
|
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
</script>
|
|
395
|
+
|
|
396
|
+
<style lang="less" scoped>
|
|
397
|
+
.DshForm {
|
|
398
|
+
padding-bottom: 5px;
|
|
399
|
+
|
|
400
|
+
&-item-FormItem {
|
|
401
|
+
margin-bottom: 0px;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
</style>
|
|
405
|
+
<style lang="less">
|
|
406
|
+
.DshForm {
|
|
407
|
+
.ivu-form-item-content {
|
|
408
|
+
line-height: normal;
|
|
409
|
+
|
|
410
|
+
.ivu-form-item-error-tip {
|
|
411
|
+
top: calc(100% - 8px);
|
|
412
|
+
left: 16px;
|
|
413
|
+
padding-top: 0px;
|
|
414
|
+
font-size: 12px;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
</style>
|
|
@@ -131,33 +131,20 @@ export default {
|
|
|
131
131
|
},
|
|
132
132
|
// 格式化表单配置,适合需要
|
|
133
133
|
formatFormItem (formItem) {
|
|
134
|
-
const fieldData = this.fieldMap[formItem._type];
|
|
135
|
-
|
|
136
134
|
return {
|
|
137
135
|
...formItem,
|
|
138
|
-
|
|
136
|
+
onSearch: true,
|
|
137
|
+
|
|
139
138
|
_key: "fieldValue",
|
|
140
139
|
__realKey__: formItem._key,
|
|
141
140
|
_description: undefined,
|
|
142
141
|
_required: false,
|
|
143
142
|
_br: false,
|
|
144
143
|
_wrap: false,
|
|
144
|
+
|
|
145
|
+
_multiple: true,
|
|
145
146
|
_enterType: undefined,
|
|
146
|
-
canEdit: true
|
|
147
|
-
_data: ["switch"].includes(formItem._type)
|
|
148
|
-
? [
|
|
149
|
-
{
|
|
150
|
-
_key: "true",
|
|
151
|
-
name: formItem._openText,
|
|
152
|
-
color: "#87e8de"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
_key: "false",
|
|
156
|
-
name: formItem._closeText,
|
|
157
|
-
color: "#87e8de"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
: formItem._data
|
|
147
|
+
canEdit: true
|
|
161
148
|
};
|
|
162
149
|
},
|
|
163
150
|
|
|
@@ -238,8 +238,8 @@
|
|
|
238
238
|
</div>
|
|
239
239
|
|
|
240
240
|
<!-- 底部滚动条 -->
|
|
241
|
-
<!-- <div class="briGantt-
|
|
242
|
-
<div class="briGantt-
|
|
241
|
+
<!-- <div class="briGantt-scroll">
|
|
242
|
+
<div class="briGantt-scroll-main"
|
|
243
243
|
ref="briGanttScrollbar"
|
|
244
244
|
:style="{ width: clientWidth + 'px' }"
|
|
245
245
|
v-on:scroll="handleScroll($event, [{ ref: 'briGanttTimer', direction: 'scrollLeft' }, { ref:'briGanttArea', direction:'scrollLeft' }, { ref:'briGanttBlue', direction:'scrollLeft' }])">
|
|
@@ -158,3 +158,111 @@
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
</script>
|
|
161
|
+
|
|
162
|
+
<style lang="less" scoped>
|
|
163
|
+
.DshFormUnit {
|
|
164
|
+
margin: 3px 6px;
|
|
165
|
+
padding: 2px 10px 8px;
|
|
166
|
+
|
|
167
|
+
&-label {
|
|
168
|
+
min-width: 0px;
|
|
169
|
+
padding: 5px 0px 5px;
|
|
170
|
+
line-height: 20px;
|
|
171
|
+
font-size: @smallSize;
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
|
|
175
|
+
&-left {
|
|
176
|
+
flex: 2;
|
|
177
|
+
min-width: 150px;
|
|
178
|
+
position: relative;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&-right {
|
|
182
|
+
flex: 1;
|
|
183
|
+
min-width: 0px;
|
|
184
|
+
text-align: right;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-name {
|
|
188
|
+
font-size: @textSize;
|
|
189
|
+
.dsh-ellipsis();
|
|
190
|
+
|
|
191
|
+
&-edit {
|
|
192
|
+
color: @textColor;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&-show {
|
|
196
|
+
color: @contentColor;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&-sign {
|
|
200
|
+
#dsh-sign-change();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&-description {
|
|
205
|
+
color: #60c0ec;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&-control {
|
|
210
|
+
min-height: 32px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&-line {
|
|
214
|
+
display: flex;
|
|
215
|
+
justify-content: space-between;
|
|
216
|
+
align-items: center;
|
|
217
|
+
|
|
218
|
+
.DshFormUnit-label {
|
|
219
|
+
max-width: 280px;
|
|
220
|
+
// min-width: 100px;
|
|
221
|
+
font-size: @textSize;
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
margin: 0px;
|
|
224
|
+
margin-right: 8px;
|
|
225
|
+
|
|
226
|
+
// fixedbug:line模式下显示必填
|
|
227
|
+
margin-left: -10px;
|
|
228
|
+
padding-left: 10px;
|
|
229
|
+
|
|
230
|
+
&-left {
|
|
231
|
+
flex: 1;
|
|
232
|
+
min-width: 40px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&-right {
|
|
236
|
+
flex: none;
|
|
237
|
+
max-width: 50%;
|
|
238
|
+
min-width: 0px;
|
|
239
|
+
text-align: right;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.DshFormUnit-control {
|
|
244
|
+
flex: 1;
|
|
245
|
+
min-width: 50px;
|
|
246
|
+
display: flex;
|
|
247
|
+
justify-content: flex-end;
|
|
248
|
+
align-items: center;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&-required {
|
|
253
|
+
.DshFormUnit-label-name:before {
|
|
254
|
+
content: '*';
|
|
255
|
+
display: inline-block;
|
|
256
|
+
line-height: 1.5;
|
|
257
|
+
font-family: SimSun;
|
|
258
|
+
font-size: @smallTitleSize;
|
|
259
|
+
font-weight: 500;
|
|
260
|
+
color: #E94829;
|
|
261
|
+
position: absolute;
|
|
262
|
+
left: -10px;
|
|
263
|
+
width: 6px;
|
|
264
|
+
font-size: @textSize;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -25,10 +25,10 @@ import DshFormUnit from "./components/unit/DshFormUnit.vue";
|
|
|
25
25
|
import DshListUnit from "./components/unit/DshListUnit.vue";
|
|
26
26
|
// controls
|
|
27
27
|
import BriControlInput from "./components/controls/BriControlInput.vue";
|
|
28
|
-
import DshInput from "./components/controls/base/DshInput.vue";
|
|
28
|
+
import DshInput from "./components/controls/base/DshInput/DshInput.vue";
|
|
29
29
|
import DshNumber from "./components/controls/base/DshNumber/DshNumber.vue";
|
|
30
|
-
import DshSelect from "./components/controls/base/DshSelect.vue";
|
|
31
|
-
import DshCheckbox from "./components/controls/base/DshCheckbox.vue";
|
|
30
|
+
import DshSelect from "./components/controls/base/DshSelect/DshSelect.vue";
|
|
31
|
+
import DshCheckbox from "./components/controls/base/DshSelect/DshCheckbox.vue";
|
|
32
32
|
import DshCascader from "./components/controls/base/DshCascader/DshCascader.vue";
|
|
33
33
|
|
|
34
34
|
// other
|
|
@@ -65,11 +65,11 @@ import BriTree from "./components/list/BriTree.vue";
|
|
|
65
65
|
import BriTreeItem from "./components/list/BriTreeItem.vue";
|
|
66
66
|
|
|
67
67
|
// controls
|
|
68
|
-
import BriInputs from "./components/controls/base/BriInputs.vue";
|
|
69
|
-
import DshNumberange from "./components/controls/base/DshNumberange.vue";
|
|
70
|
-
import DshDate from "./components/controls/base/DshDate.vue";
|
|
71
|
-
import DshDaterange from "./components/controls/base/DshDaterange.vue";
|
|
72
|
-
import DshSwitch from "./components/controls/base/DshSwitch.vue";
|
|
68
|
+
// import BriInputs from "./components/controls/base/DshInput/BriInputs.vue";
|
|
69
|
+
// import DshNumberange from "./components/controls/base/DshNumber/DshNumberange.vue";
|
|
70
|
+
import DshDate from "./components/controls/base/DshDate/DshDate.vue";
|
|
71
|
+
import DshDaterange from "./components/controls/base/DshDate/DshDaterange.vue";
|
|
72
|
+
import DshSwitch from "./components/controls/base/DshSwitch/DshSwitch.vue";
|
|
73
73
|
import BriUpload from "./components/controls/base/BriUpload/BriUpload.vue";
|
|
74
74
|
import BriUploadImage from "./components/controls/base/BriUpload/BriUploadImage.vue";
|
|
75
75
|
import DshCoordinates from "./components/controls/base/DshCoordinates.vue";
|
|
@@ -232,8 +232,8 @@ export {
|
|
|
232
232
|
BriTree,
|
|
233
233
|
BriTreeItem,
|
|
234
234
|
|
|
235
|
-
BriInputs,
|
|
236
|
-
DshNumberange,
|
|
235
|
+
// BriInputs,
|
|
236
|
+
// DshNumberange,
|
|
237
237
|
DshDate,
|
|
238
238
|
DshDaterange,
|
|
239
239
|
DshSwitch,
|
|
@@ -15,22 +15,8 @@
|
|
|
15
15
|
@import "./list/BriTree.less";
|
|
16
16
|
@import "./list/BriTreeItem.less";
|
|
17
17
|
|
|
18
|
-
// form
|
|
19
|
-
@import "./form/DshForm.less";
|
|
20
|
-
@import "./form/DshAdvSearch.less";
|
|
21
|
-
@import "./form/DshDefaultSearch.less";
|
|
22
|
-
// unit
|
|
23
|
-
@import "./unit/DshFormUnit.less";
|
|
24
|
-
@import "./unit/DshListUnit.less";
|
|
25
|
-
|
|
26
18
|
@import "./controls/base/DshInput.less";
|
|
27
19
|
@import "./controls/base/BriInputs.less";
|
|
28
|
-
@import "./controls/base/DshNumber.less";
|
|
29
|
-
@import "./controls/base/DshNumberange.less";
|
|
30
|
-
@import "./controls/base/DshSelect.less";
|
|
31
|
-
@import "./controls/base/DshCheckbox.less";
|
|
32
|
-
@import "./controls/base/DshDate.less";
|
|
33
|
-
@import "./controls/base/DshDaterange.less";
|
|
34
20
|
@import "./controls/base/DshCascader/index.less";
|
|
35
21
|
@import "./controls/base/BriUpload/index.less";
|
|
36
22
|
@import "./controls/base/DshCoordinates.less";
|
|
@@ -258,21 +258,10 @@
|
|
|
258
258
|
height: 0px;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
+
|
|
261
262
|
// table 列表映射
|
|
262
263
|
&-tabledata {
|
|
263
264
|
overflow-y: auto;
|
|
264
265
|
border-right: none;
|
|
265
266
|
}
|
|
266
|
-
// 滚动条设置
|
|
267
|
-
&-scrollbar {
|
|
268
|
-
width: 100%;
|
|
269
|
-
&-main {
|
|
270
|
-
float: right;
|
|
271
|
-
overflow: auto;
|
|
272
|
-
div {
|
|
273
|
-
height: 2px;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
}
|
|
278
267
|
}
|
|
@@ -32,4 +32,50 @@
|
|
|
32
32
|
// @btn-padding-base : 0 @padding-md - 1px;
|
|
33
33
|
// @btn-padding-large : @btn-padding-base;
|
|
34
34
|
// @btn-padding-small : 0 @padding-xs - 1px;
|
|
35
|
-
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.ivu-select {
|
|
38
|
+
.ivu-select-selection {
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-disabled {
|
|
43
|
+
.ivu-select-selection {
|
|
44
|
+
.bri-control-disabled();
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
border-color: @border-disabled;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ivu-select-input[disabled] {
|
|
52
|
+
color: @textColor;
|
|
53
|
+
-webkit-text-fill-color: @placeholder-disabled-color;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-item {
|
|
58
|
+
margin: 4px 8px;
|
|
59
|
+
border-radius: @borderRadius;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
background: @bgColor;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-selected {
|
|
66
|
+
background-color: @theme-focus;
|
|
67
|
+
color: @themeColor;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-disabled {
|
|
71
|
+
.ivu-select-selection {
|
|
72
|
+
.bri-control-disabled();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-input[disabled] {
|
|
77
|
+
color: @textColor-disabled;
|
|
78
|
+
-webkit-text-fill-color: @textColor-disabled;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|