update:预览自定义宽度
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user