(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0ea0"],{"448b":function(t,s,a){"use strict";a.r(s);var r=function(){var t=this,s=t.$createElement;t._self._c;return t._m(0)},e=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",[a("h2",[t._v("键盘组件")]),a("h3",[t._v("参数")]),a("h4",[t._v("Object object")]),a("table",[a("thead",[a("tr",[a("th",[t._v("属性")]),a("th",[t._v("类型")]),a("th",[t._v("默认值")]),a("th",[t._v("必填")]),a("th",[t._v("说明")])])]),a("tbody",[a("tr",[a("td",[t._v("placeholder")]),a("td",[t._v("string")]),a("td",[t._v("请输入车牌号")]),a("td",[t._v("否")]),a("td",[t._v("键盘输入框的 placeholder 文字")])]),a("tr",[a("td",[t._v("showSwitch")]),a("td",[t._v("boolean")]),a("td",[t._v("false")]),a("td",[t._v("否")]),a("td",[t._v("是否显示切换境内外按钮，默认不显示")])]),a("tr",[a("td",[t._v("type")]),a("td",[t._v("string")]),a("td",[t._v('"grid"')]),a("td",[t._v("否")]),a("td",[t._v("键盘触发元素类型，grid 是格子类型，触发元素是 8 个格子，input 是 类似 input 类型")])]),a("tr",[a("td",[t._v("defaultText")]),a("td",[t._v("string")]),a("td",[t._v('""')]),a("td",[t._v("否")]),a("td",[t._v("默认值")])]),a("tr",[a("td",[t._v("maxlength")]),a("td",[t._v("number")]),a("td",[t._v("10")]),a("td",[t._v("否")]),a("td",[t._v("海外车牌的长度，默认 10")])]),a("tr",[a("td",[t._v("isAbroad")]),a("td",[t._v("boolean")]),a("td",[t._v("false")]),a("td",[t._v("否")]),a("td",[t._v("是否海外车牌，默认值是 false，境内车牌")])]),a("tr",[a("td",[t._v("clickOutsideClose")]),a("td",[t._v("boolean")]),a("td",[t._v("true")]),a("td",[t._v("否")]),a("td",[t._v("点击键盘外的元素是否关闭，默认 true 关闭")])]),a("tr",[a("td",[t._v("passiveTrigger")]),a("td",[t._v("boolean")]),a("td",[t._v("false")]),a("td",[t._v("否")]),a("td",[t._v("是否被动触发，true 被动触发键盘，只能通过其它元素触发显示键盘")])]),a("tr",[a("td",[t._v("hasElementFocus")]),a("td",[t._v("boolean")]),a("td",[t._v("false")]),a("td",[t._v("否")]),a("td",[t._v("当当前页面有 input 或者 textarea 时，聚焦时去触发车牌键盘会导致定位错乱的问题，这个参数的作用是用于修复定位错乱的问题，他的值是页面是否有元素聚焦，有的话是 true，否则是 false")])]),a("tr",[a("td",[t._v("onKeyboardClose")]),a("td",[t._v("function")]),a("td"),a("td",[t._v("否")]),a("td",[t._v("关闭键盘时的回调函数，有一个字符串的参数")])]),a("tr",[a("td",[t._v("onKeyboardInput")]),a("td",[t._v("function")]),a("td"),a("td",[t._v("否")]),a("td",[t._v("监听键盘输入的回调函数，有个一个对应输入格的数组参数，境内车牌才有此回调函数")])])])]),a("h2",[t._v("组件调用方式")]),a("pre",{pre:!0},[a("code",{pre:!0,attrs:{"v-pre":"",class:"language-html"}},[a("span",{pre:!0,attrs:{class:"hljs-tag"}},[t._v("<"),a("span",{pre:!0,attrs:{class:"hljs-name"}},[t._v("Keyboard")]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":placeholder")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v("\"'请输入车牌号'\"")]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":type")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v("\"'grid'\"")]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":showSwitch")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v('"false"')]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":defaultText")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v("\"'闽A12312'\"")]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":passiveTrigger")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v('"true"')]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":hasElementFocus")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v('"false"')]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v(":maxlength")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v('"20"')]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v("@onKeyboardClose")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v('"keyboardCompleted"')]),t._v("\n  "),a("span",{pre:!0,attrs:{class:"hljs-attr"}},[t._v("@onKeyboardInput")]),t._v("="),a("span",{pre:!0,attrs:{class:"hljs-string"}},[t._v('"touchend"')]),t._v("\n>")]),a("span",{pre:!0,attrs:{class:"hljs-tag"}},[t._v("</"),a("span",{pre:!0,attrs:{class:"hljs-name"}},[t._v("Keyboard")]),t._v(">")]),t._v("\n")])]),a("pre",{pre:!0},[a("code",{pre:!0,attrs:{"v-pre":"",class:"language-js"}},[t._v("keyboardCompleted(lpn){\n  "),a("span",{pre:!0,attrs:{class:"hljs-built_in"}},[t._v("console")]),t._v(".log(lpn)\n},\ntouchend(keyArray){\n  "),a("span",{pre:!0,attrs:{class:"hljs-built_in"}},[t._v("console")]),t._v(".log(keyArray.length)\n}\n")])]),a("h2",[t._v("注意")]),a("ul",[a("li",[t._v("依赖 v-click-outside-x，使用前确保项目已经引入该库")])]),a("pre",{pre:!0},[a("code",{pre:!0,attrs:{"v-pre":""}},[t._v("npm install --save v-click-outside-x\n")])])])}],v=a("6691"),_={},l=Object(v["a"])(_,r,e,!1,null,null,null);s["default"]=l.exports}}]);
//# sourceMappingURL=chunk-2d0c0ea0.3b7d0e38.js.map