Blame view

src/ui/vant-weapp/overlay/index.js 435 Bytes
simon committed
1 2 3 4 5 6
import { VantComponent } from '../common/component';
VantComponent({
    props: {
        show: Boolean,
        customStyle: String,
        duration: {
simon committed
7
            type: null,
simon committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
            value: 300
        },
        zIndex: {
            type: Number,
            value: 1
        }
    },
    methods: {
        onClick() {
            this.$emit('click');
        },
        // for prevent touchmove
        noop() { }
    }
});