mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-06 22:26:05 +08:00
Updating v-popover to v-dropdown
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'NovncConsoleItem',
|
||||
|
||||
|
||||
emits: ['send-keys', 'update'],
|
||||
|
||||
props: {
|
||||
@@ -52,7 +52,7 @@ export default {
|
||||
<template>
|
||||
<ul class="list-unstyled dropdown combination-keys__container">
|
||||
<li v-for="(item, key) in items" :key="key">
|
||||
<v-popover
|
||||
<v-dropdown
|
||||
v-if="!!item.keys"
|
||||
placement="right-start"
|
||||
trigger="click"
|
||||
@@ -60,10 +60,10 @@ export default {
|
||||
>
|
||||
<span :class="{ open: getOpenStatus(key, pos) }" class="p-10 hand" @click="addKeys({ key, pos })">{{ item.label }}</span>
|
||||
|
||||
<template v-slot:popover>
|
||||
<template #popper>
|
||||
<novnc-console-item :items="item.keys" :path="path" :pos="pos+1" @update="addKeys" @send-keys="sendKeys" />
|
||||
</template>
|
||||
</v-popover>
|
||||
</v-dropdown>
|
||||
|
||||
<span v-else class="p-10 hand" @click="keysDown(key, pos)">{{ item.label }}</span>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user