We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e19ff commit 4659865Copy full SHA for 4659865
README.md
@@ -20,10 +20,10 @@
20
21
### 配置项
22
23
-| 字段 | 必填 | 默认 | 含义 |
24
-| ---------- | ---- | ---------------------------------------------------------------- | ---------------------- |
25
-| importPath | 是 | 无 | 导入路径 |
26
-| isPage | 否 | (path) => /(package-.+\/)?pages\/.+\/index\.[tj]sx\$/.test(path) | 判断当前文件是不是页面 |
+| 字段 | 必填 | 默认 | 含义 |
+| ---------- | ---- | --------------------------------------------------------------------------- | ---------------------- |
+| importPath | 是 | 无 | 导入路径 |
+| isPage | 否 | (path) => /(package-.+\/)?pages\/[A-Za-z0-9-]+\/index\.[tj]sx\$/.test(path) | 判断当前文件是不是页面 |
27
28
isPage 不传的情况下,默认会将 `src/pages/页面名称/index.[tj]sx` 和 `src/package-模块名称/pages/页面名称/index.[tj]sx` 这两种情形下的文件识别为页面。
29
0 commit comments