mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
testing of editor
This commit is contained in:
1 parent
1f6fd6859a
commit
b185c903dd
19 files changed
+19892
No files matched your search
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div class="parent">
|
||||
<Vue3DraggableResizable :initW="110" :initH="120" v-model:x="x" v-model:y="y" v-model:w="w" v-model:h="h"
|
||||
v-model:active="active" :draggable="true" :resizable="true" @activated="print('activated')"
|
||||
@deactivated="print('deactivated')" @drag-start="print('drag-start')" @resize-start="print('resize-start')"
|
||||
@dragging="print('dragging')" @resizing="print('resizing')" @drag-end="print('drag-end')"
|
||||
@resize-end="print('resize-end')">
|
||||
This is a test example
|
||||
</Vue3DraggableResizable>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue3DraggableResizable from 'vue3-draggable-resizable'
|
||||
//default styles
|
||||
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
|
||||
export default {
|
||||
components: { Vue3DraggableResizable },
|
||||
data() {
|
||||
return {
|
||||
x: 100,
|
||||
y: 100,
|
||||
h: 100,
|
||||
w: 100,
|
||||
active: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
print(val) {
|
||||
console.log(val)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.parent {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
border: 1px solid #000;
|
||||
user-select: none;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user