From 87d0c5cd333b115c372b47d14b6cc907f55eb103 Mon Sep 17 00:00:00 2001 From: Timi Date: Thu, 12 Nov 2026 01:24:46 +0800 Subject: [PATCH 1/2] fix: divider between panes on the third level The border-right lived on the master column, so once the master slid out of view there was nothing between the detail and the sub pane. Both master and detail now carry a permanent transparent 1px border and only the leftmost visible column colors it, which keeps the box width stable while the divider cross-fades between columns. --- src/components/master-detail/index.vue | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/master-detail/index.vue b/src/components/master-detail/index.vue index 0dc6ad9..7c96427 100644 --- a/src/components/master-detail/index.vue +++ b/src/components/master-detail/index.vue @@ -126,7 +126,17 @@ const rootStyle = computed(() => ({ -webkit-overflow-scrolling: touch; // 时长和曲线都来自 page-layout.less 的变量,列表页导航栏用同一组, // 两边必须同拍,否则列表跳、导航滑。 - transition: left @duration @easing, right @duration @easing, opacity .12s ease-out; + transition: + left @duration @easing, + right @duration @easing, + border-color .2s linear, + opacity .12s ease-out; + } + + // 常驻一条透明分隔线:谁在左谁负责显示,换人的时候不改变盒宽 + .master, + .detail { + border-right: 1px solid transparent; } // 未选中:主栏占满,另外两层收在右侧边界外 @@ -167,7 +177,7 @@ const rootStyle = computed(() => ({ .master { right: calc(100% - var(--tui-master-width)); - border-right: 1px solid var(--td-component-border, rgba(0, 0, 0, .08)); + border-right-color: var(--td-component-border, rgba(0, 0, 0, .08)); } .detail, @@ -188,10 +198,6 @@ const rootStyle = computed(() => ({ */ &.is-collapsed { - .master { - border-right-color: transparent; - } - .detail, .sub { overflow-y: hidden; @@ -207,14 +213,17 @@ const rootStyle = computed(() => ({ */ &.has-sub { + // 分隔线跟着换人:列表在视口外,主栏与右栏之间改由详情画 .master { left: calc(-1 * var(--tui-master-width)); right: 100%; + border-right-color: transparent; } .detail { left: 0; right: calc(100% - var(--tui-master-width)); + border-right-color: var(--td-component-border, rgba(0, 0, 0, .08)); } .sub { -- 2.54.0 From 214263f78f4634470c4169d5f7de27ba1918dbd5 Mon Sep 17 00:00:00 2001 From: Timi Date: Thu, 12 Nov 2026 01:27:02 +0800 Subject: [PATCH 2/2] v1.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b7c1f8..1b8d4c7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "module": "./dist/timi-tdesign-mobile.mjs", "style": "./dist/timi-tdesign-mobile.css", "private": false, - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "scripts": { "dev": "pnpm run -C docs dev", -- 2.54.0