Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
ee667147
Commit
ee667147
authored
Apr 22, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分类标签组件
parent
66fedc0a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
src/common/CategoryTag/index.js
+4
-2
src/common/CategoryTag/index.scss
+4
-1
src/common/index.js
+1
-0
src/components/study/free-courses/index.js
+1
-9
No files found.
src/common/CategoryTag/index.js
View file @
ee667147
...
...
@@ -6,4 +6,6 @@ const Tag = (props) => {
{
props
.
children
}
<
/span
>
)
}
\ No newline at end of file
}
export
default
Tag
\ No newline at end of file
src/common/CategoryTag/index.scss
View file @
ee667147
.state
{
box-sizing
:
border-box
;
border-radius
:
0
10px
10px
0
;
padding
:
1px
5px
;
}
\ No newline at end of file
src/common/index.js
View file @
ee667147
...
...
@@ -5,3 +5,4 @@ export { default as Course } from './Course' // 课程状态(试听 正在
export
{
default
as
Carousel
}
from
'./Carousel'
// 横向滚动
export
{
default
as
Topscroll
}
from
'./Topscroll'
// 首页头部轮播
export
{
default
as
Scroll
}
from
'./Scroll'
// 首页正常轮播图
export
{
default
as
Tag
}
from
'./CategoryTag'
src/components/study/free-courses/index.js
View file @
ee667147
import
React
from
'react'
import
{
Course
}
from
'../../../common'
import
{
Course
,
Tag
}
from
'../../../common'
import
'./free-courses.scss'
...
...
@@ -79,14 +79,6 @@ const mockData = [
},
]
const
Tag
=
(
props
)
=>
{
return
(
<
span
className
=
{
`state
${
props
.
className
}
`
}
>
{
props
.
children
}
<
/span
>
)
}
const
Bottom
=
(
props
)
=>
(
<
div
className
=
'bottom'
>
<
Tag
className
=
{
props
.
className
}
>
{
props
.
tagText
}
<
/Tag
>
...
...
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