-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS en-US11.0cb71eee40c7d7b6716e.js
2572 lines (2428 loc) · 233 KB
/
DOCS en-US11.0cb71eee40c7d7b6716e.js
1
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
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
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
292
293
294
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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
/***/ 767:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/cascader.md?vue&type=template&id=5f38c9ff
const cascadervue_type_template_id_5f38c9ff_hoisted_1 = {
class: "content element-doc"
};
const cascadervue_type_template_id_5f38c9ff_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Cascader ");
const cascadervue_type_template_id_5f38c9ff_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "If the options have a clear hierarchical structure, Cascader can be used to view and select them.", -1);
const cascadervue_type_template_id_5f38c9ff_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Basic usage ");
const _hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "There are two ways to expand child option items.", -1);
const _hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Assigning the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "options"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute to an array of options renders a Cascader. The "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "props.expandTrigger"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute defines how child options are expanded.")])], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <span class=\"demonstration\">Child options expand when clicked (default)</span>\n <el-cascader\n v-model=\"value\"\n :options=\"options\"\n @change=\"handleChange\"\n ></el-cascader>\n</div>\n<div class=\"block\">\n <span class=\"demonstration\">Child options expand when hovered</span>\n <el-cascader\n v-model=\"value\"\n :options=\"options\"\n :props=\"{ expandTrigger: 'hover' }\"\n @change=\"handleChange\"\n ></el-cascader>\n</div>\n\n<script>\n export default {\n data() {\n return {\n value: [],\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n methods: {\n handleChange(value) {\n console.log(value)\n },\n },\n }\n</script>\n\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n value: [],\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n const handleChange = (value) => {\n console.log(value);\n };\n return {\n ...toRefs(state),\n handleChange,\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Disabled option ");
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Disable an option by setting a "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" field in the option object.")], -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("In this example, the first item in "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "options"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" array has a "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled: true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" field, so it is disabled. By default, Cascader checks the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" field in each option object; if you are using another field name to indicate whether an option is disabled, you can assign it in the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "props.disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute (see the API table below for details). And of course, field name "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "value"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "children"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" can also be customized in the same way.")])], -1);
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-cascader :options=\"options\"></el-cascader>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n disabled: true,\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n disabled: true,\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Clearable ");
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Set "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "clearable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute for "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-cascader"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and a clear icon will appear when selected and hovered")], -1);
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-cascader :options=\"options\" clearable></el-cascader>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Display only the last level ");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "The input can display only the last level instead of all levels.", -1);
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("The "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "show-all-levels"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute defines if all levels are displayed. If it is "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "false"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", only the last level is displayed.")])], -1);
const _hoisted_18 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-cascader :options=\"options\" :show-all-levels=\"false\"></el-cascader>\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Multiple Selection ");
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Set "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "props.multiple = true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to use multiple selection.")], -1);
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("When using multiple selection, all selected tags will display by default, You can set "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "collapse-tags = true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to fold selected tags.")])], -1);
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <span class=\"demonstration\">Display all tags (default)</span>\n <el-cascader :options=\"options\" :props=\"props\" clearable></el-cascader>\n</div>\n<div class=\"block\">\n <span class=\"demonstration\">Collapse tags</span>\n <el-cascader\n :options=\"options\"\n :props=\"props\"\n collapse-tags\n clearable\n ></el-cascader>\n</div>\n\n<script>\n export default {\n data() {\n return {\n props: { multiple: true },\n options: [\n {\n value: 1,\n label: 'Asia',\n children: [\n {\n value: 2,\n label: 'China',\n children: [\n { value: 3, label: 'Beijing' },\n { value: 4, label: 'Shanghai' },\n { value: 5, label: 'Hangzhou' },\n ],\n },\n {\n value: 6,\n label: 'Japan',\n children: [\n { value: 7, label: 'Tokyo' },\n { value: 8, label: 'Osaka' },\n { value: 9, label: 'Kyoto' },\n ],\n },\n {\n value: 10,\n label: 'Korea',\n children: [\n { value: 11, label: 'Seoul' },\n { value: 12, label: 'Busan' },\n { value: 13, label: 'Taegu' },\n ],\n },\n ],\n },\n {\n value: 14,\n label: 'Europe',\n children: [\n {\n value: 15,\n label: 'France',\n children: [\n { value: 16, label: 'Paris' },\n { value: 17, label: 'Marseille' },\n { value: 18, label: 'Lyon' },\n ],\n },\n {\n value: 19,\n label: 'UK',\n children: [\n { value: 20, label: 'London' },\n { value: 21, label: 'Birmingham' },\n { value: 22, label: 'Manchester' },\n ],\n },\n ],\n },\n {\n value: 23,\n label: 'North America',\n children: [\n {\n value: 24,\n label: 'US',\n children: [\n { value: 25, label: 'New York' },\n { value: 26, label: 'Los Angeles' },\n { value: 27, label: 'Washington' },\n ],\n },\n {\n value: 28,\n label: 'Canada',\n children: [\n { value: 29, label: 'Toronto' },\n { value: 30, label: 'Montreal' },\n { value: 31, label: 'Ottawa' },\n ],\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n props: { multiple: true },\n options: [\n {\n value: 1,\n label: 'Asia',\n children: [\n {\n value: 2,\n label: 'China',\n children: [\n { value: 3, label: 'Beijing' },\n { value: 4, label: 'Shanghai' },\n { value: 5, label: 'Hangzhou' },\n ],\n },\n {\n value: 6,\n label: 'Japan',\n children: [\n { value: 7, label: 'Tokyo' },\n { value: 8, label: 'Osaka' },\n { value: 9, label: 'Kyoto' },\n ],\n },\n {\n value: 10,\n label: 'Korea',\n children: [\n { value: 11, label: 'Seoul' },\n { value: 12, label: 'Busan' },\n { value: 13, label: 'Taegu' },\n ],\n },\n ],\n },\n {\n value: 14,\n label: 'Europe',\n children: [\n {\n value: 15,\n label: 'France',\n children: [\n { value: 16, label: 'Paris' },\n { value: 17, label: 'Marseille' },\n { value: 18, label: 'Lyon' },\n ],\n },\n {\n value: 19,\n label: 'UK',\n children: [\n { value: 20, label: 'London' },\n { value: 21, label: 'Birmingham' },\n { value: 22, label: 'Manchester' },\n ],\n },\n ],\n },\n {\n value: 23,\n label: 'North America',\n children: [\n {\n value: 24,\n label: 'US',\n children: [\n { value: 25, label: 'New York' },\n { value: 26, label: 'Los Angeles' },\n { value: 27, label: 'Washington' },\n ],\n },\n {\n value: 28,\n label: 'Canada',\n children: [\n { value: 29, label: 'Toronto' },\n { value: 30, label: 'Montreal' },\n { value: 31, label: 'Ottawa' },\n ],\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Select any level of options ");
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "In single selection, only the leaf nodes can be checked, and in multiple selection, check parent nodes will lead to leaf nodes be checked eventually. When enable this feature, it can make parent and child nodes unlinked and you can select any level of options.", -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Set "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "props.checkStrictly = true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to make checked state of a node not affects its parent nodes and child nodes, and then you can select any level of options.")])], -1);
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <span class=\"demonstration\"\n >Select any level of options (Single selection)</span\n >\n <el-cascader\n :options=\"options\"\n :props=\"{ checkStrictly: true }\"\n clearable\n ></el-cascader>\n</div>\n<div class=\"block\">\n <span class=\"demonstration\"\n >Select any level of options (Multiple selection)</span\n >\n <el-cascader\n :options=\"options\"\n :props=\"{ multiple: true, checkStrictly: true }\"\n clearable\n ></el-cascader>\n</div>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Dynamic loading ");
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Dynamic load its child nodes when checked a node.", -1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Set "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "lazy = true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to use dynamic loading, and you have to specify how to load the data source by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "lazyload"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". There are two parameters of "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "lazyload"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(",the first parameter "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "node"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is the node currently clicked, and the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "resolve"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is a callback that indicate loading is finished which must invoke. To display the status of node more accurately, you can add a "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "leaf"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" field (can be modified by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "props.leaf"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(") to indicate whether it is a leaf node. Otherwise, it will be inferred by if has any child nodes.")])], -1);
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-cascader :props=\"props\"></el-cascader>\n\n<script>\n let id = 0\n\n export default {\n data() {\n return {\n props: {\n lazy: true,\n lazyLoad(node, resolve) {\n const { level } = node\n setTimeout(() => {\n const nodes = Array.from({ length: level + 1 }).map((item) => ({\n value: ++id,\n label: `Option - ${id}`,\n leaf: level >= 2,\n }))\n // Invoke `resolve` callback to return the child nodes data and indicate the loading is finished.\n resolve(nodes)\n }, 1000)\n },\n },\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nlet id = 0;\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n props: {\n lazy: true,\n lazyLoad(node, resolve) {\n const { level } = node;\n setTimeout(() => {\n const nodes = Array.from({ length: level + 1 }).map((item) => ({\n value: ++id,\n label: `Option - ${id}`,\n leaf: level >= 2,\n }));\n // Invoke `resolve` callback to return the child nodes data and indicate the loading is finished.\n resolve(nodes);\n }, 1000);\n },\n },\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Filterable ");
const _hoisted_32 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Search and select options with a keyword.", -1);
const _hoisted_33 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Adding "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filterable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-cascader"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" enables filtering. Cascader will match nodes whose label or parent's label (according to "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "show-all-levels"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(") includes input keyword. Of course, you can customize search logic by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filter-method"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" which accepts a function, the first parameter is "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "node"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", the second is "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "keyword"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", and need return a boolean value indicating whether it hits.")])], -1);
const _hoisted_34 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <span class=\"demonstration\">Filterable (Single selection)</span>\n <el-cascader\n placeholder=\"Try searchingL Guide\"\n :options=\"options\"\n filterable\n ></el-cascader>\n</div>\n<div class=\"block\">\n <span class=\"demonstration\">Filterable (Multiple selection)</span>\n <el-cascader\n placeholder=\"Try searchingL Guide\"\n :options=\"options\"\n :props=\"{ multiple: true }\"\n filterable\n ></el-cascader>\n</div>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_35 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Custom option content ");
const _hoisted_36 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "You can customize the content of cascader node.", -1);
const _hoisted_37 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("You can customize the content of cascader node by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "scoped slot"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". You'll have access to "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "node"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "data"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in the scope, standing for the Node object and node data of the current node respectively。")])], -1);
const _hoisted_38 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-cascader :options=\"options\">\n <template #default=\"{ node, data }\">\n <span>{{ data.label }}</span>\n <span v-if=\"!node.isLeaf\"> ({{ data.children.length }}) </span>\n </template>\n</el-cascader>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_39 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Cascader panel ");
const _hoisted_40 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "CascaderPanel"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is the core component of "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Cascader"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" which has various of features such as single selection, multiple selection, dynamic loading and so on.")], -1);
const _hoisted_41 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Just like "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-cascader"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", you can set alternative options by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "options"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", and enable other features by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "props"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", see the API form below for details.")])], -1);
const _hoisted_42 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-cascader-panel :options=\"options\"></el-cascader-panel>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n }\n },\n }\n</script>\n<!--\n<setup>\n\nimport { defineComponent, reactive, toRefs } from 'vue';\n\nexport default defineComponent({\n setup() {\n const state = reactive({\n options: [\n {\n value: 'guide',\n label: 'Guide',\n children: [\n {\n value: 'disciplines',\n label: 'Disciplines',\n children: [\n {\n value: 'consistency',\n label: 'Consistency',\n },\n {\n value: 'feedback',\n label: 'Feedback',\n },\n {\n value: 'efficiency',\n label: 'Efficiency',\n },\n {\n value: 'controllability',\n label: 'Controllability',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'side nav',\n label: 'Side Navigation',\n },\n {\n value: 'top nav',\n label: 'Top Navigation',\n },\n ],\n },\n ],\n },\n {\n value: 'component',\n label: 'Component',\n children: [\n {\n value: 'basic',\n label: 'Basic',\n children: [\n {\n value: 'layout',\n label: 'Layout',\n },\n {\n value: 'color',\n label: 'Color',\n },\n {\n value: 'typography',\n label: 'Typography',\n },\n {\n value: 'icon',\n label: 'Icon',\n },\n {\n value: 'button',\n label: 'Button',\n },\n ],\n },\n {\n value: 'form',\n label: 'Form',\n children: [\n {\n value: 'radio',\n label: 'Radio',\n },\n {\n value: 'checkbox',\n label: 'Checkbox',\n },\n {\n value: 'input',\n label: 'Input',\n },\n {\n value: 'input-number',\n label: 'InputNumber',\n },\n {\n value: 'select',\n label: 'Select',\n },\n {\n value: 'cascader',\n label: 'Cascader',\n },\n {\n value: 'switch',\n label: 'Switch',\n },\n {\n value: 'slider',\n label: 'Slider',\n },\n {\n value: 'time-picker',\n label: 'TimePicker',\n },\n {\n value: 'date-picker',\n label: 'DatePicker',\n },\n {\n value: 'datetime-picker',\n label: 'DateTimePicker',\n },\n {\n value: 'upload',\n label: 'Upload',\n },\n {\n value: 'rate',\n label: 'Rate',\n },\n {\n value: 'form',\n label: 'Form',\n },\n ],\n },\n {\n value: 'data',\n label: 'Data',\n children: [\n {\n value: 'table',\n label: 'Table',\n },\n {\n value: 'tag',\n label: 'Tag',\n },\n {\n value: 'progress',\n label: 'Progress',\n },\n {\n value: 'tree',\n label: 'Tree',\n },\n {\n value: 'pagination',\n label: 'Pagination',\n },\n {\n value: 'badge',\n label: 'Badge',\n },\n ],\n },\n {\n value: 'notice',\n label: 'Notice',\n children: [\n {\n value: 'alert',\n label: 'Alert',\n },\n {\n value: 'loading',\n label: 'Loading',\n },\n {\n value: 'message',\n label: 'Message',\n },\n {\n value: 'message-box',\n label: 'MessageBox',\n },\n {\n value: 'notification',\n label: 'Notification',\n },\n ],\n },\n {\n value: 'navigation',\n label: 'Navigation',\n children: [\n {\n value: 'menu',\n label: 'NavMenu',\n },\n {\n value: 'tabs',\n label: 'Tabs',\n },\n {\n value: 'breadcrumb',\n label: 'Breadcrumb',\n },\n {\n value: 'dropdown',\n label: 'Dropdown',\n },\n {\n value: 'steps',\n label: 'Steps',\n },\n ],\n },\n {\n value: 'others',\n label: 'Others',\n children: [\n {\n value: 'dialog',\n label: 'Dialog',\n },\n {\n value: 'tooltip',\n label: 'Tooltip',\n },\n {\n value: 'popover',\n label: 'Popover',\n },\n {\n value: 'card',\n label: 'Card',\n },\n {\n value: 'carousel',\n label: 'Carousel',\n },\n {\n value: 'collapse',\n label: 'Collapse',\n },\n ],\n },\n ],\n },\n {\n value: 'resource',\n label: 'Resource',\n children: [\n {\n value: 'axure',\n label: 'Axure Components',\n },\n {\n value: 'sketch',\n label: 'Sketch Templates',\n },\n {\n value: 'docs',\n label: 'Design Documentation',\n },\n ],\n },\n ],\n });\n return {\n ...toRefs(state),\n };\n },\n});\n\n</setup>\n-->\n")], -1);
const _hoisted_43 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Cascader Attributes ");
const _hoisted_44 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribute</th><th>Description</th><th>Type</th><th>Accepted Values</th><th>Default</th></tr></thead><tbody><tr><td>model-value / v-model</td><td>binding value</td><td>-</td><td>—</td><td>—</td></tr><tr><td>options</td><td>data of the options,the key of <code>value</code> and <code>label</code> can be customize by <code>Props</code>.</td><td>array</td><td>—</td><td>—</td></tr><tr><td>props</td><td>configuration options, see the following table.</td><td>object</td><td>—</td><td>—</td></tr><tr><td>size</td><td>size of input</td><td>string</td><td>medium / small / mini</td><td>—</td></tr><tr><td>placeholder</td><td>placeholder of input</td><td>string</td><td>—</td><td>Select</td></tr><tr><td>disabled</td><td>whether Cascader is disabled</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>clearable</td><td>whether selected value can be cleared</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>show-all-levels</td><td>whether to display all levels of the selected value in the input</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>collapse-tags</td><td>whether to collapse tags in multiple selection mode</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>separator</td><td>option label separator</td><td>string</td><td>—</td><td>' / '</td></tr><tr><td>filterable</td><td>whether the options can be searched</td><td>boolean</td><td>—</td><td>—</td></tr><tr><td>filter-method</td><td>customize search logic, the first parameter is <code>node</code>, the second is <code>keyword</code>, and need return a boolean value indicating whether it hits.</td><td>function(node, keyword)</td><td>-</td><td>-</td></tr><tr><td>debounce</td><td>debounce delay when typing filter keyword, in milliseconds</td><td>number</td><td>—</td><td>300</td></tr><tr><td>before-filter</td><td>hook function before filtering with the value to be filtered as its parameter. If <code>false</code> is returned or a <code>Promise</code> is returned and then is rejected, filtering will be aborted</td><td>function(value)</td><td>—</td><td>—</td></tr><tr><td>popper-class</td><td>custom class name for Cascader's dropdown</td><td>string</td><td>—</td><td>—</td></tr><tr><td>popper-append-to-body</td><td>whether to append the popper menu to body. If the positioning of the popper is wrong, you can try to set this prop to false</td><td>boolean</td><td>-</td><td>true</td></tr></tbody></table>", 1);
const _hoisted_45 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Cascader Events ");
const _hoisted_46 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Event Name</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>change</td><td>triggers when the binding value changes</td><td>value</td></tr><tr><td>expand-change</td><td>triggers when expand option changes</td><td>an array of the expanding node's parent nodes</td></tr><tr><td>blur</td><td>triggers when Cascader blurs</td><td>(event: Event)</td></tr><tr><td>focus</td><td>triggers when Cascader focuses</td><td>(event: Event)</td></tr><tr><td>visible-change</td><td>triggers when the dropdown appears/disappears</td><td>true when it appears, and false otherwise</td></tr><tr><td>remove-tag</td><td>triggers when remove tag in multiple selection mode</td><td>the value of the tag which is removed</td></tr></tbody></table>", 1);
const _hoisted_47 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Cascader Methods ");
const _hoisted_48 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Method Name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Parameters")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "getCheckedNodes"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "get an array of currently selected node"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("(leafOnly) whether only return the leaf checked nodes, default is "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "false")])])])], -1);
const _hoisted_49 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Cascader Slots ");
const _hoisted_50 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the custom content of cascader node, the parameter is { node, data }, which are current Node object and node data respectively.")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "empty"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "content when there is no matched options.")])])], -1);
const _hoisted_51 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("CascaderPanel Attributes ");
const _hoisted_52 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribute</th><th>Description</th><th>Type</th><th>Accepted Values</th><th>Default</th></tr></thead><tbody><tr><td>model-value / v-model</td><td>binding value</td><td>-</td><td>—</td><td>—</td></tr><tr><td>options</td><td>data of the options,the key of <code>value</code> and <code>label</code> can be customize by <code>Props</code>.</td><td>array</td><td>—</td><td>—</td></tr><tr><td>props</td><td>configuration options, see the following table.</td><td>object</td><td>—</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_53 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("CascaderPanel Events ");
const _hoisted_54 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Event Name</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>change</td><td>triggers when the binding value changes</td><td>value</td></tr><tr><td>expand-change</td><td>triggers when expand option changes</td><td>an array of the expanding node's parent nodes</td></tr></tbody></table>", 1);
const _hoisted_55 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("CascaderPanel Methods ");
const _hoisted_56 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Method Name</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>getCheckedNodes</td><td>get an array of currently selected node</td><td>(leafOnly) whether only return the leaf checked nodes, default is <code>false</code></td></tr><tr><td>clearCheckedNodes</td><td>clear checked nodes</td><td>-</td></tr></tbody></table>", 1);
const _hoisted_57 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("CascaderPanel Slots ");
const _hoisted_58 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the custom content of cascader node, the parameter is { node, data }, which are current Node object and node data respectively.")])])], -1);
const _hoisted_59 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Props ");
const _hoisted_60 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribute</th><th>Description</th><th>Type</th><th>Accepted Values</th><th>Default</th></tr></thead><tbody><tr><td>expandTrigger</td><td>trigger mode of expanding options</td><td>string</td><td>click / hover</td><td>'click'</td></tr><tr><td>multiple</td><td>whether multiple selection is enabled</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>checkStrictly</td><td>whether checked state of a node not affects its parent and child nodes</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>emitPath</td><td>when checked nodes change, whether to emit an array of node's path, if false, only emit the value of node.</td><td>boolean</td><td>-</td><td>true</td></tr><tr><td>lazy</td><td>whether to dynamic load child nodes, use with <code>lazyload</code> attribute</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>lazyLoad</td><td>method for loading child nodes data, only works when <code>lazy</code> is true</td><td>function(node, resolve)</td><td>-</td><td>-</td></tr><tr><td>value</td><td>specify which key of node object is used as the node's value</td><td>string</td><td>—</td><td>'value'</td></tr><tr><td>label</td><td>specify which key of node object is used as the node's label</td><td>string</td><td>—</td><td>'label'</td></tr><tr><td>children</td><td>specify which key of node object is used as the node's children</td><td>string</td><td>—</td><td>'children'</td></tr><tr><td>disabled</td><td>specify which key of node object is used as the node's disabled</td><td>string</td><td>—</td><td>'disabled'</td></tr><tr><td>leaf</td><td>specify which key of node object is used as the node's leaf field</td><td>string</td><td>—</td><td>'leaf'</td></tr></tbody></table>", 1);
function cascadervue_type_template_id_5f38c9ff_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_element_demo0 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo0");
const _component_demo_block = Object(vue_esm_browser_prod["resolveComponent"])("demo-block");
const _component_element_demo1 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo1");
const _component_element_demo2 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo2");
const _component_element_demo3 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo3");
const _component_element_demo4 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo4");
const _component_element_demo5 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo5");
const _component_element_demo6 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo6");
const _component_element_demo7 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo7");
const _component_element_demo8 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo8");
const _component_element_demo9 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo9");
const _component_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", cascadervue_type_template_id_5f38c9ff_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascader",
content: "Cascader",
href: "#cascader",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [cascadervue_type_template_id_5f38c9ff_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascader"
})]),
_: 1
}), cascadervue_type_template_id_5f38c9ff_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "basic-usage",
content: "Basic usage",
href: "#basic-usage",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [cascadervue_type_template_id_5f38c9ff_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#basic-usage"
})]),
_: 1
}), _hoisted_5, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo0)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_7]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "disabled-option",
content: "Disabled option",
href: "#disabled-option",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#disabled-option"
})]),
_: 1
}), _hoisted_9, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo1)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_11]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "clearable",
content: "Clearable",
href: "#clearable",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#clearable"
})]),
_: 1
}), _hoisted_13, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo2)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_14]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "display-only-the-last-level",
content: "Display only the last level",
href: "#display-only-the-last-level",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_15, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#display-only-the-last-level"
})]),
_: 1
}), _hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo3)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_18]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_17]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "multiple-selection",
content: "Multiple Selection",
href: "#multiple-selection",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_19, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#multiple-selection"
})]),
_: 1
}), _hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo4)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_22]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_21]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "select-any-level-of-options",
content: "Select any level of options",
href: "#select-any-level-of-options",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_23, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#select-any-level-of-options"
})]),
_: 1
}), _hoisted_24, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo5)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_26]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_25]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "dynamic-loading",
content: "Dynamic loading",
href: "#dynamic-loading",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#dynamic-loading"
})]),
_: 1
}), _hoisted_28, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo6)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_30]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_29]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "filterable",
content: "Filterable",
href: "#filterable",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#filterable"
})]),
_: 1
}), _hoisted_32, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo7)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_34]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_33]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "custom-option-content",
content: "Custom option content",
href: "#custom-option-content",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_35, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#custom-option-content"
})]),
_: 1
}), _hoisted_36, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo8)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_38]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_37]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascader-panel",
content: "Cascader panel",
href: "#cascader-panel",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_39, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascader-panel"
})]),
_: 1
}), _hoisted_40, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo9)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_42]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_41]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascader-attributes",
content: "Cascader Attributes",
href: "#cascader-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_43, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascader-attributes"
})]),
_: 1
}), _hoisted_44, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascader-events",
content: "Cascader Events",
href: "#cascader-events",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_45, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascader-events"
})]),
_: 1
}), _hoisted_46, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascader-methods",
content: "Cascader Methods",
href: "#cascader-methods",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_47, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascader-methods"
})]),
_: 1
}), _hoisted_48, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascader-slots",
content: "Cascader Slots",
href: "#cascader-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_49, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascader-slots"
})]),
_: 1
}), _hoisted_50, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascaderpanel-attributes",
content: "CascaderPanel Attributes",
href: "#cascaderpanel-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_51, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascaderpanel-attributes"
})]),
_: 1
}), _hoisted_52, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascaderpanel-events",
content: "CascaderPanel Events",
href: "#cascaderpanel-events",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_53, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascaderpanel-events"
})]),
_: 1
}), _hoisted_54, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascaderpanel-methods",
content: "CascaderPanel Methods",
href: "#cascaderpanel-methods",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_55, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascaderpanel-methods"
})]),
_: 1
}), _hoisted_56, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "cascaderpanel-slots",
content: "CascaderPanel Slots",
href: "#cascaderpanel-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_57, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#cascaderpanel-slots"
})]),
_: 1
}), _hoisted_58, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "props",
content: "Props",
href: "#props",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_59, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#props"
})]),
_: 1
}), _hoisted_60, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/en-US/cascader.md?vue&type=template&id=5f38c9ff
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/cascader.md?vue&type=script&lang=ts
/* harmony default export */ var cascadervue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "Child options expand when clicked (default)", -1);
const _hoisted_3 = {
class: "block"
};
const _hoisted_4 = /*#__PURE__*/_createElementVNode("span", {
class: "demonstration"
}, "Child options expand when hovered", -1);
function render(_ctx, _cache) {
const _component_el_cascader = _resolveComponent("el-cascader");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_hoisted_2, _createVNode(_component_el_cascader, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
options: _ctx.options,
onChange: _ctx.handleChange
}, null, 8, ["modelValue", "options", "onChange"])]), _createElementVNode("div", _hoisted_3, [_hoisted_4, _createVNode(_component_el_cascader, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.value = $event),
options: _ctx.options,
props: {
expandTrigger: 'hover'
},
onChange: _ctx.handleChange
}, null, 8, ["modelValue", "options", "onChange"])])]);
}
const democomponentExport = {
data() {
return {
value: [],
options: [{
value: 'guide',
label: 'Guide',
children: [{
value: 'disciplines',
label: 'Disciplines',
children: [{
value: 'consistency',
label: 'Consistency'
}, {
value: 'feedback',
label: 'Feedback'
}, {
value: 'efficiency',
label: 'Efficiency'
}, {
value: 'controllability',
label: 'Controllability'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'side nav',
label: 'Side Navigation'
}, {
value: 'top nav',
label: 'Top Navigation'
}]
}]
}, {
value: 'component',
label: 'Component',
children: [{
value: 'basic',
label: 'Basic',
children: [{
value: 'layout',
label: 'Layout'
}, {
value: 'color',
label: 'Color'
}, {
value: 'typography',
label: 'Typography'
}, {
value: 'icon',
label: 'Icon'
}, {
value: 'button',
label: 'Button'
}]
}, {
value: 'form',
label: 'Form',
children: [{
value: 'radio',
label: 'Radio'
}, {
value: 'checkbox',
label: 'Checkbox'
}, {
value: 'input',
label: 'Input'
}, {
value: 'input-number',
label: 'InputNumber'
}, {
value: 'select',
label: 'Select'
}, {
value: 'cascader',
label: 'Cascader'
}, {
value: 'switch',
label: 'Switch'
}, {
value: 'slider',
label: 'Slider'
}, {
value: 'time-picker',
label: 'TimePicker'
}, {
value: 'date-picker',
label: 'DatePicker'
}, {
value: 'datetime-picker',
label: 'DateTimePicker'
}, {
value: 'upload',
label: 'Upload'
}, {
value: 'rate',
label: 'Rate'
}, {
value: 'form',
label: 'Form'
}]
}, {
value: 'data',
label: 'Data',
children: [{
value: 'table',
label: 'Table'
}, {
value: 'tag',
label: 'Tag'
}, {
value: 'progress',
label: 'Progress'
}, {
value: 'tree',
label: 'Tree'
}, {
value: 'pagination',
label: 'Pagination'
}, {
value: 'badge',
label: 'Badge'
}]
}, {
value: 'notice',
label: 'Notice',
children: [{
value: 'alert',
label: 'Alert'
}, {
value: 'loading',
label: 'Loading'
}, {
value: 'message',
label: 'Message'
}, {
value: 'message-box',
label: 'MessageBox'
}, {
value: 'notification',
label: 'Notification'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'menu',
label: 'NavMenu'
}, {
value: 'tabs',
label: 'Tabs'
}, {
value: 'breadcrumb',
label: 'Breadcrumb'
}, {
value: 'dropdown',
label: 'Dropdown'
}, {
value: 'steps',
label: 'Steps'
}]
}, {
value: 'others',
label: 'Others',
children: [{
value: 'dialog',
label: 'Dialog'
}, {
value: 'tooltip',
label: 'Tooltip'
}, {
value: 'popover',
label: 'Popover'
}, {
value: 'card',
label: 'Card'
}, {
value: 'carousel',
label: 'Carousel'
}, {
value: 'collapse',
label: 'Collapse'
}]
}]
}, {
value: 'resource',
label: 'Resource',
children: [{
value: 'axure',
label: 'Axure Components'
}, {
value: 'sketch',
label: 'Sketch Templates'
}, {
value: 'docs',
label: 'Design Documentation'
}]
}]
};
},
methods: {
handleChange(value) {
console.log(value);
}
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_cascader = _resolveComponent("el-cascader");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_cascader, {
options: _ctx.options
}, null, 8, ["options"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'guide',
label: 'Guide',
disabled: true,
children: [{
value: 'disciplines',
label: 'Disciplines',
children: [{
value: 'consistency',
label: 'Consistency'
}, {
value: 'feedback',
label: 'Feedback'
}, {
value: 'efficiency',
label: 'Efficiency'
}, {
value: 'controllability',
label: 'Controllability'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'side nav',
label: 'Side Navigation'
}, {
value: 'top nav',
label: 'Top Navigation'
}]
}]
}, {
value: 'component',
label: 'Component',
children: [{
value: 'basic',
label: 'Basic',
children: [{
value: 'layout',
label: 'Layout'
}, {
value: 'color',
label: 'Color'
}, {
value: 'typography',
label: 'Typography'
}, {
value: 'icon',
label: 'Icon'
}, {
value: 'button',
label: 'Button'
}]
}, {
value: 'form',
label: 'Form',
children: [{
value: 'radio',
label: 'Radio'
}, {
value: 'checkbox',
label: 'Checkbox'
}, {
value: 'input',
label: 'Input'
}, {
value: 'input-number',
label: 'InputNumber'
}, {
value: 'select',
label: 'Select'
}, {
value: 'cascader',
label: 'Cascader'
}, {
value: 'switch',
label: 'Switch'
}, {
value: 'slider',
label: 'Slider'
}, {
value: 'time-picker',
label: 'TimePicker'
}, {
value: 'date-picker',
label: 'DatePicker'
}, {
value: 'datetime-picker',
label: 'DateTimePicker'
}, {
value: 'upload',
label: 'Upload'
}, {
value: 'rate',
label: 'Rate'
}, {
value: 'form',
label: 'Form'
}]
}, {
value: 'data',
label: 'Data',
children: [{
value: 'table',
label: 'Table'
}, {
value: 'tag',
label: 'Tag'
}, {
value: 'progress',
label: 'Progress'
}, {
value: 'tree',
label: 'Tree'
}, {
value: 'pagination',
label: 'Pagination'
}, {
value: 'badge',
label: 'Badge'
}]
}, {
value: 'notice',
label: 'Notice',
children: [{
value: 'alert',
label: 'Alert'
}, {
value: 'loading',
label: 'Loading'
}, {
value: 'message',
label: 'Message'
}, {
value: 'message-box',
label: 'MessageBox'
}, {
value: 'notification',
label: 'Notification'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'menu',
label: 'NavMenu'
}, {
value: 'tabs',
label: 'Tabs'
}, {
value: 'breadcrumb',
label: 'Breadcrumb'
}, {
value: 'dropdown',
label: 'Dropdown'
}, {
value: 'steps',
label: 'Steps'
}]
}, {
value: 'others',
label: 'Others',
children: [{
value: 'dialog',
label: 'Dialog'
}, {
value: 'tooltip',
label: 'Tooltip'
}, {
value: 'popover',
label: 'Popover'
}, {
value: 'card',
label: 'Card'
}, {
value: 'carousel',
label: 'Carousel'
}, {
value: 'collapse',
label: 'Collapse'
}]
}]
}, {
value: 'resource',
label: 'Resource',
children: [{
value: 'axure',
label: 'Axure Components'
}, {
value: 'sketch',
label: 'Sketch Templates'
}, {
value: 'docs',
label: 'Design Documentation'
}]
}]
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_cascader = _resolveComponent("el-cascader");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_cascader, {
options: _ctx.options,
clearable: ""
}, null, 8, ["options"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'guide',
label: 'Guide',
children: [{
value: 'disciplines',
label: 'Disciplines',
children: [{
value: 'consistency',
label: 'Consistency'
}, {
value: 'feedback',
label: 'Feedback'
}, {
value: 'efficiency',
label: 'Efficiency'
}, {
value: 'controllability',
label: 'Controllability'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'side nav',
label: 'Side Navigation'
}, {
value: 'top nav',
label: 'Top Navigation'
}]
}]
}, {
value: 'component',
label: 'Component',
children: [{
value: 'basic',
label: 'Basic',