1.0.0 • Published 2 years ago

vue3-promise-btn v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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>
1.0.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago