Skip to content

Commit 2d9c4bb

Browse files
author
CakmLexi
committed
fix: #53
1 parent 8884ff4 commit 2d9c4bb

File tree

2 files changed

+35
-23
lines changed

2 files changed

+35
-23
lines changed

.vscode/settings.json

+32-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
11
{
2-
"editor.detectIndentation": false,
3-
"editor.tabSize": 2,
4-
"editor.formatOnSave": true,
5-
"editor.formatOnType": false,
6-
"editor.formatOnPaste": true,
7-
"editor.formatOnSaveMode": "file",
8-
"editor.codeActionsOnSave": {
9-
"source.fixAll.eslint": "always"
10-
},
11-
"files.autoSave": "onFocusChange",
12-
// 单引号
13-
"javascript.preferences.quoteStyle": "single",
14-
"typescript.preferences.quoteStyle": "single",
15-
// 去掉分号
16-
"javascript.format.semicolons": "remove",
17-
"typescript.format.semicolons": "remove",
18-
// 函数括号前面加空格
19-
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
20-
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
21-
// 构造函数后面加空格
22-
"typescript.format.insertSpaceAfterConstructor": true,
23-
"javascript.format.insertSpaceAfterConstructor": true,
2+
"editor.detectIndentation": false,
3+
"editor.tabSize": 2,
4+
"editor.formatOnSave": true,
5+
"editor.formatOnType": false,
6+
"editor.formatOnPaste": true,
7+
"editor.formatOnSaveMode": "file",
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll.eslint": "always"
10+
},
11+
"files.autoSave": "onFocusChange",
12+
// 单引号
13+
"javascript.preferences.quoteStyle": "single",
14+
"typescript.preferences.quoteStyle": "single",
15+
// 去掉分号
16+
"javascript.format.semicolons": "remove",
17+
"typescript.format.semicolons": "remove",
18+
// 函数括号前面加空格
19+
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
20+
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
21+
// 构造函数后面加空格
22+
"typescript.format.insertSpaceAfterConstructor": true,
23+
"javascript.format.insertSpaceAfterConstructor": true,
24+
"vetur.format.defaultFormatter.html": "js-beautify-html",
25+
"vetur.format.defaultFormatter.js": "prettier",
26+
"vetur.format.defaultFormatterOptions": {
27+
"js-beautify-html": {
28+
"wrap_attributes": "force-aligned"
29+
}
30+
},
31+
"vetur.validation.template": true,
32+
"vetur.validation.script": true,
33+
"vetur.validation.style": true
2434
}

src/types/render.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export interface KarinRenderType {
1111
/**
1212
* - vue文件路径 与file二选一
1313
*/
14-
vue?: string
14+
vue?: boolean
15+
// 暂时先any处理 兼容旧版本
16+
props: any
1517
/**
1618
* - 模板名称
1719
*/

0 commit comments

Comments
 (0)