Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
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
expandable.md
src/components/TagSelect/demo/expandable.md
+1
-1
index.js
src/components/TagSelect/index.js
+3
-3
index.less
src/components/TagSelect/index.less
+1
-0
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) {
}
ReactDOM.render(
<TagSelect onChange={handleFormSubmit}>
<TagSelect onChange={handleFormSubmit}
expandable
>
<TagSelect.Option value="cat1">类目一</TagSelect.Option>
<TagSelect.Option value="cat2">类目二</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
{
Tag
,
Icon
}
from
'antd'
;
...
...
@@ -19,7 +19,7 @@ TagSelectOption.defaultProps = {
displayName
:
'TagSelectOption'
,
};
class
TagSelect
extends
Pure
Component
{
class
TagSelect
extends
Component
{
static
defaultProps
=
{
initialValue
:
[],
};
...
...
@@ -103,7 +103,7 @@ class TagSelect extends PureComponent {
全部
<
/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
}
`
,
checked
:
checkedTags
.
indexOf
(
child
.
props
.
value
)
>
-
1
,
onChange
:
this
.
handleTagChange
,
...
...
src/components/TagSelect/index.less
View file @
7f96f609
...
...
@@ -7,6 +7,7 @@
position: relative;
overflow: hidden;
max-height: 32px;
line-height: 32px;
transition: all .3s;
:global {
.ant-tag {
...
...
src/components/Trend/index.md
View file @
7f96f609
...
...
@@ -5,7 +5,7 @@ cols: 1
order
:
14
---
趋势符号,标记上升和下降
状态
。
趋势符号,标记上升和下降
趋势
。
## 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