Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-lession-demo
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
fukai
react-lession-demo
Commits
05560f7a
Commit
05560f7a
authored
Apr 20, 2020
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交css示例
parent
8513aa97
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
0 deletions
+65
-0
index.js
src/routers/index.js
+2
-0
IndexPage.js
src/views/IndexPage.js
+1
-0
index.js
src/views/cssPage/index.js
+23
-0
index.less
src/views/cssPage/index.less
+19
-0
index1.less
src/views/cssPage/index1.less
+20
-0
No files found.
src/routers/index.js
View file @
05560f7a
...
@@ -6,6 +6,7 @@ import Test01 from '../views/test01'
...
@@ -6,6 +6,7 @@ import Test01 from '../views/test01'
import
SelectPage
from
'../views/selectPage'
import
SelectPage
from
'../views/selectPage'
import
Index
from
"../views/IndexPage"
import
Index
from
"../views/IndexPage"
import
AddPage
from
"../views/AddPage"
import
AddPage
from
"../views/AddPage"
import
CssPage
from
"../views/cssPage"
export
default
class
AppRouter
extends
Component
{
export
default
class
AppRouter
extends
Component
{
...
@@ -18,6 +19,7 @@ export default class AppRouter extends Component{
...
@@ -18,6 +19,7 @@ export default class AppRouter extends Component{
<
Route
path
=
"/test01"
component
=
{
Test01
}
/
>
<
Route
path
=
"/test01"
component
=
{
Test01
}
/
>
<
Route
path
=
"/select"
component
=
{
SelectPage
}
/
>
<
Route
path
=
"/select"
component
=
{
SelectPage
}
/
>
<
Route
path
=
"/add"
component
=
{
AddPage
}
/
>
<
Route
path
=
"/add"
component
=
{
AddPage
}
/
>
<
Route
path
=
"/cssPage"
component
=
{
CssPage
}
/
>
<
/div
>
<
/div
>
<
/Router
>
<
/Router
>
)
)
...
...
src/views/IndexPage.js
View file @
05560f7a
...
@@ -10,6 +10,7 @@ export default function(){
...
@@ -10,6 +10,7 @@ export default function(){
<
li
><
Link
to
=
"select"
>
SelectPage
<
/Link></
li
>
<
li
><
Link
to
=
"select"
>
SelectPage
<
/Link></
li
>
<
li
><
Link
to
=
"add"
>
AddPage
<
/Link></
li
>
<
li
><
Link
to
=
"add"
>
AddPage
<
/Link></
li
>
<
li
><
Link
to
=
"test01"
>
Test01
<
/Link></
li
>
<
li
><
Link
to
=
"test01"
>
Test01
<
/Link></
li
>
<
li
><
Link
to
=
"cssPage"
>
CssPage
<
/Link></
li
>
<
/ul
>
<
/ul
>
<
/div
>
<
/div
>
)
)
...
...
src/views/cssPage/index.js
0 → 100644
View file @
05560f7a
import
React
,{
Component
}
from
'react'
import
"./index.less"
export
default
function
(){
return
(
<
div
class
=
"cssPage"
>
<
p
>
我是一组文件
<
/p
>
<
h1
>
我是一组文件
<
/h1
>
<
h2
id
=
"wh2"
>
我是一组文件
<
/h2
>
<
h2
>
我是一组文件
<
/h2
>
<
/div>
)
}
\ No newline at end of file
src/views/cssPage/index.less
0 → 100644
View file @
05560f7a
.cssPage{
color: red ;
}
.cssPage p{
color:blue
}
#wh2{
color: green;
}
.cssPage h1,h2{
text-align: center;
}
/**
class 选择器
id 选择器
层级选择器
**/
\ No newline at end of file
src/views/cssPage/index1.less
0 → 100644
View file @
05560f7a
.cssPage{
color: red ;
p{
color:blue
}
#wh2{
color: green;
}
h1,h2{
text-align: center;
}
}
/**
class 选择器
id 选择器
层级选择器
**/
\ No newline at end of file
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