From 7ae689ef9495232756023f0177683e80615e13aa Mon Sep 17 00:00:00 2001 From: zrlibs <jesting_rr@163.com> Date: 星期一, 17 三月 2025 15:45:37 +0800 Subject: [PATCH] 增加示例页、组件、样式 --- src/components/examples/data-table.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/components/examples/data-table.vue b/src/components/examples/data-table.vue index e72e957..b3238bf 100644 --- a/src/components/examples/data-table.vue +++ b/src/components/examples/data-table.vue @@ -5,11 +5,12 @@ :row-class-name="() => ['no-wrap', 'col-gap-none']" :columns="columns" :data="data" - :height="tableHeight - 70" + :height="paged ? tableHeight - 70 : tableHeight" border ref="refTable" ></Table> <Page + v-if="paged" class="text-center" :model-value="page" :total="total" @@ -34,6 +35,10 @@ name: "DataTable", props: { tableHeight: Number | String, + paged: { + type: Boolean, + default: () => true, + }, columns: { type: Array, default: () => [], @@ -127,6 +132,7 @@ <style lang="less" scoped> .data-table { + height: 100%; .text-center { text-align: center; } -- Gitblit v1.9.1