🐛(component): table

修复table 布局问题
column 新增minWidth和ellipsisTooltip属性

ISSUES CLOSED: https://gitee.com/layui/layui-vue/issues/I58DWF
This commit is contained in:
dingyongya 2022-05-21 17:16:44 +08:00
parent 5b64cad09c
commit bcfdefde00
2 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<script lang="ts">
export default {
name: "LayRate"
name: "LayRate",
};
</script>
@ -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);
}
};
</script>
<template>
@ -131,7 +129,11 @@ const clearRate = function(){
</span>
</template>
<template v-if="showClearIcon">
<i :class="['layui-icon', 'layui-rate-clear-icon', clearIcon]" @click="clearRate" title="清除评分"></i>
<i
:class="['layui-icon', 'layui-rate-clear-icon', clearIcon]"
@click="clearRate"
title="清除评分"
></i>
</template>
</div>
</template>

View File

@ -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` |
:::