Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
chaishi committed May 29, 2022
1 parent fb510ce commit 63b6923
Showing 1 changed file with 187 additions and 0 deletions.
187 changes: 187 additions & 0 deletions test/ssr/__snapshots__/ssr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14346,6 +14346,193 @@ exports[`ssr snapshot test renders ./examples/table/demos/drag-sort-handler.vue
</div>
`;

exports[`ssr snapshot test renders ./examples/table/demos/editable-cell.vue correctly 1`] = `
<div>
<div class="t-table t-table--bordered" style="position:relative;">
<div class="t-table__content">
<div class="t-table__resize-line" style="display:none;left:10px;height:10px;"></div>
<table class="t-table--layout-fixed" style="width:;">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead class="t-table__header">
<tr>
<th data-colkey="firstName" class="t-table__th-firstName">
<div class="t-table__th-cell-inner">FirstName</div>
</th>
<th data-colkey="framework" class="t-table__th-framework">
<div class="t-table__th-cell-inner">Framework</div>
</th>
<th data-colkey="letters" class="t-table__th-letters">
<div class="t-table__th-cell-inner">Letters</div>
</th>
<th data-colkey="createTime" class="t-table__th-createTime">
<div class="t-table__th-cell-inner">Date</div>
</th>
</tr>
</thead>
<tbody class="t-table__body">
<tr>
<td>
<div class="t-table__cell--editable">Eric<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">Vue<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">A<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">2021-11-01<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
</tr>
<tr>
<td>
<div class="t-table__cell--editable">Gilberta<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">React<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">B、E<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">2021-12-01<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
</tr>
<tr>
<td>
<div class="t-table__cell--editable">Heriberto<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">Miniprogram<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">C<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">2022-01-01<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
</tr>
<tr>
<td>
<div class="t-table__cell--editable">Lazarus<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">Flutter<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">D、G、H<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">2022-02-01<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
</tr>
<tr>
<td>
<div class="t-table__cell--editable">Eric<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">Vue<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">A<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
<td>
<div class="t-table__cell--editable">2021-11-01<svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-edit-1" style="font-size:12px;">
<g fill="currentColor" opacity="0.9" fill-opacity="0.9">
<path d="M14.13 4.95L10.9 1.71l.7-.71 3.25 3.24-.7.71zM5.97 13.11l-3.61.72a.3.3 0 01-.35-.35l.72-3.61 7.3-7.3 3.24 3.24-7.3 7.3zm5.89-7.3l-1.83-1.83-6.38 6.38-.46 2.29 2.29-.46 6.38-6.38zM15 11h-4v1h4v-1zM15 13H8.5v1H15v-1z"></path>
</g>
</svg></div>
</td>
</tr>
</tbody>
<!---->
</table>
</div>
</div>
</div>
`;

exports[`ssr snapshot test renders ./examples/table/demos/empty.vue correctly 1`] = `
<div class="tdesign-demo-block-column-large">
<div class="t-table" style="position:relative;">
Expand Down

0 comments on commit 63b6923

Please sign in to comment.