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
8fe4c6f1
Commit
8fe4c6f1
authored
Mar 29, 2018
by
ddcat1115
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into v2
parents
6ef237e5
a982dedf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
7 deletions
+14
-7
.gitignore
.gitignore
+1
-0
.prettierignore
.prettierignore
+2
-1
package.json
package.json
+5
-2
src/components/GlobalHeader/index.js
src/components/GlobalHeader/index.js
+3
-2
src/components/StandardTable/index.js
src/components/StandardTable/index.js
+2
-2
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+1
-0
No files found.
.gitignore
View file @
8fe4c6f1
...
...
@@ -8,6 +8,7 @@ _roadhog-api-doc
# production
/dist
/vscode
# misc
.DS_Store
...
...
.prettierignore
View file @
8fe4c6f1
**/*.md
**/*.svg
\ No newline at end of file
**/*.svg
package.json
package.json
View file @
8fe4c6f1
{
"name"
:
"ant-design-pro"
,
"version"
:
"1.2.
0
"
,
"version"
:
"1.2.
1
"
,
"description"
:
"An out-of-box UI solution for enterprise applications"
,
"private"
:
true
,
"scripts"
:
{
...
...
@@ -84,7 +84,10 @@
"puppeteer"
:
"^1.1.1"
},
"lint-staged"
:
{
"**/*.{js,jsx,less}"
:
[
"prettier --wirter"
,
"git add"
],
"**/*.{js,jsx,less}"
:
[
"prettier --wirter"
,
"git add"
],
"**/*.{js,jsx}"
:
"lint-staged:js"
,
"**/*.less"
:
"stylelint --syntax less"
},
...
...
src/components/GlobalHeader/index.js
View file @
8fe4c6f1
...
...
@@ -9,13 +9,14 @@ export default class GlobalHeader extends PureComponent {
componentWillUnmount
()
{
this
.
triggerResizeEvent
.
cancel
();
}
/* eslint-disable*/
@
Debounce
(
600
)
triggerResizeEvent
=
()
=>
{
triggerResizeEvent
()
{
// eslint-disable-line
const
event
=
document
.
createEvent
(
'
HTMLEvents
'
);
event
.
initEvent
(
'
resize
'
,
true
,
false
);
window
.
dispatchEvent
(
event
);
}
;
}
toggle
=
()
=>
{
const
{
collapsed
,
onCollapse
}
=
this
.
props
;
onCollapse
(
!
collapsed
);
...
...
src/components/StandardTable/index.js
View file @
8fe4c6f1
...
...
@@ -63,7 +63,7 @@ class StandardTable extends PureComponent {
render
()
{
const
{
selectedRowKeys
,
needTotalList
}
=
this
.
state
;
const
{
data
:
{
list
,
pagination
},
loading
,
columns
}
=
this
.
props
;
const
{
data
:
{
list
,
pagination
},
loading
,
columns
,
rowKey
}
=
this
.
props
;
const
paginationProps
=
{
showSizeChanger
:
true
,
...
...
@@ -105,7 +105,7 @@ class StandardTable extends PureComponent {
<
/div
>
<
Table
loading
=
{
loading
}
rowKey
=
{
r
ecord
=>
record
.
key
}
rowKey
=
{
r
owKey
||
'
key
'
}
rowSelection
=
{
rowSelection
}
dataSource
=
{
list
}
columns
=
{
columns
}
...
...
src/layouts/BasicLayout.js
View file @
8fe4c6f1
...
...
@@ -59,6 +59,7 @@ const query = {
minWidth
:
1200
,
},
};
class
BasicLayout
extends
React
.
PureComponent
{
static
childContextTypes
=
{
location
:
PropTypes
.
object
,
...
...
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