|
@@ -11,7 +11,7 @@
|
|
@cell-dblclick="tableCellDblClick"
|
|
@cell-dblclick="tableCellDblClick"
|
|
@cell-contextmenu="tableCellContextmenu"
|
|
@cell-contextmenu="tableCellContextmenu"
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
- :max-height="maXheight"
|
|
|
|
|
|
+
|
|
:cell-style="{ textAlign: 'center' }"
|
|
:cell-style="{ textAlign: 'center' }"
|
|
:header-cell-style="{ 'text-align': 'center' }" >
|
|
:header-cell-style="{ 'text-align': 'center' }" >
|
|
<el-table-column type="selection" width="50" v-if="isCheck"/>
|
|
<el-table-column type="selection" width="50" v-if="isCheck"/>
|
|
@@ -62,10 +62,7 @@ const props = defineProps({
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: false
|
|
default: false
|
|
},
|
|
},
|
|
- maXheight:{
|
|
|
|
- type:Number,
|
|
|
|
- default:700
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
//初始变量
|
|
//初始变量
|
|
@@ -74,7 +71,7 @@ const columns = ref(props.column)
|
|
const tableData = ref(props.datas)
|
|
const tableData = ref(props.datas)
|
|
const isLoading = ref(props.loading)
|
|
const isLoading = ref(props.loading)
|
|
const isBorder = ref(props.border)
|
|
const isBorder = ref(props.border)
|
|
-const maXheight= ref(props.maXheight)
|
|
|
|
|
|
+
|
|
//监听
|
|
//监听
|
|
watch(() => [
|
|
watch(() => [
|
|
props.datas,
|
|
props.datas,
|