From 9203a43facf5fd967aaafcfc41541a9f4565869a Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Thu, 07 Jan 2021 11:29:28 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/jyyforjava/hive-app --- hive-app/components/searchBar/index.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/hive-app/components/searchBar/index.vue b/hive-app/components/searchBar/index.vue index 0bea1e8..e825f72 100644 --- a/hive-app/components/searchBar/index.vue +++ b/hive-app/components/searchBar/index.vue @@ -1,17 +1,30 @@ <template> <view class="search-group"> <text class="iconfont iconsousuo"></text> - <input class="uni-input" confirm-type="search" placeholder="请输入会员姓名、手机号、编号查询" placeholder-class="placeholder" /> + <input class="uni-input" :focus="focus" confirm-type="search" @confirm="confirm" :placeholder="placeholder" placeholder-class="placeholder" /> </view> </template> <script> export default { + props:{ + focus: { + default: false + }, + placeholder: { + default: '输入会员姓名、手机号、会员编号、拼音' + } + }, data() { return { - }; + }, + methods:{ + confirm(e){ + this.$emit('confirm', e.detail.value); + } } + } </script> -- Gitblit v1.9.1