Frans 7 years ago
parent
commit
a16245dcd8

+ 1 - 1
src/packages/badge/badge.vue

@@ -15,7 +15,7 @@ export default {
   name: 'nut-badge',
   props: {
     value: {
-      type: String
+      type: [String,Number]
     },
     max: {
       type: Number,

+ 1 - 1
src/packages/cell/index.js

@@ -5,4 +5,4 @@ Cell.install = function(Vue) {
   Vue.component(Cell.name, Cell);
 };
 
-export default Cell
+export default Cell;

+ 2 - 2
src/packages/col/index.js

@@ -3,6 +3,6 @@ import './col.scss';
 
 Col.install = function(Vue) {
     Vue.component(Col.name, Col);
-}
+};
 
-export default Col
+export default Col;

+ 2 - 1
src/packages/flex/index.js

@@ -4,6 +4,7 @@ import './flex.scss';
 Row.install = function(Vue) {
   Vue.component(Flex.name, Row);
 };
+
 Col.install = function(Vue) {
   Vue.component(Flex.name, Col);
 };
@@ -11,4 +12,4 @@ Col.install = function(Vue) {
 export default {
 	Row,
 	Col
-}
+};

+ 1 - 1
src/packages/noticebar/demo.vue

@@ -5,7 +5,7 @@
       <h4>禁用滚动</h4>
       <nut-noticebar text="华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注!" :scrollable="false"></nut-noticebar>
       <h4>通告栏模式--关闭模式</h4>
-      <nut-noticebar mode="true" @click="hello">华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注!</nut-noticebar>
+      <nut-noticebar :mode="true" @click="hello">华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注!</nut-noticebar>
       <h4>通告栏模式--链接模式</h4>
       <nut-noticebar
         text="华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注!"

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

@@ -11,7 +11,7 @@
                      {{percentage}}%
                 </template>
                 <template v-else-if="status=='success' || 'wrong'">
-                    <icon :class="statusIcon"></icon>
+                    <i :class="statusIcon"></i>
                 </template>
             </slot>
         </div>

+ 2 - 2
src/packages/stepper/doc.md

@@ -56,10 +56,10 @@
 
 | 字段 | 说明 | 类型 | 默认值 
 | ----- | ----- | ----- | ----- 
-| init | 初始值 | Number | 1
+| init | 初始值 | Number, String | 1
 | min | 最小值 | Number, String | 0
 | max | 最大值 | Number, String | Infinity
-| step | 步长 | Number | 1
+| step | 步长 | Number, String | 1
 | readonly | 是否只读 | Boolean | false
 | transition | 是否需要过渡效果 | Boolean | true
 | simple | 是否显示简单版 | Boolean | true

+ 1 - 1
src/packages/stepper/stepper.vue

@@ -60,7 +60,7 @@ export default {
             default: Infinity,
         },
         step: {
-            type: Number,
+            type: [Number, String],
             default: 1
         },
         readonly: {

+ 0 - 2
src/packages/swiper/swiper.vue

@@ -305,9 +305,7 @@ export default {
             let requestAniFrame = this._requestAniFrame();
             let imgLazyLoadEl;
             requestAniFrame(()=>{
-                console.log(232323);
                 imgLazyLoadEl = this.swiperWrap.querySelectorAll('.nut-img-lazyload');
-                console.log(imgLazyLoadEl);
                 if(type == 1){
                     imgLazyLoadEl = this.slideEls[this.currentPage - 1].querySelectorAll('.nut-img-lazyload');
                 }