配置引导页完成一部分

This commit is contained in:
aixianling
2022-07-08 18:01:58 +08:00
parent d12705b4f6
commit 86451a245f
9 changed files with 531 additions and 237 deletions

View File

@@ -0,0 +1,31 @@
<template>
<section class="AiEditBtn">
<el-button v-if="!edit" type="text" @click="handleOper('edit')">编辑</el-button>
<template v-else>
<el-button type="text" @click="handleOper('submit')">保存</el-button>
<el-button type="text" @click="handleOper('cancel')">取消</el-button>
</template>
</section>
</template>
<script>
export default {
name: "AiEditBtn",
data() {
return {
edit: false
}
},
methods: {
handleOper(event) {
this.edit = !this.edit
this.$emit(event)
}
}
}
</script>
<style lang="scss" scoped>
.AiEditBtn {
}
</style>