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
65fa5cbe
Commit
65fa5cbe
authored
Apr 22, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'study' into examination
parents
79c09142
ee667147
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
9 deletions
+20
-9
src/common/CategoryTag/index.js
+12
-0
src/common/CategoryTag/index.scss
+6
-0
src/common/index.js
+1
-0
src/components/study/free-courses/index.js
+1
-9
No files found.
src/common/CategoryTag/index.js
0 → 100644
View file @
65fa5cbe
import
React
from
'react'
const
Tag
=
(
props
)
=>
{
return
(
<
span
className
=
{
`state
${
props
.
className
}
`
}
>
{
props
.
children
}
<
/span
>
)
}
export
default
Tag
\ No newline at end of file
src/common/CategoryTag/index.scss
0 → 100644
View file @
65fa5cbe
.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 @
65fa5cbe
...
...
@@ -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 @
65fa5cbe
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