二级弹出框尺寸调整
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<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'
|
||||
@@ -128,14 +128,15 @@
|
||||
defineExpose({ open })
|
||||
|
||||
|
||||
|
||||
const props = defineProps({
|
||||
width: {
|
||||
type: String,
|
||||
default: '800px',
|
||||
type: Number,
|
||||
default: 800,
|
||||
},
|
||||
height: {
|
||||
type: String,
|
||||
default: '744px',
|
||||
type: Number,
|
||||
default: 744,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -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'
|
||||
@@ -89,12 +89,12 @@
|
||||
|
||||
const props = defineProps({
|
||||
width: {
|
||||
type: String,
|
||||
default: '800px',
|
||||
type: Number,
|
||||
default: 800,
|
||||
},
|
||||
height: {
|
||||
type: String,
|
||||
default: '744px',
|
||||
type: Number,
|
||||
default: 744,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
<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'
|
||||
@@ -114,13 +114,14 @@
|
||||
|
||||
const props = defineProps({
|
||||
width: {
|
||||
type: String,
|
||||
default: '800px',
|
||||
type: Number,
|
||||
default: 800,
|
||||
},
|
||||
height: {
|
||||
type: String,
|
||||
default: '744px',
|
||||
type: Number,
|
||||
default: 744,
|
||||
},
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
@@ -151,7 +151,21 @@ const columns = reactive<ColumnProps<Plan.PlanBO>[]>([
|
||||
enum: testFatherPlanList,
|
||||
fieldNames: { label: 'label', value: 'id' },
|
||||
},
|
||||
{ prop: 'operation', label: '操作', fixed: 'right' ,width: 500, },
|
||||
// {
|
||||
// prop: 'create_Time',
|
||||
// label: '记录时间',
|
||||
// minWidth: 180,
|
||||
// search: {
|
||||
// span: 2,
|
||||
// render: () => {
|
||||
// return (
|
||||
// <div class='flx-flex-start'>
|
||||
// </div>
|
||||
// )
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
{ prop: 'operation', label: '操作', fixed: 'right' ,width: 450, },
|
||||
])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user