Skip to content

Commit 2b2a789

Browse files
committed
Atoms - UserOptions - Add menuIcon slot
1 parent 58d8c30 commit 2b2a789

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/atoms/UserOptions.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ const isInfo = ref({
269269
:style="`z-index: ${zIndex}; height: 34px; position: ${isFullscreen ? 'fixed' : 'absolute'}; top: 0; ${position === 'right' ? `right:${isFullscreen ? '12px': '0'}` : `left:${isFullscreen ? '12px' : '0'}`}; padding: 4px; background:transparent;`">
270270

271271
<div tabindex="0" :title="isOpen ? titles.close || '' : titles.open || ''" data-cy="user-options-summary" :style="`width:32px; position: absolute; top: 0;${position === 'right' ? `right: ${offsetX ? offsetX : noOffset ? 0 : 4}px` : `left: ${noOffset ? 0 : 4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`" @click.stop="toggle" @keypress.enter="toggle">
272-
<BaseIcon :name="isOpen ? 'close' : 'menu'" :stroke="color" :stroke-width="2" />
272+
<slot name="menuIcon" v-bind="{ isOpen, color }">
273+
<BaseIcon :name="isOpen ? 'close' : 'menu'" :stroke="color" :stroke-width="2" />
274+
</slot>
273275
</div>
274276
<div :data-open="isOpen" data-cy="user-options-drawer" :class="{'vue-ui-user-options-drawer': true}" :style="`background:${backgroundColor}; ${position === 'right' ? `right: ${offsetX ? offsetX : noOffset ? 0 : 4}px` : `left: ${noOffset ? 0 : 4}px`}`">
275277

0 commit comments

Comments
 (0)