coretext
This commit is contained in:
@@ -29,7 +29,6 @@ export default {
|
|||||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
text-align: center;
|
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export default {
|
|||||||
if (value == true) {
|
if (value == true) {
|
||||||
this.modal.show();
|
this.modal.show();
|
||||||
} else {
|
} else {
|
||||||
|
console.log('vaaaa');
|
||||||
this.modal.hide()
|
this.modal.hide()
|
||||||
this.$emit('hide');
|
this.$emit('hide');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,9 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
draggable,
|
draggable,
|
||||||
'b-modal': MagicoModal,
|
'b-modal': MagicoModal,
|
||||||
|
'core_section_textarea': SectionText,
|
||||||
'core_section_text': SectionText,
|
'core_section_text': SectionText,
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange: function () {
|
onChange: function () {
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
<div class="col-sm-12 col-md-6 p-0 text-right">
|
<div class="col-sm-12 col-md-6 p-0 text-right">
|
||||||
<a href="#" @click.prevent="modalBox = !modalBox" title="Edytuj" class="text-primary mr-2"><i
|
<a href="#" @click.prevent="modalBox = !modalBox" title="Edytuj" class="text-primary mr-2"><i
|
||||||
class="material-icons-outlined">create</i></a>
|
class="material-icons-outlined">create</i></a>
|
||||||
<b-modal v-model="modalBox" @close="onCloseModal">
|
<b-modal v-model="modalBox" :title="langs.label" @close="onCloseModal">
|
||||||
<div slot="modal-title">{{ langs.label }}</div>
|
|
||||||
<p>
|
<p>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="w-100 col-form-label">{{ langs.content }}</label>
|
<label class="w-100 col-form-label">{{ langs.content }}</label>
|
||||||
@@ -28,22 +27,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="w-100 col-form-label">Wyrównanie</label>
|
<label class="w-100 col-form-label">Wyrównanie</label>
|
||||||
<b-form-group label="Button style radios" v-slot="{ ariaDescribedby }">
|
|
||||||
<b-form-radio-group id="btn-radios-1" v-model="align" :aria-describedby="ariaDescribedby"
|
|
||||||
name="radios-btn-default" buttons>
|
|
||||||
<b-form-radio value="left"><span class="material-icons">format_align_left</span>
|
|
||||||
</b-form-radio>
|
|
||||||
<b-form-radio value="center"><span class="material-icons">format_align_center</span>
|
|
||||||
</b-form-radio>
|
|
||||||
<b-form-radio value="right"><span class="material-icons">format_align_right</span>
|
|
||||||
</b-form-radio>
|
|
||||||
|
|
||||||
</b-form-radio-group>
|
|
||||||
</b-form-group>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div slot="modal-footer"><button class="btn btn-outline-secondary mr-1"
|
<div><button class="btn btn-outline-secondary mr-1" @click.prevent="onCloseModal">{{
|
||||||
@click.prevent="onCloseModal">{{ langs.saveclose }}</button></div>
|
langs.saveclose
|
||||||
|
}}</button></div>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
<a href="#" title="Usuń" @click.prevent="removeItem()" class="text-danger"><i
|
<a href="#" title="Usuń" @click.prevent="removeItem()" class="text-danger"><i
|
||||||
class="material-icons-outlined">delete</i></a>
|
class="material-icons-outlined">delete</i></a>
|
||||||
@@ -55,20 +44,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import MagicoModal from './../MagicoModal.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
'b-modal': MagicoModal,
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
value: Object
|
value: Object
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
langs: {
|
langs: {
|
||||||
label: "<?=lang('pagebuilder_core_section_text_title')?>",
|
label: "Tekst",
|
||||||
close: "<?=lang('pagebuilder_core_section_text_close')?>",
|
close: "Zaknij",
|
||||||
content: "<?=lang('pagebuilder_core_section_text_content')?>",
|
content: "Treść",
|
||||||
type: "<?=lang('pagebuilder_core_section_text_type')?>",
|
type: "Typ",
|
||||||
typeplaintext: "<?=lang('pagebuilder_core_section_text_typeplaintext')?>",
|
typeplaintext: "Tekst",
|
||||||
typeheader: "<?=lang('pagebuilder_core_section_text_typeheader')?>",
|
typeheader: "Nagłowek",
|
||||||
saveclose: "<?=lang('saveclose')?>"
|
saveclose: "Zapisz"
|
||||||
},
|
},
|
||||||
modalBox: false,
|
modalBox: false,
|
||||||
text: '',
|
text: '',
|
||||||
@@ -89,13 +83,13 @@ export default {
|
|||||||
this.$emit('itemRemoved', this.value);
|
this.$emit('itemRemoved', this.value);
|
||||||
},
|
},
|
||||||
onCloseModal: function () {
|
onCloseModal: function () {
|
||||||
this.modalBox = false;
|
|
||||||
this.$emit('input', {
|
this.$emit('input', {
|
||||||
name: this.name,
|
name: this.name,
|
||||||
text: this.text,
|
text: this.text,
|
||||||
h_type: this.h_type,
|
h_type: this.h_type,
|
||||||
align: this.align,
|
align: this.align,
|
||||||
})
|
})
|
||||||
|
this.modalBox = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user