popup manager fix

This commit is contained in:
cookfront
2017-03-10 16:51:08 +08:00
parent 66db79484d
commit 5e1d604c11
2 changed files with 37 additions and 16 deletions
+15 -1
View File
@@ -34,6 +34,7 @@
<script>
import MobileComputed from 'components/mobile-computed';
import Dialog from 'packages/dialog';
export default {
mixins: [MobileComputed],
@@ -55,6 +56,19 @@ export default {
}, 2000);
}
}
},
methods: {
showDialog() {
Dialog.confirm({
title: 'confirm标题',
message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。'
}).then((action) => {
console.log(action);
}, (error) => {
console.log(error);
});
}
}
};
</script>
@@ -69,7 +83,7 @@ export default {
<zan-button @click="popupShow1 = true;">从下方弹出popup</zan-button>
</div>
<zan-popup v-model="popupShow1" position="bottom" class="zan-popup-1">
更新成功
<zan-button @click="showDialog">弹出dialog</zan-button>
</zan-popup>
<div class="zan-row">