Skip to content

Commit 12a65e0

Browse files
committed
feat: 完成转换工作
1 parent 0ed8cb3 commit 12a65e0

25 files changed

+857
-811
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Debug Rust",
66
"type": "lldb",
77
"request": "launch",
8-
// "program": "/Users/zhuminghui2/.nvm/versions/node/v16.20.2/bin/node",
8+
"program": "/Users/zhuminghui2/.nvm/versions/node/v16.20.2/bin/node",
99
"cwd": "${workspaceFolder}",
1010
"args": [
1111
"${workspaceFolder}/__test__/index.js"

__test__/fixure/pesudo.jsx

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

44
function Pesudo() {
55

6-
return <View className='pesudo'></View>
7-
}
6+
return <View className='pesudo'>
7+
<Text className='text'>asdasdasdasdasd</Text>
8+
</View>
9+
}

__test__/fixure/pesudo.scss

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
2-
31
.pesudo {
4-
height: 200px;
5-
width: 200px;
2+
height: 400px;
3+
width: 400px;
64
}
75

8-
.pesudo::before {
9-
content: '';
10-
color: #00f;
6+
.pesudo:last-child {
7+
color: red;
118
}
12-
.pesudo::after {
13-
content: '';
14-
color: #f00;
15-
height: 20px;
9+
10+
.text {
11+
font-size: 20px;
12+
text-overflow: ellipsis;
1613
}

__test__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ process.env.platform = 'arm64'
44
const { parse } = require('../index.js')
55
const component = fs.readFileSync(path.resolve(__dirname, 'fixure/mod.jsx'), 'utf8')
66
const css1 = fs.readFileSync(path.resolve(__dirname, 'fixure/Mod.scss'), 'utf8')
7-
const code = parse(component, [css1], "ReactNative")
7+
const code = parse(component, [css1], "Harmony")
88

99
console.log(code)

0 commit comments

Comments
 (0)