1.0.8 • Published 2 years ago
taro-custom-ui-new v1.0.8
使用说明
安装
npm install taro-custom-ui-new -S
使用
引入组件
import {CustomPicker,CustomModal} from 'taro-custom-ui-new'
引入css
在css内 引入 @import 'taro-custom-ui-new/dist/style/index.scss'
CustomPicker组件参数
{
data: any[], //数据源
mode: string, //单列选择器、多列选择器
value: any[],
onChange: Function,
close: Function,
confirm: Function,
linkage?: Boolean //多列选择器是否联动
confirmText?: string //确认按钮文字
cancelText?: string //取消按钮文字
confirmTextColor?: string //确认按钮文字颜色
cancelTextColor?: string //取消按钮文字颜色
}
CustomModal组件参数
{
title: string,//标题
text?: string,//提示文案
showLoading?: boolean,//标题是否显示loading
confirmText?: string,//确认按钮文字
confirmColor?: string,//确认按钮颜色
cancelText?: string,//取消按钮文字
cancelColor?: string,//取消按钮颜色
customHeight?: boolean,//是否自定义高度
singleBtn?: boolean,//是否展示单个按钮
singleBtnText?: string//单个按钮文字
singleBtnTextColor?: string//单个按钮文字颜色
cancel?: any //取消事件
confirm?: any//确认事件
singleBtnCallback?: any //单个按钮点击事件
}