优化组件/更新
This commit is contained in:
17
uni_modules/lime-style/mixins/platform.scss
Normal file
17
uni_modules/lime-style/mixins/platform.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
/* #ifdef APP-NVUE || UNI-APP-X && APP */
|
||||
$is-app: true;
|
||||
/* #endif */
|
||||
/* #ifndef APP-NVUE || UNI-APP-X && APP */
|
||||
$is-app: false;
|
||||
/* #endif */
|
||||
|
||||
@mixin is-app {
|
||||
@if $is-app {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin not-app {
|
||||
@if not($is-app) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user