From 0990f8a7e3019f9513669876f084a95f00db2093 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: Fri, 8 Apr 2022 06:19:28 +0800 Subject: [PATCH] fix: tab style --- package/component/src/component/container/index.vue | 2 +- package/component/src/component/tab/index.less | 5 ++++- .../document/src/document/zh-CN/components/container.md | 8 +++----- package/document/src/document/zh-CN/guide/changelog.md | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package/component/src/component/container/index.vue b/package/component/src/component/container/index.vue index 928651c2..4b88e7b1 100644 --- a/package/component/src/component/container/index.vue +++ b/package/component/src/component/container/index.vue @@ -9,7 +9,7 @@ import { computed } from "vue"; import "./index.less"; export interface LayContainerProps { - fluid?: boolean | string; + fluid?: boolean | string; } const props = withDefaults(defineProps(), { diff --git a/package/component/src/component/tab/index.less b/package/component/src/component/tab/index.less index 2d81f5cc..ff0d111d 100644 --- a/package/component/src/component/tab/index.less +++ b/package/component/src/component/tab/index.less @@ -22,6 +22,9 @@ .layui-tab-head { display: inline-block; +} + +.layui-tab-card .layui-tab-head { background-color: @global-neutral-color-1; } @@ -287,4 +290,4 @@ padding: 0 10px; display: inline-block; vertical-align: top; -} +} \ No newline at end of file diff --git a/package/document/src/document/zh-CN/components/container.md b/package/document/src/document/zh-CN/components/container.md index c4ba4e65..413b3dff 100644 --- a/package/document/src/document/zh-CN/components/container.md +++ b/package/document/src/document/zh-CN/components/container.md @@ -79,13 +79,11 @@ export default { ::: table -| 属性 | 描述 | 可选值 | -| ----- | ------ | -------------- | -| fluid | 流模式 | `true` `false` | +| 属性 | 描述 | 类型 | 默认值 | 可选值 | +| ----- | ------ | -------------- |------ | -------------- | +| fluid | 流模式 | `boolean` `string` | `flase` | `true` `false` | ::: - - ::: previousNext container ::: \ No newline at end of file diff --git a/package/document/src/document/zh-CN/guide/changelog.md b/package/document/src/document/zh-CN/guide/changelog.md index aaf09b7a..7f4aef87 100644 --- a/package/document/src/document/zh-CN/guide/changelog.md +++ b/package/document/src/document/zh-CN/guide/changelog.md @@ -18,6 +18,7 @@