Skip to content

Commit 358cbfa

Browse files
committed
feat: 移除无用配置
1 parent 64e550c commit 358cbfa

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.0.54](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.53...v0.0.54) (2024-04-15)
2+
3+
4+
15
## [0.0.53](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.52...v0.0.53) (2024-04-12)
26

37

__test__/fixure/pesudo.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import { View, Text } from '@tarojs/components'
22
import './pesudo.scss'
33

44
export default function Pesudo() {
5-
return <View className='container'></View>
5+
return <View className='container'>
6+
<View className='box'></View>
7+
</View>
68
}

__test__/fixure/pesudo.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
.container {
22
align-items: baseline;
3-
animation: fade 1s ease-in-out;
43
}
5-
6-
@keyframes fade {
7-
0%, 10% {
8-
opacity: 0;
9-
}
10-
100% {
11-
opacity: 1;
12-
width: 30px;
13-
}
14-
}

index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
export interface ParseOptions {
77
platformString: string
8-
isEnableNesting?: boolean
98
}
109
export interface ParseResult {
1110
code: string

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ mod parse_style_properties;
3232
#[napi(object)]
3333
#[derive(Deserialize)]
3434
pub struct ParseOptions {
35-
pub platform_string: String,
36-
pub is_enable_nesting: Option<bool>,
35+
pub platform_string: String
3736
}
3837

3938
#[napi(object)]
@@ -50,7 +49,6 @@ pub fn parse(component: String, styles: Vec<String>, options: ParseOptions) -> P
5049
_ => Platform::Harmony
5150
};
5251

53-
// let mut is_enable_nesting = options.is_enable_nesting.map_or(false, |item| item);
5452
let mut is_enable_nesting = true;
5553

5654
// 解析组件文件

0 commit comments

Comments
 (0)