working on dragable wraper

This commit is contained in:
Thomas 2022-04-09 14:31:27 -05:00
parent 622a7028aa
commit 8f534c3320
3 changed files with 40 additions and 9 deletions

View File

@ -0,0 +1,29 @@
<script setup lang="ts">
import { ref } from "vue";
import { useQuasar } from "quasar";
const $q = useQuasar();
const count = ref(0);
function increment() {
count.value++
}
</script>
<template>
<Draggable :grid="[25, 25]">
<div>
<div>Grid with component</div>
<q-btn @click="increment">Count is: {{ count }}</q-btn>
<q-card class="my-card">
hi
</q-card>
</div>
</Draggable>
</template>
<style lang="sass" scoped>
.my-card
width: 50%
max-width: 250px
</style>

View File

@ -1,14 +1,16 @@
<script setup lang="ts"> <script setup lang="ts">
import WrapperBox from '../components/WrapperBox.vue';
</script> </script>
<template> <template>
<WrapperBox/>
<Draggable> <Draggable>
<div class="box"> <div class="box">
<q-btn <q-btn
@click="showNotification"
color="primary" color="primary"
label="Show another notification" label="Show another notification"
/> />
@ -16,4 +18,4 @@
</Draggable> </Draggable>
</template> </template>
<style></style> <style></style>

View File

@ -12,11 +12,11 @@ export default defineConfig({
}, },
}, },
plugins: [ plugins: [
vue({ vue({
template: { transformAssetUrls }, template: { transformAssetUrls },
}), }),
quasar({ quasar({
sassVariables: 'src/quasar-variables.sass', sassVariables: 'src/quasar-variables.sass',
}),] })],
}) })