From f777c0adf5e83ec27e9efd180c5a6b79d3025074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=83=E5=A8=81?= Date: Thu, 21 Sep 2023 10:05:27 +0800 Subject: [PATCH] feat: WIP store --- components/gante-core/node-control-panel.js | 16 ++++++++++++++-- components/header/index.js | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/components/gante-core/node-control-panel.js b/components/gante-core/node-control-panel.js index 2959481..8716a6e 100644 --- a/components/gante-core/node-control-panel.js +++ b/components/gante-core/node-control-panel.js @@ -5,7 +5,7 @@ import useGante from './useGante'; import * as actions from './action'; const HEIGHT = 45; -const WIDTH = 280; +const WIDTH = 320; // colorpair const colors = [ @@ -17,6 +17,11 @@ const colors = [ ['#134074', '#fff'], ]; + +// 关于收纳操作: 收纳是当前任务临时被挤掉,当前中断掉,未来会继续开发的一种任务。相当于任务被DELAY的状态 +// 为什么要收纳:收纳是因为这个任务的重要性从当前变为未来,未来很重要。 +// 收纳对应的反操作是 -> 放出,将其从收纳箱中放在主视图上,时间为当前时间 + function NodeControlPanel({ node, contextInfo, left, hover }) { const leftRef = useRef(0); @@ -67,7 +72,14 @@ function NodeControlPanel({ node, contextInfo, left, hover }) { }) } - + + 收纳 + + { node.lock ? '解锁' : '锁定' } diff --git a/components/header/index.js b/components/header/index.js index b59b58d..30e50a9 100644 --- a/components/header/index.js +++ b/components/header/index.js @@ -54,6 +54,7 @@ function LeftHeader({ children, className, user, ganteRef }) {
  • agenda
  • +
  • 收纳x10