Skip to content

Commit 3497642

Browse files
chrome: update snapshot (#8864)
* chrome: update snapshot * fix(TextArea): omit showCount from fieldProps in render function fix(Item): handle expandedRowClassName type correctly
1 parent f64090a commit 3497642

File tree

19 files changed

+7605
-6858
lines changed

19 files changed

+7605
-6858
lines changed

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
"@ant-design/antd-theme-variable": "^1.0.0",
5252
"@ant-design/cssinjs": "^1.21.1",
5353
"@ant-design/icons": "^5.5.1",
54-
"@babel/core": "^7.25.8",
55-
"@babel/eslint-plugin": "^7.25.7",
56-
"@babel/parser": "^7.25.8",
54+
"@babel/core": "^7.26.0",
55+
"@babel/eslint-plugin": "^7.25.9",
56+
"@babel/parser": "^7.26.2",
5757
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
58-
"@babel/preset-env": "^7.25.8",
59-
"@babel/preset-react": "^7.25.7",
60-
"@babel/preset-typescript": "^7.25.7",
61-
"@babel/traverse": "^7.25.7",
58+
"@babel/preset-env": "^7.26.0",
59+
"@babel/preset-react": "^7.25.9",
60+
"@babel/preset-typescript": "^7.26.0",
61+
"@babel/traverse": "^7.25.9",
6262
"@emotion/babel-plugin": "^11.12.0",
6363
"@emotion/cache": "^11.13.1",
6464
"@emotion/css": "^11.13.4",
@@ -74,11 +74,11 @@
7474
"@types/chroma-js": "^2.4.4",
7575
"@types/glob": "^8.1.0",
7676
"@types/history": "^4.7.11",
77-
"@types/lodash": "^4.17.10",
77+
"@types/lodash": "^4.17.13",
7878
"@types/lodash-es": "^4.17.12",
7979
"@types/mockjs": "^1.0.10",
8080
"@types/node": "^14.18.63",
81-
"@types/react": "^18.3.11",
81+
"@types/react": "^18.3.12",
8282
"@types/react-dom": "^18.3.1",
8383
"@types/react-helmet": "^6.1.11",
8484
"@types/react-responsive": "^8.0.8",
@@ -90,11 +90,11 @@
9090
"@umijs/plugin-analytics": "^0.2.4",
9191
"@umijs/test": "^3.5.43",
9292
"@umijs/test-utils": "^3.5.43",
93-
"@umijs/utils": "^4.3.27",
93+
"@umijs/utils": "^4.3.31",
9494
"@vitest/coverage-istanbul": "^0.34.6",
9595
"animated-scroll-to": "^2.3.0",
96-
"antd": "^5.21.4",
97-
"antd-style": "^3.7.0",
96+
"antd": "^5.22.1",
97+
"antd-style": "^3.7.1",
9898
"babel-loader": "^9.2.1",
9999
"babel-types": "^6.26.0",
100100
"chalk": "^4.1.2",
@@ -107,13 +107,13 @@
107107
"esbuild": "^0.15.18",
108108
"eslint": "^8.57.1",
109109
"eslint-plugin-jest": "^27.9.0",
110-
"eslint-plugin-react": "^7.37.1",
110+
"eslint-plugin-react": "^7.37.2",
111111
"eslint-plugin-react-hooks": "^4.6.2",
112112
"eslint-plugin-unicorn": "^47.0.0",
113113
"execa": "^5.1.1",
114114
"express": "^4.21.1",
115115
"fast-deep-equal": "^3.1.3",
116-
"father": "^4.5.0",
116+
"father": "^4.5.1",
117117
"gh-pages": "^5.0.0",
118118
"glob": "^8.1.0",
119119
"identity-obj-proxy": "^3.0.0",
@@ -137,7 +137,7 @@
137137
"prettier-plugin-packagejson": "^2.5.3",
138138
"pretty-quick": "^3.3.1",
139139
"query-string": "^6.14.1",
140-
"rc-field-form": "^2.4.0",
140+
"rc-field-form": "^2.5.1",
141141
"rc-footer": "^0.6.8",
142142
"rc-resize-observer": "^1.4.0",
143143
"rc-steps": "^6.0.1",
@@ -160,7 +160,7 @@
160160
"timezone-mock": "^1.3.6",
161161
"ts-node": "^10.9.2",
162162
"typescript": "^5.6.3",
163-
"umi": "^4.3.27",
163+
"umi": "^4.3.31",
164164
"umi-request": "^1.4.0",
165165
"unified": "^11.0.5",
166166
"unist-util-visit": "^5.0.0",

packages/field/src/components/TextArea/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useIntl } from '@ant-design/pro-provider';
22
import { Input } from 'antd';
3+
import omit from 'omit.js';
34
import React from 'react';
45
import type { ProFieldFC } from '../../index';
56
import FieldTextAreaReadonly from './readonly';
@@ -15,13 +16,17 @@ import 'antd/lib/input/style';
1516
const FieldTextArea: ProFieldFC<{
1617
text: string;
1718
}> = (props, ref) => {
18-
const { text, mode, render, , fieldProps } = props;
19+
const { text, mode, render, renderFormItem, fieldProps } = props;
1920
const intl = useIntl();
2021

2122
if (mode === 'read') {
2223
const dom = <FieldTextAreaReadonly {...props} ref={ref} />;
2324
if (render) {
24-
return render(text, { mode, ...omit(fieldProps, ['showCount']) }, dom);
25+
return render(
26+
text,
27+
{ mode, ...(omit(fieldProps, ['showCount']) as any) },
28+
dom,
29+
);
2530
}
2631
return dom;
2732
}

packages/list/src/Item.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ function ProListItem<RecordType>(props: ItemProps<RecordType>) {
328328
<div
329329
className={
330330
expandedRowClassName &&
331-
expandedRowClassName(record, index, indentSize)
331+
typeof expandedRowClassName !== 'string'
332+
? expandedRowClassName(record, index, indentSize)
333+
: expandedRowClassName
332334
}
333335
>
334336
{expandedRowDom}

pnpm-lock.yaml

Lines changed: 2269 additions & 2230 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/__snapshots__/doc.test.ts.snap

Lines changed: 103 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -730,29 +730,33 @@ exports[`docs/components demos > 📸 renders ./docs/components/valueEnum-map.ts
730730
class="ant-select-selector"
731731
>
732732
<span
733-
class="ant-select-selection-search"
734-
>
735-
<input
736-
aria-autocomplete="list"
737-
aria-controls="status1_list"
738-
aria-expanded="false"
739-
aria-haspopup="listbox"
740-
aria-owns="status1_list"
741-
autocomplete="off"
742-
class="ant-select-selection-search-input"
743-
id="status1"
744-
readonly=""
745-
role="combobox"
746-
style="opacity: 0;"
747-
type="search"
748-
unselectable="on"
749-
value=""
750-
/>
751-
</span>
752-
<span
753-
class="ant-select-selection-placeholder"
733+
class="ant-select-selection-wrap"
754734
>
755-
请选择
735+
<span
736+
class="ant-select-selection-search"
737+
>
738+
<input
739+
aria-autocomplete="list"
740+
aria-controls="status1_list"
741+
aria-expanded="false"
742+
aria-haspopup="listbox"
743+
aria-owns="status1_list"
744+
autocomplete="off"
745+
class="ant-select-selection-search-input"
746+
id="status1"
747+
readonly=""
748+
role="combobox"
749+
style="opacity: 0;"
750+
type="search"
751+
unselectable="on"
752+
value=""
753+
/>
754+
</span>
755+
<span
756+
class="ant-select-selection-placeholder"
757+
>
758+
请选择
759+
</span>
756760
</span>
757761
</div>
758762
<span
@@ -829,29 +833,33 @@ exports[`docs/components demos > 📸 renders ./docs/components/valueEnum-map.ts
829833
class="ant-select-selector"
830834
>
831835
<span
832-
class="ant-select-selection-search"
836+
class="ant-select-selection-wrap"
833837
>
834-
<input
835-
aria-autocomplete="list"
836-
aria-controls="status2_list"
837-
aria-expanded="false"
838-
aria-haspopup="listbox"
839-
aria-owns="status2_list"
840-
autocomplete="off"
841-
class="ant-select-selection-search-input"
842-
id="status2"
843-
readonly=""
844-
role="combobox"
845-
style="opacity: 0;"
846-
type="search"
847-
unselectable="on"
848-
value=""
849-
/>
850-
</span>
851-
<span
852-
class="ant-select-selection-placeholder"
853-
>
854-
请选择
838+
<span
839+
class="ant-select-selection-search"
840+
>
841+
<input
842+
aria-autocomplete="list"
843+
aria-controls="status2_list"
844+
aria-expanded="false"
845+
aria-haspopup="listbox"
846+
aria-owns="status2_list"
847+
autocomplete="off"
848+
class="ant-select-selection-search-input"
849+
id="status2"
850+
readonly=""
851+
role="combobox"
852+
style="opacity: 0;"
853+
type="search"
854+
unselectable="on"
855+
value=""
856+
/>
857+
</span>
858+
<span
859+
class="ant-select-selection-placeholder"
860+
>
861+
请选择
862+
</span>
855863
</span>
856864
</div>
857865
<span
@@ -924,29 +932,33 @@ exports[`docs/components demos > 📸 renders ./docs/components/valueEnum-map.ts
924932
class="ant-select-selector"
925933
>
926934
<span
927-
class="ant-select-selection-search"
928-
>
929-
<input
930-
aria-autocomplete="list"
931-
aria-controls="status3_list"
932-
aria-expanded="false"
933-
aria-haspopup="listbox"
934-
aria-owns="status3_list"
935-
autocomplete="off"
936-
class="ant-select-selection-search-input"
937-
id="status3"
938-
readonly=""
939-
role="combobox"
940-
style="opacity: 0;"
941-
type="search"
942-
unselectable="on"
943-
value=""
944-
/>
945-
</span>
946-
<span
947-
class="ant-select-selection-placeholder"
935+
class="ant-select-selection-wrap"
948936
>
949-
请选择
937+
<span
938+
class="ant-select-selection-search"
939+
>
940+
<input
941+
aria-autocomplete="list"
942+
aria-controls="status3_list"
943+
aria-expanded="false"
944+
aria-haspopup="listbox"
945+
aria-owns="status3_list"
946+
autocomplete="off"
947+
class="ant-select-selection-search-input"
948+
id="status3"
949+
readonly=""
950+
role="combobox"
951+
style="opacity: 0;"
952+
type="search"
953+
unselectable="on"
954+
value=""
955+
/>
956+
</span>
957+
<span
958+
class="ant-select-selection-placeholder"
959+
>
960+
请选择
961+
</span>
950962
</span>
951963
</div>
952964
<span
@@ -1248,7 +1260,7 @@ exports[`docs/components demos > 📸 renders ./docs/components/valueEnum-map.ts
12481260
xmlns="http://www.w3.org/2000/svg"
12491261
>
12501262
<title>
1251-
Simple Empty
1263+
暂无数据
12521264
</title>
12531265
<g
12541266
fill="none"
@@ -1341,27 +1353,31 @@ exports[`docs/components demos > 📸 renders ./docs/components/valueType.tsx co
13411353
class="ant-select-selector"
13421354
>
13431355
<span
1344-
class="ant-select-selection-search"
1345-
>
1346-
<input
1347-
aria-autocomplete="list"
1348-
aria-controls="rc_select_TEST_OR_SSR_list"
1349-
aria-expanded="false"
1350-
aria-haspopup="listbox"
1351-
aria-owns="rc_select_TEST_OR_SSR_list"
1352-
autocomplete="off"
1353-
class="ant-select-selection-search-input"
1354-
id="rc_select_TEST_OR_SSR"
1355-
role="combobox"
1356-
type="search"
1357-
value=""
1358-
/>
1359-
</span>
1360-
<span
1361-
class="ant-select-selection-item"
1362-
title="文本框"
1356+
class="ant-select-selection-wrap"
13631357
>
1364-
文本框
1358+
<span
1359+
class="ant-select-selection-search"
1360+
>
1361+
<input
1362+
aria-autocomplete="list"
1363+
aria-controls="rc_select_TEST_OR_SSR_list"
1364+
aria-expanded="false"
1365+
aria-haspopup="listbox"
1366+
aria-owns="rc_select_TEST_OR_SSR_list"
1367+
autocomplete="off"
1368+
class="ant-select-selection-search-input"
1369+
id="rc_select_TEST_OR_SSR"
1370+
role="combobox"
1371+
type="search"
1372+
value=""
1373+
/>
1374+
</span>
1375+
<span
1376+
class="ant-select-selection-item"
1377+
title="文本框"
1378+
>
1379+
文本框
1380+
</span>
13651381
</span>
13661382
</div>
13671383
<span

0 commit comments

Comments
 (0)