index.vue 300 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 <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>