fix(Dialog): 修复取消按钮只生效一次 @rex-zsd

#295
This commit is contained in:
rex-zsd 2018-06-19 21:11:24 +08:00
parent 7363194b1e
commit 07481b5ddf
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,6 @@
module.exports = {
// 标题
title: '',
// 自定义 btn 列表
// { type: 按钮类型回调时以此作为区分依据text: 按钮文案, color: 按钮文字颜色 }
buttons: [],
// 内容
message: ' ',
// 选择节点

View File

@ -4,6 +4,9 @@ const defaultData = require('./data');
// pageCtx 页面 page 上下文
function Dialog(options, pageCtx) {
const parsedOptions = {
// 自定义 btn 列表
// { type: 按钮类型回调时以此作为区分依据text: 按钮文案, color: 按钮文字颜色 }
buttons: [],
...defaultData,
...options
};