mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-23 18:00:33 +08:00
parent
7363194b1e
commit
07481b5ddf
@ -1,9 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
// 标题
|
// 标题
|
||||||
title: '',
|
title: '',
|
||||||
// 自定义 btn 列表
|
|
||||||
// { type: 按钮类型,回调时以此作为区分依据,text: 按钮文案, color: 按钮文字颜色 }
|
|
||||||
buttons: [],
|
|
||||||
// 内容
|
// 内容
|
||||||
message: ' ',
|
message: ' ',
|
||||||
// 选择节点
|
// 选择节点
|
||||||
|
@ -4,6 +4,9 @@ const defaultData = require('./data');
|
|||||||
// pageCtx 页面 page 上下文
|
// pageCtx 页面 page 上下文
|
||||||
function Dialog(options, pageCtx) {
|
function Dialog(options, pageCtx) {
|
||||||
const parsedOptions = {
|
const parsedOptions = {
|
||||||
|
// 自定义 btn 列表
|
||||||
|
// { type: 按钮类型,回调时以此作为区分依据,text: 按钮文案, color: 按钮文字颜色 }
|
||||||
|
buttons: [],
|
||||||
...defaultData,
|
...defaultData,
|
||||||
...options
|
...options
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user