- pagine RISO
This commit is contained in:
@@ -945,29 +945,22 @@
|
||||
</CMyEditor>
|
||||
|
||||
<q-card-section>
|
||||
<q-input
|
||||
label="Stile Pagina <style>...</style>:"
|
||||
v-model="myel.container2"
|
||||
filled
|
||||
style="max-height: 200px"
|
||||
dense
|
||||
class="scroll-input"
|
||||
v-on:keyup.enter="saveElem"
|
||||
@update:model-value="modifElem"
|
||||
/>
|
||||
</q-card-section>
|
||||
<q-card-section>
|
||||
<q-input
|
||||
label="Script:"
|
||||
v-model="myel.container3"
|
||||
autogrow
|
||||
filled
|
||||
dense
|
||||
style="max-height: 200px"
|
||||
class="scroll-input"
|
||||
v-on:keyup.enter="saveElem"
|
||||
@update:model-value="modifElem"
|
||||
/>
|
||||
<div class="row items-center q-gutter-sm">
|
||||
<q-btn
|
||||
label="Stile Pagina"
|
||||
:color="myel.container2 ? 'green' : 'grey'"
|
||||
dense
|
||||
@click="openStyleDialog"
|
||||
icon="edit"
|
||||
/>
|
||||
<q-btn
|
||||
label="Script"
|
||||
:color="myel.container3 ? 'secondary' : 'grey'"
|
||||
dense
|
||||
@click="openScriptDialog"
|
||||
icon="code"
|
||||
/>
|
||||
</div>
|
||||
</q-card-section>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2943,6 +2936,120 @@
|
||||
</CMyElemAdd>
|
||||
</q-dialog>
|
||||
</div>
|
||||
|
||||
<!-- Dialog per Stile -->
|
||||
<q-dialog
|
||||
v-model="styleDialogOpen"
|
||||
seamless
|
||||
position="right"
|
||||
>
|
||||
<q-card
|
||||
style="
|
||||
min-width: 600px;
|
||||
max-width: 600px;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
"
|
||||
>
|
||||
<q-card-section class="row items-center q-pb-none">
|
||||
<div class="text-h6">Stile Pagina</div>
|
||||
<q-space />
|
||||
<q-btn
|
||||
icon="close"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
@click="confirmCancel('style')"
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-section class="col scroll">
|
||||
<q-input
|
||||
v-model="tempStyle"
|
||||
type="textarea"
|
||||
filled
|
||||
autogrow
|
||||
rows="10"
|
||||
label="<style>...</style>"
|
||||
@update:model-value="updateStylePreview"
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-actions
|
||||
align="right"
|
||||
class="q-pa-md"
|
||||
>
|
||||
<q-btn
|
||||
flat
|
||||
label="Annulla"
|
||||
@click="confirmCancel('style')"
|
||||
/>
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="Ok"
|
||||
@click="saveStyle"
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
<!-- Dialog per Script -->
|
||||
<q-dialog
|
||||
v-model="scriptDialogOpen"
|
||||
seamless
|
||||
position="right"
|
||||
>
|
||||
<q-card
|
||||
style="
|
||||
min-width: 600px;
|
||||
max-width: 600px;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
"
|
||||
>
|
||||
<q-card-section class="row items-center q-pb-none">
|
||||
<div class="text-h6">Script</div>
|
||||
<q-space />
|
||||
<q-btn
|
||||
icon="close"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
@click="confirmCancel('script')"
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-section class="col scroll">
|
||||
<q-input
|
||||
v-model="tempScript"
|
||||
type="textarea"
|
||||
filled
|
||||
autogrow
|
||||
rows="10"
|
||||
label="JavaScript"
|
||||
@update:model-value="updateScriptPreview"
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-actions
|
||||
align="right"
|
||||
class="q-pa-md"
|
||||
>
|
||||
<q-btn
|
||||
flat
|
||||
label="Annulla"
|
||||
@click="confirmCancel('script')"
|
||||
/>
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="Ok"
|
||||
@click="saveScript"
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CMyEditElem.ts"></script>
|
||||
|
||||
Reference in New Issue
Block a user