Files
cmanager/src/views/tenant/mission/Table/saveButton.vue

38 lines
565 B
Vue
Raw Normal View History

2024-02-02 15:04:47 +08:00
<template>
<el-button
:plain="plain"
:icon="icon"
:size="size"
:type="type"
@click="click"
:disabled="disabled"
><slot></slot
></el-button>
</template>
<script>
export default {
props: {
plain: Boolean,
icon: String,
size: String,
type: String,
disabled: Boolean,
action: String,
data: {
type: Object,
default() {
return {};
},
},
},
methods: {
click() {
this.$emit("click", { row: this.row, action: this.action });
},
},
};
</script>
<style>
</style>