Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 570 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 570 Bytes

Submit

Overview

提交按钮,继承自按钮组件。

是否全局组件:否。

Usage

<submit type="primary" @submit="onSubmit" v-ref:submit>保存</submit>
<submit type="primary" disabled>不可点击的提交按钮</submit>
export default {
    methods: {
        onSubmit() {
            this.$Toast('正在提交数据...');
            setTimeout(() => {
                this.$refs.submit.done();
            }, 5000);
        }
    }
}

Methods

done

提交结束时必需手动执行此方法。