File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 17
17
18
18
- [ pages-json-schema] ( ./packages/schema/ )
19
19
20
- 为 ` pages.json ` 提供 schema
20
+ 为 uni-app 的 ` pages.json ` 提供 schema
21
21
22
22
23
23
## 安装
Original file line number Diff line number Diff line change
1
+ # @uni-helper/pages-json-schema
2
+
3
+ 为 uni-app 的 ` pages.json ` 提供 schema
4
+
5
+ ## 安装
6
+
7
+ ``` bash
8
+ pnpm add @uni-helper/pages-json-schema
9
+ ```
10
+
11
+ ## 用法
12
+
13
+ ``` js
14
+ import PagesSchema from ' @uni-helper/pages-json-schema'
15
+
16
+ console .log (PagesSchema)
17
+
18
+ // {
19
+ // "$ref": "#/definitions/PagesConfig",
20
+ // "$schema": "http://json-schema.org/draft-07/schema#",
21
+ // "definitions": {...}
22
+ // }
23
+ ```
Original file line number Diff line number Diff line change
1
+ # @uni-helper/volar-plugin-uni-pages
2
+
3
+ 为 ` <route> ` 块 提供 IntelliSense
4
+
5
+ ## 安装
6
+
7
+ ``` bash
8
+ pnpm add -D @uni-helper/volar-plugin-uni-pages
9
+ ```
10
+
11
+ ## 用法
12
+
13
+ ``` js
14
+ // volar.config.js
15
+ const volarPluginUniPages = require (' @uni-helper/volar-plugin-uni-pages' )
16
+
17
+ module .exports = {
18
+ plugins: [
19
+ volarPluginUniPages (),
20
+ ],
21
+ }
22
+ ```
You can’t perform that action at this time.
0 commit comments