working on the text feild

This commit is contained in:
Thomas 2022-04-09 16:12:24 -05:00
parent 2e5c9e9c5f
commit 181b7ffbf7
3 changed files with 54 additions and 5 deletions

View File

@ -0,0 +1,48 @@
<script setup lang="ts">
import { ref } from "vue";
import { useQuasar } from "quasar";
const $q = useQuasar();
const editor = ref("");
const editMode = ref(false);
function edit() {
editMode.value = !editMode.value;
}
</script>
<template>
<q-dialog v-if="editMode" >
<q-editor v-model="editor" min-height="5rem" />
</q-dialog>
<Draggable :grid="[25, 25]">
<div style="display: flex">
<q-card flat bordered>
<q-card-section>
<div class="row items-center no-wrap">
<q-card-section v-html="editor" />
<div class="col-auto">
<q-btn color="grey-7" round flat icon="more_vert">
<q-menu cover auto-close>
<q-list>
<q-item clickable>
<q-item-section @click="edit">Edit</q-item-section>
</q-item>
<q-item clickable>
<q-item-section>Remove</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
</div>
</div>
</q-card-section>
</q-card>
</div>
</Draggable>
</template>
<style lang="sass" scoped></style>

View File

@ -16,9 +16,7 @@ function increment() {
<div>Grid with component</div> <div>Grid with component</div>
<q-btn @click="increment">Count is: {{ count }}</q-btn> <q-btn @click="increment">Count is: {{ count }}</q-btn>
<q-card class="my-card">
hi
</q-card>
</div> </div>
</Draggable> </Draggable>
</template> </template>

View File

@ -31,8 +31,10 @@
<!-- drawer content --> <!-- drawer content -->
</q-drawer> </q-drawer>
<q-page-container> <q-page-container style="display: flex">
<WrapperBox />
<TextBox/>
</q-page-container> </q-page-container>
<q-footer reveal elevated class="bg-grey-8 text-white"> <q-footer reveal elevated class="bg-grey-8 text-white">
@ -48,6 +50,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from "vue"; import { ref } from "vue";
import WrapperBox from "../components/WrapperBox.vue"; import WrapperBox from "../components/WrapperBox.vue";
import TextBox from "../components/TextBox.vue";
const leftDrawerOpen = ref(false); const leftDrawerOpen = ref(false);