test: update table snap

pull/4671/head
tangjinzhou 3 years ago
parent a50684cb31
commit 7bb296b3a5

@ -37,10 +37,10 @@ exports[`renders ./components/table/demo/basic.vue correctly 1`] = `
<!----><a>John Brown</a> <!----><a>John Brown</a>
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!---->John Brown <!---->32
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!---->John Brown <!---->New York No. 1 Lake Park
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!----><span><span class="ant-tag ant-tag-green">NICE<!----></span><span class="ant-tag ant-tag-geekblue">DEVELOPER<!----></span></span> <!----><span><span class="ant-tag ant-tag-green">NICE<!----></span><span class="ant-tag ant-tag-geekblue">DEVELOPER<!----></span></span>
@ -55,10 +55,10 @@ exports[`renders ./components/table/demo/basic.vue correctly 1`] = `
<!----><a>Jim Green</a> <!----><a>Jim Green</a>
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!---->Jim Green <!---->42
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!---->Jim Green <!---->London No. 1 Lake Park
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!----><span><span class="ant-tag ant-tag-volcano">LOSER<!----></span></span> <!----><span><span class="ant-tag ant-tag-volcano">LOSER<!----></span></span>
@ -73,10 +73,10 @@ exports[`renders ./components/table/demo/basic.vue correctly 1`] = `
<!----><a>Joe Black</a> <!----><a>Joe Black</a>
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!---->Joe Black <!---->32
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!---->Joe Black <!---->Sidney No. 1 Lake Park
</td> </td>
<td class="ant-table-cell"> <td class="ant-table-cell">
<!----><span><span class="ant-tag ant-tag-green">COOL<!----></span><span class="ant-tag ant-tag-geekblue">TEACHER<!----></span></span> <!----><span><span class="ant-tag ant-tag-green">COOL<!----></span><span class="ant-tag ant-tag-geekblue">TEACHER<!----></span></span>

@ -162,7 +162,7 @@ export default defineComponent<CellProps>({
index, index,
column: column.__originColumn__, column: column.__originColumn__,
}, },
() => [childNode], () => [childNode === undefined ? value : childNode],
); );
childNode = flattenChildren(child as any); childNode = flattenChildren(child as any);
} }

Loading…
Cancel
Save