Skip to content

Commit 39a4fab

Browse files
committed
0.0.47
1 parent e1af9d3 commit 39a4fab

File tree

21 files changed

+84
-88
lines changed

21 files changed

+84
-88
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [0.0.47](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.46...v0.0.47) (2024-03-27)
2+
3+
4+
### Features
5+
6+
* 移除编译时处理style ([e1af9d3](https://github.com/NervJS/parse-css-to-stylesheet/commit/e1af9d34f1e25ef6933a6b2f63a0e97674ecc8d8))
7+
8+
9+
110
## [0.0.46](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.45...v0.0.46) (2024-03-27)
211

312

__test__/compileMode.spec.mjs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Generated by [AVA](https://avajs.dev).
2121
return __inner_style_data__;␊
2222
}␊
2323
const Index = ()=>{␊
24-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', null)} className='item' compileMode harmonyDirection="column"/>, null);␊
24+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item' compileMode harmonyDirection="column"/>, null);␊
2525
};␊
2626
export default Index;␊
2727
`
@@ -43,7 +43,7 @@ Generated by [AVA](https://avajs.dev).
4343
return __inner_style_data__;␊
4444
}␊
4545
const Index = ()=>{␊
46-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', null)} className='item' compileMode harmonyDirection="row"/>, null);␊
46+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item' compileMode harmonyDirection="row"/>, null);␊
4747
};␊
4848
export default Index;␊
4949
`
@@ -66,7 +66,7 @@ Generated by [AVA](https://avajs.dev).
6666
return __inner_style_data__;␊
6767
}␊
6868
const Index = ()=>{␊
69-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', null)} className='item' compileMode harmonyDirection="row"/>, null);␊
69+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item' compileMode harmonyDirection="row"/>, null);␊
7070
};␊
7171
export default Index;␊
7272
`
@@ -89,7 +89,7 @@ Generated by [AVA](https://avajs.dev).
8989
return __inner_style_data__;␊
9090
}␊
9191
const Index = ()=>{␊
92-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', null)} className='item' compileMode harmonyDirection="column"/>, null);␊
92+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item' compileMode harmonyDirection="column"/>, null);␊
9393
};␊
9494
export default Index;␊
9595
`
@@ -112,9 +112,9 @@ Generated by [AVA](https://avajs.dev).
112112
return __inner_style_data__;␊
113113
}␊
114114
const Index = ()=>{␊
115-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', {␊
116-
flexDirection: FlexDirection.Row
117-
})} className='item' compileMode harmonyDirection="row"/>, null);␊
115+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item' compileMode style={{␊
116+
flexDirection: 'row'
117+
}} harmonyDirection="column"/>, null);␊
118118
};␊
119119
export default Index;␊
120120
`

__test__/compileMode.spec.mjs.snap

4 Bytes
Binary file not shown.

__test__/index.spec.mjs.md

Lines changed: 37 additions & 37 deletions
Large diffs are not rendered by default.

__test__/index.spec.mjs.snap

-4 Bytes
Binary file not shown.

__test__/selector.spec.mjs.md

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Generated by [AVA](https://avajs.dev).
2121
return __inner_style_data__;␊
2222
}␊
2323
const Index = ()=>{␊
24-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, null);␊
24+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, null);␊
2525
};␊
2626
export default Index;␊
2727
`
@@ -72,7 +72,7 @@ Generated by [AVA](https://avajs.dev).
7272
return __inner_style_data__;␊
7373
}␊
7474
const Index = ()=>{␊
75-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, __nesting_style__());␊
75+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, __nesting_style__());␊
7676
};␊
7777
export default Index;␊
7878
`
@@ -123,7 +123,7 @@ Generated by [AVA](https://avajs.dev).
123123
return __inner_style_data__;␊
124124
}␊
125125
const Index = ()=>{␊
126-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, __nesting_style__());␊
126+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, __nesting_style__());␊
127127
};␊
128128
export default Index;␊
129129
`
@@ -164,7 +164,7 @@ Generated by [AVA](https://avajs.dev).
164164
return __inner_style_data__;␊
165165
}␊
166166
const Index = ()=>{␊
167-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, __nesting_style__());␊
167+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, __nesting_style__());␊
168168
};␊
169169
export default Index;␊
170170
`
@@ -189,7 +189,7 @@ Generated by [AVA](https://avajs.dev).
189189
return __inner_style_data__;␊
190190
}␊
191191
const Index = ()=>{␊
192-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, null);␊
192+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, null);␊
193193
};␊
194194
export default Index;␊
195195
`
@@ -211,7 +211,7 @@ Generated by [AVA](https://avajs.dev).
211211
return __inner_style_data__;␊
212212
}␊
213213
const Index = ()=>{␊
214-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, null);␊
214+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, null);␊
215215
};␊
216216
export default Index;␊
217217
`
@@ -233,7 +233,7 @@ Generated by [AVA](https://avajs.dev).
233233
return __inner_style_data__;␊
234234
}␊
235235
const Index = ()=>{␊
236-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, null);␊
236+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, null);␊
237237
};␊
238238
export default Index;␊
239239
`
@@ -244,16 +244,10 @@ Generated by [AVA](https://avajs.dev).
244244
245245
`import { View } from '@tarojs/components';␊
246246
import { calcStaticStyle, convertNumber2VP, __combine_nesting_style__, __var_fn, globalCss } from "@tarojs/runtime";␊
247-
let __inner_style_data__;␊
248-
function __inner_style__() {␊
249-
if (__inner_style_data__) return __inner_style_data__;␊
250-
__inner_style_data__ = {};␊
251-
return __inner_style_data__;␊
252-
}␊
253247
const Index = ()=>{␊
254-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), null, {␊
255-
height: convertNumber2VP(100)
256-
})}/>, null);␊
248+
return __combine_nesting_style__(<View style={{␊
249+
height: '100px'
250+
}}/>, null);␊
257251
};␊
258252
export default Index;␊
259253
`
@@ -278,17 +272,10 @@ Generated by [AVA](https://avajs.dev).
278272
279273
`import { View } from '@tarojs/components';␊
280274
import { calcStaticStyle, convertNumber2VP, __combine_nesting_style__, __var_fn, globalCss } from "@tarojs/runtime";␊
281-
let __inner_style_data__;␊
282-
function __inner_style__() {␊
283-
if (__inner_style_data__) return __inner_style_data__;␊
284-
__inner_style_data__ = {};␊
285-
return __inner_style_data__;␊
286-
}␊
287275
const Index = ()=>{␊
288-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), null, {␊
289-
width: convertNumber2VP(100)␊
290-
})} style={{␊
291-
height: Math.random() > 0 ? '100px' : '50px'␊
276+
return __combine_nesting_style__(<View style={{␊
277+
height: Math.random() > 0 ? '100px' : '50px',␊
278+
width: '100px'␊
292279
}}/>, null);␊
293280
};␊
294281
export default Index;␊
@@ -311,7 +298,7 @@ Generated by [AVA](https://avajs.dev).
311298
return __inner_style_data__;␊
312299
}␊
313300
const Index = ()=>{␊
314-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', null)} className='item'/>, null);␊
301+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item'/>, null);␊
315302
};␊
316303
export default Index;␊
317304
`
@@ -333,7 +320,7 @@ Generated by [AVA](https://avajs.dev).
333320
return __inner_style_data__;␊
334321
}␊
335322
const Index = ()=>{␊
336-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item', null)} className='item'/>, null);␊
323+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'item')} className='item'/>, null);␊
337324
};␊
338325
export default Index;␊
339326
`
@@ -363,7 +350,7 @@ Generated by [AVA](https://avajs.dev).
363350
return __inner_style_data__;␊
364351
}␊
365352
const Index = ()=>{␊
366-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, null);␊
353+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, null);␊
367354
};␊
368355
export default Index;␊
369356
`
@@ -397,7 +384,7 @@ Generated by [AVA](https://avajs.dev).
397384
return __inner_style_data__;␊
398385
}␊
399386
const Index = ()=>{␊
400-
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index', null)} className='index'/>, null);␊
387+
return __combine_nesting_style__(<View __hmStyle={calcStaticStyle(__inner_style__(), 'index')} className='index'/>, null);␊
401388
};␊
402389
export default Index;␊
403390
`

__test__/selector.spec.mjs.snap

-13 Bytes
Binary file not shown.

npm/android-arm-eabi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-android-arm-eabi",
3-
"version": "0.0.46",
3+
"version": "0.0.47",
44
"os": [
55
"android"
66
],

npm/android-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-android-arm64",
3-
"version": "0.0.46",
3+
"version": "0.0.47",
44
"os": [
55
"android"
66
],

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-arm64",
3-
"version": "0.0.46",
3+
"version": "0.0.47",
44
"os": [
55
"darwin"
66
],

0 commit comments

Comments
 (0)