-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update common types * fix: add EasyCom comments * chore: comments * feat: update globalStyles * feat: update schema * chore: naming * feat: tabBar types * fix: allow additional props * feat: condition types * feat!: subPackages types * feat: preloadRule types * feat: workers types * feat: theWindow types * feat: uniIdRouter types * fix: update exports * feat: globalStyle navigationBarShadow type * test: fix * fix: fix types
- Loading branch information
Showing
24 changed files
with
5,468 additions
and
787 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export interface ConditionItem { | ||
/** | ||
* 启动模式名称 | ||
*/ | ||
name: string | ||
|
||
/** | ||
* 启动页面路径 | ||
*/ | ||
path: string | ||
|
||
/** | ||
* 启动参数,可在页面的 onLoad 函数里获得 | ||
*/ | ||
query?: string | ||
} | ||
|
||
export interface Condition { | ||
/** | ||
* 当前激活的模式,list 节点的索引值 | ||
*/ | ||
current: number | ||
|
||
/** | ||
* 启动模式列表 | ||
*/ | ||
list: Partial<ConditionItem>[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
export interface EasyCom { | ||
/** | ||
* 是否开启自动扫描,开启后将会自动扫描符合 `components/组件名称/组件名称.vue` 目录结构的组件 | ||
* | ||
* @default true | ||
*/ | ||
autoscan?: boolean | ||
|
||
/** | ||
* 以正则方式自定义组件匹配规则 | ||
* | ||
* 如果 `autoscan` 不能满足需求,可以使用 `custom` 自定义匹配规则 | ||
* | ||
* @example | ||
* "custom": { | ||
* "^uni-(.*)": "@/components/uni-$1.vue", // 匹配 components 目录内的 vue 文件 | ||
* "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配 node_modules 内的 vue 文件 | ||
* } | ||
} | ||
*/ | ||
custom?: Record<string, string> | ||
} |
Oops, something went wrong.