docs: 更新日志

This commit is contained in:
就眠儀式 2022-04-13 09:32:21 +08:00
parent 00ff42ada9
commit 85a00c2515
2 changed files with 15 additions and 3 deletions

View File

@ -254,7 +254,7 @@ onMounted(() => {
<th v-if="tableColumnKeys.includes(column.key)">
<div
class="layui-table-cell"
:style="{ width: column.width ,textAlign: column.align}"
:style="{ width: column.width, textAlign: column.align }"
>
<span>
<template v-if="column.titleSlot">
@ -315,7 +315,12 @@ onMounted(() => {
<!-- Column -->
<template v-if="column.customSlot">
<td class="layui-table-cell">
<div :style="{ width: column.width,textAlign: column.align }">
<div
:style="{
width: column.width,
textAlign: column.align,
}"
>
<slot :name="column.customSlot" :data="data"></slot>
</div>
</td>
@ -327,7 +332,12 @@ onMounted(() => {
:key="value"
>
<td v-if="column.key == key" class="layui-table-cell">
<div :style="{ width: column.width, textAlign: column.align }">
<div
:style="{
width: column.width,
textAlign: column.align,
}"
>
<span> {{ value }} </span>
</div>
</td>

View File

@ -18,6 +18,8 @@
<ul>
<li>[新增] empty 组件 image 插槽, 支持自定义 image。</li>
<li>[新增] badge 组件 ripple 属性, 开启水波纹动画, 仅适用于 type 为 dot 时。</li>
<li>[新增] table 组件 column 配置 align 属性, 支持 left center right 对齐方式。</li>
<li>[修复] table 组件 column 存在 1px 宽度误差。</li>
<li>[其他] ...</li>
</ul>
</li>