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

使用dom绑定规则,然后使用js初始化的时候,theme设置无效 #242

Closed
shangwq opened this Issue Oct 26, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@shangwq
Copy link

shangwq commented Oct 26, 2016

使用dom绑定规则,然后使用js初始化的时候,设置theme为yellow_right无效,还是使用了default主题。

  1. 只使用dom绑定,不使用js初始化就可以
  2. 或者js初始化的时候另外设置formClass: 'n-yellow', msgClass: 'n-right', msgArrow: '' 也可以
@niceue

This comment has been minimized.

Copy link
Owner

niceue commented Oct 28, 2016

使用的 nice-validator 那个版本呢,以前老版本如果全局设置了 theme,可能会有这个问题

@shangwq

This comment has been minimized.

Copy link
Author

shangwq commented Oct 29, 2016

最新的1.0.7

@niceue

This comment has been minimized.

Copy link
Owner

niceue commented Nov 1, 2016

@shangwq DOM 绑定参数比 js 参数 优先级高

@shangwq

This comment has been minimized.

Copy link
Author

shangwq commented Nov 11, 2016

这时候无论dom指定theme还是js指定都无效,只能在js中指定formClass、msgClass

@niceue niceue closed this in f4fd1fb Nov 18, 2016

@niceue niceue added the bug label Nov 18, 2016

@niceue

This comment has been minimized.

Copy link
Owner

niceue commented Nov 18, 2016

@shangwq v1.0.8 已解决这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment