From 99a62ada52a5670b7698a6bf25795cacdb842fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Tue, 22 Nov 2022 11:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(table):=20=E4=BF=AE=E5=A4=8D=20col?= =?UTF-8?q?umn=20=E9=85=8D=E7=BD=AE=20align=20=E5=B1=9E=E6=80=A7=E5=A4=B1?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/select/index.vue | 2 +- package/component/src/component/tab/index.vue | 8 ++++++-- package/component/src/component/table/TableRow.vue | 4 ++-- .../src/document/zh-CN/components/table.md | 11 +++++++---- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/package/component/src/component/select/index.vue b/package/component/src/component/select/index.vue index 351008a3..76af9343 100644 --- a/package/component/src/component/select/index.vue +++ b/package/component/src/component/select/index.vue @@ -18,7 +18,7 @@ import { watch, onUnmounted, StyleValue, -Fragment, + Fragment, } from "vue"; import { LayIcon } from "@layui/icons-vue"; import LayInput from "../input/index.vue"; diff --git a/package/component/src/component/tab/index.vue b/package/component/src/component/tab/index.vue index e28f2149..a09b7c39 100644 --- a/package/component/src/component/tab/index.vue +++ b/package/component/src/component/tab/index.vue @@ -291,10 +291,14 @@ const renderTabTitle = (attrs: Record) => { useResizeObserver(navRef, update); -watch(tabMap, () => { +watch( + tabMap, + () => { childrens.value = []; setItemInstanceBySlot((slot.default && slot.default()) as VNode[]); -}, {immediate: true }); + }, + { immediate: true } +); watch( () => [ diff --git a/package/component/src/component/table/TableRow.vue b/package/component/src/component/table/TableRow.vue index 4b5f5049..cd04558e 100644 --- a/package/component/src/component/table/TableRow.vue +++ b/package/component/src/component/table/TableRow.vue @@ -486,7 +486,7 @@ const radioProps = props.getRadioProps(props.data, props.index); column.fixed ? `layui-table-fixed-${column.fixed}` : '', ]" > -
+
-
+
- +