@dcodegroup-au/page-builder 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
<div v-for="(item, index) in dataRef.data"
|
|
32
32
|
class="flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg"
|
|
33
33
|
:class="{'bg-gray-200 hover:bg-gray-200': openSlideStates[index]}">
|
|
34
|
-
<div class="flex flex-1
|
|
35
|
-
<div class="flex flex-1 flex-col">
|
|
34
|
+
<div class="flex flex-1 items-center justify-between relative" @click="toggleSlide(index);">
|
|
35
|
+
<div class="flex flex-1 flex-col cursor-pointer" @click="edit(item, index)">
|
|
36
36
|
<div class="text-xs text-gray-600">
|
|
37
37
|
Slider #{{ index + 1 }}
|
|
38
38
|
</div>
|
|
@@ -72,7 +72,6 @@ if (!openSlideStates.value) {
|
|
|
72
72
|
openSlideStates.value[index] = false;
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
console.log(openSlideStates)
|
|
76
75
|
window.localStorage.setItem("openSlideStates", JSON.stringify(openSlideStates.value));
|
|
77
76
|
}
|
|
78
77
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="relative z-50" v-click-outside="click">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
<div class="cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block" @click="open = !open">
|
|
4
|
+
<DotsHorizontal class="w-5" />
|
|
5
|
+
</div>
|
|
6
|
+
<div class="absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm" v-if="open">
|
|
7
|
+
<a v-if="enableEdit" class="flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700" @click="edit">
|
|
8
|
+
<Pencil class="w-4 text-gray-500" />
|
|
9
|
+
<span class="font-medium"> Edit </span>
|
|
8
10
|
</a>
|
|
9
|
-
<a class="flex items-center gap-2
|
|
10
|
-
<TrashIcon class="w-
|
|
11
|
-
Delete
|
|
11
|
+
<a class="flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700" @click="remove">
|
|
12
|
+
<TrashIcon class="w-4 text-gray-500" />
|
|
13
|
+
<span class="font-medium"> Delete </span>
|
|
12
14
|
</a>
|
|
13
15
|
</div>
|
|
14
16
|
</div>
|