123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- const app = getApp()
- import {
- throttle,
- getWaterDrop
- } from '../../utils/index/index'
- Component({
-
- props: {
-
- visible: {
- type: Boolean,
- value: false
- },
-
- content: {
- type: String,
- value: ''
- },
-
- showCancelBtn: true,
-
- showOkBtn: true,
-
- cancelText: '取消',
-
- okText: '确认',
-
- onCancel: {
- type: Function,
- value: () => {}
- },
-
- onOk: {
- type: Function,
- value: () => {}
- },
- },
-
- data: {
- },
- didMount() {
- },
-
- methods: {
- cancel: throttle( function () {
- setTimeout(()=>{
- this.props.onCancel();
- }, 100)
- }, 1000),
- confirm: throttle( function () {
- setTimeout(()=>{
- this.props.onOk();
- }, 100)
- }, 1000),
- },
- observers: {}
- })
|