vant/v1/async_134.50aca0cc.js
2024-04-20 08:49:23 +00:00

1 line
9.2 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[134],{339:function(E,C,u){"use strict";u.r(C);var t={created:function(){this.content=unescape("%3Ch2%3ESearch%20%u641C%u7D22%3C/h2%3E%0A%3Ch3%3E%u4F7F%u7528%u6307%u5357%3C/h3%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-javascript%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%7B%20Search%20%7D%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%3B%0A%0AVue.use%28Search%29%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3E%u4EE3%u7801%u6F14%u793A%3C/h3%3E%0A%3Ch4%3E%u57FA%u7840%u7528%u6CD5%3C/h4%3E%0A%3Cp%3E%3Ccode%3Evan-search%3C/code%3E%20%u4E2D%uFF0Cv-model%20%u7528%u4E8E%u63A7%u5236%u641C%u7D22%u6846%u4E2D%u7684%u6587%u5B57%u3002background%20%u53EF%u4EE5%u81EA%u5B9A%u4E49%u641C%u7D22%u6846%u5916%u90E8%u80CC%u666F%u8272%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-search%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Eplaceholder%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22%u8BF7%u8F93%u5165%u641C%u7D22%u5173%u952E%u8BCD%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-model%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22value%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u76D1%u542C%u5BF9%u5E94%u4E8B%u4EF6%3C/h4%3E%0A%3Cp%3E%3Ccode%3Evan-search%3C/code%3E%20%u63D0%u4F9B%u4E86%20search%20%u548C%20cancel%20%u4E8B%u4EF6%u3002search%20%u4E8B%u4EF6%u5728%u7528%u6237%u70B9%u51FB%u952E%u76D8%u4E0A%u7684%20%u641C%u7D22/%u56DE%u8F66%20%u6309%u94AE%u89E6%u53D1%u3002cancel%20%u4E8B%u4EF6%u5728%u7528%u6237%u70B9%u51FB%u641C%u7D22%u6846%u53F3%u4FA7%u53D6%u6D88%u6309%u94AE%u65F6%u89E6%u53D1%3C/p%3E%0A%3Cp%3ETips%3A%20%u5728%20%3Ccode%3Evan-search%3C/code%3E%20%u5916%u5C42%u589E%u52A0%20form%20%u6807%u7B7E%uFF0C%u5E76%u4E14%20action%20%u4E0D%u4E3A%u7A7A%uFF0C%u5373%u53EF%u5728%20IOS%20%u5F39%u51FA%u7684%u8F93%u5165%u6CD5%u4E2D%u663E%u793A%u641C%u7D22%u6309%u94AE%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Eform%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Eaction%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22/%22%3C/span%3E%26gt%3B%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-search%3C/span%3E%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-model%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22value%22%3C/span%3E%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eplaceholder%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22%u8BF7%u8F93%u5165%u641C%u7D22%u5173%u952E%u8BCD%22%3C/span%3E%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eshow-action%3C/span%3E%0A%20%20%20%20@%3Cspan%20class%3D%22hljs-attr%22%3Esearch%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22onSearch%22%3C/span%3E%0A%20%20%20%20@%3Cspan%20class%3D%22hljs-attr%22%3Ecancel%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22onCancel%22%3C/span%3E%0A%20%20/%26gt%3B%3C/span%3E%0A%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Eform%3C/span%3E%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u81EA%u5B9A%u4E49%u884C%u52A8%u6309%u94AE%3C/h4%3E%0A%3Cp%3E%3Ccode%3Evan-search%3C/code%3E%20%u652F%u6301%u81EA%u5B9A%u4E49%u53F3%u4FA7%u53D6%u6D88%u6309%u94AE%uFF0C%u4F7F%u7528%u540D%u5B57%u4E3A%20action%20%u7684%u63D2%u69FD%u5373%u53EF%u3002%u4F7F%u7528%u6B64%u63D2%u69FD%u4EE5%u540E%uFF0C%u539F%u6709%u7684%20cancel%20%u4E8B%u4EF6%u4E0D%u518D%u751F%u6548%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-search%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-model%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22value%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eplaceholder%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22%u8BF7%u8F93%u5165%u641C%u7D22%u5173%u952E%u8BCD%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eshow-action%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eshape%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22round%22%3C/span%3E%0A%20%20@%3Cspan%20class%3D%22hljs-attr%22%3Esearch%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22onSearch%22%3C/span%3E%0A%26gt%3B%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Ediv%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Eslot%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22action%22%3C/span%3E%20@%3Cspan%20class%3D%22hljs-attr%22%3Eclick%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22onSearch%22%3C/span%3E%26gt%3B%3C/span%3E%u641C%u7D22%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Ediv%3C/span%3E%26gt%3B%3C/span%3E%0A%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Evan-search%3C/span%3E%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EAPI%3C/h3%3E%0A%3Cp%3ESearch%20%u9ED8%u8BA4%u652F%u6301%20Input%20%u6807%u7B7E%u6240%u6709%u7684%u539F%u751F%u5C5E%u6027%uFF0C%u6BD4%u5982%20%3Ccode%3Emaxlength%3C/code%3E%u3001%3Ccode%3Eplaceholder%3C/code%3E%u3001%3Ccode%3Eautofocus%3C/code%3E%20%u7B49%3C/p%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3E%u53C2%u6570%3C/th%3E%0A%3Cth%3E%u8BF4%u660E%3C/th%3E%0A%3Cth%3E%u7C7B%u578B%3C/th%3E%0A%3Cth%3E%u9ED8%u8BA4%u503C%3C/th%3E%0A%3Cth%3E%u7248%u672C%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Elabel%3C/td%3E%0A%3Ctd%3E%u641C%u7D22%u6846%u5DE6%u4FA7%u6587%u672C%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E1.6.6%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eshape%3C/td%3E%0A%3Ctd%3E%u5F62%u72B6%uFF0C%u53EF%u9009%u503C%u4E3A%20%3Ccode%3Eround%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Esquare%3C/code%3E%3C/td%3E%0A%3Ctd%3E1.6.6%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ebackground%3C/td%3E%0A%3Ctd%3E%u641C%u7D22%u6846%u80CC%u666F%u8272%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3E%23f2f2f2%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eshow-action%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u5728%u641C%u7D22%u6846%u53F3%u4FA7%u663E%u793A%u53D6%u6D88%u6309%u94AE%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Efalse%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Edisabled%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u7981%u7528%u8F93%u5165%u6846%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Efalse%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ereadonly%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u53EA%u8BFB%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Efalse%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eerror%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u5C06%u8F93%u5165%u5185%u5BB9%u6807%u7EA2%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Efalse%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Einput-align%3C/td%3E%0A%3Ctd%3E%u8F93%u5165%u6846%u5185%u5BB9%u5BF9%u9F50%u65B9%u5F0F%uFF0C%u53EF%u9009%u503C%u4E3A%20%3Ccode%3Ecenter%3C/code%3E%20%3Ccode%3Eright%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Eleft%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A%3Ch3%3EEvent%3C/h3%3E%0A%3Cp%3ESearch%20%u9ED8%u8BA4%u652F%u6301%20Input%20%u6807%u7B7E%u6240%u6709%u7684%u539F%u751F%u4E8B%u4EF6%uFF0C%u5982%20%3Ccode%3Efocus%3C/code%3E%u3001%3Ccode%3Eblur%3C/code%3E%u3001%3Ccode%3Ekeypress%3C/code%3E%20%u7B49%3C/p%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3E%u4E8B%u4EF6%u540D%3C/th%3E%0A%3Cth%3E%u8BF4%u660E%3C/th%3E%0A%3Cth%3E%u53C2%u6570%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Ecancel%3C/td%3E%0A%3Ctd%3E%u53D6%u6D88%u641C%u7D22%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Esearch%3C/td%3E%0A%3Ctd%3E%u786E%u5B9A%u641C%u7D22%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eclear%3C/td%3E%0A%3Ctd%3E%u70B9%u51FB%u6E05%u9664%u6309%u94AE%u540E%u89E6%u53D1%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A%3Ch3%3ESlot%3C/h3%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3E%u540D%u79F0%3C/th%3E%0A%3Cth%3E%u8BF4%u660E%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Eaction%3C/td%3E%0A%3Ctd%3E%u81EA%u5B9A%u4E49%u641C%u7D22%u6846%u53F3%u4FA7%u6309%u94AE%uFF0C%u9700%u8981%u5728%3Ccode%3EshowAction%3C/code%3E%u4E3A%20true%20%u65F6%u624D%u4F1A%u663E%u793A%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eleft-icon%3C/td%3E%0A%3Ctd%3E%u81EA%u5B9A%u4E49%u8F93%u5165%u6846%u5934%u90E8%u56FE%u6807%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Elabel%3C/td%3E%0A%3Ctd%3E%u81EA%u5B9A%u4E49%u641C%u7D22%u6846%u5DE6%u4FA7%u6587%u672C%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A")}},s=u(7),a=Object(s.a)(t,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var E=this.$createElement;return(this._self._c||E)("section",{domProps:{innerHTML:this._s(this.content)}})}],!1,null,null,null);C.default=a.exports}}]);