Commit ac978b88 authored by liqiuyu's avatar liqiuyu

feat(*): 我的已办模块开发

parent e364fa66
...@@ -10,17 +10,18 @@ ...@@ -10,17 +10,18 @@
<slot></slot> <slot></slot>
</div> </div>
<template #footer> <template #footer>
<div class="dialog-footer" v-if="btnGroup.length"> <div class="dialog-footer">
<div v-for="item in btnGroup" class="real-btn" :key="item.attrKey" @click="handleBtn(item.attrKey)"> <el-button @click="closeDialog">关闭</el-button>
{{ item.label }} <el-button type="primary" v-if="btnGroup.length" v-for="item in btnGroup" class="real-btn" :key="item.attrKey" @click="handleBtn(item.attrKey)">
</div> {{item.label}}
</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
</template> </template>
<script setup> <script setup>
import { defineProps, defineEmits, ref, reactive,watch,onMounted } from 'vue'; import { defineProps, defineEmits } from 'vue';
const props = defineProps({ const props = defineProps({
showDialog: { showDialog: {
...@@ -40,7 +41,7 @@ const props = defineProps({ ...@@ -40,7 +41,7 @@ const props = defineProps({
default: () => ([]) default: () => ([])
} }
}); });
const emit = defineEmits(['close:showDialog', 'handleBtn']); const emit = defineEmits(['close:showDialog', 'handleBtn','onSave']);
/** /**
* @Description: 弹框关闭回调 * @Description: 弹框关闭回调
* @author liqiuyu * @author liqiuyu
...@@ -56,8 +57,16 @@ const closeDialog = () => { ...@@ -56,8 +57,16 @@ const closeDialog = () => {
* @date 2025/5/21 * @date 2025/5/21
*/ */
const handleBtn = (key) => { const handleBtn = (key) => {
emit('handleBtn', key); emit('handleBtn',key);
}; };
/**
* @Description: 确认按钮方法回调
* @author liqiuyu
* @date 2025/5/22
*/
const handleSave = ()=> {
emit('onSave');
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment