Merge pull request #312 from rex-zsd/dev

[bugfix] Dialog: 修复取消按钮只生效一次 (#295)
This commit is contained in:
rex 2018-06-20 10:13:11 +08:00 committed by GitHub
commit 70a854611c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
};