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
A
ant-design-pro
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
ant-design-pro
Commits
7f96f609
Commit
7f96f609
authored
Oct 31, 2017
by
nikogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix TagSelect demo & line-height
parent
df6ecfb4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
src/components/TagSelect/demo/expandable.md
src/components/TagSelect/demo/expandable.md
+1
-1
src/components/TagSelect/index.js
src/components/TagSelect/index.js
+3
-3
src/components/TagSelect/index.less
src/components/TagSelect/index.less
+1
-0
src/components/Trend/index.md
src/components/Trend/index.md
+1
-1
No files found.
src/components/TagSelect/demo/expandable.md
View file @
7f96f609
...
@@ -15,7 +15,7 @@ function handleFormSubmit(checkedValue) {
...
@@ -15,7 +15,7 @@ function handleFormSubmit(checkedValue) {
}
}
ReactDOM
.
render
(
ReactDOM
.
render
(
<
TagSelect
onChange
=
{
handleFormSubmit
}
>
<
TagSelect
onChange
=
{
handleFormSubmit
}
expandable
>
<
TagSelect
.
Option
value
=
"cat1"
>
类目一
</
TagSelect
.
Option
>
<
TagSelect
.
Option
value
=
"cat1"
>
类目一
</
TagSelect
.
Option
>
<
TagSelect
.
Option
value
=
"cat2"
>
类目二
</
TagSelect
.
Option
>
<
TagSelect
.
Option
value
=
"cat2"
>
类目二
</
TagSelect
.
Option
>
<
TagSelect
.
Option
value
=
"cat3"
>
类目三
</
TagSelect
.
Option
>
<
TagSelect
.
Option
value
=
"cat3"
>
类目三
</
TagSelect
.
Option
>
...
...
src/components/TagSelect/index.js
View file @
7f96f609
import
React
,
{
Pure
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
classNames
from
'
classnames
'
;
import
{
Tag
,
Icon
}
from
'
antd
'
;
import
{
Tag
,
Icon
}
from
'
antd
'
;
...
@@ -19,7 +19,7 @@ TagSelectOption.defaultProps = {
...
@@ -19,7 +19,7 @@ TagSelectOption.defaultProps = {
displayName
:
'
TagSelectOption
'
,
displayName
:
'
TagSelectOption
'
,
};
};
class
TagSelect
extends
Pure
Component
{
class
TagSelect
extends
Component
{
static
defaultProps
=
{
static
defaultProps
=
{
initialValue
:
[],
initialValue
:
[],
};
};
...
@@ -103,7 +103,7 @@ class TagSelect extends PureComponent {
...
@@ -103,7 +103,7 @@ class TagSelect extends PureComponent {
全部
全部
<
/CheckableTag
>
<
/CheckableTag
>
{
{
children
.
filter
(
child
=>
child
.
props
.
displayName
===
'
TagSelectOption
'
).
map
(
child
=>
React
.
cloneElement
(
child
,
{
ch
eckedTags
&&
ch
ildren
.
filter
(
child
=>
child
.
props
.
displayName
===
'
TagSelectOption
'
).
map
(
child
=>
React
.
cloneElement
(
child
,
{
key
:
`tag-select-
${
child
.
props
.
value
}
`
,
key
:
`tag-select-
${
child
.
props
.
value
}
`
,
checked
:
checkedTags
.
indexOf
(
child
.
props
.
value
)
>
-
1
,
checked
:
checkedTags
.
indexOf
(
child
.
props
.
value
)
>
-
1
,
onChange
:
this
.
handleTagChange
,
onChange
:
this
.
handleTagChange
,
...
...
src/components/TagSelect/index.less
View file @
7f96f609
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
position: relative;
position: relative;
overflow: hidden;
overflow: hidden;
max-height: 32px;
max-height: 32px;
line-height: 32px;
transition: all .3s;
transition: all .3s;
:global {
:global {
.ant-tag {
.ant-tag {
...
...
src/components/Trend/index.md
View file @
7f96f609
...
@@ -5,7 +5,7 @@ cols: 1
...
@@ -5,7 +5,7 @@ cols: 1
order
:
14
order
:
14
---
---
趋势符号,标记上升和下降
状态
。
趋势符号,标记上升和下降
趋势
。
## API
## API
...
...
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