Commit 6d6ffece by Jaxon

feat(组件): 新增 VenusButton 基础组件

添加一个基于 Element UI 的按钮封装组件,支持加载状态和属性/事件透传
1 parent 375e6a1b
<template>
<el-button v-bind="$attrs"
:loading="loading"
v-on="$listeners">
<slot v-if="!loading"></slot>
</el-button>
</template>
<script>
export default {
name: "Btn",
props: {
loading: {
type: Boolean,
default: false,
},
},
};
</script>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!