From 6e96247b50a90097a15d65422ed1dd68fac67496 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Sun, 2 Mar 2025 23:32:07 +0800 Subject: [PATCH] fixed wallnote style --- src/index.css | 7 ++++++- src/pages/wall/docs.ts | 14 ++------------ src/pages/wall/modules/CustomNode.tsx | 3 +++ src/pages/wall/store/wall.ts | 2 +- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/index.css b/src/index.css index 38696b2..4de0fb8 100644 --- a/src/index.css +++ b/src/index.css @@ -42,4 +42,9 @@ body { ol { list-style: decimal; } -} \ No newline at end of file +} +iframe { + border: unset; + width: 100%; + height: 100%; +} diff --git a/src/pages/wall/docs.ts b/src/pages/wall/docs.ts index 99b11da..fa8f9f5 100644 --- a/src/pages/wall/docs.ts +++ b/src/pages/wall/docs.ts @@ -1,12 +1,2 @@ -export const DOCS_NODE = { - id: 'e15owpuh9cv3fgwx5zymtc', - data: { - html: '

Wallnote 基本使用介绍 v0.0.6

可拖拽的随笔记功能。

注意

登录后功能

TODO

', - width: 583, - height: 448, - }, - type: 'wallnote', - position: { x: -901.1464949275596, y: -672.8095405534519 }, - measured: { width: 583, height: 448 }, - selected: true, -}; +// wallnote v1版工作区(/workspace/wallnote) +export const DOCS_NODE = [{"id":"e15owpuh9cv3fgwx5zymtc","position":{"x":-1613.6078090729259,"y":-726.9366215444888},"data":{"html":"

Wallnote 基本使用介绍 v0.0.7

可拖拽的随笔记功能。

注意

登录后功能

新版

![ai-workspace](https://kevisual.xiongxiao.me/workspace/wallnote/)

TODO

","width":1113,"height":444},"type":"wallnote"},{"id":"kb0vbz4ffi1x6aw8clo0ho","position":{"x":-1613.4790358693674,"y":-256.0352475384902},"data":{"width":356,"height":50,"html":"wallnote v1版工作区(/workspace/wallnote)"},"type":"wallnote"}] \ No newline at end of file diff --git a/src/pages/wall/modules/CustomNode.tsx b/src/pages/wall/modules/CustomNode.tsx index c17d8e4..495916e 100644 --- a/src/pages/wall/modules/CustomNode.tsx +++ b/src/pages/wall/modules/CustomNode.tsx @@ -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 { diff --git a/src/pages/wall/store/wall.ts b/src/pages/wall/store/wall.ts index d6feb00..35005f6 100644 --- a/src/pages/wall/store/wall.ts +++ b/src/pages/wall/store/wall.ts @@ -151,7 +151,7 @@ export const useWallStore = create((set, get) => ({ const nodes = data?.nodes || []; if (nodes.length === 0) { set({ - nodes: [DOCS_NODE], // + nodes: [...DOCS_NODE], // loaded: true, id: null, data: null,