From b7b74869c95ff2605f06ea59727ea31691011127 Mon Sep 17 00:00:00 2001 From: Zhu Zhonghua <zhonghua@qq.com> Date: 星期二, 08 四月 2025 23:48:29 +0800 Subject: [PATCH] 引入vxe table组件 --- src/components/HxlhTable/index.vue | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/HxlhTable/index.vue b/src/components/HxlhTable/index.vue index 8807336..b7ce6c7 100644 --- a/src/components/HxlhTable/index.vue +++ b/src/components/HxlhTable/index.vue @@ -94,7 +94,7 @@ page: { type: Object, default: function() { - return null + return null } }, checkboxConfig: { @@ -137,7 +137,7 @@ const tableForm = ref([]); -const height = ref(document.documentElement.clientHeight - 94.5 + "px;") +const height = ref(document.documentElement.clientHeight - 120 + "px;") // const url = computed(() => props.src) const emit = defineEmits(); @@ -198,15 +198,14 @@ if (!props.page) { return; } - console.log(props.page); + console.log(props.page.total); return { total: props.page.total, currentPage: props.page.current, pageSize: props.page.size, align: 'left', pageSizes: [10, 20, 50, 100, 500], - layouts: ['PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total'], - perfect: true + layouts: ['PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total'] }; }); @@ -217,7 +216,7 @@ </script> -<style lang="less"> +<style lang="scss"> .hxlh-table .vxe-toolbar .vxe-tools--operate { margin-top: -23px; } -- Gitblit v1.9.3