@kengic/uni 0.5.1 → 0.5.2-beta.1
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/dist/uni/uni-ui/uni-badge/uni-badge.vue +222 -219
- package/dist/uni/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +29 -29
- package/dist/uni/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +88 -88
- package/dist/uni/uni-ui/uni-calendar/calendar.js +936 -532
- package/dist/uni/uni-ui/uni-calendar/i18n/en.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hans.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hant.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/uni-calendar-item.vue +190 -168
- package/dist/uni/uni-ui/uni-calendar/uni-calendar.vue +459 -459
- package/dist/uni/uni-ui/uni-calendar/util.js +324 -340
- package/dist/uni/uni-ui/uni-card/uni-card.vue +8 -1
- package/dist/uni/uni-ui/uni-col/uni-col.vue +294 -287
- package/dist/uni/uni-ui/uni-collapse/uni-collapse.vue +139 -140
- package/dist/uni/uni-ui/uni-collapse-item/uni-collapse-item.vue +381 -378
- package/dist/uni/uni-ui/uni-combox/uni-combox.vue +280 -272
- package/dist/uni/uni-ui/uni-countdown/i18n/en.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hans.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hant.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/uni-countdown.vue +249 -257
- package/dist/uni/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +832 -813
- package/dist/uni/uni-ui/uni-data-picker/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-data-picker/uni-data-picker.vue +535 -516
- package/dist/uni/uni-ui/uni-data-pickerview/uni-data-picker.js +623 -618
- package/dist/uni/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +293 -288
- package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +495 -509
- package/dist/uni/uni-ui/uni-dateformat/date-format.js +181 -184
- package/dist/uni/uni-ui/uni-dateformat/uni-dateformat.vue +81 -82
- package/dist/uni/uni-ui/uni-datetime-picker/calendar-item.vue +176 -170
- package/dist/uni/uni-ui/uni-datetime-picker/calendar.vue +926 -920
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/en.json +20 -20
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +21 -21
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +21 -21
- package/dist/uni/uni-ui/uni-datetime-picker/time-picker.vue +921 -926
- package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1059 -1012
- package/dist/uni/uni-ui/uni-datetime-picker/util.js +366 -377
- package/dist/uni/uni-ui/uni-drawer/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-drawer/uni-drawer.vue +176 -167
- package/dist/uni/uni-ui/uni-easyinput/common.js +40 -42
- package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +628 -547
- package/dist/uni/uni-ui/uni-fab/uni-fab.vue +507 -483
- package/dist/uni/uni-ui/uni-fav/i18n/en.json +2 -2
- package/dist/uni/uni-ui/uni-fav/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-fav/i18n/zh-Hans.json +2 -2
- package/dist/uni/uni-ui/uni-fav/i18n/zh-Hant.json +2 -2
- package/dist/uni/uni-ui/uni-fav/uni-fav.vue +155 -147
- package/dist/uni/uni-ui/uni-file-picker/choose-and-upload-file.js +172 -198
- package/dist/uni/uni-ui/uni-file-picker/uni-file-picker.vue +636 -634
- package/dist/uni/uni-ui/uni-file-picker/upload-file.vue +294 -293
- package/dist/uni/uni-ui/uni-file-picker/upload-image.vue +267 -270
- package/dist/uni/uni-ui/uni-file-picker/utils.js +81 -82
- package/dist/uni/uni-ui/uni-forms/uni-forms.vue +360 -372
- package/dist/uni/uni-ui/uni-forms/utils.js +170 -174
- package/dist/uni/uni-ui/uni-forms/validate.js +447 -456
- package/dist/uni/uni-ui/uni-forms-item/uni-forms-item.vue +497 -497
- package/dist/uni/uni-ui/uni-goods-nav/i18n/en.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hans.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hant.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/uni-goods-nav.vue +238 -222
- package/dist/uni/uni-ui/uni-grid/uni-grid.vue +134 -134
- package/dist/uni/uni-ui/uni-grid-item/uni-grid-item.vue +121 -119
- package/dist/uni/uni-ui/uni-group/uni-group.vue +121 -121
- package/dist/uni/uni-ui/uni-icons/icons.js +1170 -1168
- package/dist/uni/uni-ui/uni-icons/uni-icons.vue +91 -86
- package/dist/uni/uni-ui/uni-icons/uniicons.css +166 -166
- package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +129 -129
- package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list.vue +352 -347
- package/dist/uni/uni-ui/uni-link/uni-link.vue +134 -119
- package/dist/uni/uni-ui/uni-list/uni-list.vue +119 -110
- package/dist/uni/uni-ui/uni-list/uni-refresh.vue +14 -14
- package/dist/uni/uni-ui/uni-list/uni-refresh.wxs +14 -14
- package/dist/uni/uni-ui/uni-list-ad/uni-list-ad.vue +101 -95
- package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.scss +18 -18
- package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.vue +602 -586
- package/dist/uni/uni-ui/uni-list-item/uni-list-item.vue +507 -503
- package/dist/uni/uni-ui/uni-load-more/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hans.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hant.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/uni-load-more.vue +402 -392
- package/dist/uni/uni-ui/uni-nav-bar/uni-nav-bar.vue +328 -330
- package/dist/uni/uni-ui/uni-nav-bar/uni-status-bar.vue +17 -17
- package/dist/uni/uni-ui/uni-notice-bar/uni-notice-bar.vue +422 -401
- package/dist/uni/uni-ui/uni-number-box/uni-number-box.vue +211 -205
- package/dist/uni/uni-ui/uni-pagination/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/es.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/fr.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/index.js +12 -11
- package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hans.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hant.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +450 -433
- package/dist/uni/uni-ui/uni-popup/uni-popup.vue +404 -404
- package/dist/uni/uni-ui/uni-popup-dialog/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +1 -0
- package/dist/uni/uni-ui/uni-popup-message/uni-popup-message.vue +126 -125
- package/dist/uni/uni-ui/uni-popup-share/uni-popup-share.vue +172 -172
- package/dist/uni/uni-ui/uni-rate/uni-rate.vue +343 -347
- package/dist/uni/uni-ui/uni-row/uni-row.vue +180 -182
- package/dist/uni/uni-ui/uni-scss/changelog.md +11 -4
- package/dist/uni/uni-ui/uni-scss/package.json +73 -73
- package/dist/uni/uni-ui/uni-scss/readme.md +2 -1
- package/dist/uni/uni-ui/uni-scss/styles/setting/_border.scss +2 -2
- package/dist/uni/uni-ui/uni-scss/styles/setting/_color.scss +46 -47
- package/dist/uni/uni-ui/uni-scss/styles/setting/_radius.scss +49 -49
- package/dist/uni/uni-ui/uni-scss/styles/setting/_space.scss +52 -53
- package/dist/uni/uni-ui/uni-scss/styles/setting/_styles.scss +142 -147
- package/dist/uni/uni-ui/uni-scss/styles/setting/_text.scss +20 -20
- package/dist/uni/uni-ui/uni-scss/styles/setting/_variables.scss +111 -95
- package/dist/uni/uni-ui/uni-scss/styles/tools/functions.scss +28 -18
- package/dist/uni/uni-ui/uni-scss/theme.scss +10 -7
- package/dist/uni/uni-ui/uni-scss/variables.scss +42 -24
- package/dist/uni/uni-ui/uni-search-bar/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-search-bar/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hans.json +2 -2
- package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hant.json +2 -2
- package/dist/uni/uni-ui/uni-search-bar/uni-search-bar.vue +290 -281
- package/dist/uni/uni-ui/uni-section/uni-section.vue +149 -146
- package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +141 -131
- package/dist/uni/uni-ui/uni-steps/uni-steps.vue +255 -236
- package/dist/uni/uni-ui/uni-swipe-action/uni-swipe-action.vue +51 -51
- package/dist/uni/uni-ui/uni-swipe-action-item/bindingx.js +276 -282
- package/dist/uni/uni-ui/uni-swipe-action-item/isPC.js +10 -10
- package/dist/uni/uni-ui/uni-swipe-action-item/mpalipay.js +182 -187
- package/dist/uni/uni-ui/uni-swipe-action-item/mpother.js +235 -244
- package/dist/uni/uni-ui/uni-swipe-action-item/mpwxs.js +70 -75
- package/dist/uni/uni-ui/uni-swipe-action-item/render.js +238 -247
- package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +387 -313
- package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +206 -215
- package/dist/uni/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +241 -197
- package/dist/uni/uni-ui/uni-table/uni-table.vue +445 -447
- package/dist/uni/uni-ui/uni-tag/uni-tag.vue +234 -244
- package/dist/uni/uni-ui/uni-tbody/uni-tbody.vue +20 -23
- package/dist/uni/uni-ui/uni-td/uni-td.vue +79 -80
- package/dist/uni/uni-ui/uni-th/filter-dropdown.vue +510 -503
- package/dist/uni/uni-ui/uni-th/uni-th.vue +289 -273
- package/dist/uni/uni-ui/uni-thead/uni-thead.vue +115 -114
- package/dist/uni/uni-ui/uni-title/uni-title.vue +151 -154
- package/dist/uni/uni-ui/uni-tooltip/uni-tooltip.vue +55 -60
- package/dist/uni/uni-ui/uni-tr/table-checkbox.vue +162 -163
- package/dist/uni/uni-ui/uni-tr/uni-tr.vue +158 -157
- package/dist/uni/uni-ui/uni-transition/createAnimation.js +130 -113
- package/dist/uni/uni-ui/uni-transition/uni-transition.vue +274 -272
- package/package.json +1 -1
|
@@ -1,294 +1,302 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
<view class="uni-combox" :class="border ? '' : 'uni-combox__no-border'">
|
|
3
|
+
<view v-if="label" class="uni-combox__label" :style="labelStyle">
|
|
4
|
+
<text>{{ label }}</text>
|
|
5
|
+
</view>
|
|
6
|
+
<view class="uni-combox__input-box">
|
|
7
|
+
<input
|
|
8
|
+
class="uni-combox__input"
|
|
9
|
+
type="text"
|
|
10
|
+
:placeholder="placeholder"
|
|
11
|
+
placeholder-class="uni-combox__input-plac"
|
|
12
|
+
v-model="inputVal"
|
|
13
|
+
@input="onInput"
|
|
14
|
+
@focus="onFocus"
|
|
15
|
+
@blur="onBlur"
|
|
16
|
+
/>
|
|
17
|
+
<uni-icons :type="showSelector ? 'top' : 'bottom'" size="14" color="#999" @click="toggleSelector"> </uni-icons>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="uni-combox__selector" v-if="showSelector">
|
|
20
|
+
<view class="uni-popper__arrow"></view>
|
|
21
|
+
<scroll-view scroll-y="true" class="uni-combox__selector-scroll" @scroll="onScroll">
|
|
22
|
+
<view class="uni-combox__selector-empty" v-if="filterCandidatesLength === 0">
|
|
23
|
+
<text>{{ emptyTips }}</text>
|
|
24
|
+
</view>
|
|
25
|
+
<view class="uni-combox__selector-item" v-for="(item, index) in filterCandidates" :key="index" @click="onSelectorClick(index)">
|
|
26
|
+
<text>{{ item }}</text>
|
|
27
|
+
</view>
|
|
28
|
+
</scroll-view>
|
|
29
|
+
</view>
|
|
30
|
+
<!-- 新增蒙层,点击蒙层时关闭选项显示 -->
|
|
31
|
+
<view class="uni-combox__mask" v-show="showSelector" @click="showSelector = false"></view>
|
|
32
|
+
</view>
|
|
26
33
|
</template>
|
|
27
34
|
|
|
28
35
|
<script>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Combox 组合输入框
|
|
38
|
+
* @description 组合输入框一般用于既可以输入也可以选择的场景
|
|
39
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=1261
|
|
40
|
+
* @property {String} label 左侧文字
|
|
41
|
+
* @property {String} labelWidth 左侧内容宽度
|
|
42
|
+
* @property {String} placeholder 输入框占位符
|
|
43
|
+
* @property {Array} candidates 候选项列表
|
|
44
|
+
* @property {String} emptyTips 筛选结果为空时显示的文字
|
|
45
|
+
* @property {String} value 组合框的值
|
|
46
|
+
*/
|
|
47
|
+
export default {
|
|
48
|
+
name: 'uniCombox',
|
|
49
|
+
emits: ['input', 'update:modelValue'],
|
|
50
|
+
props: {
|
|
51
|
+
border: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: true,
|
|
54
|
+
},
|
|
55
|
+
label: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: '',
|
|
58
|
+
},
|
|
59
|
+
labelWidth: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: 'auto',
|
|
62
|
+
},
|
|
63
|
+
placeholder: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '',
|
|
66
|
+
},
|
|
67
|
+
candidates: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default() {
|
|
70
|
+
return [];
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
emptyTips: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: '无匹配项',
|
|
76
|
+
},
|
|
77
|
+
// #ifndef VUE3
|
|
78
|
+
value: {
|
|
79
|
+
type: [String, Number],
|
|
80
|
+
default: '',
|
|
81
|
+
},
|
|
82
|
+
// #endif
|
|
83
|
+
// #ifdef VUE3
|
|
84
|
+
modelValue: {
|
|
85
|
+
type: [String, Number],
|
|
86
|
+
default: '',
|
|
87
|
+
},
|
|
88
|
+
// #endif
|
|
89
|
+
},
|
|
90
|
+
data() {
|
|
91
|
+
return {
|
|
92
|
+
showSelector: false,
|
|
93
|
+
inputVal: '',
|
|
94
|
+
blurTimer: null,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
computed: {
|
|
98
|
+
labelStyle() {
|
|
99
|
+
if (this.labelWidth === 'auto') {
|
|
100
|
+
return '';
|
|
101
|
+
}
|
|
102
|
+
return `width: ${this.labelWidth}`;
|
|
103
|
+
},
|
|
104
|
+
filterCandidates() {
|
|
105
|
+
if (this.inputVal !== 0 && !this.inputVal) {
|
|
106
|
+
return this.candidates;
|
|
107
|
+
}
|
|
108
|
+
return this.candidates.filter((item) => {
|
|
109
|
+
return item.toString().indexOf(this.inputVal) > -1;
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
filterCandidatesLength() {
|
|
113
|
+
return this.filterCandidates.length;
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
watch: {
|
|
117
|
+
// #ifndef VUE3
|
|
118
|
+
value: {
|
|
119
|
+
handler(newVal) {
|
|
120
|
+
this.inputVal = newVal;
|
|
121
|
+
},
|
|
122
|
+
immediate: true,
|
|
123
|
+
},
|
|
124
|
+
// #endif
|
|
125
|
+
// #ifdef VUE3
|
|
126
|
+
modelValue: {
|
|
127
|
+
handler(newVal) {
|
|
128
|
+
this.inputVal = newVal;
|
|
129
|
+
},
|
|
130
|
+
immediate: true,
|
|
131
|
+
},
|
|
132
|
+
// #endif
|
|
133
|
+
},
|
|
134
|
+
methods: {
|
|
135
|
+
toggleSelector() {
|
|
136
|
+
this.showSelector = !this.showSelector;
|
|
137
|
+
},
|
|
138
|
+
onFocus() {
|
|
139
|
+
this.showSelector = true;
|
|
140
|
+
},
|
|
141
|
+
onBlur() {
|
|
142
|
+
this.blurTimer = setTimeout(() => {
|
|
143
|
+
this.showSelector = false;
|
|
144
|
+
}, 153);
|
|
145
|
+
},
|
|
146
|
+
onScroll() {
|
|
147
|
+
// 滚动时将blur的定时器关掉
|
|
148
|
+
if (this.blurTimer) {
|
|
149
|
+
clearTimeout(this.blurTimer);
|
|
150
|
+
this.blurTimer = null;
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
onSelectorClick(index) {
|
|
154
|
+
this.inputVal = this.filterCandidates[index];
|
|
155
|
+
this.showSelector = false;
|
|
156
|
+
this.$emit('input', this.inputVal);
|
|
157
|
+
this.$emit('update:modelValue', this.inputVal);
|
|
158
|
+
},
|
|
159
|
+
onInput() {
|
|
160
|
+
setTimeout(() => {
|
|
161
|
+
this.$emit('input', this.inputVal);
|
|
162
|
+
this.$emit('update:modelValue', this.inputVal);
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
};
|
|
159
167
|
</script>
|
|
160
168
|
|
|
161
169
|
<style lang="scss">
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
.uni-combox {
|
|
171
|
+
font-size: 14px;
|
|
172
|
+
border: 1px solid #dcdfe6;
|
|
173
|
+
border-radius: 4px;
|
|
174
|
+
padding: 6px 10px;
|
|
175
|
+
position: relative;
|
|
176
|
+
/* #ifndef APP-NVUE */
|
|
177
|
+
display: flex;
|
|
178
|
+
/* #endif */
|
|
179
|
+
// height: 40px;
|
|
180
|
+
flex-direction: row;
|
|
181
|
+
align-items: center;
|
|
182
|
+
// border-bottom: solid 1px #DDDDDD;
|
|
183
|
+
}
|
|
176
184
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
.uni-combox__label {
|
|
186
|
+
font-size: 16px;
|
|
187
|
+
line-height: 22px;
|
|
188
|
+
padding-right: 10px;
|
|
189
|
+
color: #999999;
|
|
190
|
+
}
|
|
183
191
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
.uni-combox__input-box {
|
|
193
|
+
position: relative;
|
|
194
|
+
/* #ifndef APP-NVUE */
|
|
195
|
+
display: flex;
|
|
196
|
+
/* #endif */
|
|
197
|
+
flex: 1;
|
|
198
|
+
flex-direction: row;
|
|
199
|
+
align-items: center;
|
|
200
|
+
}
|
|
193
201
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
202
|
+
.uni-combox__input {
|
|
203
|
+
flex: 1;
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
height: 22px;
|
|
206
|
+
line-height: 22px;
|
|
207
|
+
}
|
|
200
208
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
209
|
+
.uni-combox__input-plac {
|
|
210
|
+
font-size: 14px;
|
|
211
|
+
color: #999;
|
|
212
|
+
}
|
|
205
213
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
214
|
+
.uni-combox__selector {
|
|
215
|
+
/* #ifndef APP-NVUE */
|
|
216
|
+
box-sizing: border-box;
|
|
217
|
+
/* #endif */
|
|
218
|
+
position: absolute;
|
|
219
|
+
top: calc(100% + 12px);
|
|
220
|
+
left: 0;
|
|
221
|
+
width: 100%;
|
|
222
|
+
background-color: #ffffff;
|
|
223
|
+
border: 1px solid #ebeef5;
|
|
224
|
+
border-radius: 6px;
|
|
225
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
226
|
+
z-index: 3;
|
|
227
|
+
padding: 4px 0;
|
|
228
|
+
}
|
|
221
229
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
.uni-combox__selector-scroll {
|
|
231
|
+
/* #ifndef APP-NVUE */
|
|
232
|
+
max-height: 200px;
|
|
233
|
+
box-sizing: border-box;
|
|
234
|
+
/* #endif */
|
|
235
|
+
}
|
|
228
236
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
.uni-combox__selector-empty,
|
|
238
|
+
.uni-combox__selector-item {
|
|
239
|
+
/* #ifndef APP-NVUE */
|
|
240
|
+
display: flex;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
/* #endif */
|
|
243
|
+
line-height: 36px;
|
|
244
|
+
font-size: 14px;
|
|
245
|
+
text-align: center;
|
|
246
|
+
// border-bottom: solid 1px #DDDDDD;
|
|
247
|
+
padding: 0px 10px;
|
|
248
|
+
}
|
|
241
249
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
250
|
+
.uni-combox__selector-item:hover {
|
|
251
|
+
background-color: #f9f9f9;
|
|
252
|
+
}
|
|
245
253
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
254
|
+
.uni-combox__selector-empty:last-child,
|
|
255
|
+
.uni-combox__selector-item:last-child {
|
|
256
|
+
/* #ifndef APP-NVUE */
|
|
257
|
+
border-bottom: none;
|
|
258
|
+
/* #endif */
|
|
259
|
+
}
|
|
252
260
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
// picker 弹出层通用的指示小三角
|
|
262
|
+
.uni-popper__arrow,
|
|
263
|
+
.uni-popper__arrow::after {
|
|
264
|
+
position: absolute;
|
|
265
|
+
display: block;
|
|
266
|
+
width: 0;
|
|
267
|
+
height: 0;
|
|
268
|
+
border-color: transparent;
|
|
269
|
+
border-style: solid;
|
|
270
|
+
border-width: 6px;
|
|
271
|
+
}
|
|
264
272
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
+
.uni-popper__arrow {
|
|
274
|
+
filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
|
|
275
|
+
top: -6px;
|
|
276
|
+
left: 10%;
|
|
277
|
+
margin-right: 3px;
|
|
278
|
+
border-top-width: 0;
|
|
279
|
+
border-bottom-color: #ebeef5;
|
|
280
|
+
}
|
|
273
281
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
.uni-popper__arrow::after {
|
|
283
|
+
content: ' ';
|
|
284
|
+
top: 1px;
|
|
285
|
+
margin-left: -6px;
|
|
286
|
+
border-top-width: 0;
|
|
287
|
+
border-bottom-color: #fff;
|
|
288
|
+
}
|
|
281
289
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
290
|
+
.uni-combox__no-border {
|
|
291
|
+
border: none;
|
|
292
|
+
}
|
|
285
293
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
+
.uni-combox__mask {
|
|
295
|
+
width: 100%;
|
|
296
|
+
height: 100%;
|
|
297
|
+
position: fixed;
|
|
298
|
+
top: 0;
|
|
299
|
+
left: 0;
|
|
300
|
+
z-index: 1;
|
|
301
|
+
}
|
|
294
302
|
</style>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import en from './en.json'
|
|
2
|
-
import zhHans from './zh-Hans.json'
|
|
3
|
-
import zhHant from './zh-Hant.json'
|
|
1
|
+
import en from './en.json';
|
|
2
|
+
import zhHans from './zh-Hans.json';
|
|
3
|
+
import zhHant from './zh-Hant.json';
|
|
4
|
+
|
|
4
5
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
6
|
+
en,
|
|
7
|
+
'zh-Hans': zhHans,
|
|
8
|
+
'zh-Hant': zhHant,
|
|
9
|
+
};
|