mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
c05710acd5
commit
7363194b1e
@ -1,12 +1,32 @@
|
|||||||
const defaultData = require('./data');
|
|
||||||
|
|
||||||
const _f = function () {};
|
const _f = function () {};
|
||||||
|
|
||||||
Component({
|
Component({
|
||||||
properties: {},
|
properties: {},
|
||||||
|
|
||||||
data: {
|
data: {
|
||||||
...defaultData,
|
// 标题
|
||||||
|
title: '',
|
||||||
|
// 自定义 btn 列表
|
||||||
|
// { type: 按钮类型,回调时以此作为区分依据,text: 按钮文案, color: 按钮文字颜色 }
|
||||||
|
buttons: [],
|
||||||
|
// 内容
|
||||||
|
message: ' ',
|
||||||
|
// 选择节点
|
||||||
|
selector: '#zan-dialog',
|
||||||
|
// 按钮是否展示为纵向
|
||||||
|
buttonsShowVertical: false,
|
||||||
|
// 是否展示确定
|
||||||
|
showConfirmButton: true,
|
||||||
|
// 确认按钮文案
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
// 确认按钮颜色
|
||||||
|
confirmButtonColor: '#3CC51F',
|
||||||
|
// 是否展示取消
|
||||||
|
showCancelButton: false,
|
||||||
|
// 取消按钮文案
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
// 取消按钮颜色
|
||||||
|
cancelButtonColor: '#333',
|
||||||
key: '',
|
key: '',
|
||||||
show: false,
|
show: false,
|
||||||
showCustomBtns: false,
|
showCustomBtns: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user