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

fix(switch): cannot change width dynamically #1435

Merged
merged 1 commit into from
Feb 8, 2021
Merged

Conversation

djkloop
Copy link
Contributor

@djkloop djkloop commented Feb 6, 2021

Cannot change the width dynamically, the subset does not change the width operation

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

Cannot change the width dynamically, the subset does not change the width operation
@element-bot
Copy link
Member

@djkloop
Copy link
Contributor Author

djkloop commented Feb 6, 2021

same error issues 20744

@@ -216,7 +213,6 @@ export default defineComponent({
return {
input,
core,
coreWidth,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can make coreWidth computed like

const coreWidth = computed(() => props.width || 40)

@jw-foss jw-foss merged commit c37f47f into element-plus:dev Feb 8, 2021
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.

None yet

4 participants