Skip to content

Commit

Permalink
message-box 返回实例
Browse files Browse the repository at this point in the history
  • Loading branch information
wf123537200 committed Jan 18, 2017
1 parent 75f3d86 commit 473e9a5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion demo/tips/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
showTipsWay2() {
window.Tips.init('', 'info', 'lalalala');
window.Tips.init('', 'info', 'lalalala', 20000);
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/split.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/split.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vucc",
"version": "2.0.10",
"version": "2.0.11",
"description": "vue 前端组件库",
"main": "dist",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/datepicker/dateUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DateX {

// 小于10的日期补0
appendZero(str) {
const s = parseInt(str);
const s = parseInt(str, 10);
if(isNaN(s)) return console.error('传入字符串数据非法');

return s < 10 ? '0' + s : s;
Expand Down
5 changes: 4 additions & 1 deletion src/components/message-box/wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MessageBox.init = function(obj) {

document.body.appendChild(tmpDiv);

this.messageBox = new Vue({
return this.messageBox = new Vue({
el: tmpDiv,
template: `<v-message-box
:id="id" :type="type"
Expand All @@ -38,6 +38,9 @@ MessageBox.init = function(obj) {
onCancelWrap() {
this.onCancel && this.onCancel();
this.$el.remove();
},
hide() {
this.$el.remove();
}
},
components: {
Expand Down

0 comments on commit 473e9a5

Please sign in to comment.