mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Compare commits
3 Commits
0.7.3-fix.
...
0.7.3-fix.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c4e72eb29 | ||
|
|
88e3c1f660 | ||
|
|
e6c92d4a5e |
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><link rel="icon" href="dist/logo.ico"><title>思绪思维导图</title><script>// 自定义静态资源的路径
|
||||
window.externalPublicPath = './dist/'
|
||||
// 接管应用
|
||||
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?ceeef97326ffc3ea9cba" rel="stylesheet"><link href="dist/css/app.css?ceeef97326ffc3ea9cba" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script>const getDataFromBackend = () => {
|
||||
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?97b4d7ae279db040269e" rel="stylesheet"><link href="dist/css/app.css?97b4d7ae279db040269e" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script>const getDataFromBackend = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
@@ -66,4 +66,4 @@
|
||||
// 可以通过window.$bus.$on()来监听应用的一些事件
|
||||
// 实例化页面
|
||||
window.initApp()
|
||||
}</script><script src="dist/js/chunk-vendors.js?ceeef97326ffc3ea9cba"></script><script src="dist/js/app.js?ceeef97326ffc3ea9cba"></script></body></html>
|
||||
}</script><script src="dist/js/chunk-vendors.js?97b4d7ae279db040269e"></script><script src="dist/js/app.js?97b4d7ae279db040269e"></script></body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "simple-mind-map",
|
||||
"version": "0.7.3-fix.1",
|
||||
"version": "0.7.3-fix.2",
|
||||
"description": "一个简单的web在线思维导图",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@@ -293,14 +293,16 @@ class Cooperate {
|
||||
map[uid] = node
|
||||
}
|
||||
if (parentUid) {
|
||||
if (map[parentUid]) {
|
||||
map[parentUid].children.push(node)
|
||||
} else {
|
||||
const index = data[parentUid].children.findIndex(item => {
|
||||
return item === uid
|
||||
})
|
||||
if (!map[parentUid]) {
|
||||
map[parentUid] = {
|
||||
data: simpleDeepClone(data[parentUid].data),
|
||||
children: [node]
|
||||
children: []
|
||||
}
|
||||
}
|
||||
map[parentUid].children[index] = node
|
||||
}
|
||||
})
|
||||
return res
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## 0.7.3-fix.2
|
||||
|
||||
Fix some issues with collaborative editing:
|
||||
|
||||
1.The position of the new node is incorrect when inserting peer nodes;
|
||||
|
||||
2.Moving a position within a peer node did not trigger an update;
|
||||
|
||||
3.The position of the mobile node inserted as a sibling node is incorrect;
|
||||
|
||||
## 0.7.3-fix.1
|
||||
|
||||
Fix:
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.7.3-fix.2</h2>
|
||||
<p>Fix some issues with collaborative editing:</p>
|
||||
<p>1.The position of the new node is incorrect when inserting peer nodes;</p>
|
||||
<p>2.Moving a position within a peer node did not trigger an update;</p>
|
||||
<p>3.The position of the mobile node inserted as a sibling node is incorrect;</p>
|
||||
<h2>0.7.3-fix.1</h2>
|
||||
<p>Fix:</p>
|
||||
<blockquote>
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## 0.7.3-fix.2
|
||||
|
||||
修复协同编辑的一些问题:
|
||||
|
||||
1.插入同级节点时新节点位置不正确;
|
||||
|
||||
2.在同级节点中移动位置没有触发更新;
|
||||
|
||||
3.移动节点作为兄弟节点插入时位置不正确;
|
||||
|
||||
## 0.7.3-fix.1
|
||||
|
||||
修复:
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.7.3-fix.2</h2>
|
||||
<p>修复协同编辑的一些问题:</p>
|
||||
<p>1.插入同级节点时新节点位置不正确;</p>
|
||||
<p>2.在同级节点中移动位置没有触发更新;</p>
|
||||
<p>3.移动节点作为兄弟节点插入时位置不正确;</p>
|
||||
<h2>0.7.3-fix.1</h2>
|
||||
<p>修复:</p>
|
||||
<blockquote>
|
||||
|
||||
Reference in New Issue
Block a user