update:预览自定义宽度

This commit is contained in:
2025-11-17 19:29:36 +08:00
parent 53ecfa25c6
commit 40ff4ef7a8
2 changed files with 6 additions and 4 deletions

View File

@@ -29,8 +29,8 @@ const USER_ID = Cookies.get('cid_user_id');
const TENANT_ID = Cookies.get('cid_tenant_id');
const TOKEN = Cookies.get('cid_token');
bus.$on('APPROVAL_PREVIEW_LOADED', () => {
emit('load');
bus.$on('APPROVAL_PREVIEW_LOADED', (width: any) => {
emit('load', width);
});
interface Props {

View File

@@ -60,7 +60,7 @@
<pagination @current-change="currentChangeHandle" @size-change="sizeChangeHandle" v-bind="state.pagination"></pagination>
<!-- 右侧抽屉-->
<el-drawer v-model="rightDrawerVisible" direction="rtl" :size="processRreview ? '80%' : '400px'">
<el-drawer v-model="rightDrawerVisible" direction="rtl" :size="processRreview ? processRreviewWidth : '400px'">
<template #header>
<h3>{{ currentData?.processName }}</h3>
</template>
@@ -122,6 +122,7 @@ const loading = ref(false);
const queryRef = ref();
const processInstanceId = ref('');
const processRreview = ref(false);
const processRreviewWidth = ref(0)
const currentData = ref();
const state: BasicTableProps = reactive<BasicTableProps>({
@@ -206,7 +207,8 @@ const formValue = computed(() => {
return obj;
});
const previewLoadFun = () => {
const previewLoadFun = (width: any) => {
processRreview.value = true;
processRreviewWidth.value = width;
}
</script>