From b9943cc264f0a4d19dc9504309aa708e76220496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Mon, 11 Oct 2021 00:57:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(table):=20=E6=96=B0=E5=A2=9E=20toolbar=20?= =?UTF-8?q?=E6=8F=92=E6=A7=BD,=20=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=B7=A5=E5=85=B7=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/zh-CN/components/table.md | 61 +++++++++++++++++++++++++++++ src/module/table/index.vue | 22 ++++++++--- 2 files changed, 77 insertions(+), 6 deletions(-) diff --git a/docs/docs/zh-CN/components/table.md b/docs/docs/zh-CN/components/table.md index 0c8bc194..db19b086 100644 --- a/docs/docs/zh-CN/components/table.md +++ b/docs/docs/zh-CN/components/table.md @@ -121,4 +121,65 @@ export default { } +::: + +::: demo + + + + + ::: \ No newline at end of file diff --git a/src/module/table/index.vue b/src/module/table/index.vue index 181894f7..36e897d3 100644 --- a/src/module/table/index.vue +++ b/src/module/table/index.vue @@ -5,6 +5,11 @@ class="layui-form layui-border-box layui-table-view layui-table-view-1" >
+
+
+ +
+
@@ -71,7 +76,6 @@ @@ -109,7 +112,14 @@
- +
@@ -130,7 +140,7 @@ const emit = defineEmits(['change']) const slot = useSlots() const slots = slot.default && slot.default() -const change = function(page: any){ - emit('change',page) +const change = function (page: any) { + emit('change', page) } \ No newline at end of file