微调样子

This commit is contained in:
2024-11-07 21:05:59 +08:00
parent ecb8404383
commit 760eb7c993
2 changed files with 10 additions and 9 deletions

View File

@@ -3,11 +3,11 @@
<el-dialog class='table-box' <el-dialog class='table-box'
v-model='dialogVisible' v-model='dialogVisible'
top='114px' top='114px'
:style="{height:height,maxHeight:height,overflow:'hidden'}" :style="{ height: height+'px', maxHeight: height+'px', overflow: 'hidden' }"
:title='title' :title='title'
:width='width' :width='width'
:modal='false'> :modal='false'>
<div class='table-box'> <div class='table-box' :style="{height:(height-64)+'px',maxHeight:(height-64)+'px',overflow:'hidden'}">
<ProTable <ProTable
ref='proTable' ref='proTable'
:columns='columns' :columns='columns'
@@ -112,12 +112,12 @@
const props = defineProps({ const props = defineProps({
width: { width: {
type: String, type: Number,
default: '800px', default: 800,
}, },
height: { height: {
type: String, type: Number,
default: '744px', default: 744,
}, },
}) })

View File

@@ -1,6 +1,7 @@
<template> <template>
<el-dialog class='table-box' v-model='dialogVisible' top='114px' <el-dialog class='table-box' v-model='dialogVisible' top='114px'
:style="{ height: height+'px', maxHeight: height+'px', overflow: 'hidden' }" title='字典数据' :style="{ height: height+'px', maxHeight: height+'px', overflow: 'hidden' }"
title='字典数据'
:width='width' :width='width'
:modal='false'> :modal='false'>
<div class='table-box' :style="{height:(height-64)+'px',maxHeight:(height-64)+'px',overflow:'hidden'}"> <div class='table-box' :style="{height:(height-64)+'px',maxHeight:(height-64)+'px',overflow:'hidden'}">
@@ -50,8 +51,8 @@ const props = defineProps({
default: 800, default: 800,
}, },
height: { height: {
type: String, type: Number,
default: '744px', default: 744,
}, },
}) })