0.0.3 • Published 6 years ago
pps-pop v0.0.3
功能pop组件。
何时使用
npm install pps-pop -S
import PpsPop from 'pps-pop';
API
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
title | 弹窗标题 | string | '这里是标题' |
leftButton | 左侧按钮文字 | string | '取消' |
rightButton | 右侧按钮文字 | string | '确定' |
placeholder | 默认值 | string | '请输入' |
top | 弹窗距离顶部距离 | string | '100px' |
onCancel | 左侧按钮回掉函数 | function | '' |
onSure | 右侧按钮回掉函数 | function | '' |