Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(WaterMark): 使用 toRef 保留 props.content 的响应性 #175

Merged
merged 2 commits into from
Nov 18, 2021

Conversation

kkaaddff
Copy link
Contributor

No description provided.

@sendya
Copy link
Member

sendya commented Nov 18, 2021

建议直接在 watchEffect 内第一行直接解构 prop content

watchEffect(() => {
      const canvas = document.createElement('canvas');

顺便把里面用到的 fontColor gapX gapY width height 之类的一并响应了把

@sendya sendya added bug Something isn't working enhancement New feature or request labels Nov 18, 2021
@kkaaddff
Copy link
Contributor Author

建议直接在 watchEffect 内第一行直接解构 prop content

watchEffect(() => {
      const canvas = document.createElement('canvas');

顺便把里面用到的 fontColor gapX gapY width height 之类的一并响应了把

已经将所有绘制背景图相关的props都移到 watch Effect内解构了

@sendya sendya merged commit 0ad2871 into vueComponent:next Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants