edit
This commit is contained in:
parent
a948b80f4d
commit
1efcde76b3
|
@ -447,7 +447,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref, watch, toRaw, nextTick, computed, reactive } from 'vue'
|
import { onMounted, ref, watch, toRaw, nextTick, computed, reactive } from 'vue'
|
||||||
import TinyWhiteboard from 'tiny-whiteboard'
|
import TinyWhiteboard from 'whiteboard_lyc'
|
||||||
import ColorPicker from './components/ColorPicker.vue'
|
import ColorPicker from './components/ColorPicker.vue'
|
||||||
import {
|
import {
|
||||||
Delete,
|
Delete,
|
||||||
|
@ -827,7 +827,7 @@ onMounted(() => {
|
||||||
// 监听数据变化
|
// 监听数据变化
|
||||||
app.on('change', data => {
|
app.on('change', data => {
|
||||||
showGrid.value = data.state.showGrid
|
showGrid.value = data.state.showGrid
|
||||||
localStorage.setItem('TINY_WHITEBOARD_DATA', JSON.stringify(data))
|
// localStorage.setItem('TINY_WHITEBOARD_DATA', JSON.stringify(data))
|
||||||
})
|
})
|
||||||
// 监听滚动变化
|
// 监听滚动变化
|
||||||
app.on('scrollChange', (x, y) => {
|
app.on('scrollChange', (x, y) => {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"format": "prettier --write ."
|
"format": "prettier --write ."
|
||||||
},
|
},
|
||||||
"main": "dist/whiteboard_lyc.cjs.js",
|
"main": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"uuid": "^9.0.0"
|
"uuid": "^9.0.0"
|
||||||
|
|
Loading…
Reference in New Issue