mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-07-29 06:02:06 +00:00
add context menu options placeholder function
This commit is contained in:
parent
e538b0d4d7
commit
55215e0ad5
@ -21,7 +21,7 @@
|
||||
import { paths } from "@/config";
|
||||
|
||||
defineProps<{
|
||||
bio: string;
|
||||
bio: string | null;
|
||||
images: {
|
||||
artist: string;
|
||||
album: string;
|
||||
@ -65,12 +65,14 @@ defineProps<{
|
||||
width: 10rem;
|
||||
}
|
||||
|
||||
$rectpos: calc(50% - 5rem);
|
||||
|
||||
.rect {
|
||||
width: 10rem;
|
||||
height: 10rem;
|
||||
position: absolute;
|
||||
bottom: 0rem;
|
||||
left: 7rem;
|
||||
left: $rectpos;
|
||||
transform: rotate(15deg) translate(-1rem, 1rem);
|
||||
z-index: 1;
|
||||
transition: all 0.5s ease-in-out;
|
||||
@ -85,8 +87,8 @@ defineProps<{
|
||||
position: absolute;
|
||||
width: 7rem;
|
||||
height: 7rem;
|
||||
left: 15rem;
|
||||
bottom: 0;
|
||||
left: calc($rectpos + 7rem);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 2rem rgb(0, 0, 0);
|
||||
transition: all 0.25s ease-in-out;
|
||||
|
@ -3,10 +3,22 @@ import normalize from "../composables/normalizeContextMenu";
|
||||
import { Option } from "../interfaces";
|
||||
import { ContextSrc } from "../composables/enums";
|
||||
|
||||
function getPlaceholders(length: number) {
|
||||
let list: Option[] = [];
|
||||
|
||||
for (let index = 0; index < length; index++) {
|
||||
list.push("" as Option);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
getPlaceholders(5);
|
||||
|
||||
export default defineStore("context-menu", {
|
||||
state: () => ({
|
||||
visible: false,
|
||||
options: <Option[]>[],
|
||||
options: getPlaceholders(5),
|
||||
x: 500,
|
||||
y: 500,
|
||||
normalizedX: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user