Skip to content

DoveAz/vue3-promise-btn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue3-promise-btn

参考 vue-promise-btn 支持element-plus、vant等库,理论上button组件内部用loading控制加载状态的都支持

安装
yarn add vue3-promise-btn
使用方法
import { promiseButton } from 'vue3-promise-btn'
const app = createApp(App)
app.use(promiseButton).use(ElementPlus).mount('#app')
<el-button v-promise-btn @click="a_function_that_must_returns_a_promise">提交</el-button>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published