From e2328de0d6ed666686b11d5f264647ad74128ef9 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: Wed, 25 May 2022 22:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(all):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/src/component/avatar/index.less | 10 +++++----- .../component/src/component/avatar/index.vue | 17 ++++++++++++----- package/document/src/App.vue | 2 +- .../src/document/zh-CN/components/avatar.md | 1 + .../src/document/zh-CN/components/menu.md | 6 +++--- .../src/document/zh-CN/components/select.md | 3 ++- .../src/document/zh-CN/components/timeline.md | 2 +- .../src/document/zh-CN/components/upload.md | 4 ++-- .../src/document/zh-CN/guide/changelog.md | 1 + 9 files changed, 28 insertions(+), 18 deletions(-) diff --git a/package/component/src/component/avatar/index.less b/package/component/src/component/avatar/index.less index 73ea53de..63eaa67b 100644 --- a/package/component/src/component/avatar/index.less +++ b/package/component/src/component/avatar/index.less @@ -1,25 +1,25 @@ .layui-avatar { - box-sizing: border-box; margin: 0; padding: 0; - color: #000000d9; font-size: 14px; font-variant: tabular-nums; + font-feature-settings: tnum; + border-radius: var(--global-border-radius); + box-sizing: border-box; + color: #000000d9; line-height: 1.5715; list-style: none; - font-feature-settings: tnum; position: relative; display: inline-block; overflow: hidden; color: #fff; white-space: nowrap; text-align: center; - vertical-align: middle; background: #ccc; width: 32px; height: 32px; line-height: 32px; - border-radius: var(--global-border-radius); + vertical-align: middle; } .layui-avatar.layui-avatar-radius { diff --git a/package/component/src/component/avatar/index.vue b/package/component/src/component/avatar/index.vue index 86bcae86..3cc2f344 100644 --- a/package/component/src/component/avatar/index.vue +++ b/package/component/src/component/avatar/index.vue @@ -1,4 +1,5 @@ diff --git a/package/document/src/App.vue b/package/document/src/App.vue index 6aa264e7..9ea44441 100644 --- a/package/document/src/App.vue +++ b/package/document/src/App.vue @@ -7,4 +7,4 @@ import Vue from "vue"; export default { name: "App", }; - \ No newline at end of file + diff --git a/package/document/src/document/zh-CN/components/avatar.md b/package/document/src/document/zh-CN/components/avatar.md index 2499d087..35252a4b 100644 --- a/package/document/src/document/zh-CN/components/avatar.md +++ b/package/document/src/document/zh-CN/components/avatar.md @@ -132,6 +132,7 @@ export default { | src | 图源 | -- | | size | 尺寸 | `xs` `sm` `lg` | | radius | 圆形 | `true` `false` | +| alt | 描述图像的替换文本 | -- | ::: diff --git a/package/document/src/document/zh-CN/components/menu.md b/package/document/src/document/zh-CN/components/menu.md index 0e17433d..cf03ccc2 100644 --- a/package/document/src/document/zh-CN/components/menu.md +++ b/package/document/src/document/zh-CN/components/menu.md @@ -59,7 +59,6 @@ export default { ::: demo -