Skip to content

Commit ee128b2

Browse files
committed
fix: some wxml typescript error reports
1 parent 0e8a8e2 commit ee128b2

File tree

12 files changed

+51
-43
lines changed

12 files changed

+51
-43
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compact_str = "0.8.0"
1616
cssparser = "0.34.0"
1717
cssparser-color = "0.2.0"
1818
futures = "0.3.31"
19-
glass-easel-template-compiler = "0.16.0"
19+
glass-easel-template-compiler = "0.16.1"
2020
itertools = "0.13.0"
2121
log = "0.4.22"
2222
lsp-server = "0.7.7"

pnpm-lock.yaml

Lines changed: 17 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode-extension/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,9 @@
163163
"eslint-plugin-import": "^2.32.0",
164164
"eslint-plugin-prettier": "^5.5.4",
165165
"eslint-plugin-promise": "^7.2.1",
166-
"glass-easel": "^0.16.0",
167-
"glass-easel-miniprogram-adapter": "^0.16.0",
168-
"glass-easel-miniprogram-template": "^0.16.0",
169-
"glass-easel-miniprogram-typescript": "^0.16.0",
170-
"glass-easel-template-compiler": "^0.16.0",
166+
"glass-easel": "^0.16.1",
167+
"glass-easel-miniprogram-adapter": "^0.16.1",
168+
"glass-easel-miniprogram-typescript": "^0.16.1",
171169
"prettier": "^3.6.2",
172170
"ts-loader": "^9.5.1",
173171
"typescript": "^5.5.4",

vscode-extension/src/test/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const wxssCases = [
3434
'unknown-at-rule',
3535
]
3636

37-
const wxmlTsCases = ['basic', 'special', 'non-export', 'global-using']
37+
const wxmlTsCases = ['basic', 'special', 'non-export', 'global-using', 'scope']
3838

3939
const EXTENSION_DIR = path.resolve(__dirname, '..', '..')
4040
const TEST_FIXTURE_DIR = path.resolve(EXTENSION_DIR, 'test-fixture')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Component()
1+
export default Component()
22
.data(() => ({ abc: 123 }))
33
.register()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<view>{{ def }}</view>
1+
<view>a {{ abc > 50 ? 'b' : 'c' }}</view>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"component": true,
3+
"usingComponents": {
4+
"comp": "./comp"
5+
}
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default Component()
2+
.data(() => ({ abc: 123, arr: [1, 2, 3] }))
3+
.register()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<wxs module="modA">
2+
exports.func = function() {
3+
return 'abc'
4+
}
5+
</wxs>
6+
7+
<view wx:for="{{ modA.func() }}" wx:for-item="v"></view>
8+
9+
<view wx:for="{{ arr }}">{{ item }}</view>
10+
11+
<view let:s="{{ abc }}">{{ s }}</view>

0 commit comments

Comments
 (0)