Browse Source

fix(progress): change slot name

Drjingfubo 2 years ago
parent
commit
81a588a77a

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

@@ -138,7 +138,7 @@ export default create({
     },
     color: {
       type: String,
-      default: '#F9911B'
+      default: ''
     },
     background: {
       type: String,

+ 1 - 1
src/packages/__VUE/progress/demo.vue

@@ -69,7 +69,7 @@
           stroke-width="15"
           status="icon"
         >
-          <template #iconName>
+          <template #icon-name>
             <Issue color="red" width="15px" height="15px"></Issue>
           </template>
         </nut-progress>

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

@@ -126,7 +126,7 @@ app.use(Progress);
           stroke-width="15"
           status="icon"
         >
-          <template #iconName>
+          <template #icon-name>
             <Issue color="red" width="15px" height="15px"></Issue>
           </template>
         </nut-progress>

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

@@ -115,7 +115,7 @@ app.use(Progress);
           stroke-width="15"
           status="icon"
         >
-          <template #iconName>
+          <template #icon-name>
             <Issue color="red" width="15px" height="15px"></Issue>
           </template>
         </nut-progress>

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

@@ -114,7 +114,7 @@ app.use(Progress);
           stroke-width="15"
           status="icon"
         >
-          <template #iconName>
+          <template #icon-name>
             <Issue color="red" width="15px" height="15px"></Issue>
           </template>
         </nut-progress>

+ 1 - 1
src/packages/__VUE/progress/index.taro.vue

@@ -38,7 +38,7 @@
         <span :style="textStyle">{{ percentage }}{{ isShowPercentage ? '%' : '' }} </span>
       </template>
       <template v-else-if="status == 'icon'">
-        <slot name="iconName">
+        <slot name="icon-name">
           <Checked width="15px" height="15px" color="#439422"></Checked>
         </slot>
       </template>

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

@@ -38,7 +38,7 @@
         <span :style="textStyle">{{ percentage }}{{ isShowPercentage ? '%' : '' }}</span>
       </template>
       <template v-else-if="status == 'icon'">
-        <slot name="iconName">
+        <slot name="icon-name">
           <Checked width="15px" height="15px" color="#439422"></Checked>
         </slot>
       </template>

+ 1 - 1
src/sites/mobile-taro/vue/src/exhibition/pages/progress/index.vue

@@ -70,7 +70,7 @@
           stroke-width="15"
           status="icon"
         >
-          <template #iconName>
+          <template #icon-name>
             <Issue color="red" width="15px" height="15px"></Issue>
           </template>
         </nut-progress>