From bcfdefde007da31c962cfdff1bf9eeb2caecd348 Mon Sep 17 00:00:00 2001 From: dingyongya Date: Sat, 21 May 2022 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复table 布局问题 column 新增minWidth和ellipsisTooltip属性 ISSUES CLOSED: https://gitee.com/layui/layui-vue/issues/I58DWF --- package/component/src/component/rate/index.vue | 16 +++++++++------- .../src/document/zh-CN/components/table.md | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package/component/src/component/rate/index.vue b/package/component/src/component/rate/index.vue index bab70ba9..f3a39ac8 100644 --- a/package/component/src/component/rate/index.vue +++ b/package/component/src/component/rate/index.vue @@ -1,6 +1,6 @@ @@ -83,14 +83,12 @@ const action = function (index: number, event: any) { }; // 清除评分图标 -const showClearIcon = computed( - () => !props.readonly && props.hasClear -); -const clearRate = function(){ +const showClearIcon = computed(() => !props.readonly && props.hasClear); +const clearRate = function () { tempValue.value = 0; currentValue.value = 0; emit("clear", currentValue.value); -} +}; diff --git a/package/document/src/document/zh-CN/components/table.md b/package/document/src/document/zh-CN/components/table.md index f892b1d3..8b08b022 100644 --- a/package/document/src/document/zh-CN/components/table.md +++ b/package/document/src/document/zh-CN/components/table.md @@ -374,7 +374,7 @@ export default { | sort | 排序 | -- | -- | -- | | titleSlot | 标题插槽 | -- | -- | -- | | align | 对齐方式 | `string` | `left` | `left` `right` `center` | -| textOverflowTooltip | 当内容过长被隐藏时显示 tooltip | `boolean` | `false` | `true` `false` | +| ellipsisTooltip | 当内容过长被隐藏时显示 tooltip | `boolean` | `false` | `true` `false` | :::