From d4ca8ac25d3278f878aa272bdbc6bf0990896b3c Mon Sep 17 00:00:00 2001 From: Jun Shindo <46585162+jay-es@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:41:17 +0900 Subject: [PATCH] Update RendererOptions according to the latest source code --- src/api/custom-renderer.md | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/api/custom-renderer.md b/src/api/custom-renderer.md index 63dff5cf0..ba383b376 100644 --- a/src/api/custom-renderer.md +++ b/src/api/custom-renderer.md @@ -22,24 +22,16 @@ key: string, prevValue: any, nextValue: any, - // 残りはほとんどのカスタムレンダラーで使用されません - isSVG?: boolean, - prevChildren?: VNode[], + namespace?: ElementNamespace, parentComponent?: ComponentInternalInstance | null, - parentSuspense?: SuspenseBoundary | null, - unmountChildren?: UnmountChildrenFn - ): void - insert( - el: HostNode, - parent: HostElement, - anchor?: HostNode | null ): void + insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void remove(el: HostNode): void createElement( type: string, - isSVG?: boolean, + namespace?: ElementNamespace, isCustomizedBuiltIn?: string, - vnodeProps?: (VNodeProps & { [key: string]: any }) | null + vnodeProps?: (VNodeProps & { [key: string]: any }) | null, ): HostElement createText(text: string): HostNode createComment(text: string): HostNode @@ -47,8 +39,6 @@ setElementText(node: HostElement, text: string): void parentNode(node: HostNode): HostElement | null nextSibling(node: HostNode): HostNode | null - - // 省略可能、DOM 固有のもの querySelector?(selector: string): HostElement | null setScopeId?(el: HostElement, id: string): void cloneNode?(node: HostNode): HostNode @@ -56,7 +46,9 @@ content: string, parent: HostElement, anchor: HostNode | null, - isSVG: boolean + namespace: ElementNamespace, + start?: HostNode | null, + end?: HostNode | null, ): [HostNode, HostNode] } ```