v1.1.1 #8
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"module": "./dist/timi-tdesign-mobile.mjs",
|
"module": "./dist/timi-tdesign-mobile.mjs",
|
||||||
"style": "./dist/timi-tdesign-mobile.css",
|
"style": "./dist/timi-tdesign-mobile.css",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "pnpm run -C docs dev",
|
"dev": "pnpm run -C docs dev",
|
||||||
|
|||||||
@@ -126,7 +126,17 @@ const rootStyle = computed<StyleValue>(() => ({
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
// 时长和曲线都来自 page-layout.less 的变量,列表页导航栏用同一组,
|
// 时长和曲线都来自 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<StyleValue>(() => ({
|
|||||||
|
|
||||||
.master {
|
.master {
|
||||||
right: calc(100% - var(--tui-master-width));
|
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,
|
.detail,
|
||||||
@@ -188,10 +198,6 @@ const rootStyle = computed<StyleValue>(() => ({
|
|||||||
*/
|
*/
|
||||||
&.is-collapsed {
|
&.is-collapsed {
|
||||||
|
|
||||||
.master {
|
|
||||||
border-right-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detail,
|
.detail,
|
||||||
.sub {
|
.sub {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
@@ -207,14 +213,17 @@ const rootStyle = computed<StyleValue>(() => ({
|
|||||||
*/
|
*/
|
||||||
&.has-sub {
|
&.has-sub {
|
||||||
|
|
||||||
|
// 分隔线跟着换人:列表在视口外,主栏与右栏之间改由详情画
|
||||||
.master {
|
.master {
|
||||||
left: calc(-1 * var(--tui-master-width));
|
left: calc(-1 * var(--tui-master-width));
|
||||||
right: 100%;
|
right: 100%;
|
||||||
|
border-right-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail {
|
.detail {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: calc(100% - var(--tui-master-width));
|
right: calc(100% - var(--tui-master-width));
|
||||||
|
border-right-color: var(--td-component-border, rgba(0, 0, 0, .08));
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub {
|
.sub {
|
||||||
|
|||||||
Reference in New Issue
Block a user