From 2600e6756f1c156fd8f598741aaadc6a5536472a 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: Mon, 31 Oct 2022 20:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(table):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=91=E8=A1=A8=E6=A0=BC=E4=B8=8E=E5=AD=97=E6=AE=B5=E6=96=87?= =?UTF-8?q?=E5=AD=97=E7=9C=81=E7=95=A5=E5=90=8C=E6=97=B6=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E6=97=B6=E5=8D=95=E5=85=83=E6=A0=BC=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/table/index.less | 4 ++++ .../document-component/src/document/zh-CN/components/table.md | 3 ++- .../document-component/src/document/zh-CN/guide/introduce.md | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package/component/src/component/table/index.less b/package/component/src/component/table/index.less index 010d1609..80cdf38e 100644 --- a/package/component/src/component/table/index.less +++ b/package/component/src/component/table/index.less @@ -366,6 +366,10 @@ box-sizing: border-box; } +.layui-table-cell .lay-tooltip-content { + display: inline; +} + .layui-table-cell .layui-form-checkbox[lay-skin="primary"] { top: -1px; padding: 0; diff --git a/package/document-component/src/document/zh-CN/components/table.md b/package/document-component/src/document/zh-CN/components/table.md index 2108d2c7..5eaf004f 100644 --- a/package/document-component/src/document/zh-CN/components/table.md +++ b/package/document-component/src/document/zh-CN/components/table.md @@ -298,7 +298,8 @@ export default { { title:"姓名", width:"200px", - key:"name" + key:"name", + ellipsisTooltip: true, },{ title:"成绩", width: "180px", diff --git a/package/document-component/src/document/zh-CN/guide/introduce.md b/package/document-component/src/document/zh-CN/guide/introduce.md index d690dd3b..393a6f70 100644 --- a/package/document-component/src/document/zh-CN/guide/introduce.md +++ b/package/document-component/src/document/zh-CN/guide/introduce.md @@ -1,3 +1,6 @@ +::: title 基本介绍 +::: +