-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS en-US49.0cb71eee40c7d7b6716e.js
750 lines (648 loc) · 41.8 KB
/
DOCS en-US49.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
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[45],{
/***/ 800:
/***/ (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/radio.md?vue&type=template&id=f1ad053a
const radiovue_type_template_id_f1ad053a_hoisted_1 = {
class: "content element-doc"
};
const radiovue_type_template_id_f1ad053a_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio ");
const radiovue_type_template_id_f1ad053a_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Single selection among multiple options.", -1);
const radiovue_type_template_id_f1ad053a_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Basic usage ");
const radiovue_type_template_id_f1ad053a_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Radio should not have too many options. Otherwise, use the Select component instead.", -1);
const radiovue_type_template_id_f1ad053a_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"])("Creating a radio component is easy, you just need to bind a variable to Radio's "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". It equals to the value of "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" of the chosen radio. The type of "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "String"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Number"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" or "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const radiovue_type_template_id_f1ad053a_hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div>\n <el-radio v-model=\"radio1\" label=\"1\">Option 1</el-radio>\n <el-radio v-model=\"radio1\" label=\"2\">Option 2</el-radio>\n </div>\n <div>\n <el-radio v-model=\"radio2\" label=\"1\" size=\"medium\">Option 1</el-radio>\n <el-radio v-model=\"radio2\" label=\"2\" size=\"medium\">Option 2</el-radio>\n </div>\n <div>\n <el-radio v-model=\"radio3\" label=\"1\" size=\"small\">Option 1</el-radio>\n <el-radio v-model=\"radio3\" label=\"2\" size=\"small\">Option 2</el-radio>\n </div>\n <div>\n <el-radio v-model=\"radio4\" label=\"1\" size=\"mini\">Option 1</el-radio>\n <el-radio v-model=\"radio4\" label=\"2\" size=\"mini\">Option 2</el-radio>\n </div>\n</template>\n\n<script>\n export default {\n data() {\n return {\n radio1: '1',\n radio2: '1',\n radio3: '1',\n radio4: '1',\n }\n },\n }\n</script>\n<!--\n<setup>\n import { defineComponent, ref } from 'vue'\n\n export default defineComponent({\n setup() {\n return {\n radio1: ref('1'),\n radio2: ref('1'),\n radio3: ref('1'),\n radio4: ref('1'),\n }\n }\n })\n</setup>\n-->\n")], -1);
const radiovue_type_template_id_f1ad053a_hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Disabled ");
const radiovue_type_template_id_f1ad053a_hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute is used to disable the radio.")], -1);
const radiovue_type_template_id_f1ad053a_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"])("You just need to add the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute.")])], -1);
const radiovue_type_template_id_f1ad053a_hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-radio disabled v-model=\"radio\" label=\"disabled\">Option A</el-radio>\n <el-radio disabled v-model=\"radio\" label=\"selected and disabled\"\n >Option B</el-radio\n >\n</template>\n\n<script>\n export default {\n data() {\n return {\n radio: 'selected and disabled',\n }\n },\n }\n</script>\n<!--\n<setup>\n import { defineComponent, ref } from 'vue'\n\n export default defineComponent({\n setup() {\n return {\n radio: ref('selected and disabled'),\n }\n }\n })\n</setup>\n-->\n")], -1);
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio button group ");
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Suitable for choosing from some mutually exclusive options.", -1);
const _hoisted_14 = /*#__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"])("Combine "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio-group"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" with "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to display a radio group. Bind a variable with "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" of "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio-group"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" element and set label value in "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". It also provides "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "change"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" event with the current value as its parameter.")])], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-radio-group v-model=\"radio\">\n <el-radio :label=\"3\">Option A</el-radio>\n <el-radio :label=\"6\">Option B</el-radio>\n <el-radio :label=\"9\">Option C</el-radio>\n</el-radio-group>\n\n<script>\n export default {\n data() {\n return {\n radio: 3,\n }\n },\n }\n</script>\n<!--\n<setup>\n import { defineComponent, ref } from 'vue'\n\n export default defineComponent({\n setup() {\n return {\n radio: ref(3),\n }\n }\n })\n</setup>\n-->\n")], -1);
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Button style ");
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Radio with button styles.", -1);
const _hoisted_18 = /*#__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 just need to change "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" element into "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio-button"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" element. We also provide "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "size"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute.")])], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div>\n <el-radio-group v-model=\"radio1\">\n <el-radio-button label=\"New York\"></el-radio-button>\n <el-radio-button label=\"Washington\"></el-radio-button>\n <el-radio-button label=\"Los Angeles\"></el-radio-button>\n <el-radio-button label=\"Chicago\"></el-radio-button>\n </el-radio-group>\n </div>\n <div style=\"margin-top: 20px\">\n <el-radio-group v-model=\"radio2\" size=\"medium\">\n <el-radio-button label=\"New York\"></el-radio-button>\n <el-radio-button label=\"Washington\"></el-radio-button>\n <el-radio-button label=\"Los Angeles\"></el-radio-button>\n <el-radio-button label=\"Chicago\"></el-radio-button>\n </el-radio-group>\n </div>\n <div style=\"margin-top: 20px\">\n <el-radio-group v-model=\"radio3\" size=\"small\">\n <el-radio-button label=\"New York\"></el-radio-button>\n <el-radio-button label=\"Washington\" disabled></el-radio-button>\n <el-radio-button label=\"Los Angeles\"></el-radio-button>\n <el-radio-button label=\"Chicago\"></el-radio-button>\n </el-radio-group>\n </div>\n <div style=\"margin-top: 20px\">\n <el-radio-group v-model=\"radio4\" disabled size=\"mini\">\n <el-radio-button label=\"New York\"></el-radio-button>\n <el-radio-button label=\"Washington\"></el-radio-button>\n <el-radio-button label=\"Los Angeles\"></el-radio-button>\n <el-radio-button label=\"Chicago\"></el-radio-button>\n </el-radio-group>\n </div>\n</template>\n\n<script>\n export default {\n data() {\n return {\n radio1: 'New York',\n radio2: 'New York',\n radio3: 'New York',\n radio4: 'New York',\n }\n },\n }\n</script>\n<!--\n<setup>\n import { defineComponent, ref } from 'vue'\n\n export default defineComponent({\n setup() {\n return {\n radio1: ref('New York'),\n radio2: ref('New York'),\n radio3: ref('New York'),\n radio4: ref('New York'),\n }\n }\n })\n</setup>\n-->\n")], -1);
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("With borders ");
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"])("The "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "border"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute adds a border to Radios.")])], -1);
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <div>\n <el-radio v-model=\"radio1\" label=\"1\" border>Option A</el-radio>\n <el-radio v-model=\"radio1\" label=\"2\" border>Option B</el-radio>\n </div>\n <div style=\"margin-top: 20px\">\n <el-radio v-model=\"radio2\" label=\"1\" border size=\"medium\"\n >Option A</el-radio\n >\n <el-radio v-model=\"radio2\" label=\"2\" border size=\"medium\"\n >Option B</el-radio\n >\n </div>\n <div style=\"margin-top: 20px\">\n <el-radio-group v-model=\"radio3\" size=\"small\">\n <el-radio label=\"1\" border>Option A</el-radio>\n <el-radio label=\"2\" border disabled>Option B</el-radio>\n </el-radio-group>\n </div>\n <div style=\"margin-top: 20px\">\n <el-radio-group v-model=\"radio4\" size=\"mini\" disabled>\n <el-radio label=\"1\" border>Option A</el-radio>\n <el-radio label=\"2\" border>Option B</el-radio>\n </el-radio-group>\n </div>\n</template>\n\n<script>\n export default {\n data() {\n return {\n radio1: '1',\n radio2: '1',\n radio3: '1',\n radio4: '1',\n }\n },\n }\n</script>\n<!--\n<setup>\n import { defineComponent, ref } from 'vue'\n\n export default defineComponent({\n setup() {\n return {\n radio1: ref('1'),\n radio2: ref('1'),\n radio3: ref('1'),\n radio4: ref('1'),\n }\n }\n })\n</setup>\n-->\n")], -1);
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio Attributes ");
const _hoisted_24 = /*#__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>string / number / boolean</td><td>—</td><td>—</td></tr><tr><td>label</td><td>the value of Radio</td><td>string / number / boolean</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>whether Radio is disabled</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>border</td><td>whether to add a border around Radio</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>size</td><td>size of the Radio</td><td>string</td><td>medium / small / mini</td><td>—</td></tr><tr><td>name</td><td>native 'name' attribute</td><td>string</td><td>—</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio Events ");
const _hoisted_26 = /*#__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, "Event 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, "change"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "triggers when the bound value changes"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the label value of the chosen radio")])])], -1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio-group Attributes ");
const _hoisted_28 = /*#__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>string / number / boolean</td><td>—</td><td>—</td></tr><tr><td>size</td><td>the size of radio</td><td>string</td><td>medium / small / mini</td><td>—</td></tr><tr><td>disabled</td><td>whether the nesting radios are disabled</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>text-color</td><td>font color when button is active</td><td>string</td><td>—</td><td>#ffffff</td></tr><tr><td>fill</td><td>border and background color when button is active</td><td>string</td><td>—</td><td>#409EFF</td></tr></tbody></table>", 1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio-group Events ");
const _hoisted_30 = /*#__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, "Event 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, "change"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "triggers when the bound value changes"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the label value of the chosen radio")])])], -1);
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio-button Attributes ");
const _hoisted_32 = /*#__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>label</td><td>the value of radio</td><td>string / number</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>whether radio is disabled</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>name</td><td>native 'name' attribute</td><td>string</td><td>—</td><td>—</td></tr></tbody></table>", 1);
function radiovue_type_template_id_f1ad053a_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_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", radiovue_type_template_id_f1ad053a_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "radio",
content: "Radio",
href: "#radio",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_f1ad053a_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio"
})]),
_: 1
}), radiovue_type_template_id_f1ad053a_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"])(() => [radiovue_type_template_id_f1ad053a_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#basic-usage"
})]),
_: 1
}), radiovue_type_template_id_f1ad053a_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"])(() => [radiovue_type_template_id_f1ad053a_hoisted_7]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_f1ad053a_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "disabled",
content: "Disabled",
href: "#disabled",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_f1ad053a_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#disabled"
})]),
_: 1
}), radiovue_type_template_id_f1ad053a_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"])(() => [radiovue_type_template_id_f1ad053a_hoisted_11]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_f1ad053a_hoisted_10]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "radio-button-group",
content: "Radio button group",
href: "#radio-button-group",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio-button-group"
})]),
_: 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_15]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_14]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "button-style",
content: "Button style",
href: "#button-style",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#button-style"
})]),
_: 1
}), _hoisted_17, 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_19]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_18]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "with-borders",
content: "With borders",
href: "#with-borders",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#with-borders"
})]),
_: 1
}), 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: "radio-attributes",
content: "Radio Attributes",
href: "#radio-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_23, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio-attributes"
})]),
_: 1
}), _hoisted_24, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "radio-events",
content: "Radio Events",
href: "#radio-events",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_25, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio-events"
})]),
_: 1
}), _hoisted_26, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "radio-group-attributes",
content: "Radio-group Attributes",
href: "#radio-group-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio-group-attributes"
})]),
_: 1
}), _hoisted_28, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "radio-group-events",
content: "Radio-group Events",
href: "#radio-group-events",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_29, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio-group-events"
})]),
_: 1
}), _hoisted_30, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "radio-button-attributes",
content: "Radio-button Attributes",
href: "#radio-button-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio-button-attributes"
})]),
_: 1
}), _hoisted_32, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/en-US/radio.md?vue&type=template&id=f1ad053a
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/radio.md?vue&type=script&lang=ts
/* harmony default export */ var radiovue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Option 1");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("Option 2");
const _hoisted_3 = /*#__PURE__*/_createTextVNode("Option 1");
const _hoisted_4 = /*#__PURE__*/_createTextVNode("Option 2");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("Option 1");
const _hoisted_6 = /*#__PURE__*/_createTextVNode("Option 2");
const _hoisted_7 = /*#__PURE__*/_createTextVNode("Option 1");
const _hoisted_8 = /*#__PURE__*/_createTextVNode("Option 2");
function render(_ctx, _cache) {
const _component_el_radio = _resolveComponent("el-radio");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_radio, {
modelValue: _ctx.radio1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.radio1 = $event),
label: "1"
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
modelValue: _ctx.radio1,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.radio1 = $event),
label: "2"
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", null, [_createVNode(_component_el_radio, {
modelValue: _ctx.radio2,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.radio2 = $event),
label: "1",
size: "medium"
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
modelValue: _ctx.radio2,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.radio2 = $event),
label: "2",
size: "medium"
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", null, [_createVNode(_component_el_radio, {
modelValue: _ctx.radio3,
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.radio3 = $event),
label: "1",
size: "small"
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
modelValue: _ctx.radio3,
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.radio3 = $event),
label: "2",
size: "small"
}, {
default: _withCtx(() => [_hoisted_6]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", null, [_createVNode(_component_el_radio, {
modelValue: _ctx.radio4,
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.radio4 = $event),
label: "1",
size: "mini"
}, {
default: _withCtx(() => [_hoisted_7]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
modelValue: _ctx.radio4,
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.radio4 = $event),
label: "2",
size: "mini"
}, {
default: _withCtx(() => [_hoisted_8]),
_: 1
}, 8, ["modelValue"])])]);
}
const democomponentExport = {
data() {
return {
radio1: '1',
radio2: '1',
radio3: '1',
radio4: '1'
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Option A");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("Option B");
function render(_ctx, _cache) {
const _component_el_radio = _resolveComponent("el-radio");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_radio, {
disabled: "",
modelValue: _ctx.radio,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.radio = $event),
label: "disabled"
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
disabled: "",
modelValue: _ctx.radio,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.radio = $event),
label: "selected and disabled"
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
radio: 'selected and disabled'
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Option A");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("Option B");
const _hoisted_3 = /*#__PURE__*/_createTextVNode("Option C");
function render(_ctx, _cache) {
const _component_el_radio = _resolveComponent("el-radio");
const _component_el_radio_group = _resolveComponent("el-radio-group");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.radio = $event)
}, {
default: _withCtx(() => [_createVNode(_component_el_radio, {
label: 3
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_radio, {
label: 6
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}), _createVNode(_component_el_radio, {
label: 9
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
})]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
radio: 3
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo3": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
withCtx: _withCtx,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
style: {
"margin-top": "20px"
}
};
const _hoisted_2 = {
style: {
"margin-top": "20px"
}
};
const _hoisted_3 = {
style: {
"margin-top": "20px"
}
};
function render(_ctx, _cache) {
const _component_el_radio_button = _resolveComponent("el-radio-button");
const _component_el_radio_group = _resolveComponent("el-radio-group");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.radio1 = $event)
}, {
default: _withCtx(() => [_createVNode(_component_el_radio_button, {
label: "New York"
}), _createVNode(_component_el_radio_button, {
label: "Washington"
}), _createVNode(_component_el_radio_button, {
label: "Los Angeles"
}), _createVNode(_component_el_radio_button, {
label: "Chicago"
})]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_1, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.radio2 = $event),
size: "medium"
}, {
default: _withCtx(() => [_createVNode(_component_el_radio_button, {
label: "New York"
}), _createVNode(_component_el_radio_button, {
label: "Washington"
}), _createVNode(_component_el_radio_button, {
label: "Los Angeles"
}), _createVNode(_component_el_radio_button, {
label: "Chicago"
})]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_2, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio3,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.radio3 = $event),
size: "small"
}, {
default: _withCtx(() => [_createVNode(_component_el_radio_button, {
label: "New York"
}), _createVNode(_component_el_radio_button, {
label: "Washington",
disabled: ""
}), _createVNode(_component_el_radio_button, {
label: "Los Angeles"
}), _createVNode(_component_el_radio_button, {
label: "Chicago"
})]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_3, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio4,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.radio4 = $event),
disabled: "",
size: "mini"
}, {
default: _withCtx(() => [_createVNode(_component_el_radio_button, {
label: "New York"
}), _createVNode(_component_el_radio_button, {
label: "Washington"
}), _createVNode(_component_el_radio_button, {
label: "Los Angeles"
}), _createVNode(_component_el_radio_button, {
label: "Chicago"
})]),
_: 1
}, 8, ["modelValue"])])]);
}
const democomponentExport = {
data() {
return {
radio1: 'New York',
radio2: 'New York',
radio3: 'New York',
radio4: 'New York'
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo4": function () {
const {
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createTextVNode("Option A");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("Option B");
const _hoisted_3 = {
style: {
"margin-top": "20px"
}
};
const _hoisted_4 = /*#__PURE__*/_createTextVNode("Option A");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("Option B");
const _hoisted_6 = {
style: {
"margin-top": "20px"
}
};
const _hoisted_7 = /*#__PURE__*/_createTextVNode("Option A");
const _hoisted_8 = /*#__PURE__*/_createTextVNode("Option B");
const _hoisted_9 = {
style: {
"margin-top": "20px"
}
};
const _hoisted_10 = /*#__PURE__*/_createTextVNode("Option A");
const _hoisted_11 = /*#__PURE__*/_createTextVNode("Option B");
function render(_ctx, _cache) {
const _component_el_radio = _resolveComponent("el-radio");
const _component_el_radio_group = _resolveComponent("el-radio-group");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_radio, {
modelValue: _ctx.radio1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.radio1 = $event),
label: "1",
border: ""
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
modelValue: _ctx.radio1,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.radio1 = $event),
label: "2",
border: ""
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_3, [_createVNode(_component_el_radio, {
modelValue: _ctx.radio2,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.radio2 = $event),
label: "1",
border: "",
size: "medium"
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_radio, {
modelValue: _ctx.radio2,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.radio2 = $event),
label: "2",
border: "",
size: "medium"
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_6, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio3,
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.radio3 = $event),
size: "small"
}, {
default: _withCtx(() => [_createVNode(_component_el_radio, {
label: "1",
border: ""
}, {
default: _withCtx(() => [_hoisted_7]),
_: 1
}), _createVNode(_component_el_radio, {
label: "2",
border: "",
disabled: ""
}, {
default: _withCtx(() => [_hoisted_8]),
_: 1
})]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_9, [_createVNode(_component_el_radio_group, {
modelValue: _ctx.radio4,
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.radio4 = $event),
size: "mini",
disabled: ""
}, {
default: _withCtx(() => [_createVNode(_component_el_radio, {
label: "1",
border: ""
}, {
default: _withCtx(() => [_hoisted_10]),
_: 1
}), _createVNode(_component_el_radio, {
label: "2",
border: ""
}, {
default: _withCtx(() => [_hoisted_11]),
_: 1
})]),
_: 1
}, 8, ["modelValue"])])]);
}
const democomponentExport = {
data() {
return {
radio1: '1',
radio2: '1',
radio3: '1',
radio4: '1'
};
}
};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/en-US/radio.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/en-US/radio.md
radiovue_type_script_lang_ts.render = radiovue_type_template_id_f1ad053a_render
/* harmony default export */ var en_US_radio = __webpack_exports__["default"] = (radiovue_type_script_lang_ts);
/***/ })
}]);