mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
1.4 KiB
JavaScript
1 line
1.4 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{192:function(e,t,a){"use strict";a.r(t);var l={i18n:{"zh-CN":{title2:"监听对应事件",title3:"高级用法",placeholder:"请输入搜索关键词",label:"地址"},"en-US":{title2:"Listen to Events",title3:"Advanced Usage",placeholder:"Placeholder",label:"Address"}},data:function(){return{value:""}},methods:{onSearch:function(){this.$toast(this.value)},onCancel:function(){this.$toast(this.$t("cancel"))}}},o=a(7),n=Object(o.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("demo-section",[a("demo-block",{attrs:{title:e.$t("basicUsage")}},[a("van-search",{attrs:{placeholder:e.$t("placeholder")},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),a("demo-block",{attrs:{title:e.$t("title2")}},[a("form",{attrs:{action:"/"}},[a("van-search",{attrs:{placeholder:e.$t("placeholder"),"show-action":""},on:{search:e.onSearch,cancel:e.onCancel},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)]),a("demo-block",{attrs:{title:e.$t("title3")}},[a("van-search",{attrs:{placeholder:e.$t("placeholder"),"show-action":"",shape:"round",label:e.$t("label")},on:{search:e.onSearch},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[a("div",{attrs:{slot:"action"},on:{click:e.onSearch},slot:"action"},[e._v("\n "+e._s(e.$t("search"))+"\n ")])])],1)],1)},[],!1,null,null,null);t.default=n.exports}}]); |