fix(Table): fix isFilterValueExist function deal null value error #4154
pull-request.yml
on: pull_request
call-test-build
/
check
3s
call-test-build
/
test
3m 32s
call-test-build
/
site
2m 18s
call-test-build
/
build
4m 22s
Annotations
4 errors
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/table/_example/filter-controlled.tsx:
test/snap/ssr.test.jsx#L30
Error: Snapshot `ssr snapshot test > ssr test src/table/_example/filter-controlled.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-align-center 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"><span>已选筛选条件:<!-- -->{"lastName":[]}</span></div></div></div><div class="t-space-item"><div class="t-table" style="position:relative"><div class="t-table__content"><table class="t-table--layout-fixed"><colgroup><col style="width:100px"/><col style="min-width:80px"/><col style="min-width:80px"/><col style="min-width:80px"/><col style="min-width:80px"/></colgroup><thead class="t-table__header"><tr><th data-colkey="applicant" class="t-table__th-applicant"><div class="t-table__th-cell-inner">申请人</div></th><th data-colkey="status" class="t-table__th-status"><div class="t-table__th-cell-inner"><div class="t-table__cell--filterable"><div class="t-table__cell--title"><div>申请状态</div><div class="t-table__filter-icon-wrap"><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th><th data-colkey="channel" class="t-table__th-channel"><div class="t-table__th-cell-inner"><div class="t-table__cell--filterable"><div class="t-table__cell--title"><div>签署方式</div><div class="t-table__filter-icon-wrap"><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th><th data-colkey="email" class="t-table__th-email"><div class="t-table__th-cell-inner"><div class="t-table__cell--filterable"><div class="t-table__cell--title"><div>Email</div><div class="t-table__filter-icon-wrap"><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th><th data-colkey="createTime" class="t-table__th-createTime"><div class="t-table__th-cell-inner"><div class="t-table__cell--sortable t-table__cell--filterable"><div class="t-table__cell--title"><div>Date</div><div class="t-table__filter-icon-wrap"><div class="t-table__cell--sort-trigger t-table__double-icons"><span class="t-icon-sort--default t-table__sort-icon t-table-sort-asc t-negative-rotate-180"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-caret-down-small" style="font-size:18px"><path fill="currentColor" d="M12 16.5l7-7H5l7 7z"></path></svg></span><span class="t-icon-sort--default t-table__sort-icon t-table-sort-desc"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-caret-down-small" style="font-size:18px"><path fill="currentColor" d="M12 16.5l7-7H5l7 7z"></path></svg></span></div><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th></tr></thead><tbody class="t-table__body"><tr class=""><td class="">贾明</td><td class=""><div class="t-tag t-tag--success t-tag--light-outline t-tag--round"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-check-circle-filled"><path fill="currentColor" d="M12 23a11 11 0 100-22 11 11 0 000 22zM7.5 10.59l3 3 6-6L17.91 9l-7.41 7.41L6.09 12l1.41-1.41z"></path></
|
test/snap/csr.test.jsx > csr snapshot test > csr test src/table/_example/filter-controlled.tsx:
test/snap/csr.test.jsx#L35
Error: Snapshot `csr snapshot test > csr test src/table/_example/filter-controlled.tsx 1` mismatched
- Expected
+ Received
@@ -288,10 +288,47 @@
</thead>
<tbody
class="t-table__body"
>
<tr
+ class="t-table__row--full t-table__first-full-row"
+ >
+ <td
+ colspan="5"
+ >
+ <div
+ class=""
+ >
+ <div
+ class="t-table__row-full-element"
+ >
+ <div
+ class="t-table__row-filter-inner"
+ >
+ <div
+ class="t-table__filter-result"
+ >
+ <span>
+ Search "". Find 5 items.
+ </span>
+ <button
+ class="t-button t-button--theme-primary t-button--variant-text"
+ type="button"
+ >
+ <span
+ class="t-button__text"
+ >
+ Clear
+ </span>
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </td>
+ </tr>
+ <tr
class=""
>
<td
class=""
>
❯ test/snap/csr.test.jsx:35:27
|
test/snap/ssr.test.jsx > ssr snapshot test > ssr test src/table/_example/filter-controlled.tsx:
test/snap/ssr.test.jsx#L30
Error: Snapshot `ssr snapshot test > ssr test src/table/_example/filter-controlled.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-align-center 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"><span>已选筛选条件:<!-- -->{"lastName":[]}</span></div></div></div><div class="t-space-item"><div class="t-table" style="position:relative"><div class="t-table__content"><table class="t-table--layout-fixed"><colgroup><col style="width:100px"/><col style="min-width:80px"/><col style="min-width:80px"/><col style="min-width:80px"/><col style="min-width:80px"/></colgroup><thead class="t-table__header"><tr><th data-colkey="applicant" class="t-table__th-applicant"><div class="t-table__th-cell-inner">申请人</div></th><th data-colkey="status" class="t-table__th-status"><div class="t-table__th-cell-inner"><div class="t-table__cell--filterable"><div class="t-table__cell--title"><div>申请状态</div><div class="t-table__filter-icon-wrap"><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th><th data-colkey="channel" class="t-table__th-channel"><div class="t-table__th-cell-inner"><div class="t-table__cell--filterable"><div class="t-table__cell--title"><div>签署方式</div><div class="t-table__filter-icon-wrap"><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th><th data-colkey="email" class="t-table__th-email"><div class="t-table__th-cell-inner"><div class="t-table__cell--filterable"><div class="t-table__cell--title"><div>Email</div><div class="t-table__filter-icon-wrap"><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th><th data-colkey="createTime" class="t-table__th-createTime"><div class="t-table__th-cell-inner"><div class="t-table__cell--sortable t-table__cell--filterable"><div class="t-table__cell--title"><div>Date</div><div class="t-table__filter-icon-wrap"><div class="t-table__cell--sort-trigger t-table__double-icons"><span class="t-icon-sort--default t-table__sort-icon t-table-sort-asc t-negative-rotate-180"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-caret-down-small" style="font-size:18px"><path fill="currentColor" d="M12 16.5l7-7H5l7 7z"></path></svg></span><span class="t-icon-sort--default t-table__sort-icon t-table-sort-desc"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-caret-down-small" style="font-size:18px"><path fill="currentColor" d="M12 16.5l7-7H5l7 7z"></path></svg></span></div><div class="t-table__filter-icon"><div><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-filter"><path fill="currentColor" d="M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"></path></svg></div></div></div></div></div></div></th></tr></thead><tbody class="t-table__body"><tr class=""><td class="">贾明</td><td class=""><div class="t-tag t-tag--success t-tag--light-outline t-tag--round"><svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-check-circle-filled"><path fill="currentColor" d="M12 23a11 11 0 100-22 11 11 0 000 22zM7.5 10.59l3 3 6-6L17.91 9l-7.41 7.41L6.09 12l1.41-1.41z"></path></
|
call-test-build / test
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
_site
Expired
|
3.42 MB |
|
pr
|
139 Bytes |
|