From ee123eabce5d07c9db909c2a40be7335f067ec1f Mon Sep 17 00:00:00 2001 From: Uyarn Date: Thu, 16 Jan 2025 17:25:04 +0800 Subject: [PATCH] chore: remove unsupported demo and update common --- src/_common | 2 +- src/form/_example/customized-form-controls.tsx | 11 ----------- test/snap/__snapshots__/csr.test.jsx.snap | 13 +------------ test/snap/__snapshots__/ssr.test.jsx.snap | 2 +- 4 files changed, 3 insertions(+), 25 deletions(-) diff --git a/src/_common b/src/_common index c569a218ec..01a5dbe678 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit c569a218ec1547b4924c429337237ebdcf3b23d3 +Subproject commit 01a5dbe6785dea1897f0298812c63a5c90dfe0c2 diff --git a/src/form/_example/customized-form-controls.tsx b/src/form/_example/customized-form-controls.tsx index 43a5340001..3ec0aca4a3 100644 --- a/src/form/_example/customized-form-controls.tsx +++ b/src/form/_example/customized-form-controls.tsx @@ -60,14 +60,6 @@ export default function BaseForm() { MessagePlugin.info('提交成功'); } }; - const setData = () => { - form.setFieldsValue?.({ - course: { - type: 'math', - name: '线性代数', - }, - }); - }; return (
@@ -78,9 +70,6 @@ export default function BaseForm() { -
); diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap index 748fe8931d..9fb7f36a1b 100644 --- a/test/snap/__snapshots__/csr.test.jsx.snap +++ b/test/snap/__snapshots__/csr.test.jsx.snap @@ -42826,17 +42826,6 @@ exports[`csr snapshot test > csr test src/form/_example/customized-form-controls 提交 - @@ -134710,7 +134699,7 @@ exports[`ssr snapshot test > ssr test src/form/_example/clear-validate.tsx 1`] = exports[`ssr snapshot test > ssr test src/form/_example/custom-validator.tsx 1`] = `"
"`; -exports[`ssr snapshot test > ssr test src/form/_example/customized-form-controls.tsx 1`] = `"
:
"`; +exports[`ssr snapshot test > ssr test src/form/_example/customized-form-controls.tsx 1`] = `"
:
"`; exports[`ssr snapshot test > ssr test src/form/_example/disabled.tsx 1`] = `"
:
:
:
:
:
:
:
:
:
:
:
请选择单张图片文件上传
提交
重置
"`; diff --git a/test/snap/__snapshots__/ssr.test.jsx.snap b/test/snap/__snapshots__/ssr.test.jsx.snap index bd535011b8..2a0afcba17 100644 --- a/test/snap/__snapshots__/ssr.test.jsx.snap +++ b/test/snap/__snapshots__/ssr.test.jsx.snap @@ -408,7 +408,7 @@ exports[`ssr snapshot test > ssr test src/form/_example/clear-validate.tsx 1`] = exports[`ssr snapshot test > ssr test src/form/_example/custom-validator.tsx 1`] = `"
"`; -exports[`ssr snapshot test > ssr test src/form/_example/customized-form-controls.tsx 1`] = `"
:
"`; +exports[`ssr snapshot test > ssr test src/form/_example/customized-form-controls.tsx 1`] = `"
:
"`; exports[`ssr snapshot test > ssr test src/form/_example/disabled.tsx 1`] = `"
:
:
:
:
:
:
:
:
:
:
:
请选择单张图片文件上传
提交
重置
"`;