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

chore(vue3): Nc*Field rename default to icon slot #4543

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Sep 18, 2023

@ShGKme What do you think of this approach:

We rename the default slot of NcInputField to icon and then simply use !!$slots.icon as you proposed. This way, one anyway has to wrap the content for the icon slot in a template tag and it is easier to explain that one has to use v-if on the template when toggling the existence of an icon.
This then makes everything reactive without the need for an overkill solution, no?

And I think renaming to icon anyway makes sense, since it makes it clearer that it's, well, for an icon.

@raimund-schluessler raimund-schluessler force-pushed the feat/2152/input-field-icon-slot branch 2 times, most recently from d1bfb9b to bf36543 Compare September 18, 2023 20:46
@raimund-schluessler raimund-schluessler added 2. developing Work in progress feature: input-field Covering the InputField, TextField, ... vue 3 Related to the vue 3 migration labels Sep 18, 2023
@raimund-schluessler raimund-schluessler added this to the 9.0.0 next Vue 3 milestone Sep 18, 2023
@raimund-schluessler raimund-schluessler added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 18, 2023
@raimund-schluessler raimund-schluessler marked this pull request as ready for review September 18, 2023 20:52
Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

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

Thanks, seems to be a good solution to me

@raimund-schluessler raimund-schluessler merged commit 1fec9ce into next Sep 21, 2023
15 checks passed
@raimund-schluessler raimund-schluessler deleted the feat/2152/input-field-icon-slot branch September 21, 2023 15:53
@susnux susnux mentioned this pull request Jan 23, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews feature: input-field Covering the InputField, TextField, ... vue 3 Related to the vue 3 migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants