Я настроил , который должен отображать его в одной строке.
Ознакомьтесь с этой рабочей CodeSandbox.
Я не добавляю свое хранилище Vuex ниже, так как проблема в том, что в макете, а не в самих данных. Магазин минимален и находится по ссылке выше.
Это мой компонент HellWorld:
Код: Выделить всё
{{title}}
export default {
name: "HelloWorld",
props: {
title: String,
src: String,
id: Number
},
data() {
return {};
}
};
Код: Выделить всё
Parent Component
import { mapGetters, mapMutations } from "vuex";
import HelloWorld from "./HelloWorld";
import draggable from "vuedraggable";
export default {
components: {
draggable,
HelloWorld
},
computed: {
...mapGetters({
getCardArray: "getCardArray"
}),
draggableCards: {
get() {
return this.$store.state.cardArray;
},
set(val) {
this.$store.commit("setCardArray", val);
}
}
},
methods: {
...mapMutations({
setCardArray: "setCardArray"
})
}
};
Подробнее здесь: https://stackoverflow.com/questions/616 ... f-a-column
Мобильная версия