From 0965a38545cc390ae5b2bf515fe00f3e81ba9b16 Mon Sep 17 00:00:00 2001 From: DCloud-yyl Date: Fri, 15 Nov 2024 15:57:28 +0800 Subject: [PATCH] Update README.md --- docs/dom/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/dom/README.md b/docs/dom/README.md index 9063838a..5d2f8578 100644 --- a/docs/dom/README.md +++ b/docs/dom/README.md @@ -180,6 +180,9 @@ DrawableContext 可通过`view`组件节点对象(UniElement)的`getDrawable ``` +**注意** +`DrawableContext` 对象需等元素渲染到页面后才能正常使用,要在页面 `onReady` 生命周期后获取。 + ### 绘制内容 通过 DrawableContext 提供的 Draw API 绘制文本、形状等内容 -- GitLab