feat(field): add localizedFormat plugin to dayjs #13154
Annotations
10 errors and 1 warning
tests/field/demo.test.ts > field demos > 📸 renders ./packages/field/src/demos/base_test.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `field demos > 📸 renders ./packages/field/src/demos/base_test.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
>
<div
class="ant-space-item"
>
<div
class="ant-radio-group ant-radio-group-outline"
>
<label
class="ant-radio-wrapper"
>
<span
class="ant-radio ant-wave-target"
>
<input
class="ant-radio-input"
type="radio"
value="read"
/>
<span
class="ant-radio-inner"
/>
</span>
<span>
只读
</span>
</label>
<label
class="ant-radio-wrapper ant-radio-wrapper-checked"
>
<span
class="ant-radio ant-wave-target ant-radio-checked"
>
<input
checked=""
class="ant-radio-input"
type="radio"
value="edit"
/>
<span
class="ant-radio-inner"
/>
</span>
<span>
编辑
</span>
</label>
</div>
</div>
<div
class="ant-space-item"
>
简约模式
</div>
<div
class="ant-space-item"
>
<button
aria-checked="false"
class="ant-switch"
role="switch"
type="button"
>
<div
class="ant-switch-handle"
/>
<span
class="ant-switch-inner"
>
<span
class="ant-switch-inner-checked"
/>
<span
class="ant-switch-inner-unchecked"
/>
</span>
</button>
</div>
</div>
<br />
<br />
<div
class="ant-descriptions"
>
<div
class="ant-descriptions-view"
>
<table>
<tbody>
<tr
class="ant-descriptions-row"
>
<td
class="ant-descriptions-item"
colspan="1"
>
<div
class="ant-descriptions-item-container"
>
<span
class="ant-descriptions-item-label"
>
空字符串
</span>
<span
class="ant-descriptions-item-content"
>
-
</span>
</div>
</td>
<td
class="ant-descriptions-item"
colspan="1"
>
<div
class="ant-descriptions-item-container"
>
<span
class="ant-descriptions-item-label"
>
头像
</span>
<span
class="ant-descriptions-item-content"
>
<span
class="ant-avatar ant-avatar-circle ant-avatar-image"
style="width: 22px; height: 22px; font-size: 18px;"
|
tests/field/demo.test.ts > field demos > 📸 renders ./packages/field/src/demos/base.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `field demos > 📸 renders ./packages/field/src/demos/base.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
>
<div
class="ant-space-item"
>
<div
class="ant-radio-group ant-radio-group-outline"
>
<label
class="ant-radio-wrapper ant-radio-wrapper-checked"
>
<span
class="ant-radio ant-wave-target ant-radio-checked"
>
<input
checked=""
class="ant-radio-input"
type="radio"
value="read"
/>
<span
class="ant-radio-inner"
/>
</span>
<span>
只读
</span>
</label>
<label
class="ant-radio-wrapper"
>
<span
class="ant-radio ant-wave-target"
>
<input
class="ant-radio-input"
type="radio"
value="edit"
/>
<span
class="ant-radio-inner"
/>
</span>
<span>
编辑
</span>
</label>
</div>
</div>
<div
class="ant-space-item"
>
简约模式
</div>
<div
class="ant-space-item"
>
<button
aria-checked="false"
class="ant-switch"
role="switch"
type="button"
>
<div
class="ant-switch-handle"
/>
<span
class="ant-switch-inner"
>
<span
class="ant-switch-inner-checked"
/>
<span
class="ant-switch-inner-unchecked"
/>
</span>
</button>
</div>
</div>
<br />
<br />
<div
class="ant-descriptions"
>
<div
class="ant-descriptions-view"
>
<table>
<tbody>
<tr
class="ant-descriptions-row"
>
<td
class="ant-descriptions-item"
colspan="1"
>
<div
class="ant-descriptions-item-container"
>
<span
class="ant-descriptions-item-label"
>
空字符串
</span>
<span
class="ant-descriptions-item-content"
>
-
</span>
</div>
</td>
<td
class="ant-descriptions-item"
colspan="1"
>
<div
class="ant-descriptions-item-container"
>
<span
class="ant-descriptions-item-label"
>
头像
</span>
<span
class="ant-descriptions-item-content"
>
<span
class="ant-avatar ant-avatar-circle ant-avatar-image"
style="width: 22px; height: 22px; font-size: 18px;"
|
tests/layout/demo.test.ts > layout demos > 📸 renders ./packages/layout/src/components/WaterMark/demos/custom.tsx correctly:
packages/layout/src/components/WaterMark/demos/custom.tsx#L43
TypeError: Right-hand side of 'instanceof' is not an object
❯ children packages/layout/src/components/WaterMark/demos/custom.tsx:43:21
❯ children packages/form/src/components/Dependency/index.tsx:961:24
❯ node_modules/.pnpm/antd@5.20.0_moment@2.30.1_react-dom@18.3.1_react@18.3.1/node_modules/antd/lib/form/FormItem/index.js:279:19
❯ Field.getOnlyChild node_modules/.pnpm/rc-field-form@2.2.1_react-dom@18.3.1_react@18.3.1/node_modules/rc-field-form/lib/Field.js:412:95
❯ Field.render node_modules/.pnpm/rc-field-form@2.2.1_react-dom@18.3.1_react@18.3.1/node_modules/rc-field-form/lib/Field.js:568:37
❯ finishClassComponent node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19781:31
❯ updateClassComponent node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:19727:24
❯ beginWork node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:21650:16
❯ beginWork$1 node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:26599:12
|
tests/list/demo.test.ts > list demos > 📸 renders ./packages/list/src/demos/card-list.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `list demos > 📸 renders ./packages/list/src/demos/card-list.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
style="background-color: rgb(238, 238, 238); margin: -24px; padding: 24px;"
>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-label"
>
<label
class=""
title="actions 放置的地方"
>
actions 放置的地方
</label>
</div>
<div
class="ant-col ant-form-item-control"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<div
class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal"
>
<label
class="ant-radio-wrapper ant-radio-wrapper-in-form-item"
>
<span
class="ant-radio ant-wave-target"
>
<input
class="ant-radio-input"
type="radio"
value="actions"
/>
<span
class="ant-radio-inner"
/>
</span>
<span>
设置为 action
</span>
</label>
<label
class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item"
>
<span
class="ant-radio ant-wave-target ant-radio-checked"
>
<input
checked=""
class="ant-radio-input"
type="radio"
value="extra"
/>
<span
class="ant-radio-inner"
/>
</span>
<span>
设置为 extra
</span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-label"
>
<label
class=""
title="幽灵模式"
>
幽灵模式
</label>
</div>
<div
class="ant-col ant-form-item-control"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<button
aria-checked="false"
class="ant-switch"
role="switch"
type="button"
>
<div
class="ant-switch-handle"
/>
<span
class="ant-switch-inner"
>
<span
class="ant-switch-inner-checked"
|
tests/list/demo.test.ts > list demos > 📸 renders ./packages/list/src/demos/filter.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `list demos > 📸 renders ./packages/list/src/demos/filter.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split"
>
<div
class="ant-pro-card"
>
<div
class="ant-pro-card-body"
style="padding-block-start: 0;"
>
<div
class="ant-pro-table-list-toolbar"
>
<div
class="ant-pro-table-list-toolbar-container"
>
<div
class="ant-pro-table-list-toolbar-left"
>
<div
class="ant-pro-table-list-toolbar-title"
>
基础列表
</div>
</div>
<div
class="ant-pro-table-list-toolbar-right"
style="align-items: center;"
>
<div
class="ant-pro-table-list-toolbar-filter"
>
<div
class="ant-pro-card ant-pro-table-search ant-pro-table-search-light-filter"
>
<form
autocomplete="off"
class="ant-form ant-form-horizontal ant-pro-form"
>
<input
style="display: none;"
type="text"
/>
<div
class="ant-pro-form-light-filter ant-pro-form-light-filter-middle"
>
<div
class="ant-pro-form-light-filter-container"
>
<div
class="ant-pro-form-light-filter-item"
>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-control"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<span
class="ant-pro-core-field-dropdown-label"
>
<span
class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear"
>
用户
<span
aria-label="down"
class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="down"
fill="currentColor"
|
tests/list/demo.test.ts > list demos > 📸 renders ./packages/list/src/demos/pagination.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `list demos > 📸 renders ./packages/list/src/demos/pagination.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split"
>
<div
class="ant-pro-card"
>
<div
class="ant-pro-card-body"
style="padding-block-start: 0;"
>
<div
class="ant-pro-table-list-toolbar"
>
<div
class="ant-pro-table-list-toolbar-container"
>
<div
class="ant-pro-table-list-toolbar-left"
>
<div
class="ant-pro-table-list-toolbar-title"
>
翻页
</div>
</div>
</div>
</div>
<div
class="ant-list ant-list-split ant-list-something-after-last-item ant-pro-list-container"
>
<div
class="ant-spin-nested-loading"
>
<div
class="ant-spin-container"
>
<ul
class="ant-list-items"
>
<li
class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row"
>
<div
class="ant-pro-list-row-header"
>
<div
class="ant-pro-list-row-header-option"
/>
<div
class="ant-list-item-meta"
>
<div
class="ant-list-item-meta-avatar"
>
<span
class="ant-avatar ant-avatar-circle ant-avatar-image"
style="width: 22px; height: 22px; font-size: 18px;"
>
<img
src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg"
/>
</span>
</div>
<div
class="ant-list-item-meta-content"
>
<h4
class="ant-list-item-meta-title"
>
<div
class="ant-pro-list-row-header-container"
>
<div
class="ant-pro-list-row-title"
>
语雀的天空
</div>
<div
class="ant-pro-list-row-subTitle"
>
<span
class="ant-tag ant-tag-has-color"
style="background-color: rgb(91, 216, 166);"
>
语雀专栏
</span>
</div>
</div>
</h4>
</div>
</div>
</div>
<div
class="ant-pro-list-row-content"
>
<div
style="
|
tests/list/demo.test.ts > list demos > 📸 renders ./packages/list/src/demos/search.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `list demos > 📸 renders ./packages/list/src/demos/search.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split"
>
<div
class="ant-pro-card ant-pro-table-search ant-pro-table-search-query-filter"
>
<form
autocomplete="off"
class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form"
>
<input
style="display: none;"
type="text"
/>
<div
class="ant-row ant-row-start ant-pro-query-filter-row"
style="margin-left: -12px; margin-right: -12px;"
>
<div
class="ant-col ant-col-8 ant-pro-query-filter-row-split"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
style="flex-wrap: nowrap;"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-label"
style="flex: 0 0 80px;"
>
<label
class=""
for="user"
title="用户"
>
用户
</label>
</div>
<div
class="ant-col ant-form-item-control"
style="max-width: calc(100% - 80px);"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<span
class="ant-input-affix-wrapper ant-input-outlined"
style="width: 100%;"
>
<input
class="ant-input"
id="user"
placeholder="请输入"
type="text"
value=""
/>
<span
class="ant-input-suffix"
>
<span
class="ant-input-clear-icon ant-input-clear-icon-hidden"
role="button"
tabindex="-1"
>
<span
aria-label="close-circle"
class="anticon anticon-close-circle"
role="img"
>
<svg
aria-hidden="true"
data-icon="close-circle"
fill="currentColor"
fill-rule="evenodd"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-
|
tests/table/demo.test.ts > table demos > 📸 renders ./packages/table/src/components/DragSortTable/demos/drag-sort-table.tsx correctly:
tests/demo.tsx#L131
Error: Snapshot `table demos > 📸 renders ./packages/table/src/components/DragSortTable/demos/drag-sort-table.tsx correctly 20` mismatched
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-app"
>
<div>
test
</div>
<div
class="ant-pro-table"
>
<div
class="ant-pro-card"
>
<div
class="ant-pro-card-body"
style="padding-block-start: 0;"
>
<div
class="ant-pro-table-list-toolbar"
>
<div
class="ant-pro-table-list-toolbar-container"
>
<div
class="ant-pro-table-list-toolbar-left"
>
<div
class="ant-pro-table-list-toolbar-title"
>
拖拽排序(默认把手)
</div>
</div>
<div
class="ant-pro-table-list-toolbar-right"
style="align-items: center;"
>
<div
class="ant-pro-table-list-toolbar-setting-items"
>
<div
class="ant-pro-table-list-toolbar-setting-item"
>
<span>
<span
aria-label="reload"
class="anticon anticon-reload"
role="img"
>
<svg
aria-hidden="true"
data-icon="reload"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"
/>
</svg>
</span>
</span>
</div>
<div
class="ant-pro-table-list-toolbar-setting-item"
>
<span>
<span
aria-label="column-height"
class="anticon anticon-column-height ant-dropdown-trigger"
role="img"
tabindex="-1"
>
<svg
aria-hidden="true"
data-icon="column-height"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515
|
tests/table/index.test.tsx > BasicTable > 🎏 search = true, name = test,onSearch return false:
tests/table/index.test.tsx#L1614
AssertionError: expected "spy" to be called with arguments: [ 'name1' ]
Received:
1st spy call:
Array [
- "name1",
+ "",
]
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="ant-pro-table"
>
<div
class="ant-pro-card ant-pro-table-search ant-pro-table-search-query-filter"
>
<form
autocomplete="off"
class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form"
>
<input
style="display: none;"
type="text"
/>
<div
class="ant-row ant-row-start ant-pro-query-filter-row"
style="margin-left: -12px; margin-right: -12px;"
>
<div
class="ant-col ant-col-8 ant-pro-query-filter-row-split"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
style="flex-wrap: nowrap;"
>
<div
class="ant-row ant-form-item-row"
>
<div
class="ant-col ant-form-item-control"
style="max-width: calc(100% - 80px);"
>
<div
class="ant-form-item-control-input"
>
<div
class="ant-form-item-control-input-content"
>
<span
class="ant-input-affix-wrapper ant-input-outlined"
style="width: 100%;"
>
<input
class="ant-input"
id="name"
placeholder="请输入"
type="text"
value=""
/>
<span
class="ant-input-suffix"
>
<span
class="ant-input-clear-icon ant-input-clear-icon-hidden"
role="button"
tabindex="-1"
>
<span
aria-label="close-circle"
class="anticon anticon-close-circle"
role="img"
>
<svg
aria-hidden="true"
data-icon="close-circle"
fill="currentColor"
fill-rule="evenodd"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"
/>
</svg>
</s
|
build
Process completed with exit code 1.
|
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|