diff --git a/cutejava-front/src/views/components/advanced/CuteDragTable.vue b/cutejava-front/src/views/components/advanced/CuteDragTable.vue index f74f21cd..899bf21a 100644 --- a/cutejava-front/src/views/components/advanced/CuteDragTable.vue +++ b/cutejava-front/src/views/components/advanced/CuteDragTable.vue @@ -97,6 +97,11 @@ export default { total: 0 } } + }, + customHeight: { + type: Number, + required: false, + default: null } }, data() { @@ -119,6 +124,9 @@ export default { }, computed: { height() { + if (this.customHeight) { + return this.customHeight + } return document.documentElement.clientHeight - 300 } }, diff --git a/cutejava-front/src/views/componentsDemo/advanced/CuteDragTableDemo.vue b/cutejava-front/src/views/componentsDemo/advanced/CuteDragTableDemo.vue index ba252325..bb0d5ee4 100644 --- a/cutejava-front/src/views/componentsDemo/advanced/CuteDragTableDemo.vue +++ b/cutejava-front/src/views/componentsDemo/advanced/CuteDragTableDemo.vue @@ -21,6 +21,7 @@ primary-key="id" :page-props="curd.pageProps" show-select + :custom-height="300" >