代码拉取完成,页面将自动刷新
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{
/***/ 787:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/input.md?vue&type=template&id=4416b8e4
const inputvue_type_template_id_4416b8e4_hoisted_1 = {
class: "content element-doc"
};
const inputvue_type_template_id_4416b8e4_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Input ");
const inputvue_type_template_id_4416b8e4_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<p>Input data using mouse or keyboard.</p><div class=\"warning\"><p>Input is a controlled component, it <strong>always shows Vue binding value</strong>.</p><p>Under normal circumstances, <code>input</code> event should be handled. Its handler should update component's binding value (or use <code>v-model</code>). Otherwise, input box's value will not change.</p><p>Do not support <code>v-model</code> modifiers.</p></div>", 2);
const inputvue_type_template_id_4416b8e4_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Basic usage ");
const inputvue_type_template_id_4416b8e4_hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input placeholder=\"Please input\" v-model=\"input\"></el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Disabled ");
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"])("Disable the Input with the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute.")])], -1);
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input placeholder=\"Please input\" v-model=\"input\" :disabled=\"true\">\n</el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Clearable ");
const _hoisted_11 = /*#__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"])("Make the Input clearable with the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "clearable"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute.")])], -1);
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input placeholder=\"Please input\" v-model=\"input\" clearable> </el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Password box ");
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"])("Make a toggleable password Input with the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "show-password"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute.")])], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input\n placeholder=\"Please input password\"\n v-model=\"input\"\n show-password\n></el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Input with icon ");
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Add an icon to indicate input type.", -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"])("To add icons in Input, you can simply use "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "prefix-icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "suffix-icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attributes. Also, the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "prefix"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "suffix"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" named slots works as well.")])], -1);
const _hoisted_19 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"demo-input-suffix\">\n <span class=\"demo-input-label\">Using attributes</span>\n <el-input\n placeholder=\"Pick a date\"\n suffix-icon=\"el-icon-date\"\n v-model=\"input1\"\n >\n </el-input>\n <el-input\n placeholder=\"Type something\"\n prefix-icon=\"el-icon-search\"\n v-model=\"input2\"\n >\n </el-input>\n</div>\n<div class=\"demo-input-suffix\">\n <span class=\"demo-input-label\">Using slots</span>\n <el-input placeholder=\"Pick a date\" v-model=\"input3\">\n <template #suffix>\n <i class=\"el-input__icon el-icon-date\"></i>\n </template>\n </el-input>\n <el-input placeholder=\"Type something\" v-model=\"input4\">\n <template #prefix>\n <i class=\"el-input__icon el-icon-search\"></i>\n </template>\n </el-input>\n</div>\n\n<style>\n .demo-input-label {\n display: inline-block;\n width: 130px;\n }\n</style>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input1: ref(''),\n input2: ref(''),\n input3: ref(''),\n input4: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_20 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Textarea ");
const _hoisted_21 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Resizable for entering multiple lines of text information. Add attribute "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type=\"textarea\""), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to change "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "input"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" into native "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "textarea"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")], -1);
const _hoisted_22 = /*#__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"])("Control the height by setting the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "rows"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" prop.")])], -1);
const _hoisted_23 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input\n type=\"textarea\"\n :rows=\"2\"\n placeholder=\"Please input\"\n v-model=\"textarea\"\n>\n</el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n textarea: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_24 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autosize Textarea ");
const _hoisted_25 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Setting the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "autosize"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" prop for a textarea type of Input makes the height to automatically adjust based on the content. An options object can be provided to "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "autosize"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to specify the minimum and maximum number of lines the textarea can automatically adjust.")], -1);
const _hoisted_26 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input\n type=\"textarea\"\n autosize\n placeholder=\"Please input\"\n v-model=\"textarea1\"\n>\n</el-input>\n<div style=\"margin: 20px 0;\"></div>\n<el-input\n type=\"textarea\"\n :autosize=\"{ minRows: 2, maxRows: 4}\"\n placeholder=\"Please input\"\n v-model=\"textarea2\"\n>\n</el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n textarea1: ref(''),\n textarea2: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_27 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Mixed input ");
const _hoisted_28 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Prepend or append an element, generally a label or a button.", -1);
const _hoisted_29 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Use "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "slot"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to distribute elements that prepend or append to Input.")])], -1);
const _hoisted_30 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div>\n <el-input placeholder=\"Please input\" v-model=\"input1\">\n <template #prepend>Http://</template>\n </el-input>\n</div>\n<div style=\"margin-top: 15px;\">\n <el-input placeholder=\"Please input\" v-model=\"input2\">\n <template #append>.com</template>\n </el-input>\n</div>\n<div style=\"margin-top: 15px;\">\n <el-input\n placeholder=\"Please input\"\n v-model=\"input3\"\n class=\"input-with-select\"\n >\n <template #prepend>\n <el-select v-model=\"select\" placeholder=\"Select\">\n <el-option label=\"Restaurant\" value=\"1\"></el-option>\n <el-option label=\"Order No.\" value=\"2\"></el-option>\n <el-option label=\"Tel\" value=\"3\"></el-option>\n </el-select>\n </template>\n <template #append>\n <el-button icon=\"el-icon-search\"></el-button>\n </template>\n </el-input>\n</div>\n\n<style>\n .el-select .el-input {\n width: 110px;\n }\n .input-with-select .el-input-group__prepend {\n background-color: #fff;\n }\n</style>\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input1: ref(''),\n input2: ref(''),\n input3: ref(''),\n select: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_31 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Sizes ");
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"])("Add "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "size"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute to change the size of Input. In addition to the default size, there are three other options: "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "large"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(", "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "small"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "mini"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(".")])], -1);
const _hoisted_33 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"demo-input-size\">\n <el-input placeholder=\"Please Input\" v-model=\"input1\"> </el-input>\n <el-input size=\"medium\" placeholder=\"Please Input\" v-model=\"input2\">\n </el-input>\n <el-input size=\"small\" placeholder=\"Please Input\" v-model=\"input3\">\n </el-input>\n <el-input size=\"mini\" placeholder=\"Please Input\" v-model=\"input4\"> </el-input>\n</div>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n input1: ref(''),\n input2: ref(''),\n input3: ref(''),\n input4: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_34 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autocomplete ");
const _hoisted_35 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "You can get some recommended tips based on the current input.", -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"])("Autocomplete component provides input suggestions. The "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "fetch-suggestions"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attribute is a method that returns suggested input. In this example, "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "querySearch(queryString, cb)"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" returns suggestions to Autocomplete via "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "cb(data)"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" when suggestions are ready.")])], -1);
const _hoisted_37 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-row class=\"demo-autocomplete\">\n <el-col :span=\"12\">\n <div class=\"sub-title\">list suggestions when activated</div>\n <el-autocomplete\n class=\"inline-input\"\n v-model=\"state1\"\n :fetch-suggestions=\"querySearch\"\n placeholder=\"Please Input\"\n @select=\"handleSelect\"\n ></el-autocomplete>\n </el-col>\n <el-col :span=\"12\">\n <div class=\"sub-title\">list suggestions on input</div>\n <el-autocomplete\n class=\"inline-input\"\n v-model=\"state2\"\n :fetch-suggestions=\"querySearch\"\n placeholder=\"Please Input\"\n :trigger-on-focus=\"false\"\n @select=\"handleSelect\"\n ></el-autocomplete>\n </el-col>\n</el-row>\n<script>\n import { defineComponent, ref, onMounted } from 'vue'\n export default defineComponent({\n setup() {\n const restaurants = ref([])\n const querySearch = (queryString, cb) => {\n var results = queryString\n ? restaurants.value.filter(createFilter(queryString))\n : restaurants.value\n // call callback function to return suggestions\n cb(results)\n }\n const createFilter = (queryString) => {\n return (restaurant) => {\n return (\n restaurant.value\n .toLowerCase()\n .indexOf(queryString.toLowerCase()) === 0\n )\n }\n }\n const loadAll = () => {\n return [\n { value: 'vue', link: 'https://github.com/vuejs/vue' },\n { value: 'element', link: 'https://github.com/ElemeFE/element' },\n { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },\n { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },\n { value: 'vuex', link: 'https://github.com/vuejs/vuex' },\n { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },\n { value: 'babel', link: 'https://github.com/babel/babel' },\n ]\n }\n const handleSelect = (item) => {\n console.log(item)\n }\n onMounted(() => {\n restaurants.value = loadAll()\n })\n return {\n restaurants,\n state1: ref(''),\n state2: ref(''),\n querySearch,\n createFilter,\n loadAll,\n handleSelect,\n }\n },\n })\n</script>\n")], -1);
const _hoisted_38 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Custom template ");
const _hoisted_39 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Customize how suggestions are displayed.", -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"])("Use "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "scoped slot"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to customize suggestion items. In the scope, you can access the suggestion object via the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "item"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" key.")])], -1);
const _hoisted_41 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-autocomplete\n popper-class=\"my-autocomplete\"\n v-model=\"state\"\n :fetch-suggestions=\"querySearch\"\n placeholder=\"Please input\"\n @select=\"handleSelect\"\n>\n <template #suffix>\n <i class=\"el-icon-edit el-input__icon\" @click=\"handleIconClick\"></i>\n </template>\n <template #default=\"{ item }\">\n <div class=\"value\">{{ item.value }}</div>\n <span class=\"link\">{{ item.link }}</span>\n </template>\n</el-autocomplete>\n\n<style>\n .my-autocomplete li {\n line-height: normal;\n padding: 7px;\n }\n .my-autocomplete li .name {\n text-overflow: ellipsis;\n overflow: hidden;\n }\n .my-autocomplete li .addr {\n font-size: 12px;\n color: #b4b4b4;\n }\n .my-autocomplete li .highlighted .addr {\n color: #ddd;\n }\n</style>\n\n<script>\n import { defineComponent, ref, onMounted } from 'vue'\n export default defineComponent({\n setup() {\n const links = ref([])\n\n const querySearch = (queryString, cb) => {\n var results = queryString\n ? links.value.filter(createFilter(queryString))\n : links.value\n // call callback function to return suggestion objects\n cb(results)\n }\n const createFilter = (queryString) => {\n return (restaurant) => {\n return (\n restaurant.value\n .toLowerCase()\n .indexOf(queryString.toLowerCase()) === 0\n )\n }\n }\n const loadAll = () => {\n return [\n { value: 'vue', link: 'https://github.com/vuejs/vue' },\n { value: 'element', link: 'https://github.com/ElemeFE/element' },\n { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },\n { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },\n { value: 'vuex', link: 'https://github.com/vuejs/vuex' },\n { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },\n { value: 'babel', link: 'https://github.com/babel/babel' },\n ]\n }\n const handleSelect = (item) => {\n console.log(item)\n }\n\n const handleIconClick = (ev) => {\n console.log(ev)\n }\n\n onMounted(() => {\n links.value = loadAll()\n })\n\n return {\n links,\n state: ref(''),\n querySearch,\n createFilter,\n loadAll,\n handleSelect,\n handleIconClick,\n }\n },\n })\n</script>\n")], -1);
const _hoisted_42 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Remote search ");
const _hoisted_43 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Search data from server-side.", -1);
const _hoisted_44 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-autocomplete\n v-model=\"state\"\n :fetch-suggestions=\"querySearchAsync\"\n placeholder=\"Please input\"\n @select=\"handleSelect\"\n></el-autocomplete>\n<script>\n import { defineComponent, ref, onMounted } from 'vue'\n export default defineComponent({\n setup() {\n const links = ref([])\n const loadAll = () => {\n return [\n { value: 'vue', link: 'https://github.com/vuejs/vue' },\n { value: 'element', link: 'https://github.com/ElemeFE/element' },\n { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },\n { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },\n { value: 'vuex', link: 'https://github.com/vuejs/vuex' },\n { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },\n { value: 'babel', link: 'https://github.com/babel/babel' },\n ]\n }\n let timeout\n const querySearchAsync = (queryString, cb) => {\n var results = queryString\n ? links.value.filter(createFilter(queryString))\n : links.value\n\n clearTimeout(timeout)\n timeout = setTimeout(() => {\n cb(results)\n }, 3000 * Math.random())\n }\n const createFilter = (queryString) => {\n return (restaurant) => {\n return (\n restaurant.value\n .toLowerCase()\n .indexOf(queryString.toLowerCase()) === 0\n )\n }\n }\n const handleSelect = (item) => {\n console.log(item)\n }\n onMounted(() => {\n links.value = loadAll()\n })\n return {\n links,\n state: ref(''),\n querySearchAsync,\n createFilter,\n loadAll,\n handleSelect,\n }\n },\n })\n</script>\n")], -1);
const _hoisted_45 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Limit length ");
const _hoisted_46 = /*#__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, "maxlength"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" and "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "minlength"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" attributes of input, they declare a limit on the number of characters a user can input. The \"number of characters\" is measured using JavaScript string length.Setting the "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "maxlength"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" prop for a text or textarea type of Input can limit the length of input value, allows you to show word count by setting "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "show-word-limit"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" to "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "true"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" at the same time.")])], -1);
const _hoisted_47 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<el-input\n type=\"text\"\n placeholder=\"Please input\"\n v-model=\"text\"\n maxlength=\"10\"\n show-word-limit\n>\n</el-input>\n<div style=\"margin: 20px 0;\"></div>\n<el-input\n type=\"textarea\"\n placeholder=\"Please input\"\n v-model=\"textarea\"\n maxlength=\"30\"\n show-word-limit\n>\n</el-input>\n\n<script>\n import { defineComponent, ref } from 'vue'\n export default defineComponent({\n setup() {\n return {\n text: ref(''),\n textarea: ref(''),\n }\n },\n })\n</script>\n")], -1);
const _hoisted_48 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Input Attributes ");
const _hoisted_49 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Attribute"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Type"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Accepted Values"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Default")])], -1);
const _hoisted_50 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "type", -1);
const _hoisted_51 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "type of input", -1);
const _hoisted_52 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string", -1);
const _hoisted_53 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("text, textarea and other ");
const _hoisted_54 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("native input types");
const _hoisted_55 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "text", -1);
const _hoisted_56 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "modelValue / v-model"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "binding value"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string / number"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_57 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "maxlength"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the max length"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string / number"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_58 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "minlength"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "minlength"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "number"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_59 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "show-word-limit"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("whether show word count,only works when "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is 'text' or 'textarea'")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_60 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "placeholder"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "placeholder of Input"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_61 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "clearable"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "whether to show clear button"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_62 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "show-password"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "whether to show toggleable password input"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_63 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "whether Input is disabled"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_64 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "size"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("size of Input, works when "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is not 'textarea'")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "medium / small / mini"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_65 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "prefix-icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "prefix icon class"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_66 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "suffix-icon"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "suffix icon class"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_67 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "rows"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("number of rows of textarea, only works when "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is 'textarea'")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "number"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "2")], -1);
const _hoisted_68 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "autosize"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("whether textarea has an adaptive height, only works when "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "type"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" is 'textarea'. Can accept an object, e.g. { minRows: 2, maxRows: 6 }")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean / object"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_69 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "autocomplete"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "autocomplete"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "off")], -1);
const _hoisted_70 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "name"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_71 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "readonly"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "readonly"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_72 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "max"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "max"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_73 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "min"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "min"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_74 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "step"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "step"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_75 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "resize"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "control the resizability"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "none / both / horizontal / vertical"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_76 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "autofocus"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "autofocus"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "false")], -1);
const _hoisted_77 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "form"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("same as "), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", null, "form"), /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" in native input")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_78 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "label"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "label text"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")], -1);
const _hoisted_79 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "tabindex"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "input tabindex"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "string / number"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-")], -1);
const _hoisted_80 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "validate-event"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "whether to trigger form validation"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "boolean"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "true")], -1);
const _hoisted_81 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "input-style"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "the style of the input element or textarea element"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "object"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "-"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "{}")], -1);
const _hoisted_82 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Input slots ");
const _hoisted_83 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>prefix</td><td>content as Input prefix, only works when <code>type</code> is 'text'</td></tr><tr><td>suffix</td><td>content as Input suffix, only works when <code>type</code> is 'text'</td></tr><tr><td>prepend</td><td>content to prepend before Input, only works when <code>type</code> is 'text'</td></tr><tr><td>append</td><td>content to append after Input, only works when <code>type</code> is 'text'</td></tr></tbody></table>", 1);
const _hoisted_84 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Input Events ");
const _hoisted_85 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Event Name</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>blur</td><td>triggers when Input blurs</td><td>(event: Event)</td></tr><tr><td>focus</td><td>triggers when Input focuses</td><td>(event: Event)</td></tr><tr><td>change</td><td>triggers only when the input box loses focus or the user presses Enter</td><td>(value: string | number)</td></tr><tr><td>input</td><td>triggers when the Input value change</td><td>(value: string | number)</td></tr><tr><td>clear</td><td>triggers when the Input is cleared by clicking the clear button</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_86 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Input Methods ");
const _hoisted_87 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Method</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>focus</td><td>focus the input element</td><td>—</td></tr><tr><td>blur</td><td>blur the input element</td><td>—</td></tr><tr><td>select</td><td>select the text in input element</td><td>—</td></tr></tbody></table>", 1);
const _hoisted_88 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autocomplete Attributes ");
const _hoisted_89 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribute</th><th>Description</th><th>Type</th><th>Accepted Values</th><th>Default</th></tr></thead><tbody><tr><td>placeholder</td><td>the placeholder of Autocomplete</td><td>string</td><td>—</td><td>—</td></tr><tr><td>clearable</td><td>whether to show clear button</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>disabled</td><td>whether Autocomplete is disabled</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>value-key</td><td>key name of the input suggestion object for display</td><td>string</td><td>—</td><td>value</td></tr><tr><td>icon</td><td>icon name</td><td>string</td><td>—</td><td>—</td></tr><tr><td>model-value / v-model</td><td>binding value</td><td>string</td><td>—</td><td>—</td></tr><tr><td>debounce</td><td>debounce delay when typing, in milliseconds</td><td>number</td><td>—</td><td>300</td></tr><tr><td>placement</td><td>placement of the popup menu</td><td>string</td><td>top / top-start / top-end / bottom / bottom-start / bottom-end</td><td>bottom-start</td></tr><tr><td>fetch-suggestions</td><td>a method to fetch input suggestions. When suggestions are ready, invoke <code>callback(data:[])</code> to return them to Autocomplete</td><td>Function(queryString, callback)</td><td>—</td><td>—</td></tr><tr><td>popper-class</td><td>custom class name for autocomplete's dropdown</td><td>string</td><td>—</td><td>—</td></tr><tr><td>trigger-on-focus</td><td>whether show suggestions when input focus</td><td>boolean</td><td>—</td><td>true</td></tr><tr><td>name</td><td>same as <code>name</code> in native input</td><td>string</td><td>—</td><td>—</td></tr><tr><td>select-when-unmatched</td><td>whether to emit a <code>select</code> event on enter when there is no autocomplete match</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>label</td><td>label text</td><td>string</td><td>—</td><td>—</td></tr><tr><td>prefix-icon</td><td>prefix icon class</td><td>string</td><td>—</td><td>—</td></tr><tr><td>suffix-icon</td><td>suffix icon class</td><td>string</td><td>—</td><td>—</td></tr><tr><td>hide-loading</td><td>whether to hide the loading icon in remote search</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>popper-append-to-body</td><td>whether to append the dropdown to body. If the positioning of the dropdown is wrong, you can try to set this prop to false</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>highlight-first-item</td><td>whether to highlight first item in remote search suggestions by default</td><td>boolean</td><td>—</td><td>false</td></tr></tbody></table>", 1);
const _hoisted_90 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autocomplete Slots ");
const _hoisted_91 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>prefix</td><td>content as Input prefix</td></tr><tr><td>suffix</td><td>content as Input suffix</td></tr><tr><td>prepend</td><td>content to prepend before Input</td></tr><tr><td>append</td><td>content to append after Input</td></tr></tbody></table>", 1);
const _hoisted_92 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autocomplete Scoped Slot ");
const _hoisted_93 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "Custom content for input suggestions. The scope parameter is { item }")])])], -1);
const _hoisted_94 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autocomplete Events ");
const _hoisted_95 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Event Name</th><th>Description</th><th>Parameters</th></tr></thead><tbody><tr><td>select</td><td>triggers when a suggestion is clicked</td><td>suggestion being clicked</td></tr><tr><td>change</td><td>triggers when the icon inside Input value change</td><td>(value: string | number)</td></tr></tbody></table>", 1);
const _hoisted_96 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Autocomplete Methods ");
const _hoisted_97 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Method"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Description"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "Parameters")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "focus"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "focus the input element"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—")])])], -1);
function inputvue_type_template_id_4416b8e4_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_element_demo10 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo10");
const _component_element_demo11 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo11");
const _component_element_demo12 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo12");
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", inputvue_type_template_id_4416b8e4_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "input",
content: "Input",
href: "#input",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [inputvue_type_template_id_4416b8e4_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#input"
})]),
_: 1
}), inputvue_type_template_id_4416b8e4_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "basic-usage",
content: "Basic usage",
href: "#basic-usage",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [inputvue_type_template_id_4416b8e4_hoisted_5, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#basic-usage"
})]),
_: 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"])(() => [inputvue_type_template_id_4416b8e4_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "disabled",
content: "Disabled",
href: "#disabled",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_7, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#disabled"
})]),
_: 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: "clearable",
content: "Clearable",
href: "#clearable",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#clearable"
})]),
_: 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_demo2)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_11]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "password-box",
content: "Password box",
href: "#password-box",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_13, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#password-box"
})]),
_: 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_demo3)]),
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: "input-with-icon",
content: "Input with icon",
href: "#input-with-icon",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#input-with-icon"
})]),
_: 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_demo4)]),
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: "textarea",
content: "Textarea",
href: "#textarea",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_20, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#textarea"
})]),
_: 1
}), _hoisted_21, 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_23]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_22]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "autosize-textarea",
content: "Autosize Textarea",
href: "#autosize-textarea",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_24, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autosize-textarea"
})]),
_: 1
}), _hoisted_25, 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_26]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "mixed-input",
content: "Mixed input",
href: "#mixed-input",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_27, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#mixed-input"
})]),
_: 1
}), _hoisted_28, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo7)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_30]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_29]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "sizes",
content: "Sizes",
href: "#sizes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_31, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#sizes"
})]),
_: 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_demo8)]),
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: "autocomplete",
content: "Autocomplete",
href: "#autocomplete",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_34, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autocomplete"
})]),
_: 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_demo9)]),
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: "custom-template",
content: "Custom template",
href: "#custom-template",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_38, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#custom-template"
})]),
_: 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_demo10)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_41]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_40]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "remote-search",
content: "Remote search",
href: "#remote-search",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_42, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#remote-search"
})]),
_: 1
}), _hoisted_43, 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_demo11)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_44]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "limit-length",
content: "Limit length",
href: "#limit-length",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_45, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#limit-length"
})]),
_: 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_demo12)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_47]),
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_46]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "input-attributes",
content: "Input Attributes",
href: "#input-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_48, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#input-attributes"
})]),
_: 1
}), Object(vue_esm_browser_prod["createElementVNode"])("table", null, [_hoisted_49, Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [_hoisted_50, _hoisted_51, _hoisted_52, Object(vue_esm_browser_prod["createElementVNode"])("td", null, [_hoisted_53, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
href: "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_54]),
_: 1
})]), _hoisted_55]), _hoisted_56, _hoisted_57, _hoisted_58, _hoisted_59, _hoisted_60, _hoisted_61, _hoisted_62, _hoisted_63, _hoisted_64, _hoisted_65, _hoisted_66, _hoisted_67, _hoisted_68, _hoisted_69, _hoisted_70, _hoisted_71, _hoisted_72, _hoisted_73, _hoisted_74, _hoisted_75, _hoisted_76, _hoisted_77, _hoisted_78, _hoisted_79, _hoisted_80, _hoisted_81])]), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "input-slots",
content: "Input slots",
href: "#input-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_82, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#input-slots"
})]),
_: 1
}), _hoisted_83, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "input-events",
content: "Input Events",
href: "#input-events",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_84, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#input-events"
})]),
_: 1
}), _hoisted_85, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "input-methods",
content: "Input Methods",
href: "#input-methods",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_86, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#input-methods"
})]),
_: 1
}), _hoisted_87, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "autocomplete-attributes",
content: "Autocomplete Attributes",
href: "#autocomplete-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_88, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autocomplete-attributes"
})]),
_: 1
}), _hoisted_89, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "autocomplete-slots",
content: "Autocomplete Slots",
href: "#autocomplete-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_90, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autocomplete-slots"
})]),
_: 1
}), _hoisted_91, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "autocomplete-scoped-slot",
content: "Autocomplete Scoped Slot",
href: "#autocomplete-scoped-slot",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_92, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autocomplete-scoped-slot"
})]),
_: 1
}), _hoisted_93, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "autocomplete-events",
content: "Autocomplete Events",
href: "#autocomplete-events",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_94, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autocomplete-events"
})]),
_: 1
}), _hoisted_95, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "autocomplete-methods",
content: "Autocomplete Methods",
href: "#autocomplete-methods",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_96, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#autocomplete-methods"
})]),
_: 1
}), _hoisted_97, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/en-US/input.md?vue&type=template&id=4416b8e4
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/input.md?vue&type=script&lang=ts
/* harmony default export */ var inputvue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
placeholder: "Please input",
modelValue: _ctx.input,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input = $event)
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
placeholder: "Please input",
modelValue: _ctx.input,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input = $event),
disabled: true
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
placeholder: "Please input",
modelValue: _ctx.input,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input = $event),
clearable: ""
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo3": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
placeholder: "Please input password",
modelValue: _ctx.input,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input = $event),
"show-password": ""
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo4": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
createVNode: _createVNode,
withCtx: _withCtx,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "demo-input-suffix"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("span", {
class: "demo-input-label"
}, "Using attributes", -1);
const _hoisted_3 = {
class: "demo-input-suffix"
};
const _hoisted_4 = /*#__PURE__*/_createElementVNode("span", {
class: "demo-input-label"
}, "Using slots", -1);
const _hoisted_5 = /*#__PURE__*/_createElementVNode("i", {
class: "el-input__icon el-icon-date"
}, null, -1);
const _hoisted_6 = /*#__PURE__*/_createElementVNode("i", {
class: "el-input__icon el-icon-search"
}, null, -1);
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_hoisted_2, _createVNode(_component_el_input, {
placeholder: "Pick a date",
"suffix-icon": "el-icon-date",
modelValue: _ctx.input1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input1 = $event)
}, null, 8, ["modelValue"]), _createVNode(_component_el_input, {
placeholder: "Type something",
"prefix-icon": "el-icon-search",
modelValue: _ctx.input2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.input2 = $event)
}, null, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_3, [_hoisted_4, _createVNode(_component_el_input, {
placeholder: "Pick a date",
modelValue: _ctx.input3,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.input3 = $event)
}, {
suffix: _withCtx(() => [_hoisted_5]),
_: 1
}, 8, ["modelValue"]), _createVNode(_component_el_input, {
placeholder: "Type something",
modelValue: _ctx.input4,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.input4 = $event)
}, {
prefix: _withCtx(() => [_hoisted_6]),
_: 1
}, 8, ["modelValue"])])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input1: ref(''),
input2: ref(''),
input3: ref(''),
input4: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo5": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
type: "textarea",
rows: 2,
placeholder: "Please input",
modelValue: _ctx.textarea,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.textarea = $event)
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
textarea: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo6": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
style: {
"margin": "20px 0"
}
}, null, -1);
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
type: "textarea",
autosize: "",
placeholder: "Please input",
modelValue: _ctx.textarea1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.textarea1 = $event)
}, null, 8, ["modelValue"]), _hoisted_1, _createVNode(_component_el_input, {
type: "textarea",
autosize: {
minRows: 2,
maxRows: 4
},
placeholder: "Please input",
modelValue: _ctx.textarea2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.textarea2 = $event)
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
textarea1: ref(''),
textarea2: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo7": 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("Http://");
const _hoisted_2 = {
style: {
"margin-top": "15px"
}
};
const _hoisted_3 = /*#__PURE__*/_createTextVNode(".com");
const _hoisted_4 = {
style: {
"margin-top": "15px"
}
};
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
const _component_el_option = _resolveComponent("el-option");
const _component_el_select = _resolveComponent("el-select");
const _component_el_button = _resolveComponent("el-button");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", null, [_createVNode(_component_el_input, {
placeholder: "Please input",
modelValue: _ctx.input1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input1 = $event)
}, {
prepend: _withCtx(() => [_hoisted_1]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_2, [_createVNode(_component_el_input, {
placeholder: "Please input",
modelValue: _ctx.input2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.input2 = $event)
}, {
append: _withCtx(() => [_hoisted_3]),
_: 1
}, 8, ["modelValue"])]), _createElementVNode("div", _hoisted_4, [_createVNode(_component_el_input, {
placeholder: "Please input",
modelValue: _ctx.input3,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.input3 = $event),
class: "input-with-select"
}, {
prepend: _withCtx(() => [_createVNode(_component_el_select, {
modelValue: _ctx.select,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.select = $event),
placeholder: "Select"
}, {
default: _withCtx(() => [_createVNode(_component_el_option, {
label: "Restaurant",
value: "1"
}), _createVNode(_component_el_option, {
label: "Order No.",
value: "2"
}), _createVNode(_component_el_option, {
label: "Tel",
value: "3"
})]),
_: 1
}, 8, ["modelValue"])]),
append: _withCtx(() => [_createVNode(_component_el_button, {
icon: "el-icon-search"
})]),
_: 1
}, 8, ["modelValue"])])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input1: ref(''),
input2: ref(''),
input3: ref(''),
select: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo8": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "demo-input-size"
};
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_createVNode(_component_el_input, {
placeholder: "Please Input",
modelValue: _ctx.input1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.input1 = $event)
}, null, 8, ["modelValue"]), _createVNode(_component_el_input, {
size: "medium",
placeholder: "Please Input",
modelValue: _ctx.input2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.input2 = $event)
}, null, 8, ["modelValue"]), _createVNode(_component_el_input, {
size: "small",
placeholder: "Please Input",
modelValue: _ctx.input3,
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.input3 = $event)
}, null, 8, ["modelValue"]), _createVNode(_component_el_input, {
size: "mini",
placeholder: "Please Input",
modelValue: _ctx.input4,
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.input4 = $event)
}, null, 8, ["modelValue"])])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
input1: ref(''),
input2: ref(''),
input3: ref(''),
input4: ref('')
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo9": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
createVNode: _createVNode,
withCtx: _withCtx,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
class: "sub-title"
}, "list suggestions when activated", -1);
const _hoisted_2 = /*#__PURE__*/_createElementVNode("div", {
class: "sub-title"
}, "list suggestions on input", -1);
function render(_ctx, _cache) {
const _component_el_autocomplete = _resolveComponent("el-autocomplete");
const _component_el_col = _resolveComponent("el-col");
const _component_el_row = _resolveComponent("el-row");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_row, {
class: "demo-autocomplete"
}, {
default: _withCtx(() => [_createVNode(_component_el_col, {
span: 12
}, {
default: _withCtx(() => [_hoisted_1, _createVNode(_component_el_autocomplete, {
class: "inline-input",
modelValue: _ctx.state1,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.state1 = $event),
"fetch-suggestions": _ctx.querySearch,
placeholder: "Please Input",
onSelect: _ctx.handleSelect
}, null, 8, ["modelValue", "fetch-suggestions", "onSelect"])]),
_: 1
}), _createVNode(_component_el_col, {
span: 12
}, {
default: _withCtx(() => [_hoisted_2, _createVNode(_component_el_autocomplete, {
class: "inline-input",
modelValue: _ctx.state2,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.state2 = $event),
"fetch-suggestions": _ctx.querySearch,
placeholder: "Please Input",
"trigger-on-focus": false,
onSelect: _ctx.handleSelect
}, null, 8, ["modelValue", "fetch-suggestions", "onSelect"])]),
_: 1
})]),
_: 1
})]);
}
const {
defineComponent,
ref,
onMounted
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
const restaurants = ref([]);
const querySearch = (queryString, cb) => {
var results = queryString ? restaurants.value.filter(createFilter(queryString)) : restaurants.value; // call callback function to return suggestions
cb(results);
};
const createFilter = queryString => {
return restaurant => {
return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
};
};
const loadAll = () => {
return [{
value: 'vue',
link: 'https://github.com/vuejs/vue'
}, {
value: 'element',
link: 'https://github.com/ElemeFE/element'
}, {
value: 'cooking',
link: 'https://github.com/ElemeFE/cooking'
}, {
value: 'mint-ui',
link: 'https://github.com/ElemeFE/mint-ui'
}, {
value: 'vuex',
link: 'https://github.com/vuejs/vuex'
}, {
value: 'vue-router',
link: 'https://github.com/vuejs/vue-router'
}, {
value: 'babel',
link: 'https://github.com/babel/babel'
}];
};
const handleSelect = item => {
console.log(item);
};
onMounted(() => {
restaurants.value = loadAll();
});
return {
restaurants,
state1: ref(''),
state2: ref(''),
querySearch,
createFilter,
loadAll,
handleSelect
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo10": function () {
const {
createElementVNode: _createElementVNode,
toDisplayString: _toDisplayString,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "value"
};
const _hoisted_2 = {
class: "link"
};
function render(_ctx, _cache) {
const _component_el_autocomplete = _resolveComponent("el-autocomplete");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_autocomplete, {
"popper-class": "my-autocomplete",
modelValue: _ctx.state,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.state = $event),
"fetch-suggestions": _ctx.querySearch,
placeholder: "Please input",
onSelect: _ctx.handleSelect
}, {
suffix: _withCtx(() => [_createElementVNode("i", {
class: "el-icon-edit el-input__icon",
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleIconClick && _ctx.handleIconClick(...args))
})]),
default: _withCtx(({
item
}) => [_createElementVNode("div", _hoisted_1, _toDisplayString(item.value), 1), _createElementVNode("span", _hoisted_2, _toDisplayString(item.link), 1)]),
_: 1
}, 8, ["modelValue", "fetch-suggestions", "onSelect"])]);
}
const {
defineComponent,
ref,
onMounted
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
const links = ref([]);
const querySearch = (queryString, cb) => {
var results = queryString ? links.value.filter(createFilter(queryString)) : links.value; // call callback function to return suggestion objects
cb(results);
};
const createFilter = queryString => {
return restaurant => {
return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
};
};
const loadAll = () => {
return [{
value: 'vue',
link: 'https://github.com/vuejs/vue'
}, {
value: 'element',
link: 'https://github.com/ElemeFE/element'
}, {
value: 'cooking',
link: 'https://github.com/ElemeFE/cooking'
}, {
value: 'mint-ui',
link: 'https://github.com/ElemeFE/mint-ui'
}, {
value: 'vuex',
link: 'https://github.com/vuejs/vuex'
}, {
value: 'vue-router',
link: 'https://github.com/vuejs/vue-router'
}, {
value: 'babel',
link: 'https://github.com/babel/babel'
}];
};
const handleSelect = item => {
console.log(item);
};
const handleIconClick = ev => {
console.log(ev);
};
onMounted(() => {
links.value = loadAll();
});
return {
links,
state: ref(''),
querySearch,
createFilter,
loadAll,
handleSelect,
handleIconClick
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo11": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
function render(_ctx, _cache) {
const _component_el_autocomplete = _resolveComponent("el-autocomplete");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_autocomplete, {
modelValue: _ctx.state,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.state = $event),
"fetch-suggestions": _ctx.querySearchAsync,
placeholder: "Please input",
onSelect: _ctx.handleSelect
}, null, 8, ["modelValue", "fetch-suggestions", "onSelect"])]);
}
const {
defineComponent,
ref,
onMounted
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
const links = ref([]);
const loadAll = () => {
return [{
value: 'vue',
link: 'https://github.com/vuejs/vue'
}, {
value: 'element',
link: 'https://github.com/ElemeFE/element'
}, {
value: 'cooking',
link: 'https://github.com/ElemeFE/cooking'
}, {
value: 'mint-ui',
link: 'https://github.com/ElemeFE/mint-ui'
}, {
value: 'vuex',
link: 'https://github.com/vuejs/vuex'
}, {
value: 'vue-router',
link: 'https://github.com/vuejs/vue-router'
}, {
value: 'babel',
link: 'https://github.com/babel/babel'
}];
};
let timeout;
const querySearchAsync = (queryString, cb) => {
var results = queryString ? links.value.filter(createFilter(queryString)) : links.value;
clearTimeout(timeout);
timeout = setTimeout(() => {
cb(results);
}, 3000 * Math.random());
};
const createFilter = queryString => {
return restaurant => {
return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
};
};
const handleSelect = item => {
console.log(item);
};
onMounted(() => {
links.value = loadAll();
});
return {
links,
state: ref(''),
querySearchAsync,
createFilter,
loadAll,
handleSelect
};
}
});
return {
render,
...democomponentExport
};
}(),
"element-demo12": function () {
const {
resolveComponent: _resolveComponent,
createVNode: _createVNode,
createElementVNode: _createElementVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = /*#__PURE__*/_createElementVNode("div", {
style: {
"margin": "20px 0"
}
}, null, -1);
function render(_ctx, _cache) {
const _component_el_input = _resolveComponent("el-input");
return _openBlock(), _createElementBlock("div", null, [_createVNode(_component_el_input, {
type: "text",
placeholder: "Please input",
modelValue: _ctx.text,
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.text = $event),
maxlength: "10",
"show-word-limit": ""
}, null, 8, ["modelValue"]), _hoisted_1, _createVNode(_component_el_input, {
type: "textarea",
placeholder: "Please input",
modelValue: _ctx.textarea,
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.textarea = $event),
maxlength: "30",
"show-word-limit": ""
}, null, 8, ["modelValue"])]);
}
const {
defineComponent,
ref
} = vue_esm_browser_prod;
const democomponentExport = defineComponent({
setup() {
return {
text: ref(''),
textarea: ref('')
};
}
});
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/en-US/input.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/en-US/input.md
inputvue_type_script_lang_ts.render = inputvue_type_template_id_4416b8e4_render
/* harmony default export */ var input = __webpack_exports__["default"] = (inputvue_type_script_lang_ts);
/***/ })
}]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。