Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
react-spd
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e2a8896a
authored
May 22, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix typo
1 parent
0843d50f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
13 deletions
src/components/ElementGroup.js
src/components/Header.js
src/components/ModalRepoForm.js
src/components/RegionalDesign.js
src/components/ElementGroup.js
View file @
e2a8896
import
React
from
'react'
import
Element
from
'./Element'
import
ReactAddonsUpdate
from
'react-addons-update'
import
autoBind
from
'react-autobind'
export
default
class
ElementGroup
extends
React
.
Component
{
constructor
(
props
){
...
...
@@ -12,9 +13,7 @@ export default class ElementGroup extends React.Component {
{
id
:
3
,
name
:
"药架格"
,
initialPos
:
{
x
:
80
,
y
:
70
+
60
*
2
},
target_type
:
'RegionalDesign::DrugBrandreth'
}
]
};
this
.
cloneElement
=
this
.
cloneElement
.
bind
(
this
);
this
.
deleteElement
=
this
.
deleteElement
.
bind
(
this
);
this
.
deleteLastElement
=
this
.
deleteLastElement
.
bind
(
this
);
autoBind
(
this
);
}
cloneElement
(
element
)
{
...
...
src/components/Header.js
View file @
e2a8896
...
...
@@ -3,6 +3,7 @@ import ModalRepoForm from './ModalRepoForm'
import
ReactAddonsUpdate
from
'react-addons-update'
import
Loader
from
'halogen/PulseLoader'
import
{
Link
}
from
'react-router-dom'
import
autoBind
from
'react-autobind'
export
default
class
Header
extends
React
.
Component
{
constructor
(
props
){
...
...
@@ -10,7 +11,7 @@ export default class Header extends React.Component {
this
.
state
=
{
data
:
null
,
loading
:
true
,
error
:
null
};
this
.
addRepo
=
this
.
addRepo
.
b
ind
(
this
);
autoB
ind
(
this
);
}
componentDidMount
()
{
...
...
src/components/ModalRepoForm.js
View file @
e2a8896
...
...
@@ -3,6 +3,7 @@ import { Modal, Button } from 'react-bootstrap'
import
{
Form
,
FormGroup
,
Col
,
FormControl
,
ControlLabel
}
from
'react-bootstrap'
import
EventEmitter
from
'../libs/eventEmitter'
import
$
from
'jquery'
import
autoBind
from
'react-autobind'
export
default
class
ModalRepoForm
extends
React
.
Component
{
constructor
(
props
){
...
...
@@ -10,11 +11,7 @@ export default class ModalRepoForm extends React.Component {
this
.
state
=
{
showModal
:
false
,
name
:
''
};
this
.
init_state
=
this
.
state
;
this
.
close
=
this
.
close
.
bind
(
this
);
this
.
open
=
this
.
open
.
bind
(
this
);
this
.
handleChange
=
this
.
handleChange
.
bind
(
this
);
this
.
save
=
this
.
save
.
bind
(
this
);
autoBind
(
this
);
}
close
()
{
...
...
src/components/RegionalDesign.js
View file @
e2a8896
...
...
@@ -4,6 +4,7 @@ import Element from './Element'
import
ReactAddonsUpdate
from
'react-addons-update'
import
EventEmitter
from
'../libs/eventEmitter'
import
$
from
'jquery'
import
autoBind
from
'react-autobind'
export
default
class
RegionalDesign
extends
React
.
Component
{
constructor
(
props
){
...
...
@@ -11,10 +12,7 @@ export default class RegionalDesign extends React.Component {
this
.
state
=
{
data
:
null
,
loading
:
true
,
error
:
null
,
object_name
:
''
,
object_type
:
''
,
children_object_type
:
''
};
this
.
init_state
=
this
.
state
;
this
.
addElement
=
this
.
addElement
.
bind
(
this
);
this
.
updateElement
=
this
.
updateElement
.
bind
(
this
);
this
.
addElement
=
this
.
addElement
.
bind
(
this
);
autoBind
(
this
);
}
getConfig
(
props
,
key
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment