-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 修复instanceConfig为undefined的错误 - 其他 type: 新增 - beforeCreate周期函数this为void - watch字段添加注入数据的类型
- Loading branch information
Showing
9 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
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
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
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,20 @@ | ||
import { Checking, Test } from "hry-types"; | ||
import { RootComponent } from "../.."; | ||
|
||
/** | ||
* watch data字段 深度只读 | ||
*/ | ||
RootComponent()({ | ||
watch: { | ||
injectStr(newValue, oldValue) { | ||
Checking<string, typeof newValue, Test.Pass>; | ||
|
||
Checking<string, typeof oldValue, Test.Pass>; | ||
}, | ||
injectTheme(newValue, oldValue) { | ||
Checking<"dark" | "light" | undefined, typeof newValue, Test.Pass>; | ||
|
||
Checking<"dark" | "light" | undefined, typeof oldValue, Test.Pass>; | ||
}, | ||
}, | ||
}); |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import type { NoInfer } from "hry-types/src/Generic/NoInfer"; | ||
import type { WatchOption } from "../../RootComponent/Watch/WatchOption"; | ||
|
||
export type SubWatchOption<TWatchData extends object> = WatchOption<NoInfer<TWatchData>>; | ||
export type SubWatchOption<TWatchData extends object> = WatchOption<TWatchData>; |
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