ソースを参照

fix: searchbar 修复

Ymm0008 3 年 前
コミット
cfd9c833ca

+ 1 - 1
src/packages/__VUE/searchbar/doc.en-US.md

@@ -184,7 +184,7 @@ export default {
 <template>
   <nut-searchbar v-model="searchValue">
     <template v-slot:leftout>
-      <Left @click="clickLeft" />
+      <Left />
     </template>
     <template v-slot:leftin>
       <Search2 />

+ 1 - 1
src/packages/__VUE/searchbar/doc.md

@@ -182,7 +182,7 @@ export default {
 <template>
   <nut-searchbar v-model="searchValue">
     <template v-slot:leftout>
-      <Left @click="clickLeft" />
+      <Left />
     </template>
     <template v-slot:leftin>
       <Search2 />

+ 1 - 1
src/packages/__VUE/searchbar/doc.taro.md

@@ -179,7 +179,7 @@ app.use(Searchbar);
 <template>
   <nut-searchbar v-model="searchValue">
     <template v-slot:leftout>
-      <Left @click="clickLeft" />
+      <Left />
     </template>
     <template v-slot:leftin>
       <Search2 />

+ 1 - 1
src/packages/__VUE/searchbar/index.scss

@@ -58,7 +58,7 @@
       > taro-form-core {
         width: 100%;
       }
-      form {
+      .nut-searchbar__input-form {
         // display: flex;
         // align-items: center;
         // width: 100%;

+ 1 - 1
src/packages/__VUE/searchbar/index.vue

@@ -13,7 +13,7 @@
         <slot name="leftin"></slot>
       </view>
       <view :class="['nut-searchbar__input-inner', $slots.rightin && 'nut-searchbar__input-inner-absolute']">
-        <form action="#" @submit.prevent="handleSubmit">
+        <form class="nut-searchbar__input-form" action="#" @submit.prevent="handleSubmit">
           <input
             ref="inputsearch"
             :class="['nut-searchbar__input-bar', clearable && 'nut-searchbar__input-bar_clear']"

+ 1 - 1
src/sites/mobile-taro/vue/src/dentry/pages/searchbar/index.vue

@@ -37,7 +37,7 @@
     <h2>显示全部 icon</h2>
     <nut-searchbar v-model="searchValue5">
       <template v-slot:leftout>
-        <Left @click="clickLeft" />
+        <Left />
       </template>
       <template v-slot:leftin>
         <Search2 />