| 1 |
<div |
| 2 |
class="cx-vui-repeater" |
| 3 |
tabindex="0" |
| 4 |
@focus="inFocus = true" |
| 5 |
@blur="inFocus = false" |
| 6 |
@keyup.alt.78.stop="handleClick" |
| 7 |
v-if="isVisible()" |
| 8 |
> |
| 9 |
<div class="cx-vui-repeater__items"> |
| 10 |
<slot></slot> |
| 11 |
</div> |
| 12 |
<div class="cx-vui-repeater__actions"> |
| 13 |
<cx-vui-button |
| 14 |
:button-style="buttonStyle" |
| 15 |
:size="buttonSize" |
| 16 |
@click="handleClick" |
| 17 |
><span slot="label">{{ buttonLabel }}</span></cx-vui-button> |
| 18 |
<i class="cx-vui-repeater__tip" v-if="inFocus"> |
| 19 |
Or press <kbd v-if="!isMac">alt</kbd><kbd v-if="isMac">option</kbd>+<kbd>n</kbd> to add new item |
| 20 |
</i> |
| 21 |
</div> |
| 22 |
</div> |