@zscreate/zhxy-app-component 1.0.101 → 1.0.103

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.
Files changed (73) hide show
  1. package/components/dying318-picker/Demo.vue +342 -342
  2. package/components/dying318-picker/Picker.nvue +441 -441
  3. package/components/dying318-picker/Picker.vue +442 -442
  4. package/components/dying318-picker/Pickers.vue +321 -321
  5. package/components/dying318-picker/README.md +479 -479
  6. package/components/easydrag-sort/easydrag-sort.vue +248 -248
  7. package/components/evan-form/evan-form.vue +102 -102
  8. package/components/evan-form/utils.js +125 -125
  9. package/components/evan-form-item/evan-form-item.vue +1678 -1671
  10. package/components/evan-form-item/mixins/computedMixin.js +44 -44
  11. package/components/evan-form-item/mixins/pubSubMixin.js +114 -114
  12. package/components/evan-form-item/mixins/validateByApiMinxins.js +21 -21
  13. package/components/evan-form-item/mixins/validateFormMixin.js +71 -71
  14. package/components/evan-form-item/mixins/valueChangeMixin.js +65 -65
  15. package/components/evan-form-item/utilForForm.js +35 -35
  16. package/components/evan-form-item/utils.js +55 -55
  17. package/components/form-container/data.js +709 -709
  18. package/components/form-container/form-container.vue +1040 -1039
  19. package/components/jin-edit/jin-edit.vue +327 -327
  20. package/components/jin-edit/jin-icons.vue +48 -48
  21. package/components/jin-edit/readme.md +64 -64
  22. package/components/l-file/l-file.vue +221 -221
  23. package/components/lb-picker/index.vue +295 -295
  24. package/components/m-textarea/m-textarea.vue +88 -88
  25. package/components/rich-editor/assets/iconfont.css +240 -240
  26. package/components/rich-editor/editor.css +46 -46
  27. package/components/rich-editor/index.vue +338 -338
  28. package/components/rich-editor/t-color-picker.vue +786 -786
  29. package/components/signatrue-write/signatrue-write.vue +225 -225
  30. package/components/t-color-picker/t-color-picker.vue +784 -784
  31. package/components/uni-datetime-picker/changelog.md +76 -76
  32. package/components/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue +182 -182
  33. package/components/uni-datetime-picker/components/uni-datetime-picker/calendar.js +546 -546
  34. package/components/uni-datetime-picker/components/uni-datetime-picker/calendar.vue +1030 -1030
  35. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json +19 -19
  36. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js +8 -8
  37. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json +19 -19
  38. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json +19 -19
  39. package/components/uni-datetime-picker/components/uni-datetime-picker/keypress.js +44 -44
  40. package/components/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue +927 -927
  41. package/components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue +966 -966
  42. package/components/uni-datetime-picker/components/uni-datetime-picker/util.js +437 -437
  43. package/components/uni-datetime-picker/components/uni-datetime-picker/year-mont-picker.vue +901 -901
  44. package/components/uni-datetime-picker/components/uni-datetime-picker/year-picker.vue +271 -271
  45. package/components/uni-datetime-picker/package.json +89 -89
  46. package/components/uni-datetime-picker/readme.md +159 -159
  47. package/components/uni-icons/icons.js +96 -96
  48. package/components/uni-icons/uni-icons.vue +57 -57
  49. package/components/uni-popup/message.js +29 -29
  50. package/components/uni-popup/popup.js +25 -25
  51. package/components/uni-popup/uni-popup-dialog.vue +243 -243
  52. package/components/uni-popup/uni-popup-message.vue +116 -116
  53. package/components/uni-popup/uni-popup-share.vue +165 -165
  54. package/components/uni-popup/uni-popup.vue +297 -297
  55. package/components/uni-rate/uni-rate.vue +361 -361
  56. package/components/uni-transition/uni-transition.vue +279 -279
  57. package/components/uploadFile/uploadFile.vue +260 -260
  58. package/components/viewcomponents/applicateGrid.vue +96 -96
  59. package/components/viewcomponents/card.vue +166 -166
  60. package/components/viewcomponents/formCard.vue +82 -82
  61. package/components/viewcomponents/infocell.vue +122 -122
  62. package/components/viewcomponents/navsearch.vue +59 -59
  63. package/components/viewcomponents/newscontent.vue +85 -85
  64. package/components/xp-picker/util.js +104 -104
  65. package/components/xp-picker/xp-picker.vue +330 -330
  66. package/index.js +9 -9
  67. package/package.json +29 -29
  68. package/static/iconfont.css +32 -32
  69. package/static/uni.css +1449 -1449
  70. package/utils/js-interp.js +6501 -6501
  71. package/utils/js-interp.md +10 -10
  72. package/utils/moment.js +4600 -4600
  73. package/utils/util.js +186 -186
@@ -1,342 +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>
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>