mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{241:function(E,C,u){"use strict";u.r(C);var s={created:function(){this.content=unescape("%3Ch2%3EActionsheet%20%u4E0A%u62C9%u83DC%u5355%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%20Actionsheet%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%28Actionsheet%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%u9700%u8981%u4F20%u5165%u4E00%u4E2A%3Ccode%3Eactions%3C/code%3E%u7684%u6570%u7EC4%uFF0C%u6570%u7EC4%u7684%u6BCF%u4E00%u9879%u662F%u4E00%u4E2A%u5BF9%u8C61%uFF0C%u5BF9%u8C61%u5C5E%u6027%u89C1%u6587%u6863%u4E0B%u65B9%u8868%u683C%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-actionsheet%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%22show%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3E%3Aactions%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22actions%22%3C/span%3E%0A%20%20@%3Cspan%20class%3D%22hljs-attr%22%3Eselect%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22onSelect%22%3C/span%3E%0A/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-javascript%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eexport%3C/span%3E%20%3Cspan%20class%3D%22hljs-keyword%22%3Edefault%3C/span%3E%20%7B%0A%20%20data%28%29%20%7B%0A%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Ereturn%3C/span%3E%20%7B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eshow%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-literal%22%3Efalse%3C/span%3E%2C%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eactions%3C/span%3E%3A%20%5B%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%u9009%u9879%27%3C/span%3E%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%u9009%u9879%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Esubname%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%u63CF%u8FF0%u4FE1%u606F%27%3C/span%3E%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eloading%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-literal%22%3Etrue%3C/span%3E%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%u7981%u7528%u9009%u9879%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Edisabled%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-literal%22%3Etrue%3C/span%3E%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%3B%0A%20%20%7D%2C%0A%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Emethods%3C/span%3E%3A%20%7B%0A%20%20%20%20onSelect%28item%29%20%7B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-comment%22%3E//%20%u70B9%u51FB%u9009%u9879%u65F6%u9ED8%u8BA4%u4E0D%u4F1A%u5173%u95ED%u83DC%u5355%uFF0C%u53EF%u4EE5%u624B%u52A8%u5173%u95ED%3C/span%3E%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Ethis%3C/span%3E.show%20%3D%20%3Cspan%20class%3D%22hljs-literal%22%3Efalse%3C/span%3E%3B%0A%20%20%20%20%20%20Toast%28item.name%29%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u5E26%u53D6%u6D88%u6309%u94AE%u7684%20Actionsheet%3C/h4%3E%0A%3Cp%3E%u5982%u679C%u4F20%u5165%u4E86%3Ccode%3EcancelText%3C/code%3E%u5C5E%u6027%uFF0C%u4E14%u4E0D%u4E3A%u7A7A%uFF0C%u5219%u4F1A%u5728%u4E0B%u65B9%u663E%u793A%u4E00%u4E2A%u53D6%u6D88%u6309%u94AE%uFF0C%u70B9%u51FB%u4F1A%u5C06%u5F53%u524D%3Ccode%3EActionsheet%3C/code%3E%u5173%u95ED%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-actionsheet%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%22show%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3E%3Aactions%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22actions%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ecancel-text%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22%u53D6%u6D88%22%3C/span%3E%0A%20%20@%3Cspan%20class%3D%22hljs-attr%22%3Eselect%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22onSelect%22%3C/span%3E%0A%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/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u5E26%u6807%u9898%u7684%20Actionsheet%3C/h4%3E%0A%3Cp%3E%u5982%u679C%u4F20%u5165%u4E86%3Ccode%3Etitle%3C/code%3E%u5C5E%u6027%uFF0C%u4E14%u4E0D%u4E3A%u7A7A%uFF0C%u5219%u53E6%u5916%u4E00%u79CD%u6837%u5F0F%u7684%3Ccode%3EActionsheet%3C/code%3E%uFF0C%u91CC%u9762%u5185%u5BB9%u9700%u8981%u81EA%u5B9A%u4E49%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-actionsheet%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-model%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22show%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Etitle%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22%u652F%u6301%u4EE5%u4E0B%u914D%u9001%u65B9%u5F0F%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%3Ep%3C/span%3E%26gt%3B%3C/span%3E%u4E00%u4E9B%u5185%u5BB9%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Ep%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-actionsheet%3C/span%3E%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EAPI%3C/h3%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%3Eactions%3C/td%3E%0A%3Ctd%3E%u83DC%u5355%u9009%u9879%3C/td%3E%0A%3Ctd%3E%3Ccode%3EArray%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3E%5B%5D%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Etitle%3C/td%3E%0A%3Ctd%3E%u6807%u9898%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ecancel-text%3C/td%3E%0A%3Ctd%3E%u53D6%u6D88%u6309%u94AE%u6587%u5B57%uFF0C%u4E3A%u7A7A%u65F6%u4E0D%u5C55%u793A%u53D6%u6D88%u6309%u94AE%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eoverlay%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u663E%u793A%u906E%u7F69%u5C42%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Etrue%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eclose-on-click-overlay%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u5728%u70B9%u51FB%u8499%u5C42%u540E%u5173%u95ED%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Etrue%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Elazy-render%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u5728%u663E%u793A%u5F39%u5C42%u65F6%u624D%u6E32%u67D3%u8282%u70B9%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Etrue%3C/code%3E%3C/td%3E%0A%3Ctd%3E1.1.11%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eget-container%3C/td%3E%0A%3Ctd%3E%u6307%u5B9A%u6302%u8F7D%u7684%u8282%u70B9%uFF0C%u53EF%u4EE5%u4F20%u5165%u9009%u62E9%u5668%uFF0C%3Cbr%3E%u6216%u4E00%u4E2A%u8FD4%u56DE%u8282%u70B9%u7684%u51FD%u6570%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%20%7C%20%28%29%20%3D%26gt%3B%20HTMLElement%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Esafe-area-inset-bottom%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u5F00%u542F%20iPhone%20X%20%u5E95%u90E8%u5B89%u5168%u533A%u9002%u914D%uFF0C%u9700%u8981%u5728%20%3Ccode%3Eviewport%3C/code%3E%20meta%20%u6807%u7B7E%u4E2D%u8BBE%u7F6E%20%3Ccode%3Eviewport-fit%3Dcover%3C/code%3E%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%3E1.6.15%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A%3Ch3%3EEvent%3C/h3%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%3Eselect%3C/td%3E%0A%3Ctd%3E%u9009%u4E2D%u9009%u9879%u65F6%u89E6%u53D1%uFF0C%u7981%u7528%u6216%u52A0%u8F7D%u72B6%u6001%u4E0B%u4E0D%u4F1A%u89E6%u53D1%3C/td%3E%0A%3Ctd%3Eitem%3A%20%u9009%u9879%u5BF9%u5E94%u7684%u5BF9%u8C61%2C%20index%3A%20%u9009%u62E9%u5BF9%u5E94%u7684%u7D22%u5F15%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ecancel%3C/td%3E%0A%3Ctd%3E%u53D6%u6D88%u6309%u94AE%u70B9%u51FB%u65F6%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%3Eactions%3C/h3%3E%0A%3Cp%3E%3Ccode%3EAPI%3C/code%3E%u4E2D%u7684%3Ccode%3Eactions%3C/code%3E%u4E3A%u4E00%u4E2A%u5BF9%u8C61%u6570%u7EC4%uFF0C%u6570%u7EC4%u4E2D%u7684%u6BCF%u4E00%u4E2A%u5BF9%u8C61%u914D%u7F6E%u6BCF%u4E00%u5217%uFF0C%u6BCF%u4E00%u5217%u6709%u4EE5%u4E0B%3Ccode%3Ekey%3C/code%3E%uFF1A%3C/p%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3Ekey%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%3Ename%3C/td%3E%0A%3Ctd%3E%u6807%u9898%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Esubname%3C/td%3E%0A%3Ctd%3E%u4E8C%u7EA7%u6807%u9898%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3EclassName%3C/td%3E%0A%3Ctd%3E%u4E3A%u5BF9%u5E94%u5217%u6DFB%u52A0%u989D%u5916%u7684%20class%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eloading%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u4E3A%u52A0%u8F7D%u72B6%u6001%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Edisabled%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u4E3A%u7981%u7528%u72B6%u6001%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A")}},t=u(7),a=Object(t.a)(s,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}}]); |