cnhis-design-vue 2.1.65 → 2.1.66
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/CHANGELOG.md +31 -24
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +68 -68
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +22 -22
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +9 -9
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +66 -66
- package/es/index/index.js +421 -419
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +76 -76
- package/es/multi-chat-client/index.js +70 -70
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +56 -54
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +12 -12
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +47 -47
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +369 -367
- package/lib/cui.umd.js +369 -367
- package/lib/cui.umd.min.js +12 -12
- package/package.json +1 -1
- package/packages/scale-view/formitem/r-choice.vue +62 -57
package/package.json
CHANGED
|
@@ -6,18 +6,20 @@
|
|
|
6
6
|
@change="radioChange"
|
|
7
7
|
class="choice-wrap"
|
|
8
8
|
:class="['choice-wrap-' + (item.setting.chooseStyleSetting || 1)]"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
v-for="(o, i) in curOptions"
|
|
12
|
+
:key="o.key + i + o.label"
|
|
13
|
+
class="choice-radio-div"
|
|
9
14
|
>
|
|
10
15
|
<a-radio
|
|
11
|
-
v-for="(o, i) in curOptions"
|
|
12
16
|
class="choice-radio"
|
|
13
17
|
:value="o[choiceUseKey]"
|
|
14
|
-
:key="o.key + i + o.label"
|
|
15
|
-
:class="{ 'block-radio': !item.setting.isHorizontal }"
|
|
16
18
|
:disabled="isLock"
|
|
17
19
|
:style="{ color: choiceColor(o) }"
|
|
18
20
|
>
|
|
19
21
|
<template v-if="showImgWrap(o)">
|
|
20
|
-
<span class="scale-choice-img-wrap">
|
|
22
|
+
<span class="scale-choice-img-wrap" @click.stop.prevent>
|
|
21
23
|
<img class="show-picture" :src="o.imageUrl" />
|
|
22
24
|
<div class="scale-preview-wrap">
|
|
23
25
|
<a-icon type="zoom-in" @click.stop.prevent="handlePreview(o.imageUrl, i)" />
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
/>
|
|
56
58
|
</template>
|
|
57
59
|
</a-radio>
|
|
60
|
+
</div>
|
|
58
61
|
</a-radio-group>
|
|
59
62
|
<a-checkbox-group
|
|
60
63
|
v-else-if="item.type == 'CHECKBOX_BLOCK' || item.type === 'EVALUATE_CHECKBOX_BLOCK'"
|
|
@@ -63,58 +66,61 @@
|
|
|
63
66
|
class="choice-wrap"
|
|
64
67
|
:class="['choice-wrap-' + (item.setting.chooseStyleSetting || 1)]"
|
|
65
68
|
>
|
|
66
|
-
<
|
|
67
|
-
class="choice-checkbox"
|
|
69
|
+
<div
|
|
68
70
|
v-for="(o, i) in curOptions"
|
|
69
71
|
:key="o.key + i + o.label"
|
|
70
|
-
|
|
71
|
-
:class="{ 'block-checkbox': !item.setting.isHorizontal }"
|
|
72
|
-
:disabled="isLock"
|
|
73
|
-
:style="{ color: choiceColor(o) }"
|
|
72
|
+
class="choice-radio-div"
|
|
74
73
|
>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
74
|
+
<a-checkbox
|
|
75
|
+
class="choice-checkbox"
|
|
76
|
+
:value="o[choiceUseKey]"
|
|
77
|
+
:disabled="isLock"
|
|
78
|
+
:style="{ color: choiceColor(o) }"
|
|
79
|
+
>
|
|
80
|
+
<template v-if="showImgWrap(o)">
|
|
81
|
+
<span class="scale-choice-img-wrap" @click.stop.prevent>
|
|
82
|
+
<img class="show-picture" :src="o.imageUrl" />
|
|
83
|
+
<div class="scale-preview-wrap">
|
|
84
|
+
<a-icon type="zoom-in" @click.stop.prevent="handlePreview(o.imageUrl, i)" />
|
|
85
|
+
</div>
|
|
86
|
+
</span>
|
|
87
|
+
</template>
|
|
88
|
+
<template>
|
|
89
|
+
<template v-if="isCheckboxItem && showPreSuffix(o)">
|
|
90
|
+
<span
|
|
91
|
+
v-if="o.prefix"
|
|
92
|
+
class="prefix-span"
|
|
93
|
+
:style="{ color: choiceColor(o) }"
|
|
94
|
+
>{{ o.prefix }}</span>
|
|
95
|
+
<a-input
|
|
96
|
+
v-model="optionsPreSuffixObj[o.key]"
|
|
97
|
+
:disabled="isLock || inputLock"
|
|
98
|
+
@change="inputPreSuffixCheckboxChange(o, i)"
|
|
99
|
+
:style="{ color: choiceColor(o) }"
|
|
100
|
+
placeholder="请输入"
|
|
101
|
+
/>
|
|
102
|
+
<span
|
|
103
|
+
v-if="o.suffix"
|
|
104
|
+
class="suffix-span"
|
|
105
|
+
:style="{ color: choiceColor(o) }"
|
|
106
|
+
>{{ o.suffix }}</span>
|
|
107
|
+
</template>
|
|
85
108
|
<span
|
|
86
|
-
v-
|
|
87
|
-
|
|
109
|
+
v-else
|
|
110
|
+
style="white-space: initial;"
|
|
88
111
|
:style="{ color: choiceColor(o) }"
|
|
89
|
-
>{{ o.
|
|
112
|
+
>{{ o.label }}</span>
|
|
90
113
|
<a-input
|
|
91
|
-
v-
|
|
114
|
+
v-if="o.importability"
|
|
115
|
+
v-model="othersText"
|
|
92
116
|
:disabled="isLock || inputLock"
|
|
93
|
-
@change="inputPreSuffixCheckboxChange(o, i)"
|
|
94
117
|
:style="{ color: choiceColor(o) }"
|
|
118
|
+
@change="inputCheckboxChange"
|
|
95
119
|
placeholder="请输入"
|
|
96
120
|
/>
|
|
97
|
-
<span
|
|
98
|
-
v-if="o.suffix"
|
|
99
|
-
class="suffix-span"
|
|
100
|
-
:style="{ color: choiceColor(o) }"
|
|
101
|
-
>{{ o.suffix }}</span>
|
|
102
121
|
</template>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
style="white-space: initial;"
|
|
106
|
-
:style="{ color: choiceColor(o) }"
|
|
107
|
-
>{{ o.label }}</span>
|
|
108
|
-
<a-input
|
|
109
|
-
v-if="o.importability"
|
|
110
|
-
v-model="othersText"
|
|
111
|
-
:disabled="isLock || inputLock"
|
|
112
|
-
:style="{ color: choiceColor(o) }"
|
|
113
|
-
@change="inputCheckboxChange"
|
|
114
|
-
placeholder="请输入"
|
|
115
|
-
/>
|
|
116
|
-
</template>
|
|
117
|
-
</a-checkbox>
|
|
122
|
+
</a-checkbox>
|
|
123
|
+
</div>
|
|
118
124
|
</a-checkbox-group>
|
|
119
125
|
<a-select
|
|
120
126
|
v-else-if="cloneItem.type == 'SELECT' || item.type === 'EVALUATE_SELECT'"
|
|
@@ -163,7 +169,7 @@
|
|
|
163
169
|
* getSearchOptions 关键字检索的 function
|
|
164
170
|
* getCascadeOptions 获取级联数据的 furnction
|
|
165
171
|
*/
|
|
166
|
-
import { Select, Input, Radio, Checkbox, Cascader } from 'ant-design-vue';
|
|
172
|
+
import { Select, Input, Radio, Checkbox, Cascader, Icon } from 'ant-design-vue';
|
|
167
173
|
import { judgeTypes } from '../mixin/judgeTypes';
|
|
168
174
|
// import format from "@/components/table/mixins/format";
|
|
169
175
|
// import TextOverTooltip from "./text-over-tooltip/TextOverTooltip.vue";
|
|
@@ -195,6 +201,7 @@ export default {
|
|
|
195
201
|
},
|
|
196
202
|
components: {
|
|
197
203
|
Viewer,
|
|
204
|
+
[Icon.name]: Icon,
|
|
198
205
|
[Input.name]: Input,
|
|
199
206
|
[Cascader.name]: Cascader,
|
|
200
207
|
[Checkbox.name]: Checkbox,
|
|
@@ -611,7 +618,6 @@ export default {
|
|
|
611
618
|
margin-right: 8px;
|
|
612
619
|
margin-left: 0px;
|
|
613
620
|
> span:last-child {
|
|
614
|
-
flex: 1;
|
|
615
621
|
display: inline-flex;
|
|
616
622
|
align-items: center;
|
|
617
623
|
word-break: break-all;
|
|
@@ -631,12 +637,6 @@ export default {
|
|
|
631
637
|
padding-left: 8px;
|
|
632
638
|
}
|
|
633
639
|
}
|
|
634
|
-
|
|
635
|
-
/deep/ .block-radio,
|
|
636
|
-
/deep/ .block-checkbox {
|
|
637
|
-
display: flex;
|
|
638
|
-
margin-left: 8px;
|
|
639
|
-
}
|
|
640
640
|
/deep/ .ant-select {
|
|
641
641
|
min-width: 160px;
|
|
642
642
|
}
|
|
@@ -647,6 +647,11 @@ export default {
|
|
|
647
647
|
top: 0px !important;
|
|
648
648
|
left: 1px !important;
|
|
649
649
|
}
|
|
650
|
+
.choice-radio-div {
|
|
651
|
+
display: flex;
|
|
652
|
+
flex-wrap: wrap;
|
|
653
|
+
align-items: center;
|
|
654
|
+
}
|
|
650
655
|
.choice-wrap {
|
|
651
656
|
display: flex;
|
|
652
657
|
flex-wrap: wrap;
|
|
@@ -699,19 +704,19 @@ export default {
|
|
|
699
704
|
align-items: center;
|
|
700
705
|
white-space: initial;
|
|
701
706
|
}
|
|
702
|
-
&.choice-wrap-1
|
|
707
|
+
&.choice-wrap-1 .choice-radio-div {
|
|
703
708
|
width: 100%;
|
|
704
709
|
/deep/ input {
|
|
705
710
|
max-width: 300px;
|
|
706
711
|
}
|
|
707
712
|
}
|
|
708
|
-
&.choice-wrap-2
|
|
713
|
+
&.choice-wrap-2 .choice-radio-div {
|
|
709
714
|
width: 50%;
|
|
710
715
|
}
|
|
711
|
-
&.choice-wrap-3
|
|
716
|
+
&.choice-wrap-3 .choice-radio-div {
|
|
712
717
|
width: 33%;
|
|
713
718
|
}
|
|
714
|
-
&.choice-wrap-4
|
|
719
|
+
&.choice-wrap-4 .choice-radio-div {
|
|
715
720
|
width: 25%;
|
|
716
721
|
}
|
|
717
722
|
/deep/ .ant-checkbox {
|