feat(FE): spot
This commit is contained in:
parent
7eadbe16f5
commit
5af0b32634
18 changed files with 162 additions and 52 deletions
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import Table from "@/components/content/partials/Table.vue";
|
||||
import ConfirmDelete from "@/components/content/partials/dialogs/ConfirmDelete.vue";
|
||||
import {onBeforeMount, reactive, ref, watch} from "vue";
|
||||
import {onBeforeMount, type PropType, reactive, ref, watch} from "vue";
|
||||
import {smartblock_page} from "@/composables/content/smartblock_page.ts";
|
||||
import SmartBlockEditor from "@partials/SmartBlockEditor.vue";
|
||||
import {useSmartBlockStore} from "@/stores/smartblock.store.ts";
|
||||
|
@ -15,7 +15,12 @@ const props = defineProps({
|
|||
isDraggable: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
showType: {
|
||||
type: String as PropType<'spot' | null>,
|
||||
required: false,
|
||||
validator: (value: string) => ['spot'].includes(value),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
@ -49,6 +54,7 @@ const edit = (item) => {
|
|||
item = baseSmartBlock();
|
||||
}
|
||||
smartBlockStore.loadSmartBlock(item);
|
||||
smartBlockStore.currentSmartBlock.smart_block_type = props.showType;
|
||||
itemEdited.value = item;
|
||||
console.log(smartBlockStore)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue