-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS es22.0cb71eee40c7d7b6716e.js
733 lines (621 loc) · 47 KB
/
DOCS es22.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
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[88],{
/***/ 844:
/***/ (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/es/dialog.md?vue&type=template&id=6577942d
const dialogvue_type_template_id_6577942d_hoisted_1 = {
class: "content element-doc"
};
const dialogvue_type_template_id_6577942d_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Dialog ");
const dialogvue_type_template_id_6577942d_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Informar a usuarios preservando el estado de la página actual.", -1);
const dialogvue_type_template_id_6577942d_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Uso Básico ");
const dialogvue_type_template_id_6577942d_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Dialog abre una caja de diálogo, y es bastante personalizable.", -1);
const dialogvue_type_template_id_6577942d_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"])("Establezca el "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "model-value / v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" con un booleano, y el Dialog se muestra cuando es "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". El diálogo tiene dos partes: "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" y "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "footer"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", este último requiere un slot llamado "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "footer"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". El atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "title"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es opcional (vacío por defecto) y sirve para definir un título. Por último, este ejemplo muestra cómo se utiliza "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "before-close"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"text\" @click=\"dialogVisible = true\"\n >click to open the Dialog</el-button\n>\n\n<el-dialog\n title=\"Tips\"\n v-model=\"dialogVisible\"\n width=\"30%\"\n :before-close=\"handleClose\"\n>\n <span>This is a message</span>\n <template #footer>\n <span class=\"dialog-footer\">\n <el-button @click=\"dialogVisible = false\">Cancel</el-button>\n <el-button type=\"primary\" @click=\"dialogVisible = false\"\n >Confirm</el-button\n >\n </span>\n </template>\n</el-dialog>\n\n<script>\n export default {\n data() {\n return {\n dialogVisible: false,\n }\n },\n methods: {\n handleClose(done) {\n this.$confirm('Are you sure to close this dialog?')\n .then((_) => {\n done()\n })\n .catch((_) => {})\n },\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, ref } from 'vue';\n import { ElMessageBox } from 'element-plus';\n\n export default defineComponent({\n setup() {\n const dialogVisible = ref(false);\n \n const handleClose = (done) => {\n ElMessageBox\n .confirm('Are you sure to close this dialog?')\n .then((_) => {\n done();\n })\n .catch((_) => {});\n };\n return {\n dialogVisible,\n handleClose,\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "tip"
}, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "before-close"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" sólo funciona cuando el usuario hace clic en el icono de cerrar o en el fondo. Si tiene botones que cierran el cuadro de diálogo en el slot llamado "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "footer"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", puede agregar lo que haría "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "before-close"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" en el manejador de eventos de los botones.")])], -1);
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Personalizaciones ");
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "El contenido del Diálogo puede ser cualquier cosa, incluso una tabla o un formulario. Este ejemplo muestra cómo usar Element Plus Table y Form con Dialog", -1);
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"text\" @click=\"dialogTableVisible = true\"\n >open a Table nested Dialog</el-button\n>\n\n<el-dialog title=\"Shipping address\" v-model=\"dialogTableVisible\">\n <el-table :data=\"gridData\">\n <el-table-column property=\"date\" label=\"Date\" width=\"150\"></el-table-column>\n <el-table-column property=\"name\" label=\"Name\" width=\"200\"></el-table-column>\n <el-table-column property=\"address\" label=\"Address\"></el-table-column>\n </el-table>\n</el-dialog>\n\n<!-- Form -->\n<el-button type=\"text\" @click=\"dialogFormVisible = true\"\n >open a Form nested Dialog</el-button\n>\n\n<el-dialog title=\"Shipping address\" v-model=\"dialogFormVisible\">\n <el-form :model=\"form\">\n <el-form-item label=\"Promotion name\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.name\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"Zones\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.region\" placeholder=\"Please select a zone\">\n <el-option label=\"Zone No.1\" value=\"shanghai\"></el-option>\n <el-option label=\"Zone No.2\" value=\"beijing\"></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <template #footer>\n <span class=\"dialog-footer\">\n <el-button @click=\"dialogFormVisible = false\">Cancel</el-button>\n <el-button type=\"primary\" @click=\"dialogFormVisible = false\"\n >Confirm</el-button\n >\n </span>\n </template>\n</el-dialog>\n\n<script>\n export default {\n data() {\n return {\n gridData: [\n {\n date: '2016-05-02',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-04',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-01',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-03',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n ],\n dialogTableVisible: false,\n dialogFormVisible: false,\n form: {\n name: '',\n region: '',\n date1: '',\n date2: '',\n delivery: false,\n type: [],\n resource: '',\n desc: '',\n },\n formLabelWidth: '120px',\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, reactive, toRefs } from 'vue';\n\n export default defineComponent({\n setup() {\n const state = reactive({\n gridData: [\n {\n date: '2016-05-02',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-04',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-01',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n {\n date: '2016-05-03',\n name: 'John Smith',\n address: 'No.1518, Jinshajiang Road, Putuo District',\n },\n ],\n dialogTableVisible: false,\n dialogFormVisible: false,\n form: {\n name: '',\n region: '',\n date1: '',\n date2: '',\n delivery: false,\n type: [],\n resource: '',\n desc: '',\n },\n formLabelWidth: '120px',\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"])("Diálogo anidado ");
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Si un diálogo está anidado en otro diálogo, se requiere append-to-body.", -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"])("Normalmente no recomendamos el uso de Dialog anidado. Si necesita que se muestren múltiples diálogos en la página, puede simplemente aplanarlos para que sean hermanos entre sí. Si debe anidar un Diálogo dentro de otro Diálogo, establezca "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "append-to-body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" del Diálogo anidado como true, y lo añadirá al cuerpo en lugar de su nodo padre, para que ambos Diálogos puedan ser correctamente renderizados.")])], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-button type=\"text\" @click=\"outerVisible = true\"\n >open the outer Dialog</el-button\n >\n\n <el-dialog title=\"Outer Dialog\" v-model=\"outerVisible\">\n <el-dialog\n width=\"30%\"\n title=\"Inner Dialog\"\n v-model=\"innerVisible\"\n append-to-body\n >\n </el-dialog>\n <template #footer>\n <div class=\"dialog-footer\">\n <el-button @click=\"outerVisible = false\">Cancel</el-button>\n <el-button type=\"primary\" @click=\"innerVisible = true\"\n >open the inner Dialog</el-button\n >\n </div>\n </template>\n </el-dialog>\n</template>\n\n<script>\n export default {\n data() {\n return {\n outerVisible: false,\n innerVisible: false,\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, ref } from 'vue';\n\n export default defineComponent({\n setup() {\n return {\n outerVisible: ref(false),\n innerVisible: ref(false),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Contenido centrado ");
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "El contenido de Diálogo se puede centrar.", -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"])("Ajuste "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "center"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" en "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para centrar el encabezado y el pie de página del cuadro de diálogo horizontalmente. "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "center"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" sólo afecta al encabezado y pie de página de Dialog. El cuerpo de Dialog puede ser cualquier cosa, así que a veces no se ve bien cuando está centrado. Necesitas escribir algún CSS si deseas centrar el cuerpo también.")])], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"text\" @click=\"centerDialogVisible = true\"\n >Click to open the Dialog</el-button\n>\n\n<el-dialog title=\"Warning\" v-model=\"centerDialogVisible\" width=\"30%\" center>\n <span\n >It should be noted that the content will not be aligned in center by\n default</span\n >\n <template #footer>\n <span class=\"dialog-footer\">\n <el-button @click=\"centerDialogVisible = false\">Cancel</el-button>\n <el-button type=\"primary\" @click=\"centerDialogVisible = false\"\n >Confirm</el-button\n >\n </span>\n </template>\n</el-dialog>\n\n<script>\n export default {\n data() {\n return {\n centerDialogVisible: false,\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, ref } from 'vue';\n\n export default defineComponent({\n setup() {\n return {\n centerDialogVisible: ref(false),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "tip"
}, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("El contenido de Dialog se renderiza en modo lazy, lo que significa que la ranura por defecto no se renderiza en el DOM hasta que se abre por primera vez. Por lo tanto, si necesita realizar una manipulación DOM o acceder a un componente mediante ref, hágalo en el callback del evento "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "open"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Destroy on Close (Translation needed) ");
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("When this is feature is enabled, the content under default slot will be destroyed with a "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-if"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" directive. Enable this when you have perf concerns.")], -1);
const _hoisted_23 = /*#__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"])("Note that by enabling this feature, the content will not be rendered before "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "transition.beforeEnter"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" dispatched, there will only be "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "overlay"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "header(if any)"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "footer(if any)"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-button type=\"text\" @click=\"centerDialogVisible = true\"\n >Click to open Dialog</el-button\n>\n\n<el-dialog\n title=\"Notice\"\n v-model=\"centerDialogVisible\"\n width=\"30%\"\n destroy-on-close\n center\n>\n <span\n >Notice: before dialog gets opened for the first time this node and the one\n bellow will not be rendered</span\n >\n <div>\n <strong>Extra content (Not rendered)</strong>\n </div>\n <template #footer>\n <span class=\"dialog-footer\">\n <el-button @click=\"centerDialogVisible = false\">Cancel</el-button>\n <el-button type=\"primary\" @click=\"centerDialogVisible = false\"\n >Confirm</el-button\n >\n </span>\n </template>\n</el-dialog>\n\n<script>\n export default {\n data() {\n return {\n centerDialogVisible: false,\n }\n },\n }\n</script>\n<!--\n<setup>\n\n import { defineComponent, ref } from 'vue';\n\n export default defineComponent({\n setup() {\n return {\n centerDialogVisible: ref(false),\n };\n },\n });\n\n</setup>\n-->\n")], -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "tip"
}, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("When using "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "modal"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" = false, please make sure that "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "append-to-body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" was set to "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("strong", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", because "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Dialog"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" was positioned by "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "position: relative"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", when "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "modal"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" gets removed, "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Dialog"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" will position itself based on the current position in the DOM, instead of "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Document.Body"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", thus the style will be messed up.")])], -1);
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Atributo ");
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Atributo</th><th>Descripción</th><th>Tipo</th><th>Valores aceptados</th><th>Por defecto</th></tr></thead><tbody><tr><td>model-value / v-model</td><td>visibilidad del Diálogo</td><td>boolean</td><td>—</td><td>—</td></tr><tr><td>title</td><td>título de Diálogo. También se puede pasar con un slot con nombre (ver la tabla siguiente)</td><td>string</td><td>—</td><td>—</td></tr><tr><td>width</td><td>anchura de Diálogo</td><td>string / number</td><td>—</td><td>50%</td></tr><tr><td>fullscreen</td><td>si el diálogo ocupa pantalla completa</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>top</td><td>valor de <code>margin-top</code> del Diálogo CSS</td><td>string</td><td>—</td><td>15vh</td></tr><tr><td>modal</td><td>si se muestra una máscara</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>append-to-body</td><td>Si adjuntar el cuadro de diálogo al cuerpo</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>lock-scroll</td><td>Si el scroll del cuerpo está desactivado mientras se muestra el cuadro de diálogo</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>custom-class</td><td>nombres de clase personalizada para el Diálogo</td><td>string</td><td>—</td><td>—</td></tr><tr><td>open-delay</td><td>Tiempo (milisegundos) antes de abierto</td><td>number</td><td>—</td><td>0</td></tr><tr><td>close-delay</td><td>Tiempo (milisegundos) antes de cierre</td><td>number</td><td>—</td><td>0</td></tr><tr><td>close-on-click-modal</td><td>si el Diálogo puede ser cerrado haciendo clic en la máscara</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>close-on-press-escape</td><td>si el Diálogo puede ser cerrado presionando ESC</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>show-close</td><td>si mostrar un botón de cerrar</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>before-close</td><td>una devolución de llamada antes de que se cierre el cuadro de diálogo, y evitar cerrar el cuadro de diálogo</td><td>función(done) <code>done</code>se usa para cerrar el diálog</td><td>—</td><td>—</td></tr><tr><td>center</td><td>si alinear el encabezado y el pie de página en el centro</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>destroy-on-close</td><td>Destruir elementos en Dialog cuando se cierra</td><td>boolean</td><td>—</td><td>false</td></tr></tbody></table>", 1);
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Slots ");
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Nombre</th><th>Descripcíon</th></tr></thead><tbody><tr><td>—</td><td>contenido de Diálogo</td></tr><tr><td>title</td><td>contenido del título de Diálogo</td></tr><tr><td>footer</td><td>contenido del pie de página de Diálogo</td></tr></tbody></table>", 1);
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Eventos ");
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Nombre de Evento</th><th>Descripcíon</th><th>Parámetros</th></tr></thead><tbody><tr><td>open</td><td>se activa cuando se abre el cuadro de Diálogo</td><td>—</td></tr><tr><td>opened</td><td>se activa cuando la animación de apertura del Dialog termina.</td><td>—</td></tr><tr><td>close</td><td>se dispara cuando el Diálogo se cierra</td><td>—</td></tr><tr><td>closed</td><td>se activa cuando finaliza la animación de cierre del Diálog</td><td>—</td></tr></tbody></table>", 1);
function dialogvue_type_template_id_6577942d_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", dialogvue_type_template_id_6577942d_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "dialog",
content: "Dialog",
href: "#dialog",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [dialogvue_type_template_id_6577942d_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#dialog"
})]),
_: 1
}), dialogvue_type_template_id_6577942d_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "uso-basico",
content: "Uso Básico",
href: "#uso-basico",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [dialogvue_type_template_id_6577942d_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#uso-basico"
})]),
_: 1
}), dialogvue_type_template_id_6577942d_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"])(() => [dialogvue_type_template_id_6577942d_hoisted_6]),
_: 1
}), _hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "personalizaciones",
content: "Personalizaciones",
href: "#personalizaciones",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_9, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#personalizaciones"
})]),
_: 1
}), _hoisted_10, 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]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "dialogo-anidado",
content: "Diálogo anidado",
href: "#dialogo-anidado",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#dialogo-anidado"
})]),
_: 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: "contenido-centrado",
content: "Contenido centrado",
href: "#contenido-centrado",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#contenido-centrado"
})]),
_: 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
}), _hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "destroy-on-close-translation-needed",
content: "Destroy on Close (Translation needed)",
href: "#destroy-on-close-translation-needed",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_21, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#destroy-on-close-translation-needed"
})]),
_: 1
}), _hoisted_22, 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_24]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_23, _hoisted_25]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "atributo",
content: "Atributo",
href: "#atributo",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_26, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#atributo"
})]),
_: 1
}), _hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "slots",
content: "Slots",
href: "#slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_28, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#slots"
})]),
_: 1
}), _hoisted_29, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "eventos",
content: "Eventos",
href: "#eventos",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_30, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#eventos"
})]),
_: 1
}), _hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/es/dialog.md?vue&type=template&id=6577942d
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/es/dialog.md?vue&type=script&lang=ts
/* harmony default export */ var dialogvue_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("click to open the Dialog");
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, "This is a message", -1);
const _hoisted_3 = {
class: "dialog-footer"
};
const _hoisted_4 = /*#__PURE__*/_createTextVNode("Cancel");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("Confirm");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_dialog = _resolveComponent("el-dialog");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "text",
onClick: _cache[0] || (_cache[0] = $event => _ctx.dialogVisible = true)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_dialog, {
title: "Tips",
modelValue: _ctx.dialogVisible,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.dialogVisible = $event),
width: "30%",
"before-close": _ctx.handleClose
}, {
footer: _withCtx(() => [_createElementVNode("span", _hoisted_3, [_createVNode(_component_el_button, {
onClick: _cache[1] || (_cache[1] = $event => _ctx.dialogVisible = false)
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
onClick: _cache[2] || (_cache[2] = $event => _ctx.dialogVisible = false)
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
})])]),
default: _withCtx(() => [_hoisted_2]),
_: 1
}, 8, ["modelValue", "before-close"])]);
}
const democomponentExport = {
data() {
return {
dialogVisible: false
};
},
methods: {
handleClose(done) {
this.$confirm('Are you sure to close this dialog?').then(_ => {
done();
}).catch(_ => {});
}
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": 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("open a Table nested Dialog");
const _hoisted_2 = /*#__PURE__*/_createTextVNode("open a Form nested Dialog");
const _hoisted_3 = {
class: "dialog-footer"
};
const _hoisted_4 = /*#__PURE__*/_createTextVNode("Cancel");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("Confirm");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_table_column = _resolveComponent("el-table-column");
const _component_el_table = _resolveComponent("el-table");
const _component_el_dialog = _resolveComponent("el-dialog");
const _component_el_input = _resolveComponent("el-input");
const _component_el_form_item = _resolveComponent("el-form-item");
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
const _component_el_form = _resolveComponent("el-form");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "text",
onClick: _cache[0] || (_cache[0] = $event => _ctx.dialogTableVisible = true)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_dialog, {
title: "Shipping address",
modelValue: _ctx.dialogTableVisible,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.dialogTableVisible = $event)
}, {
default: _withCtx(() => [_createVNode(_component_el_table, {
data: _ctx.gridData
}, {
default: _withCtx(() => [_createVNode(_component_el_table_column, {
property: "date",
label: "Date",
width: "150"
}), _createVNode(_component_el_table_column, {
property: "name",
label: "Name",
width: "200"
}), _createVNode(_component_el_table_column, {
property: "address",
label: "Address"
})]),
_: 1
}, 8, ["data"])]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_button, {
type: "text",
onClick: _cache[2] || (_cache[2] = $event => _ctx.dialogFormVisible = true)
}, {
default: _withCtx(() => [_hoisted_2]),
_: 1
}), _createVNode(_component_el_dialog, {
title: "Shipping address",
modelValue: _ctx.dialogFormVisible,
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.dialogFormVisible = $event)
}, {
footer: _withCtx(() => [_createElementVNode("span", _hoisted_3, [_createVNode(_component_el_button, {
onClick: _cache[5] || (_cache[5] = $event => _ctx.dialogFormVisible = false)
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
onClick: _cache[6] || (_cache[6] = $event => _ctx.dialogFormVisible = false)
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
})])]),
default: _withCtx(() => [_createVNode(_component_el_form, {
model: _ctx.form
}, {
default: _withCtx(() => [_createVNode(_component_el_form_item, {
label: "Promotion name",
"label-width": _ctx.formLabelWidth
}, {
default: _withCtx(() => [_createVNode(_component_el_input, {
modelValue: _ctx.form.name,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.form.name = $event),
autocomplete: "off"
}, null, 8, ["modelValue"])]),
_: 1
}, 8, ["label-width"]), _createVNode(_component_el_form_item, {
label: "Zones",
"label-width": _ctx.formLabelWidth
}, {
default: _withCtx(() => [_createVNode(_component_el_select, {
modelValue: _ctx.form.region,
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.form.region = $event),
placeholder: "Please select a zone"
}, {
default: _withCtx(() => [_createVNode(_component_el_option, {
label: "Zone No.1",
value: "shanghai"
}), _createVNode(_component_el_option, {
label: "Zone No.2",
value: "beijing"
})]),
_: 1
}, 8, ["modelValue"])]),
_: 1
}, 8, ["label-width"])]),
_: 1
}, 8, ["model"])]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
gridData: [{
date: '2016-05-02',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-04',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-01',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}, {
date: '2016-05-03',
name: 'John Smith',
address: 'No.1518, Jinshajiang Road, Putuo District'
}],
dialogTableVisible: false,
dialogFormVisible: false,
form: {
name: '',
region: '',
date1: '',
date2: '',
delivery: false,
type: [],
resource: '',
desc: ''
},
formLabelWidth: '120px'
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": 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("open the outer Dialog");
const _hoisted_2 = {
class: "dialog-footer"
};
const _hoisted_3 = /*#__PURE__*/_createTextVNode("Cancel");
const _hoisted_4 = /*#__PURE__*/_createTextVNode("open the inner Dialog");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_dialog = _resolveComponent("el-dialog");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "text",
onClick: _cache[0] || (_cache[0] = $event => _ctx.outerVisible = true)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_dialog, {
title: "Outer Dialog",
modelValue: _ctx.outerVisible,
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.outerVisible = $event)
}, {
footer: _withCtx(() => [_createElementVNode("div", _hoisted_2, [_createVNode(_component_el_button, {
onClick: _cache[2] || (_cache[2] = $event => _ctx.outerVisible = false)
}, {
default: _withCtx(() => [_hoisted_3]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
onClick: _cache[3] || (_cache[3] = $event => _ctx.innerVisible = true)
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
})])]),
default: _withCtx(() => [_createVNode(_component_el_dialog, {
width: "30%",
title: "Inner Dialog",
modelValue: _ctx.innerVisible,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.innerVisible = $event),
"append-to-body": ""
}, null, 8, ["modelValue"])]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
outerVisible: false,
innerVisible: false
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo3": 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("Click to open the Dialog");
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, "It should be noted that the content will not be aligned in center by default", -1);
const _hoisted_3 = {
class: "dialog-footer"
};
const _hoisted_4 = /*#__PURE__*/_createTextVNode("Cancel");
const _hoisted_5 = /*#__PURE__*/_createTextVNode("Confirm");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_dialog = _resolveComponent("el-dialog");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "text",
onClick: _cache[0] || (_cache[0] = $event => _ctx.centerDialogVisible = true)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_dialog, {
title: "Warning",
modelValue: _ctx.centerDialogVisible,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.centerDialogVisible = $event),
width: "30%",
center: ""
}, {
footer: _withCtx(() => [_createElementVNode("span", _hoisted_3, [_createVNode(_component_el_button, {
onClick: _cache[1] || (_cache[1] = $event => _ctx.centerDialogVisible = false)
}, {
default: _withCtx(() => [_hoisted_4]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
onClick: _cache[2] || (_cache[2] = $event => _ctx.centerDialogVisible = false)
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
})])]),
default: _withCtx(() => [_hoisted_2]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
centerDialogVisible: false
};
}
};
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("Click to open Dialog");
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", null, "Notice: before dialog gets opened for the first time this node and the one bellow will not be rendered", -1);
const _hoisted_3 = /*#__PURE__*/_createElementVNode("div", null, [/*#__PURE__*/_createElementVNode("strong", null, "Extra content (Not rendered)")], -1);
const _hoisted_4 = {
class: "dialog-footer"
};
const _hoisted_5 = /*#__PURE__*/_createTextVNode("Cancel");
const _hoisted_6 = /*#__PURE__*/_createTextVNode("Confirm");
function render(_ctx, _cache) {
const _component_el_button = _resolveComponent("el-button");
const _component_el_dialog = _resolveComponent("el-dialog");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_button, {
type: "text",
onClick: _cache[0] || (_cache[0] = $event => _ctx.centerDialogVisible = true)
}, {
default: _withCtx(() => [_hoisted_1]),
_: 1
}), _createVNode(_component_el_dialog, {
title: "Notice",
modelValue: _ctx.centerDialogVisible,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.centerDialogVisible = $event),
width: "30%",
"destroy-on-close": "",
center: ""
}, {
footer: _withCtx(() => [_createElementVNode("span", _hoisted_4, [_createVNode(_component_el_button, {
onClick: _cache[1] || (_cache[1] = $event => _ctx.centerDialogVisible = false)
}, {
default: _withCtx(() => [_hoisted_5]),
_: 1
}), _createVNode(_component_el_button, {
type: "primary",
onClick: _cache[2] || (_cache[2] = $event => _ctx.centerDialogVisible = false)
}, {
default: _withCtx(() => [_hoisted_6]),
_: 1
})])]),
default: _withCtx(() => [_hoisted_2, _hoisted_3]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
centerDialogVisible: false
};
}
};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/es/dialog.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/es/dialog.md
dialogvue_type_script_lang_ts.render = dialogvue_type_template_id_6577942d_render
/* harmony default export */ var dialog = __webpack_exports__["default"] = (dialogvue_type_script_lang_ts);
/***/ })
}]);