generated from template/vite-react-template
fixed wallnote style
This commit is contained in:
parent
a600f258b0
commit
6e96247b50
@ -43,3 +43,8 @@ body {
|
||||
list-style: decimal;
|
||||
}
|
||||
}
|
||||
iframe {
|
||||
border: unset;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -1,12 +1,2 @@
|
||||
export const DOCS_NODE = {
|
||||
id: 'e15owpuh9cv3fgwx5zymtc',
|
||||
data: {
|
||||
html: '<h1>Wallnote 基本使用介绍 v0.0.6</h1><p></p><p>可拖拽的随笔记功能。</p><ul class="tight" data-tight="true"><li><p>纯网页界面,数据存储在浏览器(不登陆情况下,只有单个页面)</p></li><li><p>这个墙随便拖动</p></li><li><p>双击空格添加一条记录,并打开编辑,esc关闭</p></li><li><p>富文本编辑器(md语法)</p></li><li><p>点击节点聚焦后,delete删除</p></li><li><p>右键空白处粘贴</p><ul class="tight" data-tight="true"><li><p>html的内容,编辑会丢失样式</p></li><li><p>图片的内容(粘贴后不能编辑)</p></li><li><p>文本内容</p></li><li><p>复制的节点信息</p></li></ul></li><li><p>边框可拖动大小</p></li></ul><h3>注意</h3><ul class="tight" data-tight="true"><li><p>点击节点聚焦后,如果有滚动条,节点内容才能滚动</p></li><li><p>图片复制,只能是二进制,文件夹的图片复制后无效。比如snipaste 贴图复制(Can To Do)。</p></li></ul><p></p><h2>登录后功能</h2><ul class="tight" data-tight="true"><li><p>保存而不是临时编辑</p></li></ul><p></p><h2>TODO</h2><ul class="tight" data-tight="true"><li><p>do do do</p></li><li><p>ai ++++</p></li></ul>',
|
||||
width: 583,
|
||||
height: 448,
|
||||
},
|
||||
type: 'wallnote',
|
||||
position: { x: -901.1464949275596, y: -672.8095405534519 },
|
||||
measured: { width: 583, height: 448 },
|
||||
selected: true,
|
||||
};
|
||||
// <a href="https://kevisual.xiongxiao.me/workspace/wallnote/">wallnote v1版工作区(/workspace/wallnote)</a>
|
||||
export const DOCS_NODE = [{"id":"e15owpuh9cv3fgwx5zymtc","position":{"x":-1613.6078090729259,"y":-726.9366215444888},"data":{"html":"<h1>Wallnote 基本使用介绍 v0.0.7</h1><p></p><p>可拖拽的随笔记功能。</p><ul class=\"tight\" data-tight=\"true\"><li><p>纯网页界面,数据存储在浏览器(不登陆情况下,只有单个页面)</p></li><li><p>这个墙随便拖动</p></li><li><p>双击空格添加一条记录,并打开编辑,esc关闭</p></li><li><p>富文本编辑器(md语法)</p></li><li><p>点击节点聚焦后,delete删除</p></li><li><p>右键空白处粘贴</p><ul class=\"tight\" data-tight=\"true\"><li><p>html的内容,编辑会丢失样式</p></li><li><p>图片的内容(粘贴后不能编辑)</p></li><li><p>文本内容</p></li><li><p>复制的节点信息</p></li></ul></li><li><p>边框可拖动大小</p></li></ul><h3>注意</h3><ul class=\"tight\" data-tight=\"true\"><li><p>点击节点聚焦后,如果有滚动条,节点内容才能滚动</p></li><li><p>图片复制,只能是二进制,文件夹的图片复制后无效。比如snipaste 贴图复制(Can To Do)。</p></li></ul><p></p><h2>登录后功能</h2><ul class=\"tight\" data-tight=\"true\"><li><p>保存而不是临时编辑</p></li></ul><h2>新版</h2><p></p><p></p><p></p><h2>TODO</h2><ul class=\"tight\" data-tight=\"true\"><li><p>do do do</p></li><li><p>ai ++++</p></li></ul>","width":1113,"height":444},"type":"wallnote"},{"id":"kb0vbz4ffi1x6aw8clo0ho","position":{"x":-1613.4790358693674,"y":-256.0352475384902},"data":{"width":356,"height":50,"html":"<a href=\"https://kevisual.xiongxiao.me/workspace/wallnote/\">wallnote v1版工作区(/workspace/wallnote)</a>"},"type":"wallnote"}]
|
@ -107,6 +107,9 @@ export const CustomNode = (props: { id: string; data: WallData; selected: boolea
|
||||
if (dataType && dataType?.startsWith('image')) {
|
||||
message.error('不支持编辑图片');
|
||||
return;
|
||||
} else if (dataType) {
|
||||
message.error('不支持编辑');
|
||||
return;
|
||||
}
|
||||
wallStore.checkAndOpen(true, node);
|
||||
} else {
|
||||
|
@ -151,7 +151,7 @@ export const useWallStore = create<WallState>((set, get) => ({
|
||||
const nodes = data?.nodes || [];
|
||||
if (nodes.length === 0) {
|
||||
set({
|
||||
nodes: [DOCS_NODE], //
|
||||
nodes: [...DOCS_NODE], //
|
||||
loaded: true,
|
||||
id: null,
|
||||
data: null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user