bri-components 1.2.50 → 1.2.52
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/BriControlInput.vue +9 -6
- package/src/components/controls/base/BriUpload/BriUpload.vue +170 -0
- package/src/components/controls/base/BriUpload/BriUploadImage.vue +90 -0
- package/src/components/controls/base/BriUpload/uploadList.vue +166 -0
- package/src/components/controls/base/DshCascader/DshCascader.vue +51 -0
- package/src/components/controls/base/DshCascader/InfoCascader.vue +63 -1
- package/src/components/controls/base/DshCoordinates.vue +64 -4
- package/src/components/controls/base/DshDate/DshDate.vue +1 -1
- package/src/components/controls/base/DshDate/DshDaterange.vue +55 -99
- package/src/components/controls/base/DshDivider.vue +163 -36
- package/src/components/controls/base/DshEditor.vue +1 -1
- package/src/components/controls/base/DshInput/BriInputs.vue +59 -1
- package/src/components/controls/base/DshInput/DshInput.vue +17 -3
- package/src/components/controls/base/DshNumber/DshNumber.vue +1 -42
- package/src/components/controls/base/DshNumber/DshNumberange.vue +9 -9
- package/src/components/controls/base/DshSelect/selectMixin.js +1 -3
- package/src/components/controls/base/DshSwitch/DshSwitch.vue +0 -5
- package/src/components/controls/base/DshSwitch/switchMixin.js +4 -4
- package/src/components/controls/controlMap.js +13 -4
- package/src/components/controls/controlMixin.js +6 -2
- package/src/components/controls/extra/themeColor.vue +115 -0
- package/src/components/controls/extra/themeIcon.vue +124 -0
- package/src/components/controls/senior/BriLabels.vue +63 -4
- package/src/components/controls/senior/DshPackage.vue +30 -32
- package/src/components/controls/senior/cascaderTable.vue +25 -4
- package/src/components/controls/senior/flatTable.vue +34 -12
- package/src/components/controls/senior/selectDepartments.vue +78 -4
- package/src/components/controls/senior/selectUsers/DepartmentMenu.vue +120 -29
- package/src/components/controls/senior/selectUsers/selectUsers.vue +179 -5
- package/src/components/controls/special/DshBack.vue +1 -1
- package/src/components/controls/special/DshUndeveloped.vue +1 -1
- package/src/components/form/DshDefaultSearch.vue +43 -81
- package/src/components/form/DshForm.vue +1 -1
- package/src/components/unit/DshFormUnit.vue +11 -10
- package/src/index.js +6 -4
- package/src/styles/components/index.less +0 -14
- package/src/styles/index.less +5 -3
- package/src/styles/reset-iview-controls.less +123 -0
- package/src/styles/{reset-iview.less → reset-iview-variables.less} +1 -47
- package/src/abolish/BriTransfer.less +0 -65
- package/src/abolish/BriTransfer.vue +0 -71
- package/src/abolish/BriTree.less +0 -57
- package/src/abolish/DshCascaders.less +0 -11
- package/src/abolish/DshCascaders.vue +0 -151
- package/src/abolish/DshCrumbs.less +0 -0
- package/src/abolish/DshCrumbs.vue +0 -62
- package/src/abolish/DshCrumbsItem.vue +0 -109
- package/src/abolish/DshEditPanel.less +0 -70
- package/src/abolish/DshEditPanel.vue +0 -152
- package/src/abolish/DshFileShow.less +0 -61
- package/src/abolish/DshFileShow.vue +0 -0
- package/src/abolish/DshFlatTable.less +0 -93
- package/src/abolish/DshFlatTable.vue +0 -605
- package/src/abolish/DshMenu.less +0 -37
- package/src/abolish/DshMenu.vue +0 -133
- package/src/abolish/DshTexts.less +0 -13
- package/src/abolish/DshTexts.vue +0 -89
- package/src/styles/components/controls/.DS_Store +0 -0
- package/src/styles/components/controls/base/BriInputs.less +0 -55
- package/src/styles/components/controls/base/BriUpload/BriUpload.less +0 -167
- package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +0 -87
- package/src/styles/components/controls/base/BriUpload/index.less +0 -3
- package/src/styles/components/controls/base/BriUpload/uploadList.less +0 -164
- package/src/styles/components/controls/base/DshCascader/DshCascader.less +0 -67
- package/src/styles/components/controls/base/DshCascader/InfoCascader.less +0 -59
- package/src/styles/components/controls/base/DshCascader/index.less +0 -2
- package/src/styles/components/controls/base/DshCoordinates.less +0 -67
- package/src/styles/components/controls/base/DshDivider.less +0 -115
- package/src/styles/components/controls/base/DshInput.less +0 -29
- package/src/styles/components/controls/senior/.DS_Store +0 -0
- package/src/styles/components/controls/senior/BriLabels.less +0 -66
- package/src/styles/components/controls/senior/DshPackage.less +0 -25
- package/src/styles/components/controls/senior/cascaderTable.less +0 -19
- package/src/styles/components/controls/senior/flatTable.less +0 -20
- package/src/styles/components/controls/senior/selectDepartments.less +0 -73
- package/src/styles/components/controls/senior/selectUsers/DepartmentMenu.less +0 -37
- package/src/styles/components/controls/senior/selectUsers/index.less +0 -2
- package/src/styles/components/controls/senior/selectUsers/selectUsers.less +0 -180
- /package/src/{abolish/DshCrumbItem.less → styles/reset-iview-other.less} +0 -0
|
@@ -29,26 +29,19 @@
|
|
|
29
29
|
@on-change="changeVal($event, 0)"
|
|
30
30
|
@on-open-change="changeOpen($event, 0)"
|
|
31
31
|
>
|
|
32
|
-
<
|
|
33
|
-
class="
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/>
|
|
46
|
-
<Icon
|
|
47
|
-
v-show="!val0"
|
|
48
|
-
type="ios-calendar-outline"
|
|
49
|
-
/>
|
|
50
|
-
</span>
|
|
51
|
-
</div>
|
|
32
|
+
<bri-control-input
|
|
33
|
+
:class="{
|
|
34
|
+
...commonClass,
|
|
35
|
+
'bri-control-nodata': this.$isEmptyData(this.showVal0),
|
|
36
|
+
'DshDaterange-item': true
|
|
37
|
+
}"
|
|
38
|
+
:canEdit="finalCanEdit"
|
|
39
|
+
:value="showVal0"
|
|
40
|
+
inputIcon="ios-calendar-outline"
|
|
41
|
+
:propsObj="selfPropsObj"
|
|
42
|
+
@clear="clickClear('', 0)"
|
|
43
|
+
@click.native="changeOpen(true, 0)"
|
|
44
|
+
></bri-control-input>
|
|
52
45
|
</DatePicker>
|
|
53
46
|
|
|
54
47
|
<span class="DshDaterange-center"> — </span>
|
|
@@ -66,26 +59,19 @@
|
|
|
66
59
|
@on-change="changeVal($event, 1)"
|
|
67
60
|
@on-open-change="changeOpen($event, 1)"
|
|
68
61
|
>
|
|
69
|
-
<
|
|
70
|
-
class="
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/>
|
|
83
|
-
<Icon
|
|
84
|
-
v-show="!val1"
|
|
85
|
-
type="ios-calendar-outline"
|
|
86
|
-
/>
|
|
87
|
-
</span>
|
|
88
|
-
</div>
|
|
62
|
+
<bri-control-input
|
|
63
|
+
:class="{
|
|
64
|
+
...commonClass,
|
|
65
|
+
'bri-control-nodata': this.$isEmptyData(this.showVal1),
|
|
66
|
+
'DshDaterange-item': true
|
|
67
|
+
}"
|
|
68
|
+
:canEdit="finalCanEdit"
|
|
69
|
+
:value="showVal1"
|
|
70
|
+
inputIcon="ios-calendar-outline"
|
|
71
|
+
:propsObj="selfPropsObj"
|
|
72
|
+
@clear="clickClear('', 1)"
|
|
73
|
+
@click.native="changeOpen(true, 1)"
|
|
74
|
+
></bri-control-input>
|
|
89
75
|
</DatePicker>
|
|
90
76
|
</template>
|
|
91
77
|
</div>
|
|
@@ -224,28 +210,13 @@
|
|
|
224
210
|
};
|
|
225
211
|
},
|
|
226
212
|
computed: {
|
|
227
|
-
val0: {
|
|
228
|
-
get () {
|
|
229
|
-
return this.getVal(0);
|
|
230
|
-
},
|
|
231
|
-
set (val) {
|
|
232
|
-
this.setVal(val, 0);
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
val1: {
|
|
236
|
-
get () {
|
|
237
|
-
return this.getVal(1);
|
|
238
|
-
},
|
|
239
|
-
set (val) {
|
|
240
|
-
this.setVal(val, 1);
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
|
|
244
213
|
selfPropsObj () {
|
|
245
214
|
return {
|
|
246
215
|
_useShortcuts: true,
|
|
216
|
+
|
|
247
217
|
...this.propsObj,
|
|
248
218
|
...this.commonDealPropsObj,
|
|
219
|
+
|
|
249
220
|
_type: "date"
|
|
250
221
|
};
|
|
251
222
|
},
|
|
@@ -255,18 +226,34 @@
|
|
|
255
226
|
useShortcuts () {
|
|
256
227
|
return this.selfPropsObj._useShortcuts;
|
|
257
228
|
},
|
|
258
|
-
|
|
259
229
|
options0 () {
|
|
260
230
|
return this.getOptions(0);
|
|
261
231
|
},
|
|
262
232
|
options1 () {
|
|
263
233
|
return this.getOptions(1);
|
|
264
234
|
},
|
|
235
|
+
|
|
236
|
+
val0: {
|
|
237
|
+
get () {
|
|
238
|
+
return this.getVal(0);
|
|
239
|
+
},
|
|
240
|
+
set (val) {
|
|
241
|
+
this.setVal(val, 0);
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
val1: {
|
|
245
|
+
get () {
|
|
246
|
+
return this.getVal(1);
|
|
247
|
+
},
|
|
248
|
+
set (val) {
|
|
249
|
+
this.setVal(val, 1);
|
|
250
|
+
}
|
|
251
|
+
},
|
|
265
252
|
showVal0 () {
|
|
266
|
-
return this.getShowVal(
|
|
253
|
+
return this.getShowVal(this.val0);
|
|
267
254
|
},
|
|
268
255
|
showVal1 () {
|
|
269
|
-
return this.getShowVal(
|
|
256
|
+
return this.getShowVal(this.val1);
|
|
270
257
|
}
|
|
271
258
|
},
|
|
272
259
|
created () {},
|
|
@@ -328,9 +315,7 @@
|
|
|
328
315
|
}
|
|
329
316
|
};
|
|
330
317
|
},
|
|
331
|
-
getShowVal (
|
|
332
|
-
const val = this[`val${index}`];
|
|
333
|
-
|
|
318
|
+
getShowVal (val) {
|
|
334
319
|
return this.isDynDateKey(val)
|
|
335
320
|
? (this.dynDate.find(dynItem => dynItem._key === val) || { name: `"${val}"dnDate不存在` }).name
|
|
336
321
|
: this.$transformDate(val, "-", this.subType);
|
|
@@ -342,56 +327,27 @@
|
|
|
342
327
|
};
|
|
343
328
|
</script>
|
|
344
329
|
|
|
345
|
-
<style lang="less"
|
|
330
|
+
<style lang="less">
|
|
346
331
|
.DshDaterange {
|
|
347
332
|
width: 100%;
|
|
333
|
+
display: flex;
|
|
334
|
+
align-items: center;
|
|
348
335
|
|
|
349
336
|
&-left,
|
|
350
337
|
&-right {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
background-color: #ffffff;
|
|
338
|
+
flex: 7;
|
|
339
|
+
min-width: 0px;
|
|
354
340
|
}
|
|
355
341
|
|
|
356
342
|
&-center {
|
|
357
|
-
|
|
343
|
+
flex: 1;
|
|
344
|
+
min-width: 10px;
|
|
358
345
|
text-align: center;
|
|
359
346
|
color: @textColor;
|
|
360
|
-
overflow: hidden;
|
|
361
|
-
line-height: 30px;
|
|
362
|
-
float: left;
|
|
363
|
-
margin: 0 1.5%;
|
|
364
347
|
}
|
|
365
348
|
|
|
366
349
|
&-item {
|
|
367
|
-
height: 32px;
|
|
368
|
-
border: 1px solid @borderColor;
|
|
369
|
-
border-radius: 4px;
|
|
370
|
-
overflow: hidden;
|
|
371
|
-
position: relative;
|
|
372
350
|
|
|
373
|
-
&-name {
|
|
374
|
-
display: inline-block;
|
|
375
|
-
width: 100%;
|
|
376
|
-
height: 100%;
|
|
377
|
-
line-height: 30px;
|
|
378
|
-
overflow: hidden;
|
|
379
|
-
padding-right: 32px;
|
|
380
|
-
padding-left: 7px;
|
|
381
|
-
white-space: nowrap;
|
|
382
|
-
text-overflow: ellipsis;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
&-icon {
|
|
386
|
-
position: absolute;
|
|
387
|
-
right: 0px;
|
|
388
|
-
top: 0px;
|
|
389
|
-
display: inline-block;
|
|
390
|
-
width: 32px;
|
|
391
|
-
height: 100%;
|
|
392
|
-
text-align: center;
|
|
393
|
-
line-height: 30px;
|
|
394
|
-
}
|
|
395
351
|
}
|
|
396
352
|
}
|
|
397
353
|
</style>
|
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="DshDivider"
|
|
4
|
+
:style="propsObj._tagKind === 'flag' ? { marginRight:'36px' } : {}"
|
|
5
|
+
>
|
|
6
|
+
<!-- <div class="DshDivider-cli">
|
|
4
7
|
<p>{{ propsObj._name }}</p>
|
|
5
8
|
</div> -->
|
|
9
|
+
|
|
10
|
+
<div
|
|
11
|
+
v-if="propsObj._tagKind === 'flag'"
|
|
12
|
+
class="DshDivider-flag"
|
|
13
|
+
>
|
|
14
|
+
<Icon
|
|
15
|
+
size="15"
|
|
16
|
+
style="margin-top: -1px"
|
|
17
|
+
:custom="'bico-font ' + propsObj._tagIcon"
|
|
18
|
+
/>
|
|
19
|
+
<p>{{ propsObj._name }}</p>
|
|
20
|
+
<span class="triangle-topleft"></span>
|
|
21
|
+
<span class="triangle-topright"></span>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
6
24
|
<div
|
|
7
|
-
|
|
8
|
-
|
|
25
|
+
v-else-if="propsObj._tagKind === 'line'"
|
|
26
|
+
class="DshDivider-line"
|
|
9
27
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div
|
|
25
|
-
v-else-if="propsObj._tagKind === 'line'"
|
|
26
|
-
class="DshDivider-divider-line"
|
|
27
|
-
>
|
|
28
|
-
<p>{{ propsObj._name }}</p>
|
|
29
|
-
<span></span>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div
|
|
33
|
-
v-else-if="propsObj._tagKind === 'circle'"
|
|
34
|
-
class="DshDivider-divider-circle"
|
|
35
|
-
>
|
|
36
|
-
<span class="DshDivider-divider-circle-icon">
|
|
37
|
-
<Icon :custom="'bico-font ' + propsObj._tagIcon" />
|
|
38
|
-
</span>
|
|
39
|
-
<p>{{ propsObj._name }}</p>
|
|
40
|
-
</div>
|
|
28
|
+
<p>{{ propsObj._name }}</p>
|
|
29
|
+
<span></span>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div
|
|
33
|
+
v-else-if="propsObj._tagKind === 'circle'"
|
|
34
|
+
class="DshDivider-circle"
|
|
35
|
+
>
|
|
36
|
+
<span class="DshDivider-circle-icon">
|
|
37
|
+
<Icon :custom="'bico-font ' + propsObj._tagIcon" />
|
|
38
|
+
</span>
|
|
39
|
+
<p>{{ propsObj._name }}</p>
|
|
41
40
|
</div>
|
|
42
41
|
</div>
|
|
43
42
|
</template>
|
|
@@ -47,7 +46,9 @@
|
|
|
47
46
|
|
|
48
47
|
export default {
|
|
49
48
|
name: "DshDivider",
|
|
50
|
-
mixins: [
|
|
49
|
+
mixins: [
|
|
50
|
+
controlMixin
|
|
51
|
+
],
|
|
51
52
|
props: {},
|
|
52
53
|
data () {
|
|
53
54
|
return {};
|
|
@@ -57,3 +58,129 @@
|
|
|
57
58
|
methods: {}
|
|
58
59
|
};
|
|
59
60
|
</script>
|
|
61
|
+
|
|
62
|
+
<style lang="less">
|
|
63
|
+
.DshDivider {
|
|
64
|
+
margin-right: 20px;
|
|
65
|
+
font-family: SourceHanSansCN-Medium,SourceHanSansCN;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
|
|
69
|
+
p {
|
|
70
|
+
margin-left: 10px;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// &-cli {
|
|
77
|
+
// margin-right: 20px;
|
|
78
|
+
// line-height: 32px;
|
|
79
|
+
// font-family:SourceHanSansCN-Medium,SourceHanSansCN;
|
|
80
|
+
// font-weight:700;
|
|
81
|
+
// font-size:16px;
|
|
82
|
+
// color: #333333;
|
|
83
|
+
|
|
84
|
+
// p {
|
|
85
|
+
// overflow: hidden;
|
|
86
|
+
// white-space: nowrap;
|
|
87
|
+
// text-overflow: ellipsis;
|
|
88
|
+
// }
|
|
89
|
+
// }
|
|
90
|
+
|
|
91
|
+
&-flag {
|
|
92
|
+
min-width: 130px;
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
height: 38px;
|
|
95
|
+
margin-bottom: 4px;
|
|
96
|
+
background: linear-gradient(57deg, #3DB8C5 0%, #85CBED 100%);
|
|
97
|
+
line-height:38px;
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
padding: 0 10px;
|
|
101
|
+
color:rgba(255,255,255,1);
|
|
102
|
+
position: relative;
|
|
103
|
+
|
|
104
|
+
.triangle-topleft {
|
|
105
|
+
/* 左上三角 */
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 38px;
|
|
108
|
+
left: 0;
|
|
109
|
+
width: 0;
|
|
110
|
+
height: 0;
|
|
111
|
+
border-right: 14px solid transparent;
|
|
112
|
+
border-top: 4px solid #457FBB;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.triangle-topright {
|
|
116
|
+
/* 右上三角 */
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 0px;
|
|
119
|
+
right: -25px;
|
|
120
|
+
width: 0;
|
|
121
|
+
height: 0;
|
|
122
|
+
border-right: 25px solid transparent;
|
|
123
|
+
border-bottom: 38px solid #82c7ed;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-circle {
|
|
128
|
+
min-width: 142px;
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
height: 32px;
|
|
131
|
+
background-repeat: no-repeat;
|
|
132
|
+
background-position: center left;
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
line-height: 32px;
|
|
136
|
+
color:rgba(255,255,255,1);
|
|
137
|
+
background:linear-gradient(270deg,rgba(166,215,250,1) 0%,rgba(109,174,242,1) 47%,rgba(109,174,242,1) 100%);
|
|
138
|
+
border-radius:16px;
|
|
139
|
+
padding: 0 20px;
|
|
140
|
+
|
|
141
|
+
&-icon {
|
|
142
|
+
display: block;
|
|
143
|
+
font-size: 18px;
|
|
144
|
+
border: 4px solid #fff;
|
|
145
|
+
height: 40px;
|
|
146
|
+
min-width: 40px;
|
|
147
|
+
border-radius: 20px;
|
|
148
|
+
line-height: 28px;
|
|
149
|
+
text-align: center;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&-line {
|
|
154
|
+
color: @themeColor;
|
|
155
|
+
min-width:130px;
|
|
156
|
+
height: 32px;
|
|
157
|
+
max-width: 100%;
|
|
158
|
+
display: inline-block;
|
|
159
|
+
flex-direction:column;
|
|
160
|
+
|
|
161
|
+
p {
|
|
162
|
+
height: 32px;
|
|
163
|
+
line-height: 32px;
|
|
164
|
+
font-size:14px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
span {
|
|
168
|
+
display: block;
|
|
169
|
+
width: 100%;
|
|
170
|
+
background:linear-gradient(270deg,rgba(166,215,250,0) 0%,rgba(109,174,242,1) 100%) bottom left no-repeat;
|
|
171
|
+
height: 1px;
|
|
172
|
+
position: relative;
|
|
173
|
+
&::before {
|
|
174
|
+
content: "";
|
|
175
|
+
width: 5px;
|
|
176
|
+
height: 5px;
|
|
177
|
+
position: absolute;
|
|
178
|
+
border-radius: 5px;
|
|
179
|
+
background: #6DAEF2;
|
|
180
|
+
left: 0px;
|
|
181
|
+
top: -2px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
</style>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<Input
|
|
4
4
|
v-show="status === 'edit'"
|
|
5
5
|
v-model="curInputVal"
|
|
6
|
-
icon="ios-search"
|
|
7
6
|
:placeholder="selfPropsObj._placeholder"
|
|
7
|
+
icon="ios-search"
|
|
8
8
|
@on-enter="clickConfirm"
|
|
9
9
|
@on-click="clickConfirm"
|
|
10
10
|
></Input>
|
|
@@ -106,3 +106,61 @@
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
</script>
|
|
109
|
+
|
|
110
|
+
<style lang="less">
|
|
111
|
+
.BriInputs {
|
|
112
|
+
width: 100%;
|
|
113
|
+
|
|
114
|
+
i {
|
|
115
|
+
font-size: 16px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-show {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
border: 1px solid #e5e5e5;
|
|
123
|
+
border-radius: 4px;
|
|
124
|
+
color: #515a6e;
|
|
125
|
+
padding-left: 5px;
|
|
126
|
+
height: 34px;
|
|
127
|
+
|
|
128
|
+
&-content {
|
|
129
|
+
display: flex;
|
|
130
|
+
width: calc(100% - 30px);
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
|
|
133
|
+
&-item {
|
|
134
|
+
display: flex;
|
|
135
|
+
margin: 2px 4px 2px 0;
|
|
136
|
+
padding-left: 8px;
|
|
137
|
+
border: 1px solid #e8eaec;
|
|
138
|
+
border-radius: 3px;
|
|
139
|
+
background: #f7f7f7;
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
max-width: 50%;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
|
|
144
|
+
&-content {
|
|
145
|
+
vertical-align: middle;
|
|
146
|
+
display: inline-block;
|
|
147
|
+
width: calc(100% - 20px);
|
|
148
|
+
.dsh-ellipsis();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&-del {
|
|
152
|
+
display: inline-block;
|
|
153
|
+
width: 20px;
|
|
154
|
+
vertical-align: middle;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&-add {
|
|
160
|
+
flex: 1;
|
|
161
|
+
height: 34px;
|
|
162
|
+
line-height: 34px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
</style>
|
|
@@ -121,9 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
|
|
123
123
|
...this.propsObj,
|
|
124
|
-
...this.commonDealPropsObj
|
|
125
|
-
|
|
126
|
-
_disabled: this.propsObj._disabled || ["serialNumber"].includes(this.controlType) || !this.finalCanEdit
|
|
124
|
+
...this.commonDealPropsObj
|
|
127
125
|
};
|
|
128
126
|
},
|
|
129
127
|
inputType () {
|
|
@@ -182,3 +180,19 @@
|
|
|
182
180
|
}
|
|
183
181
|
};
|
|
184
182
|
</script>
|
|
183
|
+
|
|
184
|
+
<style lang="less">
|
|
185
|
+
.DshInput {
|
|
186
|
+
width: 100%;
|
|
187
|
+
|
|
188
|
+
&-show {
|
|
189
|
+
&-textarea {
|
|
190
|
+
display: inline-block;
|
|
191
|
+
width: 100%;
|
|
192
|
+
height: auto;
|
|
193
|
+
white-space: pre-wrap;
|
|
194
|
+
min-height: 32px;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
</style>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
};
|
|
150
150
|
</script>
|
|
151
151
|
|
|
152
|
-
<style lang="less"
|
|
152
|
+
<style lang="less">
|
|
153
153
|
.DshNumber {
|
|
154
154
|
width: 100%;
|
|
155
155
|
|
|
@@ -164,44 +164,3 @@
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
</style>
|
|
167
|
-
<style lang="less">
|
|
168
|
-
.ivu-input-number {
|
|
169
|
-
width: 100%;
|
|
170
|
-
|
|
171
|
-
.ivu-input-number-input {
|
|
172
|
-
color: @textColor;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&-disabled {
|
|
176
|
-
.ivu-input-number-input {
|
|
177
|
-
opacity: 1;
|
|
178
|
-
background: @inputBg-disabled;
|
|
179
|
-
color: @textColor;
|
|
180
|
-
&::-webkit-input-placeholder {
|
|
181
|
-
color: @placeholder-disabled-color;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&-handler {
|
|
187
|
-
&-wrap {
|
|
188
|
-
border-left: none;
|
|
189
|
-
}
|
|
190
|
-
&-down {
|
|
191
|
-
border: none;
|
|
192
|
-
}
|
|
193
|
-
&:hover {
|
|
194
|
-
background-color: @hoverBg;
|
|
195
|
-
|
|
196
|
-
.ivu-input-number-handler-down-inner,
|
|
197
|
-
.ivu-input-number-handler-up-inner {
|
|
198
|
-
color: @textColor;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
&-down-inner,
|
|
202
|
-
&-up-inner {
|
|
203
|
-
color: @contentColor;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
</style>
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
};
|
|
127
127
|
</script>
|
|
128
128
|
|
|
129
|
-
<style lang="less"
|
|
129
|
+
<style lang="less">
|
|
130
130
|
.DshNumberange {
|
|
131
131
|
width: 100%;
|
|
132
132
|
display: flex;
|
|
@@ -134,25 +134,25 @@
|
|
|
134
134
|
|
|
135
135
|
&-left,
|
|
136
136
|
&-right {
|
|
137
|
-
flex:
|
|
137
|
+
flex: 7;
|
|
138
|
+
flex: 7;
|
|
139
|
+
min-width: 0px;
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
&-center {
|
|
141
|
-
|
|
143
|
+
flex: 1;
|
|
144
|
+
min-width: 10px;
|
|
142
145
|
text-align: center;
|
|
143
146
|
color: @textColor;
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
&-suffix {
|
|
147
|
-
padding-right:
|
|
148
|
-
padding-left:
|
|
150
|
+
padding-right: 8px;
|
|
151
|
+
padding-left: 2px;
|
|
149
152
|
line-height: 30px;
|
|
150
153
|
white-space: nowrap;
|
|
151
154
|
}
|
|
152
|
-
|
|
153
|
-
</style>
|
|
154
|
-
<style lang="less">
|
|
155
|
-
.DshNumberange {
|
|
155
|
+
|
|
156
156
|
input {
|
|
157
157
|
text-overflow: ellipsis;
|
|
158
158
|
overflow: hidden;
|