Merge branch 'main' of github.com:hackku22/Mathy
This commit is contained in:
13
src/App.vue
13
src/App.vue
@@ -5,8 +5,16 @@ import HelloWorld from './components/HelloWorld.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<img alt="Vue logo" src="./assets/logo.png" />
|
||||
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
|
||||
<div id = "sidebar">
|
||||
|
||||
</div>
|
||||
|
||||
<div id = "main">
|
||||
<img alt="Vue logo" src="./assets/logo.png" />
|
||||
<git msg="Hello Vue 3 + TypeScript + Vite" />
|
||||
</div>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<style>
|
||||
@@ -18,4 +26,5 @@ import HelloWorld from './components/HelloWorld.vue'
|
||||
color: #2c3e50;
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
10
src/components/Sidebar.vue
Normal file
10
src/components/Sidebar.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<script setup></script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
v-draggable="/* Pass DraggableProps as binding value here */"
|
||||
class="box"
|
||||
>
|
||||
I use a directive to make myself draggable
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,4 +1,9 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import Draggable, { DraggablePlugin, DraggableDirective } from '@braks/revue-draggable'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(DraggablePlugin)
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user