diff --git a/.stylelintrc.json b/.stylelintrc.json index b533bdd6333631833c1beb472a44bab53e1a1565..ad112f11d9726a67890b3aa537df5a858cab4478 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,9 +1,12 @@ { - "extends": ["stylelint-config-standard", "stylelint-config-prettier"], + "extends": [ + "stylelint-config-standard", + "stylelint-config-prettier" + ], "rules": { "declaration-empty-line-before": null, "no-descending-specificity": null, "selector-pseudo-class-no-unknown": null, "selector-pseudo-element-colon-notation": null } -} +} \ No newline at end of file diff --git a/AccountSettings/src/components/base.tsx b/AccountSettings/src/components/base.tsx index da55cc64437893482a75fd6f777cd01d8b7a68b7..e8154c67dc0ab5e5f2e588b0f24e1acacdd63a90 100644 --- a/AccountSettings/src/components/base.tsx +++ b/AccountSettings/src/components/base.tsx @@ -206,4 +206,4 @@ class BaseView extends Component { } } -export default Form.create()(BaseView); +export default Form.create()(BaseView); diff --git a/AdvancedForm/src/index.tsx b/AdvancedForm/src/index.tsx index 64719f2acb5ddeecee73ec690e32d574e50aa798..6c5385c749e990763b6e6d28cdaf758c8f269cee 100644 --- a/AdvancedForm/src/index.tsx +++ b/AdvancedForm/src/index.tsx @@ -330,4 +330,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component()(PAGE_NAME_UPPER_CAMEL_CASE); diff --git a/BasicForm/src/index.tsx b/BasicForm/src/index.tsx index 4f066cac96ac0b2bb82fb6a2de342a7e5c88bf79..10b3c632c2d2967a74231b3ce58c20a4de4b449b 100644 --- a/BasicForm/src/index.tsx +++ b/BasicForm/src/index.tsx @@ -253,4 +253,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component()(PAGE_NAME_UPPER_CAMEL_CASE); diff --git a/BasicList/src/index.tsx b/BasicList/src/index.tsx index 1da98f5cdf7011145a7e3094d6f4824e9f4ba22b..a805d59ed0416c908f33097595d0d6569d09243d 100644 --- a/BasicList/src/index.tsx +++ b/BasicList/src/index.tsx @@ -377,4 +377,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< } } -export default Form.create()(PAGE_NAME_UPPER_CAMEL_CASE); +export default Form.create()(PAGE_NAME_UPPER_CAMEL_CASE); diff --git a/SearchListApplications/src/index.tsx b/SearchListApplications/src/index.tsx index 4a0c3e4785ae6706910375d89192780fd655a4da..af78fcd0302feef09ddd5583c51299596010bef0 100644 --- a/SearchListApplications/src/index.tsx +++ b/SearchListApplications/src/index.tsx @@ -173,7 +173,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component({ onValuesChange({ dispatch }: PAGE_NAME_UPPER_CAMEL_CASEProps, changedValues, allValues) { // 表单项变化时请求数据 // 模拟查询表单生效 diff --git a/SearchListArticles/src/index.tsx b/SearchListArticles/src/index.tsx index 4399de0c319ff42ea91e996cdad17aed0b28a587..094a3b35a76b5fc86e27b893c73598bc32e85892 100644 --- a/SearchListArticles/src/index.tsx +++ b/SearchListArticles/src/index.tsx @@ -234,7 +234,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component({ onValuesChange({ dispatch }: PAGE_NAME_UPPER_CAMEL_CASEProps, changedValues, allValues) { // 表单项变化时请求数据 // 模拟查询表单生效 diff --git a/SearchListProjects/src/index.tsx b/SearchListProjects/src/index.tsx index 07599c0e7f537e1b06d8e79c89825562f7060feb..becd1949dfa310101a872008aea77c449c014850 100644 --- a/SearchListProjects/src/index.tsx +++ b/SearchListProjects/src/index.tsx @@ -142,7 +142,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component({ onValuesChange({ dispatch }: PAGE_NAME_UPPER_CAMEL_CASEProps, changedValues, allValues) { // 表单项变化时请求数据 // 模拟查询表单生效 diff --git a/TableList/src/index.tsx b/TableList/src/index.tsx index 4992f2c69d4ec7116fd7423b880db696b0fb6255..6dc6c2b714e44cd1685ed1e2f4c35f2f406f8487 100644 --- a/TableList/src/index.tsx +++ b/TableList/src/index.tsx @@ -478,4 +478,4 @@ class TableList extends Component { } } -export default Form.create()(TableList); +export default Form.create()(TableList); diff --git a/UserLogin/src/components/Login/index.tsx b/UserLogin/src/components/Login/index.tsx index 289f2fbf4dddf0919350b4d155433c196cf76b33..38de86828ff321ed8508afeb0c8b2ca857b23ab9 100644 --- a/UserLogin/src/components/Login/index.tsx +++ b/UserLogin/src/components/Login/index.tsx @@ -146,8 +146,9 @@ class Login extends Component { ); } } + (Object.keys(LoginItem) as Array).forEach(item => { Login[item] = LoginItem[item]; }); -export default (Form.create()(Login as any) as unknown) as typeof Login; +export default Form.create>()(Login); diff --git a/UserLogin/src/index.tsx b/UserLogin/src/index.tsx index c22c8e6bc4779de6215e637cfcccef10b74f8cfc..9446bb48ebdb1e9bfdcfd2fe2fb18f3a575905fc 100644 --- a/UserLogin/src/index.tsx +++ b/UserLogin/src/index.tsx @@ -9,6 +9,7 @@ import { Dispatch } from 'redux'; import { IStateType } from './model'; import { FormComponentProps } from 'antd/lib/form'; import { CheckboxChangeEvent } from 'antd/lib/checkbox'; + const { Tab, UserName, Password, Mobile, Captcha, Submit } = Login; interface BLOCK_NAME_CAMEL_CASEProps { diff --git a/UserRegister/src/index.tsx b/UserRegister/src/index.tsx index 61e54086ae6b486e4ba182167c1a6a739f652405..808c837dfbae8e01f86677d8ced1896897f469eb 100644 --- a/UserRegister/src/index.tsx +++ b/UserRegister/src/index.tsx @@ -366,4 +366,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< } } -export default Form.create()(PAGE_NAME_UPPER_CAMEL_CASE); +export default Form.create()(PAGE_NAME_UPPER_CAMEL_CASE);