Browse Source

fix: review 问题修改

Ymm0008 3 years ago
parent
commit
14f6e0a59c

+ 3 - 3
src/packages/__VUE/noticebar/demo.vue

@@ -9,9 +9,9 @@
     <nut-noticebar :text="translate('text')" :scrollable="false"></nut-noticebar>
 
     <h2>{{ translate('mode') }}</h2>
-    <nut-noticebar :closeMode="true" @click="hello">{{ translate('text') }} </nut-noticebar>
+    <nut-noticebar :close-mode="true" @click="hello">{{ translate('text') }} </nut-noticebar>
     <p />
-    <nut-noticebar :closeMode="true" @click="hello">{{ translate('text') }} </nut-noticebar>
+    <nut-noticebar :close-mode="true" @click="hello">{{ translate('text') }} </nut-noticebar>
     <p />
     <nut-noticebar>
       <template v-slot:left-icon>
@@ -34,7 +34,7 @@
         :speed="10"
         :standTime="1000"
         @click="go"
-        :closeMode="true"
+        :close-mode="true"
       ></nut-noticebar>
     </div>
 

+ 3 - 5
src/packages/__VUE/noticebar/doc.en-US.md

@@ -11,8 +11,6 @@ Used to display a group of message notifications in a continuons loop.
 import { createApp } from 'vue';
 // vue
 import { Noticebar } from '@nutui/nutui';
-// taro
-import { Noticebar } from '@nutui/nutui-taro';
 
 const app = createApp();
 app.use(Noticebar);
@@ -64,12 +62,12 @@ Scrolling is automatically enabled when the content length of the notification b
 
 ```html
 <template>
-  <nut-noticebar :closeMode="true" :background="`rgba(251, 248, 220, 1)`" :color="`#D9500B`">
+  <nut-noticebar :close-mode="true" :background="`rgba(251, 248, 220, 1)`" :color="`#D9500B`">
     Nutui is a Jingdong style mobile terminal component library. It uses Vue language to write applications that can be used on H5 and applet platforms to help R & D personnel improve development efficiency and development experience.
   </nut-noticebar>
  
   <nut-noticebar
-      :closeMode="true"
+      :close-mode="true"
       right-icon="circle-close"
       :background="`rgba(251, 248, 220, 1)`"
       :color="`#D9500B`"
@@ -124,7 +122,7 @@ When text is long, you can enable multi-line display by setting the wrapable pro
       :speed='10' 
       :standTime='1000' 
       @click='go' 
-      :closeMode="true" 
+      :close-mode="true" 
       :background="`rgba(251, 248, 220, 1)`"
       :color="`#D9500B`">
   </nut-noticebar>

+ 3 - 3
src/packages/__VUE/noticebar/doc.md

@@ -66,12 +66,12 @@ app.use(Noticebar);
 
 ```html
 <template>
-  <nut-noticebar :closeMode="true" :background="`rgba(251, 248, 220, 1)`" :color="`#D9500B`">
+  <nut-noticebar :close-mode="true" :background="`rgba(251, 248, 220, 1)`" :color="`#D9500B`">
     NutUI 是京东风格的移动端组件库,使用 Vue 语言来编写可以在 H5,小程序平台上的应用,帮助研发人员提升开发效率,改善开发体验。
   </nut-noticebar>
  
   <nut-noticebar
-      :closeMode="true"
+      :close-mode="true"
       right-icon="circle-close"
       :background="`rgba(251, 248, 220, 1)`"
       :color="`#D9500B`"
@@ -131,7 +131,7 @@ app.use(Noticebar);
       :speed='10' 
       :standTime='1000' 
       @click='go' 
-      :closeMode="true" 
+      :close-mode="true" 
       :background="`rgba(251, 248, 220, 1)`"
       :color="`#D9500B`">
   </nut-noticebar>

+ 0 - 1
src/packages/__VUE/noticebar/index.taro.vue

@@ -65,7 +65,6 @@
         </template>
         <template v-else-if="closeMode">
           <CircleClose :color="color" size="11px" />
-          <!-- <nut-icon type="cross" :color="color" size="11px"></nut-icon> -->
         </template>
       </view>
     </view>

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

@@ -142,7 +142,6 @@ export default create({
     const state = reactive({
       active: false
     });
-    console.log(slots);
 
     const searchbarStyle = computed(() => {
       return {