Skip to content

fix(Table): fix nil ellipsis render bug #4215

fix(Table): fix nil ellipsis render bug

fix(Table): fix nil ellipsis render bug #4215

Triggered via pull request November 27, 2024 15:02
Status Failure
Total duration 4m 44s
Artifacts 2

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/table/_example/tree.tsx: test/snap/ssr.test.jsx#L30
Error: Snapshot `ssr snapshot test > ssr test src/table/_example/tree.tsx 1` mismatched Expected: ""<div style="gap:16px" class="t-space t-space-vertical"><div class="t-space-item"><div style="gap:16px" class="t-space t-space-horizontal"><div class="t-space-item"><button type="button" class="t-button t-button--theme-primary t-button--variant-base"><span class="t-button__text">添加根节点</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">重置/更新数据</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">展开/收起可见行</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">展开全部</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">获取全部树形结构</span></button></div></div></div><div class="t-space-item"><label tabindex="0" class="t-checkbox" style="vertical-align:middle"><input type="checkbox" class="t-checkbox__former" tabindex="-1"/><span class="t-checkbox__input"></span><span class="t-checkbox__label">自定义折叠/展开图标</span></label></div><div class="t-space-item"><div class="t-table t-table--row-handler-draggable" style="position:relative"><div class="t-table__content"><table class="t-table--layout-fixed"><colgroup><col style="width:46px"/><col style="width:80px"/><col style="width:180px"/><col style="width:100px"/><col style="width:340px"/></colgroup><thead class="t-table__header"><tr><th data-colkey="drag" class="t-table__th-drag t-align-center"><div class="t-table__th-cell-inner">排序</div></th><th data-colkey="id" class="t-table__th-id"><div class="t-table__th-cell-inner"><div class="t-table__ellipsis t-text-ellipsis">编号</div></div></th><th data-colkey="key" class="t-table__th-key"><div class="t-table__th-cell-inner"><div class="t-table__ellipsis t-text-ellipsis">名称</div></div></th><th data-colkey="platform" class="t-table__th-platform"><div class="t-table__th-cell-inner">签署方式</div></th><th data-colkey="operate" class="t-table__th-operate t-align-center"><div class="t-table__th-cell-inner">操作</div></th></tr></thead><tbody class="t-table__body"><tr data-id="申请人 0_1 号" class=""><td class="t-align-center t-table__handle-draggable"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-move"><path fill="currentColor" d="M6.75 2.25h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3z"></path></svg></td><td class="t-table-td--ellipsis"><div class="t-table__ellipsis t-text-ellipsis"></div></td><td class="t-table-td--ellipsis"><div class="t-table__ellipsis t-text-ellipsis"><div class="t-table__tree-col t-table__tree-col--inline">申请人 0_1 号</div></div></td><td class="">电子签署</td><td class="t-align-center"><div class="tdesign-table-demo__table-operations"><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">插入</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">前插</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">后插</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">更新</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">查看</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">删除</a></div></td></tr><tr data-id="申请人 1_1 号" class=""><td class="t-align-center t-table__handle-draggable"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-move"><path fill="currentColor" d="M6.75 2.25h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7
test/snap/csr.test.jsx > csr snapshot test > csr test src/table/_example/tree.tsx: test/snap/csr.test.jsx#L35
Error: Snapshot `csr snapshot test > csr test src/table/_example/tree.tsx 1` mismatched - Expected + Received @@ -230,11 +230,13 @@ <td class="t-table-td--ellipsis" > <div class="t-table__ellipsis t-text-ellipsis" - /> + > + 0 + </div> </td> <td class="t-table-td--ellipsis" > <div ❯ test/snap/csr.test.jsx:35:27
test/snap/ssr.test.jsx > ssr snapshot test > ssr test src/table/_example/tree.tsx: test/snap/ssr.test.jsx#L30
Error: Snapshot `ssr snapshot test > ssr test src/table/_example/tree.tsx 1` mismatched Expected: ""<div style="gap:16px" class="t-space t-space-vertical"><div class="t-space-item"><div style="gap:16px" class="t-space t-space-horizontal"><div class="t-space-item"><button type="button" class="t-button t-button--theme-primary t-button--variant-base"><span class="t-button__text">添加根节点</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">重置/更新数据</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">展开/收起可见行</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">展开全部</span></button></div><div class="t-space-item"><button style="margin-left:16px" type="button" class="t-button t-button--theme-default t-button--variant-base"><span class="t-button__text">获取全部树形结构</span></button></div></div></div><div class="t-space-item"><label tabindex="0" class="t-checkbox" style="vertical-align:middle"><input type="checkbox" class="t-checkbox__former" tabindex="-1"/><span class="t-checkbox__input"></span><span class="t-checkbox__label">自定义折叠/展开图标</span></label></div><div class="t-space-item"><div class="t-table t-table--row-handler-draggable" style="position:relative"><div class="t-table__content"><table class="t-table--layout-fixed"><colgroup><col style="width:46px"/><col style="width:80px"/><col style="width:180px"/><col style="width:100px"/><col style="width:340px"/></colgroup><thead class="t-table__header"><tr><th data-colkey="drag" class="t-table__th-drag t-align-center"><div class="t-table__th-cell-inner">排序</div></th><th data-colkey="id" class="t-table__th-id"><div class="t-table__th-cell-inner"><div class="t-table__ellipsis t-text-ellipsis">编号</div></div></th><th data-colkey="key" class="t-table__th-key"><div class="t-table__th-cell-inner"><div class="t-table__ellipsis t-text-ellipsis">名称</div></div></th><th data-colkey="platform" class="t-table__th-platform"><div class="t-table__th-cell-inner">签署方式</div></th><th data-colkey="operate" class="t-table__th-operate t-align-center"><div class="t-table__th-cell-inner">操作</div></th></tr></thead><tbody class="t-table__body"><tr data-id="申请人 0_1 号" class=""><td class="t-align-center t-table__handle-draggable"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-move"><path fill="currentColor" d="M6.75 2.25h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3z"></path></svg></td><td class="t-table-td--ellipsis"><div class="t-table__ellipsis t-text-ellipsis"></div></td><td class="t-table-td--ellipsis"><div class="t-table__ellipsis t-text-ellipsis"><div class="t-table__tree-col t-table__tree-col--inline">申请人 0_1 号</div></div></td><td class="">电子签署</td><td class="t-align-center"><div class="tdesign-table-demo__table-operations"><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">插入</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">前插</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">后插</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">更新</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">查看</a><a style="padding:0 8px" class="t-link t-link--theme-default t-link--hover-color">删除</a></div></td></tr><tr data-id="申请人 1_1 号" class=""><td class="t-align-center t-table__handle-draggable"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-move"><path fill="currentColor" d="M6.75 2.25h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7
call-test-build / test
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
_site Expired
3.43 MB
pr
139 Bytes