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

解决弹窗按钮问题 #313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

解决弹窗按钮问题 #313

wants to merge 1 commit into from

Conversation

mingjiu
Copy link

@mingjiu mingjiu commented Jun 21, 2017

修改代码 src/dialog.js 的 393 行,
选择器[key=value]的形式下,会出现的问题如下:
当button的配置项内没有 id, 并且 value 的值时多个英文单词,例如:Click me. 这个情况下,该按钮的i-id=Click me。 因此造成 [i-id=Click me]这个选择无法获取按钮的dom,导致功能异常。

修改成[key="value"]的形式,则可解决该问题。

修改代码 src/dialog.js 的 393 行,
选择器[key=value]的形式下,会出现的问题如下:
当button的配置项内没有 id, 并且 value 的值时多个英文单词,例如:Click me. 这个情况下,该按钮的i-id=Click
me。 因此造成 [i-id=Click me]这个选择无法获取按钮的dom,导致功能异常。

修改成[key="value"]的形式,则可解决该问题。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant