@vtj/materials 0.10.6 → 0.10.7
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/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +3 -3
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/deps/@vtj/utils/index.umd.js +20 -20
- package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/package.json +7 -7
- package/src/uni-h5/components/input.ts +2 -2
- package/src/uni-h5/components/scrollView.ts +3 -3
- package/src/uni-h5/components/video.ts +1 -1
- package/src/uni-ui/components/badge.ts +1 -5
- package/src/uni-ui/components/breadcrumb.ts +1 -20
- package/src/uni-ui/components/collapse.ts +22 -23
- package/src/uni-ui/components/grid.ts +0 -9
- package/src/uni-ui/components/group.ts +1 -10
- package/src/uni-ui/components/index.ts +4 -4
- package/src/uni-ui/components/popup.ts +10 -2
- package/src/uni-ui/components/swiperDot.ts +21 -7
- package/src/uni-ui/components/table.ts +9 -3
- package/src/uni-ui/components/transition.ts +10 -1
- package/src/uni-ui/index.ts +19 -44
- package/src/uni-ui/lib/uni-collapse/uni-collapse.vue +153 -0
- package/src/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +425 -0
- package/src/uni-ui/lib/uni-data-picker/keypress.js +45 -0
- package/src/uni-ui/lib/uni-data-picker/uni-data-picker.vue +604 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +622 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +76 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +335 -0
- package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +181 -170
- package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +977 -939
- package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +1024 -932
- package/src/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +15 -17
- package/src/uni-ui/lib/uni-datetime-picker/util.js +419 -392
- package/src/uni-ui/lib/uni-fav/i18n/en.json +4 -0
- package/src/uni-ui/lib/uni-fav/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hans.json +4 -0
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hant.json +4 -0
- package/src/uni-ui/lib/uni-fav/uni-fav.vue +170 -0
- package/src/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +280 -0
- package/src/uni-ui/lib/uni-file-picker/uni-file-picker.vue +668 -0
- package/src/uni-ui/lib/uni-file-picker/upload-file.vue +325 -0
- package/src/uni-ui/lib/uni-file-picker/upload-image.vue +292 -0
- package/src/uni-ui/lib/uni-file-picker/utils.js +110 -0
- package/src/uni-ui/lib/uni-grid/uni-grid.vue +148 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +152 -128
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +50 -50
- package/src/uni-ui/lib/uni-load-more/i18n/en.json +5 -0
- package/src/uni-ui/lib/uni-load-more/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +5 -0
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +5 -0
- package/src/uni-ui/lib/uni-load-more/uni-load-more.vue +456 -0
- package/src/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +484 -0
- package/src/uni-ui/lib/uni-popup/uni-popup.vue +4 -4
- package/src/uni-ui/lib/uni-popup-message/uni-popup-message.vue +149 -0
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +362 -343
- package/src/uni-ui/lib/uni-row/uni-row.vue +193 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/en.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/uni-search-bar.vue +339 -0
- package/src/uni-ui/lib/uni-swipe-action-item/bindingx.js +294 -285
- package/src/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +8 -9
- package/src/uni-ui/lib/uni-th/filter-dropdown.vue +551 -503
- package/src/uni-ui/lib/uni-tr/table-checkbox.vue +165 -163
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +6 -6
- package/src/uni-ui/lib/uni-transition/createAnimation.js +131 -0
- package/src/uni-ui/lib/uni-transition/uni-transition.vue +310 -0
- package/src/version.ts +2 -2
@@ -1,511 +1,559 @@
|
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
2
|
+
<view class="uni-filter-dropdown">
|
3
|
+
<view class="dropdown-btn" @click="onDropdown">
|
4
|
+
<view
|
5
|
+
class="icon-select"
|
6
|
+
:class="{ active: canReset }"
|
7
|
+
v-if="isSelect || isRange"></view>
|
8
|
+
<view class="icon-search" :class="{ active: canReset }" v-if="isSearch">
|
9
|
+
<view class="icon-search-0"></view>
|
10
|
+
<view class="icon-search-1"></view>
|
11
|
+
</view>
|
12
|
+
<view class="icon-calendar" :class="{ active: canReset }" v-if="isDate">
|
13
|
+
<view class="icon-calendar-0"></view>
|
14
|
+
<view class="icon-calendar-1"></view>
|
15
|
+
</view>
|
16
|
+
</view>
|
17
|
+
<view
|
18
|
+
class="uni-dropdown-cover"
|
19
|
+
v-if="isOpened"
|
20
|
+
@click="handleClose"></view>
|
21
|
+
<view
|
22
|
+
class="dropdown-popup dropdown-popup-right"
|
23
|
+
v-if="isOpened"
|
24
|
+
@click.stop>
|
25
|
+
<!-- select-->
|
26
|
+
<view v-if="isSelect" class="list">
|
27
|
+
<label
|
28
|
+
class="flex-r a-i-c list-item"
|
29
|
+
v-for="(item, index) in dataList"
|
30
|
+
:key="index"
|
31
|
+
@click="onItemClick($event, index)">
|
32
|
+
<check-box class="check" :checked="item.checked" />
|
33
|
+
<view class="checklist-content">
|
34
|
+
<text class="checklist-text" :style="item.styleIconText">{{
|
35
|
+
item[map.text]
|
36
|
+
}}</text>
|
37
|
+
</view>
|
38
|
+
</label>
|
39
|
+
</view>
|
40
|
+
<view v-if="isSelect" class="flex-r opera-area">
|
41
|
+
<view
|
42
|
+
class="flex-f btn btn-default"
|
43
|
+
:class="{ disable: !canReset }"
|
44
|
+
@click="handleSelectReset">
|
45
|
+
{{ resource.reset }}</view
|
46
|
+
>
|
47
|
+
<view class="flex-f btn btn-submit" @click="handleSelectSubmit">{{
|
48
|
+
resource.submit
|
49
|
+
}}</view>
|
50
|
+
</view>
|
51
|
+
<!-- search -->
|
52
|
+
<view v-if="isSearch" class="search-area">
|
53
|
+
<input class="search-input" v-model="filterValue" />
|
54
|
+
</view>
|
55
|
+
<view v-if="isSearch" class="flex-r opera-area">
|
56
|
+
<view class="flex-f btn btn-submit" @click="handleSearchSubmit">{{
|
57
|
+
resource.search
|
58
|
+
}}</view>
|
59
|
+
<view
|
60
|
+
class="flex-f btn btn-default"
|
61
|
+
:class="{ disable: !canReset }"
|
62
|
+
@click="handleSearchReset">
|
63
|
+
{{ resource.reset }}</view
|
64
|
+
>
|
65
|
+
</view>
|
66
|
+
<!-- range -->
|
67
|
+
<view v-if="isRange">
|
68
|
+
<view class="input-label">{{ resource.gt }}</view>
|
69
|
+
<input class="input" v-model="gtValue" />
|
70
|
+
<view class="input-label">{{ resource.lt }}</view>
|
71
|
+
<input class="input" v-model="ltValue" />
|
72
|
+
</view>
|
73
|
+
<view v-if="isRange" class="flex-r opera-area">
|
74
|
+
<view
|
75
|
+
class="flex-f btn btn-default"
|
76
|
+
:class="{ disable: !canReset }"
|
77
|
+
@click="handleRangeReset">
|
78
|
+
{{ resource.reset }}</view
|
79
|
+
>
|
80
|
+
<view class="flex-f btn btn-submit" @click="handleRangeSubmit">{{
|
81
|
+
resource.submit
|
82
|
+
}}</view>
|
83
|
+
</view>
|
84
|
+
<!-- date -->
|
85
|
+
<view v-if="isDate">
|
86
|
+
<uni-datetime-picker
|
87
|
+
ref="datetimepicker"
|
88
|
+
:value="dateRange"
|
89
|
+
type="datetimerange"
|
90
|
+
return-type="timestamp"
|
91
|
+
@change="datetimechange"
|
92
|
+
@maskClick="timepickerclose">
|
93
|
+
<view></view>
|
94
|
+
</uni-datetime-picker>
|
95
|
+
</view>
|
96
|
+
</view>
|
97
|
+
</view>
|
60
98
|
</template>
|
61
99
|
|
62
100
|
<script>
|
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
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
101
|
+
import checkBox from '../uni-tr/table-checkbox.vue';
|
102
|
+
|
103
|
+
const resource = {
|
104
|
+
reset: '重置',
|
105
|
+
search: '搜索',
|
106
|
+
submit: '确定',
|
107
|
+
filter: '筛选',
|
108
|
+
gt: '大于等于',
|
109
|
+
lt: '小于等于',
|
110
|
+
date: '日期范围'
|
111
|
+
};
|
112
|
+
|
113
|
+
const DropdownType = {
|
114
|
+
Select: 'select',
|
115
|
+
Search: 'search',
|
116
|
+
Range: 'range',
|
117
|
+
Date: 'date',
|
118
|
+
Timestamp: 'timestamp'
|
119
|
+
};
|
120
|
+
|
121
|
+
export default {
|
122
|
+
name: 'FilterDropdown',
|
123
|
+
emits: ['change'],
|
124
|
+
components: {
|
125
|
+
checkBox
|
126
|
+
},
|
127
|
+
options: {
|
128
|
+
virtualHost: true
|
129
|
+
},
|
130
|
+
props: {
|
131
|
+
filterType: {
|
132
|
+
type: String,
|
133
|
+
default: DropdownType.Select
|
134
|
+
},
|
135
|
+
filterData: {
|
136
|
+
type: Array,
|
137
|
+
default() {
|
138
|
+
return [];
|
139
|
+
}
|
140
|
+
},
|
141
|
+
mode: {
|
142
|
+
type: String,
|
143
|
+
default: 'default'
|
144
|
+
},
|
145
|
+
map: {
|
146
|
+
type: Object,
|
147
|
+
default() {
|
148
|
+
return {
|
149
|
+
text: 'text',
|
150
|
+
value: 'value'
|
151
|
+
};
|
152
|
+
}
|
153
|
+
},
|
154
|
+
filterDefaultValue: {
|
155
|
+
type: [Array, String],
|
156
|
+
default() {
|
157
|
+
return '';
|
158
|
+
}
|
159
|
+
}
|
160
|
+
},
|
161
|
+
computed: {
|
162
|
+
canReset() {
|
163
|
+
if (this.isSearch) {
|
164
|
+
return this.filterValue.length > 0;
|
165
|
+
}
|
166
|
+
if (this.isSelect) {
|
167
|
+
return this.checkedValues.length > 0;
|
168
|
+
}
|
169
|
+
if (this.isRange) {
|
170
|
+
return this.gtValue.length > 0 && this.ltValue.length > 0;
|
171
|
+
}
|
172
|
+
if (this.isDate) {
|
173
|
+
return this.dateSelect.length > 0;
|
174
|
+
}
|
175
|
+
return false;
|
176
|
+
},
|
177
|
+
isSelect() {
|
178
|
+
return this.filterType === DropdownType.Select;
|
179
|
+
},
|
180
|
+
isSearch() {
|
181
|
+
return this.filterType === DropdownType.Search;
|
182
|
+
},
|
183
|
+
isRange() {
|
184
|
+
return this.filterType === DropdownType.Range;
|
185
|
+
},
|
186
|
+
isDate() {
|
187
|
+
return (
|
188
|
+
this.filterType === DropdownType.Date ||
|
189
|
+
this.filterType === DropdownType.Timestamp
|
190
|
+
);
|
191
|
+
}
|
192
|
+
},
|
193
|
+
watch: {
|
194
|
+
filterData(newVal) {
|
195
|
+
this._copyFilters();
|
196
|
+
},
|
197
|
+
indeterminate(newVal) {
|
198
|
+
this.isIndeterminate = newVal;
|
199
|
+
}
|
200
|
+
},
|
201
|
+
data() {
|
202
|
+
return {
|
203
|
+
resource,
|
204
|
+
enabled: true,
|
205
|
+
isOpened: false,
|
206
|
+
dataList: [],
|
207
|
+
filterValue: this.filterDefaultValue,
|
208
|
+
checkedValues: [],
|
209
|
+
gtValue: '',
|
210
|
+
ltValue: '',
|
211
|
+
dateRange: [],
|
212
|
+
dateSelect: []
|
213
|
+
};
|
214
|
+
},
|
215
|
+
created() {
|
216
|
+
this._copyFilters();
|
217
|
+
},
|
218
|
+
methods: {
|
219
|
+
_copyFilters() {
|
220
|
+
let dl = JSON.parse(JSON.stringify(this.filterData));
|
221
|
+
for (let i = 0; i < dl.length; i++) {
|
222
|
+
if (dl[i].checked === undefined) {
|
223
|
+
dl[i].checked = false;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
this.dataList = dl;
|
227
|
+
},
|
228
|
+
openPopup() {
|
229
|
+
this.isOpened = true;
|
230
|
+
if (this.isDate) {
|
231
|
+
this.$nextTick(() => {
|
232
|
+
if (!this.dateRange.length) {
|
233
|
+
this.resetDate();
|
234
|
+
}
|
235
|
+
this.$refs.datetimepicker.show();
|
236
|
+
});
|
237
|
+
}
|
238
|
+
},
|
239
|
+
closePopup() {
|
240
|
+
this.isOpened = false;
|
241
|
+
},
|
242
|
+
handleClose(e) {
|
243
|
+
this.closePopup();
|
244
|
+
},
|
245
|
+
resetDate() {
|
246
|
+
let date = new Date();
|
247
|
+
let dateText = date.toISOString().split('T')[0];
|
248
|
+
this.dateRange = [dateText + ' 0:00:00', dateText + ' 23:59:59'];
|
249
|
+
},
|
250
|
+
onDropdown(e) {
|
251
|
+
this.openPopup();
|
252
|
+
},
|
253
|
+
onItemClick(e, index) {
|
254
|
+
let items = this.dataList;
|
255
|
+
let listItem = items[index];
|
256
|
+
if (listItem.checked === undefined) {
|
257
|
+
items[index].checked = true;
|
258
|
+
} else {
|
259
|
+
items[index].checked = !listItem.checked;
|
260
|
+
}
|
261
|
+
|
262
|
+
let checkvalues = [];
|
263
|
+
for (let i = 0; i < items.length; i++) {
|
264
|
+
const item = items[i];
|
265
|
+
if (item.checked) {
|
266
|
+
checkvalues.push(item.value);
|
267
|
+
}
|
268
|
+
}
|
269
|
+
this.checkedValues = checkvalues;
|
270
|
+
},
|
271
|
+
datetimechange(e) {
|
272
|
+
this.closePopup();
|
273
|
+
this.dateRange = e;
|
274
|
+
this.dateSelect = e;
|
275
|
+
this.$emit('change', {
|
276
|
+
filterType: this.filterType,
|
277
|
+
filter: e
|
278
|
+
});
|
279
|
+
},
|
280
|
+
timepickerclose(e) {
|
281
|
+
this.closePopup();
|
282
|
+
},
|
283
|
+
handleSelectSubmit() {
|
284
|
+
this.closePopup();
|
285
|
+
this.$emit('change', {
|
286
|
+
filterType: this.filterType,
|
287
|
+
filter: this.checkedValues
|
288
|
+
});
|
289
|
+
},
|
290
|
+
handleSelectReset() {
|
291
|
+
if (!this.canReset) {
|
292
|
+
return;
|
293
|
+
}
|
294
|
+
var items = this.dataList;
|
295
|
+
for (let i = 0; i < items.length; i++) {
|
296
|
+
let item = items[i];
|
297
|
+
this.$set(item, 'checked', false);
|
298
|
+
}
|
299
|
+
this.checkedValues = [];
|
300
|
+
this.handleSelectSubmit();
|
301
|
+
},
|
302
|
+
handleSearchSubmit() {
|
303
|
+
this.closePopup();
|
304
|
+
this.$emit('change', {
|
305
|
+
filterType: this.filterType,
|
306
|
+
filter: this.filterValue
|
307
|
+
});
|
308
|
+
},
|
309
|
+
handleSearchReset() {
|
310
|
+
if (!this.canReset) {
|
311
|
+
return;
|
312
|
+
}
|
313
|
+
this.filterValue = '';
|
314
|
+
this.handleSearchSubmit();
|
315
|
+
},
|
316
|
+
handleRangeSubmit(isReset) {
|
317
|
+
this.closePopup();
|
318
|
+
this.$emit('change', {
|
319
|
+
filterType: this.filterType,
|
320
|
+
filter:
|
321
|
+
isReset === true
|
322
|
+
? []
|
323
|
+
: [parseInt(this.gtValue), parseInt(this.ltValue)]
|
324
|
+
});
|
325
|
+
},
|
326
|
+
handleRangeReset() {
|
327
|
+
if (!this.canReset) {
|
328
|
+
return;
|
329
|
+
}
|
330
|
+
this.gtValue = '';
|
331
|
+
this.ltValue = '';
|
332
|
+
this.handleRangeSubmit(true);
|
333
|
+
}
|
334
|
+
}
|
335
|
+
};
|
292
336
|
</script>
|
293
337
|
|
294
338
|
<style lang="scss">
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
339
|
+
$uni-primary: #1890ff !default;
|
340
|
+
|
341
|
+
.flex-r {
|
342
|
+
display: flex;
|
343
|
+
flex-direction: row;
|
344
|
+
}
|
345
|
+
|
346
|
+
.flex-f {
|
347
|
+
flex: 1;
|
348
|
+
}
|
349
|
+
|
350
|
+
.a-i-c {
|
351
|
+
align-items: center;
|
352
|
+
}
|
353
|
+
|
354
|
+
.j-c-c {
|
355
|
+
justify-content: center;
|
356
|
+
}
|
357
|
+
|
358
|
+
.icon-select {
|
359
|
+
width: 14px;
|
360
|
+
height: 16px;
|
361
|
+
border: solid 6px transparent;
|
362
|
+
border-top: solid 6px #ddd;
|
363
|
+
border-bottom: none;
|
364
|
+
background-color: #ddd;
|
365
|
+
background-clip: content-box;
|
366
|
+
box-sizing: border-box;
|
367
|
+
}
|
368
|
+
|
369
|
+
.icon-select.active {
|
370
|
+
background-color: $uni-primary;
|
371
|
+
border-top-color: $uni-primary;
|
372
|
+
}
|
373
|
+
|
374
|
+
.icon-search {
|
375
|
+
width: 12px;
|
376
|
+
height: 16px;
|
377
|
+
position: relative;
|
378
|
+
}
|
379
|
+
|
380
|
+
.icon-search-0 {
|
381
|
+
border: 2px solid #ddd;
|
382
|
+
border-radius: 8px;
|
383
|
+
width: 7px;
|
384
|
+
height: 7px;
|
385
|
+
}
|
386
|
+
|
387
|
+
.icon-search-1 {
|
388
|
+
position: absolute;
|
389
|
+
top: 8px;
|
390
|
+
right: 0;
|
391
|
+
width: 1px;
|
392
|
+
height: 7px;
|
393
|
+
background-color: #ddd;
|
394
|
+
transform: rotate(-45deg);
|
395
|
+
}
|
396
|
+
|
397
|
+
.icon-search.active .icon-search-0 {
|
398
|
+
border-color: $uni-primary;
|
399
|
+
}
|
400
|
+
|
401
|
+
.icon-search.active .icon-search-1 {
|
402
|
+
background-color: $uni-primary;
|
403
|
+
}
|
404
|
+
|
405
|
+
.icon-calendar {
|
406
|
+
color: #ddd;
|
407
|
+
width: 14px;
|
408
|
+
height: 16px;
|
409
|
+
}
|
410
|
+
|
411
|
+
.icon-calendar-0 {
|
412
|
+
height: 4px;
|
413
|
+
margin-top: 3px;
|
414
|
+
margin-bottom: 1px;
|
415
|
+
background-color: #ddd;
|
416
|
+
border-radius: 2px 2px 1px 1px;
|
417
|
+
position: relative;
|
418
|
+
}
|
419
|
+
.icon-calendar-0:before,
|
420
|
+
.icon-calendar-0:after {
|
421
|
+
content: '';
|
422
|
+
position: absolute;
|
423
|
+
top: -3px;
|
424
|
+
width: 4px;
|
425
|
+
height: 3px;
|
426
|
+
border-radius: 1px;
|
427
|
+
background-color: #ddd;
|
428
|
+
}
|
429
|
+
.icon-calendar-0:before {
|
430
|
+
left: 2px;
|
431
|
+
}
|
432
|
+
.icon-calendar-0:after {
|
433
|
+
right: 2px;
|
434
|
+
}
|
435
|
+
|
436
|
+
.icon-calendar-1 {
|
437
|
+
height: 9px;
|
438
|
+
background-color: #ddd;
|
439
|
+
border-radius: 1px 1px 2px 2px;
|
440
|
+
}
|
441
|
+
|
442
|
+
.icon-calendar.active {
|
443
|
+
color: $uni-primary;
|
444
|
+
}
|
445
|
+
|
446
|
+
.icon-calendar.active .icon-calendar-0,
|
447
|
+
.icon-calendar.active .icon-calendar-1,
|
448
|
+
.icon-calendar.active .icon-calendar-0:before,
|
449
|
+
.icon-calendar.active .icon-calendar-0:after {
|
450
|
+
background-color: $uni-primary;
|
451
|
+
}
|
452
|
+
|
453
|
+
.uni-filter-dropdown {
|
454
|
+
position: relative;
|
455
|
+
font-weight: normal;
|
456
|
+
}
|
457
|
+
|
458
|
+
.dropdown-popup {
|
459
|
+
position: absolute;
|
460
|
+
top: 100%;
|
461
|
+
background-color: #fff;
|
462
|
+
box-shadow:
|
463
|
+
0 3px 6px -4px #0000001f,
|
464
|
+
0 6px 16px #00000014,
|
465
|
+
0 9px 28px 8px #0000000d;
|
466
|
+
min-width: 150px;
|
467
|
+
z-index: 1000;
|
468
|
+
}
|
469
|
+
|
470
|
+
.dropdown-popup-left {
|
471
|
+
left: 0;
|
472
|
+
}
|
473
|
+
|
474
|
+
.dropdown-popup-right {
|
475
|
+
right: 0;
|
476
|
+
}
|
477
|
+
|
478
|
+
.uni-dropdown-cover {
|
479
|
+
position: fixed;
|
480
|
+
left: 0;
|
481
|
+
top: 0;
|
482
|
+
right: 0;
|
483
|
+
bottom: 0;
|
484
|
+
background-color: transparent;
|
485
|
+
z-index: 100;
|
486
|
+
}
|
487
|
+
|
488
|
+
.list {
|
489
|
+
margin-top: 5px;
|
490
|
+
margin-bottom: 5px;
|
491
|
+
}
|
492
|
+
|
493
|
+
.list-item {
|
494
|
+
padding: 5px 10px;
|
495
|
+
text-align: left;
|
496
|
+
}
|
497
|
+
|
498
|
+
.list-item:hover {
|
499
|
+
background-color: #f0f0f0;
|
500
|
+
}
|
501
|
+
|
502
|
+
.check {
|
503
|
+
margin-right: 5px;
|
504
|
+
}
|
505
|
+
|
506
|
+
.search-area {
|
507
|
+
padding: 10px;
|
508
|
+
}
|
509
|
+
|
510
|
+
.search-input {
|
511
|
+
font-size: 12px;
|
512
|
+
border: 1px solid #f0f0f0;
|
513
|
+
border-radius: 3px;
|
514
|
+
padding: 2px 5px;
|
515
|
+
min-width: 150px;
|
516
|
+
text-align: left;
|
517
|
+
}
|
518
|
+
|
519
|
+
.input-label {
|
520
|
+
margin: 10px 10px 5px 10px;
|
521
|
+
text-align: left;
|
522
|
+
}
|
523
|
+
|
524
|
+
.input {
|
525
|
+
font-size: 12px;
|
526
|
+
border: 1px solid #f0f0f0;
|
527
|
+
border-radius: 3px;
|
528
|
+
margin: 10px;
|
529
|
+
padding: 2px 5px;
|
530
|
+
min-width: 150px;
|
531
|
+
text-align: left;
|
532
|
+
}
|
533
|
+
|
534
|
+
.opera-area {
|
535
|
+
cursor: default;
|
536
|
+
border-top: 1px solid #ddd;
|
537
|
+
padding: 5px;
|
538
|
+
}
|
539
|
+
|
540
|
+
.opera-area .btn {
|
541
|
+
font-size: 12px;
|
542
|
+
border-radius: 3px;
|
543
|
+
margin: 5px;
|
544
|
+
padding: 4px 4px;
|
545
|
+
}
|
546
|
+
|
547
|
+
.btn-default {
|
548
|
+
border: 1px solid #ddd;
|
549
|
+
}
|
550
|
+
|
551
|
+
.btn-default.disable {
|
552
|
+
border-color: transparent;
|
553
|
+
}
|
554
|
+
|
555
|
+
.btn-submit {
|
556
|
+
background-color: $uni-primary;
|
557
|
+
color: #ffffff;
|
558
|
+
}
|
511
559
|
</style>
|