2 Star 3 Fork 3

element-plus/doc-archive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DOCS es49.0cb71eee40c7d7b6716e.js 41.09 KB
一键复制 编辑 原始数据 按行查看 历史
iamkun 提交于 2021-09-15 18:54 . chore: update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[117],{
/***/ 867:
/***/ (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/radio.md?vue&type=template&id=7905939f
const radiovue_type_template_id_7905939f_hoisted_1 = {
class: "content element-doc"
};
const radiovue_type_template_id_7905939f_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Radio ");
const radiovue_type_template_id_7905939f_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Selección única entre múltiples opciones.", -1);
const radiovue_type_template_id_7905939f_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Uso básico ");
const radiovue_type_template_id_7905939f_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "El elemento Radio no debe tener muchas opciones. De otra manera, utilice el componente Select.", -1);
const radiovue_type_template_id_7905939f_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"])("Crear un elemento Radio es fácil, solo necesita enlazar("), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "bind"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(") una variable a la directiva "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" del Radio. Va a ser igual al valor "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" del Radio seleccionado. El tipo de dato de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es "), /*#__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"])(" o "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "Boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const radiovue_type_template_id_7905939f_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_7905939f_hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Deshabilitado ");
const radiovue_type_template_id_7905939f_hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("El atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es utilizado para deshabilitar un Radio.")], -1);
const radiovue_type_template_id_7905939f_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"])("Solo necesita agregar el atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const radiovue_type_template_id_7905939f_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"])("Grupo de elementos Radio ");
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Recomendado para seleccionar opciones que se excluyen mutuamente.", -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"])(" con "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para mostrar un grupo de Radios. Enlace la variable con "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" del elemento "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio-group"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" y asigne el valor del "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" en "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". Se provee el evento "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "change"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" con el valor actual como parámetro.")])], -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"])("Estilo Button ");
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Radio con estilo de botón.", -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"])("Solo necesita cambiar el elemento "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" a "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-radio-button"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". Se provee el atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "size"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -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"])("Con bordes ");
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"])("El atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "border"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" agrega un borde al elemento Radio.")])], -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"])("Atributos de Radio ");
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Atributo</th><th>Descripción</th><th>Tipo</th><th>Valores Aceptado</th><th>Por defecto</th></tr></thead><tbody><tr><td>model-value / v-model</td><td>valor enlazado</td><td>string / number / boolean</td><td>—</td><td>—</td></tr><tr><td>label</td><td>el valor del Radio</td><td>string / number / boolean</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>si el Radio está deshabilitado</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>border</td><td>agregar borde alrededor del elemento Radio</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>size</td><td>tamaño del elemento Radio</td><td>string</td><td>medium / small / mini</td><td>—</td></tr><tr><td>name</td><td>atributo nativo <code>name</code></td><td>string</td><td>—</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Atributos de Radio-button ");
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Atributo</th><th>Descripción</th><th>Tipo</th><th>Valores Aceptado</th><th>Por defecto</th></tr></thead><tbody><tr><td>label</td><td>el valor del Radio</td><td>string / number</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>si el Radio está deshabilitado</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>name</td><td>atributo nativo <code>name</code></td><td>string</td><td>—</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Atributos de Radio-group ");
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Atributo</th><th>Descripción</th><th>Tipo</th><th>Valores Aceptado</th><th>Valores por defecto</th></tr></thead><tbody><tr><td>model-value / v-model</td><td>valor enlazado</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>si la anidación de radios está deshabilitada</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>text-color</td><td>color de las letras cuando el botón está activo</td><td>string</td><td>—</td><td>#ffffff</td></tr><tr><td>fill</td><td>color del borde y fondo cuando el botón está activo</td><td>string</td><td>—</td><td>#409EFF</td></tr></tbody></table>", 1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Eventos de Radio ");
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Nombre de evento</th><th>Descripción</th><th>Parámetros</th></tr></thead><tbody><tr><td>change</td><td>se dispara cuando el valor cambia</td><td>el valor del <code>label</code> del Radio seleccionado</td></tr></tbody></table>", 1);
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Eventos de Radio-group ");
const _hoisted_32 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Nombre de evento</th><th>Descripción</th><th>Parámetros</th></tr></thead><tbody><tr><td>change</td><td>se dispara cuando el valor cambia</td><td>el valor del <code>label</code> del Radio seleccionado</td></tr></tbody></table>", 1);
function radiovue_type_template_id_7905939f_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_7905939f_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_7905939f_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#radio"
})]),
_: 1
}), radiovue_type_template_id_7905939f_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"])(() => [radiovue_type_template_id_7905939f_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#uso-basico"
})]),
_: 1
}), radiovue_type_template_id_7905939f_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_7905939f_hoisted_7]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_7905939f_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "deshabilitado",
content: "Deshabilitado",
href: "#deshabilitado",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_7905939f_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#deshabilitado"
})]),
_: 1
}), radiovue_type_template_id_7905939f_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_7905939f_hoisted_11]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [radiovue_type_template_id_7905939f_hoisted_10]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "grupo-de-elementos-radio",
content: "Grupo de elementos Radio",
href: "#grupo-de-elementos-radio",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#grupo-de-elementos-radio"
})]),
_: 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: "estilo-button",
content: "Estilo Button",
href: "#estilo-button",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#estilo-button"
})]),
_: 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: "con-bordes",
content: "Con bordes",
href: "#con-bordes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#con-bordes"
})]),
_: 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: "atributos-de-radio",
content: "Atributos de Radio",
href: "#atributos-de-radio",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_23, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#atributos-de-radio"
})]),
_: 1
}), _hoisted_24, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "atributos-de-radio-button",
content: "Atributos de Radio-button",
href: "#atributos-de-radio-button",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_25, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#atributos-de-radio-button"
})]),
_: 1
}), _hoisted_26, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "atributos-de-radio-group",
content: "Atributos de Radio-group",
href: "#atributos-de-radio-group",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#atributos-de-radio-group"
})]),
_: 1
}), _hoisted_28, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "eventos-de-radio",
content: "Eventos de Radio",
href: "#eventos-de-radio",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_29, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#eventos-de-radio"
})]),
_: 1
}), _hoisted_30, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "eventos-de-radio-group",
content: "Eventos de Radio-group",
href: "#eventos-de-radio-group",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#eventos-de-radio-group"
})]),
_: 1
}), _hoisted_32, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/es/radio.md?vue&type=template&id=7905939f
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/es/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/es/radio.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/es/radio.md
radiovue_type_script_lang_ts.render = radiovue_type_template_id_7905939f_render
/* harmony default export */ var es_radio = __webpack_exports__["default"] = (radiovue_type_script_lang_ts);
/***/ })
}]);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/element-plus/doc-archive.git
git@gitee.com:element-plus/doc-archive.git
element-plus
doc-archive
doc-archive
main

搜索帮助