diff --git a/packages/uni-app-plus/src/view/framework/dom/components/UniCanvas.ts b/packages/uni-app-plus/src/view/framework/dom/components/UniCanvas.ts index a80389f85b3ae0ac81ba07ffdddb87ea7dbf25c4..f6911c76ceb285e15c3dc8bd6a0cf1092b614012 100644 --- a/packages/uni-app-plus/src/view/framework/dom/components/UniCanvas.ts +++ b/packages/uni-app-plus/src/view/framework/dom/components/UniCanvas.ts @@ -17,7 +17,7 @@ export class UniCanvas extends UniComponent { parentNodeId, refNodeId, nodeJson, - 'canvas > div' + 'uni-canvas > div' ) } } diff --git a/packages/uni-components/src/components/canvas/index.tsx b/packages/uni-components/src/components/canvas/index.tsx index ed9bc38e220b3bedad96f8bbd309bd7f05ee3429..372c2610005cb1c5fd959f28247f0a48092bd29e 100644 --- a/packages/uni-components/src/components/canvas/index.tsx +++ b/packages/uni-components/src/components/canvas/index.tsx @@ -108,11 +108,6 @@ export default /*#__PURE__*/ defineBuiltInComponent({ true ) - /* registerViewMethod< - { type: triggerMethodsName; data: any }, - { callbackId: number; data: any } - >(getCurrentPageId(), `canvas.${props.canvasId}`, _handleSubscribe) */ - onMounted(() => { _resize() }) @@ -136,7 +131,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
- {/* @ts-ignore */} + {/* @ts-expect-error */}