From 6e136eeab23a662c0bc979452c19ba3375cced39 Mon Sep 17 00:00:00 2001 From: Semmy Date: Wed, 30 Mar 2022 16:10:31 +0800 Subject: [PATCH] style: fix word wrong --- ....Deigner.tsx => Table.Column.Designer.tsx} | 2 +- .../src/schema-component/antd/table/index.tsx | 4 +- .../Initializers/TableColumnInitializers.tsx | 2 +- .../src/__tests__/fixtures/data.ts | 60 +++++++++---------- 4 files changed, 34 insertions(+), 34 deletions(-) rename packages/client/src/schema-component/antd/table/{Table.Column.Deigner.tsx => Table.Column.Designer.tsx} (99%) diff --git a/packages/client/src/schema-component/antd/table/Table.Column.Deigner.tsx b/packages/client/src/schema-component/antd/table/Table.Column.Designer.tsx similarity index 99% rename from packages/client/src/schema-component/antd/table/Table.Column.Deigner.tsx rename to packages/client/src/schema-component/antd/table/Table.Column.Designer.tsx index 825953221..150315cb2 100644 --- a/packages/client/src/schema-component/antd/table/Table.Column.Deigner.tsx +++ b/packages/client/src/schema-component/antd/table/Table.Column.Designer.tsx @@ -22,7 +22,7 @@ const useLabelFields = (collectionName?: any) => { }); }; -export const TableColumnDeigner = (props) => { +export const TableColumnDesigner = (props) => { const { uiSchema, fieldSchema, collectionField } = props; const field = useField(); const columnSchema = useFieldSchema(); diff --git a/packages/client/src/schema-component/antd/table/index.tsx b/packages/client/src/schema-component/antd/table/index.tsx index 9484edda6..d5dc13fb3 100644 --- a/packages/client/src/schema-component/antd/table/index.tsx +++ b/packages/client/src/schema-component/antd/table/index.tsx @@ -3,7 +3,7 @@ import { TableArrayDesigner } from './Table.Array.Designer'; import { TableColumn } from './Table.Column'; import { TableColumnActionBar } from './Table.Column.ActionBar'; import { TableColumnDecorator } from './Table.Column.Decorator'; -import { TableColumnDeigner } from './Table.Column.Deigner'; +import { TableColumnDesigner } from './Table.Column.Designer'; import { TableDesigner } from './Table.Designer'; import { TableRowActionDesigner } from './Table.RowActionDesigner'; import { TableRowSelection } from './Table.RowSelection'; @@ -20,7 +20,7 @@ Table.RowSelection = TableRowSelection; Table.Column = TableColumn; Table.Column.ActionBar = TableColumnActionBar; Table.Column.Decorator = TableColumnDecorator; -Table.Column.Deigner = TableColumnDeigner; +Table.Column.Designer = TableColumnDesigner; Table.RowActionDesigner = TableRowActionDesigner; Table.Designer = TableDesigner; diff --git a/packages/client/src/schema-initializer/Initializers/TableColumnInitializers.tsx b/packages/client/src/schema-initializer/Initializers/TableColumnInitializers.tsx index 339ee9409..5daf70b67 100644 --- a/packages/client/src/schema-initializer/Initializers/TableColumnInitializers.tsx +++ b/packages/client/src/schema-initializer/Initializers/TableColumnInitializers.tsx @@ -13,7 +13,7 @@ export const TableColumnInitializers = (props: any) => { return { type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { [s.name]: { diff --git a/packages/plugin-ui-schema-storage/src/__tests__/fixtures/data.ts b/packages/plugin-ui-schema-storage/src/__tests__/fixtures/data.ts index d1d1bd7f7..fce3a8fa5 100644 --- a/packages/plugin-ui-schema-storage/src/__tests__/fixtures/data.ts +++ b/packages/plugin-ui-schema-storage/src/__tests__/fixtures/data.ts @@ -495,7 +495,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_zio9ewkxss7: { @@ -519,7 +519,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_ojboh2wxpju: { @@ -680,7 +680,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { nickname: { @@ -908,7 +908,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_g8j5jvalqh0: { @@ -1759,7 +1759,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_m7ibo1vrvnm: { @@ -1783,7 +1783,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_kukaw9kddyj: { @@ -1923,7 +1923,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_4mpiovytw4d: { @@ -1947,7 +1947,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_lxsum89wkzd: { @@ -3192,7 +3192,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_m7ibo1vrvnm: { @@ -3217,7 +3217,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_kukaw9kddyj: { @@ -3391,7 +3391,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_4mpiovytw4d: { @@ -3416,7 +3416,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_lxsum89wkzd: { @@ -3896,7 +3896,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_zio9ewkxss7: { @@ -3920,7 +3920,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_ojboh2wxpju: { @@ -4082,7 +4082,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { nickname: { @@ -4310,7 +4310,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_g8j5jvalqh0: { @@ -5536,7 +5536,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_m7ibo1vrvnm: { @@ -5560,7 +5560,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_kukaw9kddyj: { @@ -5700,7 +5700,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_4mpiovytw4d: { @@ -5724,7 +5724,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_lxsum89wkzd: { @@ -5877,7 +5877,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_g8j5jvalqh0: { @@ -5901,7 +5901,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_tegyd222bcc: { @@ -5925,7 +5925,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_ooar0pto2ko: { @@ -5949,7 +5949,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_ksgzy9vmgce: { @@ -6086,7 +6086,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_z27302tl2bf: { @@ -6110,7 +6110,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_yc8jbfiqfvh: { @@ -6134,7 +6134,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_u007sq2jg93: { @@ -6271,7 +6271,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_hpmvdltzs6m: { @@ -6295,7 +6295,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_cht6rsiiiko: { @@ -6319,7 +6319,7 @@ export default { version: '2.0', type: 'void', 'x-decorator': 'Table.Column.Decorator', - 'x-designer': 'Table.Column.Deigner', + 'x-designer': 'Table.Column.Designer', 'x-component': 'Table.Column', properties: { f_o8dmiub9tp9: {