微调样子

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

View File

@@ -1,6 +1,7 @@
<template>
<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'
:modal='false'>
<div class='table-box' :style="{height:(height-64)+'px',maxHeight:(height-64)+'px',overflow:'hidden'}">
@@ -50,8 +51,8 @@ const props = defineProps({
default: 800,
},
height: {
type: String,
default: '744px',
type: Number,
default: 744,
},
})