File tree 8 files changed +48
-68
lines changed
8 files changed +48
-68
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ module.exports.pitch = function() {
149
149
locals += theme + ','
150
150
}
151
151
152
- return `${ resultSource } \nlet locals\n${ first } && Object.keys( ${ first } ).length && (locals = getOb({${ locals } }))\nexport default locals`
152
+ return `${ resultSource } \nlet locals\n${ first } && (locals = getOb({${ locals } }))\nexport default locals`
153
153
}
154
154
/// 其他 ///
155
155
module . exports . init = init
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default class extends Vue {
93
93
}
94
94
95
95
set theme(theme: string) {
96
- statePrefer.setSkin (theme)
96
+ statePrefer.setTheme (theme)
97
97
}
98
98
}
99
99
</script>
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ export default class extends Vue {
189
189
}
190
190
191
191
set theme(theme: string) {
192
- statePrefer.setSkin (theme)
192
+ statePrefer.setTheme (theme)
193
193
}
194
194
}
195
195
</script>
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class Prefer extends VuexModule implements IPrefer {
45
45
* @param {String } theme 皮肤名
46
46
*/
47
47
@Action
48
- setSkin ( theme : string ) {
48
+ setTheme ( theme : string ) {
49
49
this . context . commit ( 'THEME' , theme )
50
50
}
51
51
Original file line number Diff line number Diff line change 1
- /*
1
+ /* * 深色主题
2
2
* @Description: 全局scss变量
3
3
* 【此文件中请勿出现具体样式,否则会打包到!所有!css chunk中】
4
4
* 【在此文件中导出的变量会混合到!所有!scss的导出中】
16
16
@import ' ../parts/icon' ; // 字体图标变量 【iconCase】
17
17
18
18
/* ---------------------- 我是一条分割线 (灬°ω°灬) ---------------------- */
19
-
20
- /// 扩展(@extend %ellipsis;) ///
21
-
22
- // 单行文本溢出省略号
23
- %ellipsis {
24
- overflow : hidden ;
25
- white-space : nowrap ;
26
- text-overflow : ellipsis ;
27
- }
28
-
29
- // 在页面居中【需要指定高宽】
30
- %centerPage {
31
- position : absolute ;
32
- top : 0 ;
33
- right : 0 ;
34
- bottom : 0 ;
35
- left : 0 ;
36
- margin : auto ;
37
- }
19
+ @import ' ../parts/extend' ; // 扩展 @extend %{var};
38
20
39
21
/* ---------------------- 我也是一条分割线 (*❦ω❦) ---------------------- */
40
-
41
- /// 混入(@include name(args);) ///
42
-
43
- // 多行溢出省略号(-webkit-有效,其它截断) 参数为行数
44
- @mixin ellipsis ($clamp ) {
45
- // -webkit-多行溢出省略号
46
- -webkit-box-orient : vertical ; /* stylelint-disable-line property-no-vendor-prefix */
47
- -webkit-line-clamp : $clamp ;
48
- display : -webkit-box ; /* stylelint-disable-line value-no-vendor-prefix */
49
- overflow : hidden ;
50
- word-break : break-word ;
51
- }
22
+ @import ' ../parts/mixin' ; // 混入@include name(args);
Original file line number Diff line number Diff line change 1
- /*
1
+ /* * 浅色主题
2
2
* @Description: 全局scss变量
3
3
* 【此文件中请勿出现具体样式,否则会打包到!所有!css chunk中】
4
4
* 【在此文件中导出的变量会混合到!所有!scss的导出中】
16
16
@import ' ../parts/icon' ; // 字体图标变量 【iconCase】
17
17
18
18
/* ---------------------- 我是一条分割线 (灬°ω°灬) ---------------------- */
19
-
20
- /// 扩展(@extend %ellipsis;) ///
21
-
22
- // 单行文本溢出省略号
23
- %ellipsis {
24
- overflow : hidden ;
25
- white-space : nowrap ;
26
- text-overflow : ellipsis ;
27
- }
28
-
29
- // 在页面居中【需要指定高宽】
30
- %centerPage {
31
- position : absolute ;
32
- top : 0 ;
33
- right : 0 ;
34
- bottom : 0 ;
35
- left : 0 ;
36
- margin : auto ;
37
- }
19
+ @import ' ../parts/extend' ; // 扩展 @extend %{var};
38
20
39
21
/* ---------------------- 我也是一条分割线 (*❦ω❦) ---------------------- */
40
-
41
- /// 混入(@include name(args);) ///
42
-
43
- // 多行溢出省略号(-webkit-有效,其它截断) 参数为行数
44
- @mixin ellipsis ($clamp ) {
45
- // -webkit-多行溢出省略号
46
- -webkit-box-orient : vertical ; /* stylelint-disable-line property-no-vendor-prefix */
47
- -webkit-line-clamp : $clamp ;
48
- display : -webkit-box ; /* stylelint-disable-line value-no-vendor-prefix */
49
- overflow : hidden ;
50
- word-break : break-word ;
51
- }
22
+ @import ' ../parts/mixin' ; // 混入@include name(args);
Original file line number Diff line number Diff line change
1
+ /// 扩展(@extend %ellipsis;) ///
2
+
3
+ // 单行文本溢出省略号
4
+ %ellipsis {
5
+ overflow : hidden ;
6
+ white-space : nowrap ;
7
+ text-overflow : ellipsis ;
8
+ }
9
+
10
+ // 在页面居中【需要指定高宽】
11
+ %centerPage {
12
+ position : absolute ;
13
+ top : 0 ;
14
+ right : 0 ;
15
+ bottom : 0 ;
16
+ left : 0 ;
17
+ margin : auto ;
18
+ }
Original file line number Diff line number Diff line change
1
+ /// 混入(@include name(args);) ///
2
+
3
+ // 多行溢出省略号(-webkit-有效,其它截断) 参数为行数
4
+ @mixin ellipsis ($clamp ) {
5
+ // -webkit-多行溢出省略号
6
+ -webkit-box-orient : vertical ; /* stylelint-disable-line property-no-vendor-prefix */
7
+ -webkit-line-clamp : $clamp ;
8
+ display : -webkit-box ; /* stylelint-disable-line value-no-vendor-prefix */
9
+ overflow : hidden ;
10
+ word-break : break-word ;
11
+ }
12
+
13
+ // 清除浮动
14
+ @mixin clear ($float : both ) {
15
+ & ::after {
16
+ display : block ;
17
+ clear : $float ;
18
+ content : ' ' ;
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments