duh
This commit is contained in:
parent
9bf381813c
commit
4f038cf974
1 changed files with 15 additions and 23 deletions
|
@ -35,24 +35,22 @@
|
||||||
<div class="config">
|
<div class="config">
|
||||||
<span>Route:</span>
|
<span>Route:</span>
|
||||||
<ul class="level-select">
|
<ul class="level-select">
|
||||||
<draggable :list="selectedRoute" :move="checkMove">
|
<li v-for="(level, index) in selectedRoute">
|
||||||
<li v-for="(level, index) in selectedRoute">
|
<div class="route-drag">≡</div>
|
||||||
<div class="route-drag">≡</div>
|
|
||||||
|
|
||||||
<GroupSelectComponent
|
<GroupSelectComponent
|
||||||
:selectedValue="level.value"
|
:selectedValue="level.value"
|
||||||
:optGroups="stageLoaderLevelOptions"
|
:optGroups="stageLoaderLevelOptions"
|
||||||
:onChange="(e) => onStageLoaderLevelChanged(index, e)"
|
:onChange="(e) => onStageLoaderLevelChanged(index, e)"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
@click="onLevelDeleted(index)"
|
@click="onLevelDeleted(index)"
|
||||||
type="button"
|
type="button"
|
||||||
class="route-remove"
|
class="route-remove"
|
||||||
>
|
>
|
||||||
×
|
×
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</draggable>
|
|
||||||
<GroupSelectComponent
|
<GroupSelectComponent
|
||||||
placeholder="Choose a level.."
|
placeholder="Choose a level.."
|
||||||
:optGroups="stageLoaderLevelOptions"
|
:optGroups="stageLoaderLevelOptions"
|
||||||
|
@ -87,16 +85,10 @@ import GroupSelectComponent from "./GroupSelectComponent";
|
||||||
import stageLoaderLevels from "../data/stageLoaderLevels.json";
|
import stageLoaderLevels from "../data/stageLoaderLevels.json";
|
||||||
import stageLoaderPresets from "../data/stageLoaderPresets.json";
|
import stageLoaderPresets from "../data/stageLoaderPresets.json";
|
||||||
|
|
||||||
// Lib
|
|
||||||
import draggable from "vuedraggable";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
fastCodes: { type: Object },
|
fastCodes: { type: Object },
|
||||||
},
|
},
|
||||||
components: {
|
|
||||||
draggable,
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectedRoute: [],
|
selectedRoute: [],
|
||||||
|
|
Loading…
Reference in a new issue