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

x-input component labelWidth got too long when passing html string #1186

Closed
mingmingwon opened this issue Mar 30, 2017 · 0 comments
Closed

Comments

@mingmingwon
Copy link
Contributor

mingmingwon commented Mar 30, 2017

File: src/components/x-input/index.vue
Line: 251
Description: title prop when passing html string(eg: "<span style='color: green'>Title</span>"), computed prop labelWidth got too long...see screenshot below

labelWidth () {
  return this.title.replace(/[^x00-xff]/g, '00').length / 2 + 1
},

default

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

No branches or pull requests

1 participant