Skip to content

Commit

Permalink
1、删除提示信息。
Browse files Browse the repository at this point in the history
2、修改issue模板。
  • Loading branch information
ydcss committed Mar 6, 2018
1 parent 726a168 commit 1fab244
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 57 deletions.
17 changes: 10 additions & 7 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#### 问题描述

尽可能详细地描述一下问题
请详细地描述问题,不要一句话带过,根据情况贴上使用代码

#### 产生环境

- **使用版本:**
- **设备:**(手机、平板移动设备)
- **演示地址:**
- **使用版本:-
- **引入方式:CDN | NPM
- **演示地址:-

#### 提示错误信息

1.
2. ...

#### 复现步骤
#### 代码区域

1.
2. ...
```html
<script>
alert('不会贴代码的看这里');
</script>
```
5 changes: 0 additions & 5 deletions src/components/actionsheet/src/actionsheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
methods: {
itemClick(item) {
if(item) {
// TODO 参数更名,即将删除
if (typeof item.method === 'function') {
item.method(item);
console.warn('From VUE-YDUI: The parameter "method" is destroyed, please use "callback".');
}
typeof item.callback === 'function' && item.callback(item);
!item.stay && this.close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/backtop/src/backtop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
this.scrollView.addEventListener('scroll', this.throttledCheck, false);
this.scrollView.addEventListener('resize', this.scrollHandler, false);
},
destroyed() {
beforeDestroy() {
this.scrollView.removeEventListener('scroll', this.throttledCheck, false);
this.scrollView.removeEventListener('resize', this.scrollHandler, false);
}
Expand Down
7 changes: 1 addition & 6 deletions src/components/cityselect/src/cityselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@
});
},
returnValue() {
// TODO 参数更名,即将删除
if (this.done) {
this.done(this.active);
console.warn('From VUE-YDUI: The parameter "done" is destroyed, please use "callback".');
}
this.callback && this.callback(this.active);
this.close();
},
Expand All @@ -249,7 +244,7 @@
mounted() {
this.init();
},
destroyed() {
beforeDestroy() {
this.close();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/countdown/src/countdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
this.run();
});
},
destroyed() {
beforeDestroy() {
clearInterval(this.timer);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/countup/src/countup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
mounted() {
this.init();
},
destroyed() {
beforeDestroy() {
this.instance = null;
}
};
Expand Down
7 changes: 1 addition & 6 deletions src/components/infinitescroll/src/infinitescroll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@
if (tagOffsetTop > offsetTop && tagOffsetTop - (distance + offsetTop) * this.num <= contentHeight && this.$el.offsetHeight > scrollviewHeight) {
this.isLoading = true;
// TODO 参数更名,即将删除
if (this.onInfinite) {
this.onInfinite();
console.warn('From VUE-YDUI: The parameter "onInfinite" is destroyed, please use "callback".');
}
this.callback && this.callback();
this.num++;
}
Expand All @@ -124,7 +119,7 @@
mounted() {
this.$nextTick(this.init);
},
destroyed() {
beforeDestroy() {
this.scrollview.removeEventListener('scroll', this.throttledCheck);
}
}
Expand Down
7 changes: 1 addition & 6 deletions src/components/keyboard/src/keyboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@
},
nums(val) {
if (val.length >= 6) {
// TODO 参数更名,即将删除
if (this.inputDone) {
this.inputDone(val);
console.warn('From VUE-YDUI: The parameter "inputDone" is destroyed, please use "callback".');
}
this.callback && this.callback(val);
}
}
Expand Down Expand Up @@ -161,7 +156,7 @@
this.$nextTick(this.init);
},
destroyed() {
beforeDestroy() {
this.close();
pageScroll.unlock();
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/lightbox/src/box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="yd-lightbox-img" @click="show = !show">
<slider autoplay="0" :show-pagination="false" :loop="false" :callback="changeIndex" :index="index">
<slider-item v-for="item, key in imgItems" :key="key">
<img :src="getImgSrc(item.$el)">
<img :src="getImgSrc(item.$el)" style="background-color: #000">
</slider-item>
</slider>
<div class="yd-lightbox-loading">
Expand Down
2 changes: 1 addition & 1 deletion src/components/mask/src/mask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
mounted() {
this.scrollView = getScrollview(this.$el);
},
destroyed() {
beforeDestroy() {
isIOS && removeClass(this.scrollView, 'g-fix-ios-overflow-scrolling-bug');
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/popup/src/popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
}
},
destroyed() {
beforeDestroy() {
preventScroll.unlock();
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/pullrefresh/src/pullrefresh.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,6 @@
},
triggerLoad() {
this.touches.loading = true;
// TODO 参数更名,即将删除
if (this.onInfinite) {
this.onInfinite();
console.warn('From VUE-YDUI: The parameter "onInfinite" is destroyed, please use "callback".');
}
this.callback && this.callback();
},
resetParams() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/rollnotice/src/rollnotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
clearInterval(this.timer);
}
},
destroyed() {
beforeDestroy() {
this.destroy();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/scrollnav/src/scrollnav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
mounted() {
this.$nextTick(this.init);
},
destroyed() {
beforeDestroy() {
this.scrollView.removeEventListener('scroll', this.scrollHandler);
window.removeEventListener('resize', this.scrollHandler);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/scrolltab/src/scrolltab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
mounted() {
this.init();
},
destroyed() {
beforeDestroy() {
this.scrollView.removeEventListener('scroll', this.scrollHandler);
window.removeEventListener('resize', this.scrollHandler);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/sendcode/src/sendcode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
if (this.initStr) this.tmpStr = this.initStr;
}
},
destroyed() {
beforeDestroy() {
!this.storageKey && this.stop();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/slider/src/slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
return !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch);
})();
},
destroyed() {
beforeDestroy() {
this.destroy();
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/tab/src/tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@
});
},
emitChange(label, tabkey) {
// TODO 参数更名,即将删除
if (this.change) {
this.change(label, tabkey);
console.warn('From VUE-YDUI: The parameter "change" is destroyed, please use "callback".');
}
this.callback && this.callback(label, tabkey);
},
changeHandler(uid, label, tabkey) {
Expand Down
5 changes: 0 additions & 5 deletions src/components/textarea/src/textarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@
watch: {
mlstr(val) {
this.$emit('input', val);
// TODO 参数更名,即将删除
if (this.change) {
this.change();
console.warn('From VUE-YDUI: The parameter "change" is destroyed, please use "callback".');
}
this.callback && this.change();
if (this.showCounter) this.num = val.length;
},
Expand Down
1 change: 0 additions & 1 deletion src/styles/components/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
position: fixed;
left: 0;
z-index: @base-zindex * 1500;
transition: opacity .15s;
opacity: 0;
pointer-events: none;
}
Expand Down

0 comments on commit 1fab244

Please sign in to comment.