Skip to content

[modal] modal use :style="some string not object" will cause error #5448

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

Closed
1 task done
candy-Tong opened this issue Apr 7, 2022 · 1 comment · Fixed by #5449
Closed
1 task done

[modal] modal use :style="some string not object" will cause error #5448

candy-Tong opened this issue Apr 7, 2022 · 1 comment · Fixed by #5449
Labels

Comments

@candy-Tong
Copy link
Contributor

candy-Tong commented Apr 7, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

windows10,google chrome 79.0.3945.130,vue 2.6.10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 点击按钮就会报错

Failed to set an indexed property on 'CSSStyleDeclaration': Indexed property setter is not supported.

What is expected?

  1. 能打开弹窗

What is actually happening?

不能打开弹窗

是由这个句引起的
image

image

vue :style 支持传入字符串,这时候 $attrs.style 拿到的也是字符串,如果 extend 字符串就会出现问题

@github-actions
Copy link

github-actions bot commented Apr 9, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant