File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 41
41
"next" : " ^12.1.5" ,
42
42
"react" : " ^17.0.0" ,
43
43
"react-dom" : " ^17.0.0" ,
44
- "tarojs-plugin-platform-nextjs" : " /Users/bytedance/Documents/github/tarojs-plugin-platform-nextjs/packages/nextjs "
44
+ "tarojs-plugin-platform-nextjs" : " latest "
45
45
},
46
46
"devDependencies" : {
47
47
"@babel/core" : " ^7.8.0" ,
Original file line number Diff line number Diff line change 1
- .main {
2
- background-color : red ;
1
+ // mixins
2
+ .bordered {
3
+ border-top : dotted 1px black ;
4
+ border-bottom : solid 2px black ;
5
+ }
6
+
7
+ .a {
8
+ color : #111 ;
9
+ .bordered ();
10
+ }
11
+
12
+ // functions
13
+ @base : #f04615 ;
14
+ @width : 1 ;
15
+
16
+ .functions {
17
+ width : percentage (@width );
18
+ color : saturate (@base , 5% );
19
+ background-color : spin (lighten (@base , 25% ), 8 );
3
20
}
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ import {View} from '@tarojs/components'
2
2
import styles from './index.module.less' ;
3
3
4
4
const IndexView = ( ) => (
5
- < View className = { styles . main } >
6
- Hello, world!
7
- </ View >
5
+ < >
6
+ < View className = { styles . a } > 混合(Mixins)</ View >
7
+ < View className = { styles . functions } > 函数(Functions)</ View >
8
+ </ >
8
9
) ;
9
10
10
11
export default IndexView
You can’t perform that action at this time.
0 commit comments