-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14499a6
commit 1500743
Showing
5 changed files
with
18 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import type { SetPageMetaOptions } from '@dcloudio/uni-api' | ||
import type { ComponentPublicInstance } from 'vue' | ||
export { | ||
requestComponentInfo, | ||
addIntersectionObserver, | ||
removeIntersectionObserver, | ||
} from '@dcloudio/uni-app-plus/platform' | ||
|
||
export const TEMP_PATH = '' // TODO 需要从applicationContext获取 | ||
|
||
export function setCurrentPageMeta( | ||
page: ComponentPublicInstance, | ||
options: SetPageMetaOptions | ||
) { | ||
// TODO: Implement | ||
} |
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
11 changes: 11 additions & 0 deletions
11
packages/uni-app-harmony/src/service/api/ui/setPageMeta.ts
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,11 @@ | ||
import type { SetPageMetaOptions } from '@dcloudio/uni-api' | ||
import type { ComponentPublicInstance } from 'vue' | ||
import { getPageIdByVm } from '@dcloudio/uni-core' | ||
|
||
export function setCurrentPageMeta( | ||
page: ComponentPublicInstance, | ||
options: SetPageMetaOptions | ||
) { | ||
const pageId = getPageIdByVm(page)! | ||
UniServiceJSBridge.invokeViewMethod('setPageMeta', options, pageId) | ||
} |