<template>
|
<ProDialog :title="form.title" v-model="visible" destroy-on-close draggable bodyNoPaddingBottom>
|
<ProDialogTableWrapper :height="400">
|
<ProTableV2
|
v-bind="form.proTableProps"
|
:columns="form.column"
|
:operationBtns="form.operationBtns"
|
>
|
</ProTableV2>
|
</ProDialogTableWrapper>
|
<template #footer>
|
<span class="dialog-footer">
|
<el-button @click="emit('onConfirm')" type="primary">确 定</el-button>
|
</span>
|
</template>
|
</ProDialog>
|
</template>
|
|
<script setup lang="ts">
|
import { ProDialog, ProTableV2, ProDialogTableWrapper } from '@bole-core/components';
|
|
defineOptions({
|
name: 'CommonLogDialog',
|
});
|
|
type Form = {
|
title: string;
|
proTableProps: any;
|
column: any;
|
operationBtns: any;
|
};
|
|
const form = defineModel<Form>('form');
|
const visible = defineModel<boolean>('modelValue');
|
|
const emit = defineEmits<{
|
(e: 'onCancel'): void;
|
(e: 'onConfirm'): void;
|
}>();
|
</script>
|
|
<style lang="scss" scoped>
|
@use '@/style/common.scss' as *;
|
</style>
|