add seciotn wybor
This commit is contained in:
@@ -42,6 +42,30 @@
|
|||||||
>
|
>
|
||||||
<b-modal v-model="show_settings" title="Ustawienia sekcji" @onClose="ustawieniaSave()">
|
<b-modal v-model="show_settings" title="Ustawienia sekcji" @onClose="ustawieniaSave()">
|
||||||
<div>
|
<div>
|
||||||
|
<div class="form-group mb-2">
|
||||||
|
<label class="w-100 col-form-label"> Typ sekcji </label>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
<button
|
||||||
|
class="btn w-100"
|
||||||
|
@click="setType('container')"
|
||||||
|
:class="type == 'container' ? 'btn-primary' : 'btn-outline-primary'"
|
||||||
|
>
|
||||||
|
Kontener
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-6">
|
||||||
|
<button
|
||||||
|
class="btn w-100"
|
||||||
|
@click="setType('full')"
|
||||||
|
:class="type == 'full' ? 'btn-primary' : 'btn-outline-primary'"
|
||||||
|
>
|
||||||
|
Cała szerokość
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="form-group mb-2">
|
<div class="form-group mb-2">
|
||||||
<label class="w-100 col-form-label"> Nazwa sekcji </label>
|
<label class="w-100 col-form-label"> Nazwa sekcji </label>
|
||||||
@@ -90,7 +114,7 @@ export default {
|
|||||||
PagebuilderContent
|
PagebuilderContent
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return { items: grid, value2: '', show_settings: false }
|
return { items: grid, value2: '', show_settings: false, type: '' }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeSelect: function () {
|
changeSelect: function () {
|
||||||
@@ -114,9 +138,16 @@ export default {
|
|||||||
},
|
},
|
||||||
rand: function (index) {
|
rand: function (index) {
|
||||||
return 'column' + index + Math.random() * 100
|
return 'column' + index + Math.random() * 100
|
||||||
|
},
|
||||||
|
setType: function (type) {
|
||||||
|
this.type = type
|
||||||
|
this.value.type = type
|
||||||
|
this.onChange()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted: function () {}
|
mounted: function () {
|
||||||
|
this.type = this.value.type
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user