vant/docs/examples/search.vue
2017-03-01 15:40:08 +08:00

23 lines
395 B
Vue

<script>
export default {
methods: {
goSearch(value) {
alert(value)
}
}
};
</script>
<template>
<div class="page-search">
<h1 class="page-title">Search</h1>
<h2 class="page-sub-title">基础用法</h2>
<zan-search placeholder="商品名称" @search="goSearch">
</zan-search>
</div>
</template>
<style>
.page-badge {
padding: 0 15px;
}
</style>