代码拉取完成,页面将自动刷新
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[123],{
/***/ 872:
/***/ (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/select.md?vue&type=template&id=1d282bbc
const selectvue_type_template_id_1d282bbc_hoisted_1 = {
class: "content element-doc"
};
const selectvue_type_template_id_1d282bbc_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Select ");
const _hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Cuando haya muchas opciones, utilice un menú desplegable para mostrar y seleccionar las que desee.", -1);
const _hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Uso básico ");
const _hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es el valor de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-option"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" que está seleccionado actualmente.")])], -1);
const _hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" placeholder=\"Select\">\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'Option1',\n label: 'Option1',\n },\n {\n value: 'Option2',\n label: 'Option2',\n },\n {\n value: 'Option3',\n label: 'Option3',\n },\n {\n value: 'Option4',\n label: 'Option4',\n },\n {\n value: 'Option5',\n label: 'Option5',\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Disabled en el-option ");
const _hoisted_8 = /*#__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 valor de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" en "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-option"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" como "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para deshabilitar esta opción.")])], -1);
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" placeholder=\"Select\">\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'Option1',\n label: 'Option1',\n },\n {\n value: 'Option2',\n label: 'Option2',\n disabled: true,\n },\n {\n value: 'Option3',\n label: 'Option3',\n },\n {\n value: 'Option4',\n label: 'Option4',\n },\n {\n value: 'Option5',\n label: 'Option5',\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Disabled en el-select ");
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Desactivar todo el componente.", -1);
const _hoisted_12 = /*#__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"])("Configure "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-select"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para deshabilitarla.")])], -1);
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" disabled placeholder=\"Select\">\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'Option1',\n label: 'Option1',\n },\n {\n value: 'Option2',\n label: 'Option2',\n },\n {\n value: 'Option3',\n label: 'Option3',\n },\n {\n value: 'Option4',\n label: 'Option4',\n },\n {\n value: 'Option5',\n label: 'Option5',\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Select simple limpiable ");
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Puede limpiar un Select con un icono.", -1);
const _hoisted_16 = /*#__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 atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "clearable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-select"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" y aparecerá un icono. Tenga en cuenta que la opción "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "clearable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es sólo para una selección individual.")])], -1);
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" clearable placeholder=\"Select\">\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'Option1',\n label: 'Option1',\n },\n {\n value: 'Option2',\n label: 'Option2',\n },\n {\n value: 'Option3',\n label: 'Option3',\n },\n {\n value: 'Option4',\n label: 'Option4',\n },\n {\n value: 'Option5',\n label: 'Option5',\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_18 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Selección múltiple básica ");
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Selección multiple utiliza tags para mostrar las opciones seleccionadas.", -1);
const _hoisted_20 = /*#__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"])("Configure el atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "multiple"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-select"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para habilitar el modo múltiple. En este caso, el valor del "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" será un array de opciones seleccionadas. De forma predeterminada, las opciones seleccionadas se mostrarán como tags. Se pueden contraer a un texto utilizando el atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "collapse-tags"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value1\" multiple placeholder=\"Select\">\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n\n <el-select\n v-model=\"value2\"\n multiple\n collapse-tags\n style=\"margin-left: 20px;\"\n placeholder=\"Select\"\n >\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'Option1',\n label: 'Option1',\n },\n {\n value: 'Option2',\n label: 'Option2',\n },\n {\n value: 'Option3',\n label: 'Option3',\n },\n {\n value: 'Option4',\n label: 'Option4',\n },\n {\n value: 'Option5',\n label: 'Option5',\n },\n ],\n value1: [],\n value2: [],\n }\n },\n }\n</script>\n")], -1);
const _hoisted_22 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Personalizar template ");
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Puede personalizar templates HTML para las opciones.", -1);
const _hoisted_24 = /*#__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"])("Inserte templates HTML personalizados en el slot de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-option"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" placeholder=\"Select\">\n <el-option\n v-for=\"item in cities\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n <span style=\"float: left\">{{ item.label }}</span>\n <span\n style=\"float: right; color: var(--el-text-color-secondary); font-size: 13px\"\n >{{ item.value }}</span\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n cities: [\n {\n value: 'Beijing',\n label: 'Beijing',\n },\n {\n value: 'Shanghai',\n label: 'Shanghai',\n },\n {\n value: 'Nanjing',\n label: 'Nanjing',\n },\n {\n value: 'Chengdu',\n label: 'Chengdu',\n },\n {\n value: 'Shenzhen',\n label: 'Shenzhen',\n },\n {\n value: 'Guangzhou',\n label: 'Guangzhou',\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Agrupando ");
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Mostrar opciones en grupos.", -1);
const _hoisted_28 = /*#__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"])("Utilice "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-option-group"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para agrupar las opciones, y su atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" representa el nombre del grupo.")])], -1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" placeholder=\"Select\">\n <el-option-group\n v-for=\"group in options\"\n :key=\"group.label\"\n :label=\"group.label\"\n >\n <el-option\n v-for=\"item in group.options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-option-group>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n label: 'Popular cities',\n options: [\n {\n value: 'Shanghai',\n label: 'Shanghai',\n },\n {\n value: 'Beijing',\n label: 'Beijing',\n },\n ],\n },\n {\n label: 'City name',\n options: [\n {\n value: 'Chengdu',\n label: 'Chengdu',\n },\n {\n value: 'Shenzhen',\n label: 'Shenzhen',\n },\n {\n value: 'Guangzhou',\n label: 'Guangzhou',\n },\n {\n value: 'Dalian',\n label: 'Dalian',\n },\n ],\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Filtrado de opciones ");
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Puede filtrar opciones como lo desee.", -1);
const _hoisted_32 = /*#__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"])("Añadir "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filterable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" a "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-select"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" permite filtrar. Por defecto, Select buscará todas las opciones cuyo atributo"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" contenga el valor del input. Si prefiere otras estrategias de filtrado, puede pasar el "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filter-method"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filter-method"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es una función que se llama cuando el valor del input cambia, y su parámetro es el valor del input actual.")])], -1);
const _hoisted_33 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select v-model=\"value\" filterable placeholder=\"Select\">\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'Option1',\n label: 'Option1',\n },\n {\n value: 'Option2',\n label: 'Option2',\n },\n {\n value: 'Option3',\n label: 'Option3',\n },\n {\n value: 'Option4',\n label: 'Option4',\n },\n {\n value: 'Option5',\n label: 'Option5',\n },\n ],\n value: '',\n }\n },\n }\n</script>\n")], -1);
const _hoisted_34 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Búsqueda remota ");
const _hoisted_35 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Introduzca palabras y datos para buscar desde el servidor.", -1);
const _hoisted_36 = /*#__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"])("Configure el valor de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filterable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" y "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "remote"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" con "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para habilitar la búsqueda remota, y debería pasar el método "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "remote-method"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "remote-method"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" es una función que se llama cuando el valor del input cambia, y su parámetro es el valor del input actual. Tenga en cuenta que si "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-option"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" se presenta con la directiva "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "v-for"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", debe agregar el atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "key"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" para "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "el-option"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(". Su valor tiene que ser unívoco, como el valor de "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "item.value"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" en el ejemplo siguiente.")])], -1);
const _hoisted_37 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select\n v-model=\"value\"\n multiple\n filterable\n remote\n reserve-keyword\n placeholder=\"Please enter a keyword\"\n :remote-method=\"remoteMethod\"\n :loading=\"loading\"\n >\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [],\n value: [],\n list: [],\n loading: false,\n states: [\n 'Alabama',\n 'Alaska',\n 'Arizona',\n 'Arkansas',\n 'California',\n 'Colorado',\n 'Connecticut',\n 'Delaware',\n 'Florida',\n 'Georgia',\n 'Hawaii',\n 'Idaho',\n 'Illinois',\n 'Indiana',\n 'Iowa',\n 'Kansas',\n 'Kentucky',\n 'Louisiana',\n 'Maine',\n 'Maryland',\n 'Massachusetts',\n 'Michigan',\n 'Minnesota',\n 'Mississippi',\n 'Missouri',\n 'Montana',\n 'Nebraska',\n 'Nevada',\n 'New Hampshire',\n 'New Jersey',\n 'New Mexico',\n 'New York',\n 'North Carolina',\n 'North Dakota',\n 'Ohio',\n 'Oklahoma',\n 'Oregon',\n 'Pennsylvania',\n 'Rhode Island',\n 'South Carolina',\n 'South Dakota',\n 'Tennessee',\n 'Texas',\n 'Utah',\n 'Vermont',\n 'Virginia',\n 'Washington',\n 'West Virginia',\n 'Wisconsin',\n 'Wyoming',\n ],\n }\n },\n mounted() {\n this.list = this.states.map((item) => {\n return { value: `value:${item}`, label: `label:${item}` }\n })\n },\n methods: {\n remoteMethod(query) {\n if (query !== '') {\n this.loading = true\n setTimeout(() => {\n this.loading = false\n this.options = this.list.filter((item) => {\n return item.label.toLowerCase().indexOf(query.toLowerCase()) > -1\n })\n }, 200)\n } else {\n this.options = []\n }\n },\n },\n }\n</script>\n")], -1);
const _hoisted_38 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Crear nuevos items ");
const _hoisted_39 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Crear y seleccionar nuevos items que no están incluidas en las opciones de selección.", -1);
const _hoisted_40 = /*#__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"])("Al utilizar el atributo "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "allow-create"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", los usuarios pueden crear nuevos elementos escribiendo en el cuadro del input. Tenga en cuenta que para que "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "allow-create"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" funcione, "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "filterable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" debe ser "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_41 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<template>\n <el-select\n v-model=\"value\"\n multiple\n filterable\n allow-create\n placeholder=\"Choose tags for your article\"\n >\n <el-option\n v-for=\"item in options\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n >\n </el-option>\n </el-select>\n</template>\n\n<script>\n export default {\n data() {\n return {\n options: [\n {\n value: 'HTML',\n label: 'HTML',\n },\n {\n value: 'CSS',\n label: 'CSS',\n },\n {\n value: 'JavaScript',\n label: 'JavaScript',\n },\n ],\n value: [],\n }\n },\n }\n</script>\n")], -1);
const _hoisted_42 = /*#__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"])("Si el valor de encuadernación de Select es un objeto, asegúrese de asignar "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "value-key"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" como el nombre único de la clave de identidad.")])], -1);
const _hoisted_43 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Select atributos ");
const _hoisted_44 = /*#__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>valor enlazado</td><td>string / number / boolean / object</td><td>—</td><td>—</td></tr><tr><td>multiple</td><td>si multiple-select esta activo</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>disabled</td><td>si Select esta deshabilitado</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>collapse-tags</td><td>si se colapsan los tags a un texto cuando <code>multiple</code> es <code>true</code>.</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>value-key</td><td>nombre de clave de identidad única para el valor, necesario cuando el valor es un objeto.</td><td>string</td><td>—</td><td>value</td></tr><tr><td>size</td><td>tamaño del Input</td><td>string</td><td>large/small/mini</td><td>—</td></tr><tr><td>clearable</td><td>si el select puede ser limpiado</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>multiple-limit</td><td>máximo numero de opciones que el usuario puede seleccionar cuando <code>multiple</code> es <code>true</code>. Sin límite cuando se fija a 0</td><td>number</td><td>—</td><td>0</td></tr><tr><td>name</td><td>el atributo <code>name</code> del input seleccionado</td><td>string</td><td>—</td><td>—</td></tr><tr><td>autocomplete</td><td>el atributo <code>autocomplete</code> del input seleccionado</td><td>string</td><td>—</td><td>off</td></tr><tr><td>placeholder</td><td>placeholder</td><td>string</td><td>—</td><td>Select</td></tr><tr><td>filterable</td><td>si Select es filtrable</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>allow-create</td><td>si esta permitido crear nuevos items. Para usar esto, <code>filterable</code> debe ser <code>true</code>.</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>filter-method</td><td>método de filtrado personalizado</td><td>function</td><td>—</td><td>—</td></tr><tr><td>remote</td><td>si las opciones se traerán desde el servidor</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>remote-method</td><td>método de búsqueda remota personalizada</td><td>function</td><td>—</td><td>—</td></tr><tr><td>loading</td><td>si Select está cargando datos del servidor</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>loading-text</td><td>texto mostrado durante la carga de datos del servidor, también puedes usar la configuración de slot = "empty"</td><td>string</td><td>—</td><td>Loading</td></tr><tr><td>no-match-text</td><td>texto mostrado cuando ningún dato coincide con la consulta de filtrado. También puedes usar la configuración de slot = "empty"</td><td>string</td><td>—</td><td>No matching data</td></tr><tr><td>no-data-text</td><td>texto mostrado cuando no hay opciones</td><td>string</td><td>—</td><td>No data</td></tr><tr><td>popper-class</td><td>nombre de clase personalizado para el menú desplegable del Select</td><td>string</td><td>—</td><td>—</td></tr><tr><td>reserve-keyword</td><td>cuando <code>multiple</code> y <code>filter</code> es <code>true</code>, si se debe reservar la palabra clave actual después de seleccionar una opción.</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>default-first-option</td><td>seleccione la primera opción de coincidencia en la tecla enter. Uso con <code>filterable</code> o <code>remote</code>.</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>popper-append-to-body</td><td>si añadir o no el menu popup al body. Si el posicionamiento del popup es incorrecto, puede intentar poner este <code>prop</code> en <code>false</code>.</td><td>boolean</td><td>-</td><td>true</td></tr><tr><td>automatic-dropdown</td><td>para non-filterable Select, este <code>prop</code> decide si el menú de opciones aparece cuando la entrada está enfocada</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>clear-icon</td><td>Clase personalizada para el icono <code>clear</code></td><td>string</td><td>—</td><td>el-icon-circle-close</td></tr></tbody></table>", 1);
const _hoisted_45 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Eventos Select ");
const _hoisted_46 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Nombre</th><th>Descripción</th><th>Parametros</th></tr></thead><tbody><tr><td>change</td><td>se dispara cuando el valor del select cambia</td><td>valor actual del select</td></tr><tr><td>visible-change</td><td>se dispara cuando el menú desplegable aparece o desaparece</td><td>true cuando aparece, y false en otro caso</td></tr><tr><td>remove-tag</td><td>se dispara cuando un tag es removido en modo múltiple</td><td>el valor del tag removido</td></tr><tr><td>clear</td><td>se dispara cuando el icono se clickea en un Select limpiable</td><td>—</td></tr><tr><td>blur</td><td>se dispara cuando el input pierde el foco</td><td>(event: Event)</td></tr><tr><td>focus</td><td>se dispara cuando el input obtiene el foco</td><td>(event: Event)</td></tr></tbody></table>", 1);
const _hoisted_47 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Select Slots ");
const _hoisted_48 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>—</td><td>lista de los componentes Option</td></tr><tr><td>prefix</td><td>contenido prefix de un Select</td></tr><tr><td>empty</td><td>Lista sin opciones</td></tr></tbody></table>", 1);
const _hoisted_49 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Atributos del grupo de opciones ");
const _hoisted_50 = /*#__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>label</td><td>nombre del grupo</td><td>string</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>si se deshabilitan todas las opciones del grupo</td><td>boolean</td><td>—</td><td>false</td></tr></tbody></table>", 1);
const _hoisted_51 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Atributos de opciones ");
const _hoisted_52 = /*#__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>value</td><td>valor de option</td><td>string / number / boolean / object</td><td>—</td><td>—</td></tr><tr><td>label</td><td>etiqueta de option, es igual a <code>value</code> si se omite</td><td>string/number</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>si option esta deshabilitado</td><td>boolean</td><td>—</td><td>false</td></tr></tbody></table>", 1);
const _hoisted_53 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Metodos ");
const _hoisted_54 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Metodo</th><th>Descripción</th><th>Parametros</th></tr></thead><tbody><tr><td>focus</td><td>Foco en el componente input</td><td>-</td></tr><tr><td>blur</td><td>Quita el focus del componente y oculta el dropdown</td><td>-</td></tr></tbody></table>", 1);
function selectvue_type_template_id_1d282bbc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_element_demo0 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo0");
const _component_demo_block = Object(vue_esm_browser_prod["resolveComponent"])("demo-block");
const _component_element_demo1 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo1");
const _component_element_demo2 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo2");
const _component_element_demo3 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo3");
const _component_element_demo4 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo4");
const _component_element_demo5 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo5");
const _component_element_demo6 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo6");
const _component_element_demo7 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo7");
const _component_element_demo8 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo8");
const _component_element_demo9 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo9");
const _component_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", selectvue_type_template_id_1d282bbc_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "select",
content: "Select",
href: "#select",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [selectvue_type_template_id_1d282bbc_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#select"
})]),
_: 1
}), _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"])(() => [_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#uso-basico"
})]),
_: 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_demo0)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_6]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_5]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "disabled-en-el-option",
content: "Disabled en el-option",
href: "#disabled-en-el-option",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_7, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#disabled-en-el-option"
})]),
_: 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_demo1)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_9]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "disabled-en-el-select",
content: "Disabled en el-select",
href: "#disabled-en-el-select",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#disabled-en-el-select"
})]),
_: 1
}), _hoisted_11, 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_13]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "select-simple-limpiable",
content: "Select simple limpiable",
href: "#select-simple-limpiable",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_14, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#select-simple-limpiable"
})]),
_: 1
}), _hoisted_15, 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_17]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_16]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "seleccion-multiple-basica",
content: "Selección múltiple básica",
href: "#seleccion-multiple-basica",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_18, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#seleccion-multiple-basica"
})]),
_: 1
}), _hoisted_19, 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_21]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_20]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "personalizar-template",
content: "Personalizar template",
href: "#personalizar-template",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_22, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#personalizar-template"
})]),
_: 1
}), _hoisted_23, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo5)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_25]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_24]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "agrupando",
content: "Agrupando",
href: "#agrupando",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_26, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#agrupando"
})]),
_: 1
}), _hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo6)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_29]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_28]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "filtrado-de-opciones",
content: "Filtrado de opciones",
href: "#filtrado-de-opciones",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_30, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#filtrado-de-opciones"
})]),
_: 1
}), _hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo7)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_33]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_32]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "busqueda-remota",
content: "Búsqueda remota",
href: "#busqueda-remota",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_34, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#busqueda-remota"
})]),
_: 1
}), _hoisted_35, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo8)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_37]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_36]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "crear-nuevos-items",
content: "Crear nuevos items",
href: "#crear-nuevos-items",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_38, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#crear-nuevos-items"
})]),
_: 1
}), _hoisted_39, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo9)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_41]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_40]),
_: 1
}), _hoisted_42, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "select-atributos",
content: "Select atributos",
href: "#select-atributos",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_43, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#select-atributos"
})]),
_: 1
}), _hoisted_44, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "eventos-select",
content: "Eventos Select",
href: "#eventos-select",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_45, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#eventos-select"
})]),
_: 1
}), _hoisted_46, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "select-slots",
content: "Select Slots",
href: "#select-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_47, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#select-slots"
})]),
_: 1
}), _hoisted_48, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "atributos-del-grupo-de-opciones",
content: "Atributos del grupo de opciones",
href: "#atributos-del-grupo-de-opciones",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_49, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#atributos-del-grupo-de-opciones"
})]),
_: 1
}), _hoisted_50, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "atributos-de-opciones",
content: "Atributos de opciones",
href: "#atributos-de-opciones",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_51, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#atributos-de-opciones"
})]),
_: 1
}), _hoisted_52, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "metodos",
content: "Metodos",
href: "#metodos",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_53, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#metodos"
})]),
_: 1
}), _hoisted_54, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/es/select.md?vue&type=template&id=1d282bbc
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/es/select.md?vue&type=script&lang=ts
/* harmony default export */ var selectvue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'Option1',
label: 'Option1'
}, {
value: 'Option2',
label: 'Option2'
}, {
value: 'Option3',
label: 'Option3'
}, {
value: 'Option4',
label: 'Option4'
}, {
value: 'Option5',
label: 'Option5'
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value,
disabled: item.disabled
}, null, 8, ["label", "value", "disabled"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'Option1',
label: 'Option1'
}, {
value: 'Option2',
label: 'Option2',
disabled: true
}, {
value: 'Option3',
label: 'Option3'
}, {
value: 'Option4',
label: 'Option4'
}, {
value: 'Option5',
label: 'Option5'
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
disabled: "",
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'Option1',
label: 'Option1'
}, {
value: 'Option2',
label: 'Option2'
}, {
value: 'Option3',
label: 'Option3'
}, {
value: 'Option4',
label: 'Option4'
}, {
value: 'Option5',
label: 'Option5'
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo3": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
clearable: "",
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'Option1',
label: 'Option1'
}, {
value: 'Option2',
label: 'Option2'
}, {
value: 'Option3',
label: 'Option3'
}, {
value: 'Option4',
label: 'Option4'
}, {
value: 'Option5',
label: 'Option5'
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo4": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value1 = $event),
multiple: "",
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_select, {
modelValue: _ctx.value2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.value2 = $event),
multiple: "",
"collapse-tags": "",
style: {
"margin-left": "20px"
},
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'Option1',
label: 'Option1'
}, {
value: 'Option2',
label: 'Option2'
}, {
value: 'Option3',
label: 'Option3'
}, {
value: 'Option4',
label: 'Option4'
}, {
value: 'Option5',
label: 'Option5'
}],
value1: [],
value2: []
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo5": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
toDisplayString: _toDisplayString,
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createBlock: _createBlock,
createVNode: _createVNode
} = vue_esm_browser_prod;
const _hoisted_1 = {
style: {
"float": "left"
}
};
const _hoisted_2 = {
style: {
"float": "right",
"color": "var(--el-text-color-secondary)",
"font-size": "13px"
}
};
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cities, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, {
default: _withCtx(() => [_createElementVNode("span", _hoisted_1, _toDisplayString(item.label), 1), _createElementVNode("span", _hoisted_2, _toDisplayString(item.value), 1)]),
_: 2
}, 1032, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
cities: [{
value: 'Beijing',
label: 'Beijing'
}, {
value: 'Shanghai',
label: 'Shanghai'
}, {
value: 'Nanjing',
label: 'Nanjing'
}, {
value: 'Chengdu',
label: 'Chengdu'
}, {
value: 'Shenzhen',
label: 'Shenzhen'
}, {
value: 'Guangzhou',
label: 'Guangzhou'
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo6": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_option_group = _resolveComponent("el-option-group");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, group => {
return _openBlock(), _createBlock(_component_el_option_group, {
key: group.label,
label: group.label
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(group.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 2
}, 1032, ["label"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
label: 'Popular cities',
options: [{
value: 'Shanghai',
label: 'Shanghai'
}, {
value: 'Beijing',
label: 'Beijing'
}]
}, {
label: 'City name',
options: [{
value: 'Chengdu',
label: 'Chengdu'
}, {
value: 'Shenzhen',
label: 'Shenzhen'
}, {
value: 'Guangzhou',
label: 'Guangzhou'
}, {
value: 'Dalian',
label: 'Dalian'
}]
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo7": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
filterable: "",
placeholder: "Select"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'Option1',
label: 'Option1'
}, {
value: 'Option2',
label: 'Option2'
}, {
value: 'Option3',
label: 'Option3'
}, {
value: 'Option4',
label: 'Option4'
}, {
value: 'Option5',
label: 'Option5'
}],
value: ''
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo8": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
multiple: "",
filterable: "",
remote: "",
"reserve-keyword": "",
placeholder: "Please enter a keyword",
"remote-method": _ctx.remoteMethod,
loading: _ctx.loading
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue", "remote-method", "loading"])]);
}
const democomponentExport = {
data() {
return {
options: [],
value: [],
list: [],
loading: false,
states: ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming']
};
},
mounted() {
this.list = this.states.map(item => {
return {
value: `value:${item}`,
label: `label:${item}`
};
});
},
methods: {
remoteMethod(query) {
if (query !== '') {
this.loading = true;
setTimeout(() => {
this.loading = false;
this.options = this.list.filter(item => {
return item.label.toLowerCase().indexOf(query.toLowerCase()) > -1;
});
}, 200);
} else {
this.options = [];
}
}
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo9": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
resolveComponent: _resolveComponent,
createBlock: _createBlock,
withCtx: _withCtx,
createVNode: _createVNode
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_select, {
modelValue: _ctx.value,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.value = $event),
multiple: "",
filterable: "",
"allow-create": "",
placeholder: "Choose tags for your article"
}, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, item => {
return _openBlock(), _createBlock(_component_el_option, {
key: item.value,
label: item.label,
value: item.value
}, null, 8, ["label", "value"]);
}), 128))]),
_: 1
}, 8, ["modelValue"])]);
}
const democomponentExport = {
data() {
return {
options: [{
value: 'HTML',
label: 'HTML'
}, {
value: 'CSS',
label: 'CSS'
}, {
value: 'JavaScript',
label: 'JavaScript'
}],
value: []
};
}
};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/es/select.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/es/select.md
selectvue_type_script_lang_ts.render = selectvue_type_template_id_1d282bbc_render
/* harmony default export */ var es_select = __webpack_exports__["default"] = (selectvue_type_script_lang_ts);
/***/ })
}]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。