Why the first child and the last child don't work? #4885
Answered
by
carveybunt
carveybunt
asked this question in
Help
-
|
In my button Vue component, I set: ……
<button class="first:rounded-l-full last:rounded-r-full">
<slot></slot>
</button>
……
name: 'Button',
……In my ButtonGroup Vue component, I set: <template>
<div class="inline-block">
<slot></slot>
</div>
</template>
……
name: 'ButtonGroup',
……In my parent Vue component, I set: <button-group>
<button>one<button>
<button>two<button>
<button>three<button>
<button-group>
……
……
variants: {
extend: {
borderWidth: ['first', 'last'],
borderRadius: ['first', 'last','hover', 'focus'],
},
},
……Why the style of the first child and the last child didn't work? Could guys help me, pls! |
Beta Was this translation helpful? Give feedback.
Answered by
carveybunt
Jul 4, 2021
Replies: 1 comment
-
|
It's working after I restart the IDEA. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adamwathan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's working after I restart the IDEA.