diff --git a/packages/uni-app-plus/src/PageAction.ts b/packages/uni-app-plus/src/PageAction.ts index 355e819ed5376ab00feb5bacda009bf4c914970d..26194967dbc92fce9d908da4fb5e1fc6e607842a 100644 --- a/packages/uni-app-plus/src/PageAction.ts +++ b/packages/uni-app-plus/src/PageAction.ts @@ -50,27 +50,27 @@ type NodeAction> = [/* nodeId */ number, ...T] export type InsertAction = [ typeof ACTION_TYPE_INSERT, - ...NodeAction> + ...NodeAction['insert']>> ] export type RemoveAction = [ typeof ACTION_TYPE_REMOVE, - ...NodeAction> + ...NodeAction['remove']>> ] export type SetAttributeAction = [ typeof ACTION_TYPE_SET_ATTRIBUTE, - ...NodeAction> + ...NodeAction['setAttr']>> ] export type RemoveAttributeAction = [ typeof ACTION_TYPE_REMOVE_ATTRIBUTE, - ...NodeAction> + ...NodeAction['removeAttr']>> ] export type SetTextAction = [ typeof ACTION_TYPE_SET_TEXT, - ...NodeAction> + ...NodeAction['setText']>> ] export type PageUpdateAction = diff --git a/packages/uni-app-plus/src/view/framework/dom/page.ts b/packages/uni-app-plus/src/view/framework/dom/page.ts index 854e4655e6d76bcd7aa68086a9c9f309ab0df3f0..dace26340f2563ddd8cb64f2dc444ef29bc72e5f 100644 --- a/packages/uni-app-plus/src/view/framework/dom/page.ts +++ b/packages/uni-app-plus/src/view/framework/dom/page.ts @@ -16,7 +16,7 @@ import { UniNode } from './elements/UniNode' const elements = new Map() export function $(id: number) { - return elements.get(id) as UniElement + return elements.get(id) as UniElement } export function createElement(id: number, tag: string | number) {