@zscreate/zhxy-app-component 1.0.0
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/components/dying318-picker/Demo.vue +342 -0
- package/components/dying318-picker/Picker.nvue +441 -0
- package/components/dying318-picker/Picker.vue +442 -0
- package/components/dying318-picker/Pickers.vue +321 -0
- package/components/dying318-picker/README.md +479 -0
- package/components/easydrag-sort/easydrag-sort.vue +248 -0
- package/components/evan-form/evan-form.vue +102 -0
- package/components/evan-form/utils.js +125 -0
- package/components/evan-form-item/evan-form-item.vue +1457 -0
- package/components/evan-form-item/mixins/computedMixin.js +44 -0
- package/components/evan-form-item/mixins/pubSubMixin.js +104 -0
- package/components/evan-form-item/mixins/validateByApiMinxins.js +21 -0
- package/components/evan-form-item/mixins/validateFormMixin.js +71 -0
- package/components/evan-form-item/mixins/valueChangeMixin.js +64 -0
- package/components/evan-form-item/modules/edit.png +0 -0
- package/components/evan-form-item/utilForForm.js +35 -0
- package/components/evan-form-item/utils.js +51 -0
- package/components/form-container/data.js +709 -0
- package/components/form-container/form-container.vue +897 -0
- package/components/jin-edit/jin-edit.vue +327 -0
- package/components/jin-edit/jin-icons.vue +48 -0
- package/components/jin-edit/readme.md +65 -0
- package/components/l-file/l-file.vue +260 -0
- package/components/lb-picker/index.vue +286 -0
- package/components/signatrue-write/signatrue-write.vue +220 -0
- package/components/t-color-picker/t-color-picker.vue +784 -0
- package/components/uni-datetime-picker/changelog.md +76 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue +182 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/calendar.js +546 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/calendar.vue +1024 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json +19 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js +8 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json +19 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json +19 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/keypress.js +45 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue +927 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue +966 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/util.js +437 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/year-mont-picker.vue +901 -0
- package/components/uni-datetime-picker/components/uni-datetime-picker/year-picker.vue +271 -0
- package/components/uni-datetime-picker/package.json +89 -0
- package/components/uni-datetime-picker/readme.md +159 -0
- package/components/uni-icons/icons.js +96 -0
- package/components/uni-icons/uni-icons.vue +57 -0
- package/components/uni-popup/message.js +29 -0
- package/components/uni-popup/popup.js +25 -0
- package/components/uni-popup/uni-popup-dialog.vue +243 -0
- package/components/uni-popup/uni-popup-message.vue +116 -0
- package/components/uni-popup/uni-popup-share.vue +165 -0
- package/components/uni-popup/uni-popup.vue +297 -0
- package/components/uni-rate/uni-rate.vue +140 -0
- package/components/uni-transition/uni-transition.vue +279 -0
- package/components/uploadFile/uploadFile.vue +124 -0
- package/components/viewcomponents/applicateGrid.vue +96 -0
- package/components/viewcomponents/card.vue +166 -0
- package/components/viewcomponents/formCard.vue +82 -0
- package/components/viewcomponents/infocell.vue +122 -0
- package/components/viewcomponents/navsearch.vue +59 -0
- package/components/viewcomponents/newscontent.vue +85 -0
- package/components/xp-picker/util.js +105 -0
- package/components/xp-picker/xp-picker.vue +330 -0
- package/index.js +9 -0
- package/package.json +29 -0
- package/static/iconfont.css +32 -0
- package/static/mttf.ttf +0 -0
- package/static/uni.ttf +0 -0
- package/utils/js-interp.js +6501 -0
- package/utils/js-interp.md +10 -0
- package/utils/moment.js +4601 -0
- package/utils/util.js +106 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="container">
|
|
3
|
+
<my-picker :picker-list="singleColumnPickerList" @confirm="confirm('singleColumn', $event)">
|
|
4
|
+
<button class="button" type="primary">单列</button>
|
|
5
|
+
</my-picker>
|
|
6
|
+
<view class="picked-result" v-if="demos.singleColumn.picked">
|
|
7
|
+
<h4>单列picker选择结果:</h4>
|
|
8
|
+
<pre v-html="JSON.stringify(demos.singleColumn.picked, null, 4)"></pre>
|
|
9
|
+
</view>
|
|
10
|
+
|
|
11
|
+
<my-picker
|
|
12
|
+
:picker-list="multiColumnsPickerList"
|
|
13
|
+
column-num="3"
|
|
14
|
+
@change="changeMultiColumns"
|
|
15
|
+
@confirm="confirm('multiColumns', $event)">
|
|
16
|
+
<button class="button" type="primary">3列联动</button>
|
|
17
|
+
</my-picker>
|
|
18
|
+
<view class="picked-result" v-if="demos.multiColumns.picked">
|
|
19
|
+
<h4>3列联动选择结果:</h4>
|
|
20
|
+
<pre v-html="JSON.stringify(demos.multiColumns.picked, null, 4)"></pre>
|
|
21
|
+
</view>
|
|
22
|
+
<view class="picked-result" v-else-if="demos.multiColumns.columnPicked">
|
|
23
|
+
<h4>多列联动第{{demos.multiColumns.columnPickedIndex + 1}}列更新:</h4>
|
|
24
|
+
<pre v-html="JSON.stringify(demos.multiColumns.columnPicked, null, 4)"></pre>
|
|
25
|
+
</view>
|
|
26
|
+
|
|
27
|
+
<my-picker
|
|
28
|
+
column-num="3"
|
|
29
|
+
:picker-list="multiColumnsWithCustomKeyPickerList"
|
|
30
|
+
:picker-style="pickerStyle"
|
|
31
|
+
:picker-key="{value: 'id', label: 'title', children: 'sub'}"
|
|
32
|
+
:before-set-column="addPickerItem"
|
|
33
|
+
:default-value="[2,21,212]"
|
|
34
|
+
:item-rotate-deg="20"
|
|
35
|
+
@change="changeCustomMultiColumns"
|
|
36
|
+
@confirm="confirm('customMultiColumns', $event)">
|
|
37
|
+
<button class="button" type="primary">完整自定义参数联动</button>
|
|
38
|
+
</my-picker>
|
|
39
|
+
<view class="picked-result" v-if="demos.customMultiColumns.picked">
|
|
40
|
+
<h4>完整自定义参数联动选择结果:</h4>
|
|
41
|
+
<pre v-html="JSON.stringify(demos.customMultiColumns.picked, null, 4)"></pre>
|
|
42
|
+
</view>
|
|
43
|
+
<view class="picked-result" v-else-if="demos.customMultiColumns.columnPicked">
|
|
44
|
+
<h4>完整自定义参数联动第{{demos.customMultiColumns.columnPickedIndex + 1}}列更新:</h4>
|
|
45
|
+
<pre v-html="JSON.stringify(demos.customMultiColumns.columnPicked, null, 4)"></pre>
|
|
46
|
+
</view>
|
|
47
|
+
|
|
48
|
+
<my-picker
|
|
49
|
+
:picker-list="multiColumnsPickerList"
|
|
50
|
+
@confirm="confirm('dynamicColumns', $event)">
|
|
51
|
+
<button class="button" type="primary">非固定列联动</button>
|
|
52
|
+
</my-picker>
|
|
53
|
+
<view class="picked-result" v-if="demos.dynamicColumns.picked">
|
|
54
|
+
<h4>非固定列联动选择结果:</h4>
|
|
55
|
+
<pre v-html="JSON.stringify(demos.dynamicColumns.picked, null, 4)"></pre>
|
|
56
|
+
</view>
|
|
57
|
+
|
|
58
|
+
<my-picker
|
|
59
|
+
:picker-list="independentMultiColumnsPickerList"
|
|
60
|
+
@confirm="confirm('independentMultiColumns', $event)">
|
|
61
|
+
<button class="button" type="primary">多列非联动</button>
|
|
62
|
+
</my-picker>
|
|
63
|
+
<view class="picked-result" v-if="demos.independentMultiColumns.picked">
|
|
64
|
+
<h4>多列非联动选择结果:</h4>
|
|
65
|
+
<pre v-html="JSON.stringify(demos.independentMultiColumns.picked, null, 4)"></pre>
|
|
66
|
+
</view>
|
|
67
|
+
</view>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
import MyPicker from './Picker';
|
|
72
|
+
|
|
73
|
+
export default {
|
|
74
|
+
components: {MyPicker},
|
|
75
|
+
data() {
|
|
76
|
+
return {
|
|
77
|
+
demos: {
|
|
78
|
+
singleColumn: {
|
|
79
|
+
picked: null,
|
|
80
|
+
},
|
|
81
|
+
multiColumns: {
|
|
82
|
+
picked: null,
|
|
83
|
+
columnPicked: null,
|
|
84
|
+
columnPickedIndex: null,
|
|
85
|
+
},
|
|
86
|
+
customMultiColumns: {
|
|
87
|
+
picked: null,
|
|
88
|
+
columnPicked: null,
|
|
89
|
+
columnPickedIndex: null,
|
|
90
|
+
},
|
|
91
|
+
dynamicColumns: {
|
|
92
|
+
picked: null,
|
|
93
|
+
columnPicked: null,
|
|
94
|
+
columnPickedIndex: null,
|
|
95
|
+
},
|
|
96
|
+
independentMultiColumns: {
|
|
97
|
+
picked: null,
|
|
98
|
+
columnPicked: null,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
pickerStyle: {
|
|
102
|
+
cancel: {
|
|
103
|
+
color: '#999',
|
|
104
|
+
'font-size': '32rpx'
|
|
105
|
+
},
|
|
106
|
+
confirm: {
|
|
107
|
+
color: 'green',
|
|
108
|
+
'font-size': '32rpx'
|
|
109
|
+
},
|
|
110
|
+
column: [
|
|
111
|
+
{flex: 1},
|
|
112
|
+
{flex: 1},
|
|
113
|
+
{flex: 2},
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
singleColumnPickerList: [
|
|
117
|
+
{label: '选项1', value: 1},
|
|
118
|
+
{label: '选项2', value: 2},
|
|
119
|
+
{label: '选项3', value: 3},
|
|
120
|
+
{label: '选项4', value: 4},
|
|
121
|
+
{label: '选项5', value: 5},
|
|
122
|
+
{label: '选项6', value: 6},
|
|
123
|
+
{label: '选项7', value: 7},
|
|
124
|
+
{label: '选项8', value: 8},
|
|
125
|
+
{label: '选项9', value: 9},
|
|
126
|
+
],
|
|
127
|
+
multiColumnsPickerList: [
|
|
128
|
+
{
|
|
129
|
+
label: '选项1',
|
|
130
|
+
value: 1,
|
|
131
|
+
children: [
|
|
132
|
+
{
|
|
133
|
+
label: '选项11',
|
|
134
|
+
value: 11,
|
|
135
|
+
children: [
|
|
136
|
+
{label: '选项111', value: 111},
|
|
137
|
+
{label: '选项112', value: 112},
|
|
138
|
+
{label: '选项113', value: 113},
|
|
139
|
+
{label: '选项114', value: 114},
|
|
140
|
+
{label: '选项115', value: 115},
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: '选项12',
|
|
145
|
+
value: 12,
|
|
146
|
+
children: [
|
|
147
|
+
{label: '选项121', value: 121},
|
|
148
|
+
{label: '选项122', value: 122},
|
|
149
|
+
{label: '选项123', value: 123},
|
|
150
|
+
{label: '选项124', value: 124},
|
|
151
|
+
{label: '选项125', value: 125},
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{label: '选项13', value: 13},
|
|
155
|
+
{label: '选项14', value: 14},
|
|
156
|
+
{label: '选项15', value: 15},
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: '选项2',
|
|
161
|
+
value: 2,
|
|
162
|
+
children: [
|
|
163
|
+
{
|
|
164
|
+
label: '选项21',
|
|
165
|
+
value: 21,
|
|
166
|
+
children: [
|
|
167
|
+
{label: '选项211', value: 211},
|
|
168
|
+
{label: '选项212', value: 212},
|
|
169
|
+
{label: '选项213', value: 213},
|
|
170
|
+
{label: '选项214', value: 214},
|
|
171
|
+
{label: '选项215', value: 215},
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: '选项22',
|
|
176
|
+
value: 22,
|
|
177
|
+
children: [
|
|
178
|
+
{label: '选项221', value: 221},
|
|
179
|
+
{label: '选项222', value: 222},
|
|
180
|
+
{label: '选项223', value: 223},
|
|
181
|
+
{label: '选项224', value: 224},
|
|
182
|
+
{label: '选项225', value: 225},
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{label: '选项23', value: 23},
|
|
186
|
+
{label: '选项24', value: 24},
|
|
187
|
+
{label: '选项25', value: 25},
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{label: '选项3', value: 3},
|
|
191
|
+
{label: '选项4', value: 4},
|
|
192
|
+
{label: '选项5', value: 5},
|
|
193
|
+
{label: '选项6', value: 6},
|
|
194
|
+
{label: '选项7', value: 7},
|
|
195
|
+
{label: '选项8', value: 8},
|
|
196
|
+
{label: '选项9', value: 9},
|
|
197
|
+
],
|
|
198
|
+
multiColumnsWithCustomKeyPickerList: [
|
|
199
|
+
{
|
|
200
|
+
title: '选项1',
|
|
201
|
+
id: 1,
|
|
202
|
+
sub: [
|
|
203
|
+
{
|
|
204
|
+
title: '选项11',
|
|
205
|
+
id: 11,
|
|
206
|
+
sub: [
|
|
207
|
+
{title: '选项111', id: 111},
|
|
208
|
+
{title: '选项112', id: 112},
|
|
209
|
+
{title: '选项113', id: 113},
|
|
210
|
+
{title: '选项114', id: 114},
|
|
211
|
+
{title: '选项115', id: 115},
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
title: '选项12',
|
|
216
|
+
id: 12,
|
|
217
|
+
sub: [
|
|
218
|
+
{title: '选项121', id: 121},
|
|
219
|
+
{title: '选项122', id: 122},
|
|
220
|
+
{title: '选项123', id: 123},
|
|
221
|
+
{title: '选项124', id: 124},
|
|
222
|
+
{title: '选项125', id: 125},
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{title: '选项13', id: 13},
|
|
226
|
+
{title: '选项14', id: 14},
|
|
227
|
+
{title: '选项15', id: 15},
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
title: '选项2',
|
|
232
|
+
id: 2,
|
|
233
|
+
sub: [
|
|
234
|
+
{
|
|
235
|
+
title: '选项21',
|
|
236
|
+
id: 21,
|
|
237
|
+
sub: [
|
|
238
|
+
{title: '选项211', id: 211},
|
|
239
|
+
{title: '选项212', id: 212},
|
|
240
|
+
{title: '选项213', id: 213},
|
|
241
|
+
{title: '选项214', id: 214},
|
|
242
|
+
{title: '选项215', id: 215},
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
title: '选项22',
|
|
247
|
+
id: 22,
|
|
248
|
+
sub: [
|
|
249
|
+
{title: '选项221', id: 221},
|
|
250
|
+
{title: '选项222', id: 222},
|
|
251
|
+
{title: '选项223', id: 223},
|
|
252
|
+
{title: '选项224', id: 224},
|
|
253
|
+
{title: '选项225', id: 225},
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{title: '选项23', id: 23},
|
|
257
|
+
{title: '选项24', id: 24},
|
|
258
|
+
{title: '选项25', id: 25},
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{title: '选项3', id: 3},
|
|
262
|
+
{title: '选项4', id: 4},
|
|
263
|
+
{title: '选项5', id: 5},
|
|
264
|
+
{title: '选项6', id: 6},
|
|
265
|
+
{title: '选项7', id: 7},
|
|
266
|
+
{title: '选项8', id: 8},
|
|
267
|
+
{title: '选项9', id: 9},
|
|
268
|
+
],
|
|
269
|
+
independentMultiColumnsPickerList: [
|
|
270
|
+
[
|
|
271
|
+
{label: '选项1', value: 1},
|
|
272
|
+
{label: '选项2', value: 2},
|
|
273
|
+
{label: '选项3', value: 3},
|
|
274
|
+
{label: '选项4', value: 4},
|
|
275
|
+
{label: '选项5', value: 5},
|
|
276
|
+
{label: '选项6', value: 6},
|
|
277
|
+
{label: '选项7', value: 7},
|
|
278
|
+
{label: '选项8', value: 8},
|
|
279
|
+
{label: '选项9', value: 9},
|
|
280
|
+
],
|
|
281
|
+
[
|
|
282
|
+
{label: '选项1', value: 1},
|
|
283
|
+
{label: '选项2', value: 2},
|
|
284
|
+
{label: '选项3', value: 3},
|
|
285
|
+
{label: '选项4', value: 4},
|
|
286
|
+
{label: '选项5', value: 5},
|
|
287
|
+
{label: '选项6', value: 6},
|
|
288
|
+
{label: '选项7', value: 7},
|
|
289
|
+
{label: '选项8', value: 8},
|
|
290
|
+
{label: '选项9', value: 9},
|
|
291
|
+
],
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
methods: {
|
|
296
|
+
confirm(type, picked) {
|
|
297
|
+
this.demos[type].picked = picked
|
|
298
|
+
},
|
|
299
|
+
changeMultiColumns(index, picked) {
|
|
300
|
+
this.demos.multiColumns.columnPickedIndex = index
|
|
301
|
+
this.demos.multiColumns.columnPicked = picked
|
|
302
|
+
},
|
|
303
|
+
changeCustomMultiColumns(index, picked) {
|
|
304
|
+
this.demos.customMultiColumns.columnPickedIndex = index
|
|
305
|
+
this.demos.customMultiColumns.columnPicked = picked
|
|
306
|
+
},
|
|
307
|
+
addPickerItem(index, pickerList) {
|
|
308
|
+
if (pickerList.length > 0) {
|
|
309
|
+
pickerList = [{title: '全部', id: 0}].concat(pickerList)
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
return pickerList
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
</script>
|
|
317
|
+
|
|
318
|
+
<style lang="scss" scoped>
|
|
319
|
+
.container {
|
|
320
|
+
display: flex;
|
|
321
|
+
flex-direction: column;
|
|
322
|
+
align-items: center;
|
|
323
|
+
|
|
324
|
+
height: 100vh;
|
|
325
|
+
padding: 20rpx;
|
|
326
|
+
|
|
327
|
+
.button {
|
|
328
|
+
margin-top: 20rpx;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.picked-result {
|
|
332
|
+
width: 80%;
|
|
333
|
+
margin-top: 20rpx;
|
|
334
|
+
padding: 20rpx;
|
|
335
|
+
background-color: #f3f3f3;
|
|
336
|
+
color: #555;
|
|
337
|
+
font-size: 24rpx;
|
|
338
|
+
line-height: 1;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
</style>
|