wupengfei
2 天以前 f35680f356168af8d4a3d5f34456e561af40fbba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<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>