Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
dbca0b41
Commit
dbca0b41
authored
May 05, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new from tpye
parent
293ea3d5
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
12 deletions
+17
-12
.stylelintrc.json
.stylelintrc.json
+5
-2
AccountSettings/src/components/base.tsx
AccountSettings/src/components/base.tsx
+1
-1
AdvancedForm/src/index.tsx
AdvancedForm/src/index.tsx
+1
-1
BasicForm/src/index.tsx
BasicForm/src/index.tsx
+1
-1
BasicList/src/index.tsx
BasicList/src/index.tsx
+1
-1
SearchListApplications/src/index.tsx
SearchListApplications/src/index.tsx
+1
-1
SearchListArticles/src/index.tsx
SearchListArticles/src/index.tsx
+1
-1
SearchListProjects/src/index.tsx
SearchListProjects/src/index.tsx
+1
-1
TableList/src/index.tsx
TableList/src/index.tsx
+1
-1
UserLogin/src/components/Login/index.tsx
UserLogin/src/components/Login/index.tsx
+2
-1
UserLogin/src/index.tsx
UserLogin/src/index.tsx
+1
-0
UserRegister/src/index.tsx
UserRegister/src/index.tsx
+1
-1
No files found.
.stylelintrc.json
View file @
dbca0b41
{
{
"extends"
:
[
"stylelint-config-standard"
,
"stylelint-config-prettier"
],
"extends"
:
[
"stylelint-config-standard"
,
"stylelint-config-prettier"
],
"rules"
:
{
"rules"
:
{
"declaration-empty-line-before"
:
null
,
"declaration-empty-line-before"
:
null
,
"no-descending-specificity"
:
null
,
"no-descending-specificity"
:
null
,
...
...
AccountSettings/src/components/base.tsx
View file @
dbca0b41
...
@@ -206,4 +206,4 @@ class BaseView extends Component<BaseViewProps> {
...
@@ -206,4 +206,4 @@ class BaseView extends Component<BaseViewProps> {
}
}
}
}
export
default
Form
.
create
()(
BaseView
);
export
default
Form
.
create
<
BaseViewProps
>
()(
BaseView
);
AdvancedForm/src/index.tsx
View file @
dbca0b41
...
@@ -330,4 +330,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
...
@@ -330,4 +330,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
}
}
}
}
export
default
Form
.
create
()(
PAGE_NAME_UPPER_CAMEL_CASE
);
export
default
Form
.
create
<
PAGE_NAME_UPPER_CAMEL_CASEProps
>
()(
PAGE_NAME_UPPER_CAMEL_CASE
);
BasicForm/src/index.tsx
View file @
dbca0b41
...
@@ -253,4 +253,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
...
@@ -253,4 +253,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
}
}
}
}
export
default
Form
.
create
()(
PAGE_NAME_UPPER_CAMEL_CASE
);
export
default
Form
.
create
<
PAGE_NAME_UPPER_CAMEL_CASEProps
>
()(
PAGE_NAME_UPPER_CAMEL_CASE
);
BasicList/src/index.tsx
View file @
dbca0b41
...
@@ -377,4 +377,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
...
@@ -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_CASEProps
>
()(
PAGE_NAME_UPPER_CAMEL_CASE
);
SearchListApplications/src/index.tsx
View file @
dbca0b41
...
@@ -173,7 +173,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
...
@@ -173,7 +173,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
}
}
}
}
const WarpForm = Form.create(
{
const WarpForm = Form.create
<
PAGE_NAME_UPPER_CAMEL_CASEProps
>
(
{
onValuesChange
({
dispatch
}:
PAGE_NAME_UPPER_CAMEL_CASEProps
,
changedValues
,
allValues
)
{
onValuesChange
({
dispatch
}:
PAGE_NAME_UPPER_CAMEL_CASEProps
,
changedValues
,
allValues
)
{
// 表单项变化时请求数据
// 表单项变化时请求数据
// 模拟查询表单生效
// 模拟查询表单生效
...
...
SearchListArticles/src/index.tsx
View file @
dbca0b41
...
@@ -234,7 +234,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
...
@@ -234,7 +234,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
}
}
}
}
const WarpForm = Form.create(
{
const WarpForm = Form.create
<
PAGE_NAME_UPPER_CAMEL_CASEProps
>
(
{
onValuesChange
({
dispatch
}:
PAGE_NAME_UPPER_CAMEL_CASEProps
,
changedValues
,
allValues
)
{
onValuesChange
({
dispatch
}:
PAGE_NAME_UPPER_CAMEL_CASEProps
,
changedValues
,
allValues
)
{
// 表单项变化时请求数据
// 表单项变化时请求数据
// 模拟查询表单生效
// 模拟查询表单生效
...
...
SearchListProjects/src/index.tsx
View file @
dbca0b41
...
@@ -142,7 +142,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
...
@@ -142,7 +142,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
}
}
}
}
const WarpForm = Form.create(
{
const WarpForm = Form.create
<
PAGE_NAME_UPPER_CAMEL_CASEProps
>
(
{
onValuesChange
({
dispatch
}:
PAGE_NAME_UPPER_CAMEL_CASEProps
,
changedValues
,
allValues
)
{
onValuesChange
({
dispatch
}:
PAGE_NAME_UPPER_CAMEL_CASEProps
,
changedValues
,
allValues
)
{
// 表单项变化时请求数据
// 表单项变化时请求数据
// 模拟查询表单生效
// 模拟查询表单生效
...
...
TableList/src/index.tsx
View file @
dbca0b41
...
@@ -478,4 +478,4 @@ class TableList extends Component<TableListProps, TableListState> {
...
@@ -478,4 +478,4 @@ class TableList extends Component<TableListProps, TableListState> {
}
}
}
}
export
default
Form
.
create
()(
TableList
);
export
default
Form
.
create
<
TableListProps
>
()(
TableList
);
UserLogin/src/components/Login/index.tsx
View file @
dbca0b41
...
@@ -146,8 +146,9 @@ class Login extends Component<LoginProps, LoginState> {
...
@@ -146,8 +146,9 @@ class Login extends Component<LoginProps, LoginState> {
);
);
}
}
}
}
(
Object
.
keys
(
LoginItem
)
as
Array
<
keyof
LoginItemType
>
).
forEach
(
item
=>
{
(
Object
.
keys
(
LoginItem
)
as
Array
<
keyof
LoginItemType
>
).
forEach
(
item
=>
{
Login
[
item
]
=
LoginItem
[
item
];
Login
[
item
]
=
LoginItem
[
item
];
});
});
export
default
(
Form
.
create
()(
Login
as
any
)
as
unknown
)
as
typeof
Login
;
export
default
Form
.
create
<
Partial
<
LoginProps
>>
()(
Login
)
;
UserLogin/src/index.tsx
View file @
dbca0b41
...
@@ -9,6 +9,7 @@ import { Dispatch } from 'redux';
...
@@ -9,6 +9,7 @@ import { Dispatch } from 'redux';
import
{
IStateType
}
from
'
./model
'
;
import
{
IStateType
}
from
'
./model
'
;
import
{
FormComponentProps
}
from
'
antd/lib/form
'
;
import
{
FormComponentProps
}
from
'
antd/lib/form
'
;
import
{
CheckboxChangeEvent
}
from
'
antd/lib/checkbox
'
;
import
{
CheckboxChangeEvent
}
from
'
antd/lib/checkbox
'
;
const
{
Tab
,
UserName
,
Password
,
Mobile
,
Captcha
,
Submit
}
=
Login
;
const
{
Tab
,
UserName
,
Password
,
Mobile
,
Captcha
,
Submit
}
=
Login
;
interface
BLOCK_NAME_CAMEL_CASEProps
{
interface
BLOCK_NAME_CAMEL_CASEProps
{
...
...
UserRegister/src/index.tsx
View file @
dbca0b41
...
@@ -366,4 +366,4 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
...
@@ -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
<
BLOCK_NAME_CAMEL_CASEProps
>
()(
PAGE_NAME_UPPER_CAMEL_CASE
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment