This commit is contained in:
xue jiahao
2024-12-06 12:59:41 +08:00
parent c8bb551ed1
commit 1786ea920a

View File

@@ -1,5 +1,5 @@
<template> <template>
<q-btn flat padding="xs" round size="1em" icon="more_vert"> <q-btn flat padding="xs" round size="1em" icon="more_vert" class="action-menu">
<q-menu> <q-menu>
<q-list dense :style="'min-width:' + minWidth "> <q-list dense :style="'min-width:' + minWidth ">
<template v-for="(item, index) in actions" :key="index" > <template v-for="(item, index) in actions" :key="index" >
@@ -53,4 +53,13 @@ export default {
} }
} }
}; };
</script> </script>
<style lang="scss" scoped>
.q-table tr > td:last-child .action-menu {
opacity: 0.25;
}
.q-table tr:hover > td:last-child .action-menu {
opacity: 1;
}
</style>