diff --git a/.sync b/.sync index 9a9dc47..b02e0ac 100644 --- a/.sync +++ b/.sync @@ -1 +1 @@ -913b95b49f0d253d50d6b3461c48aaa9facb7ba2 +b33bea9b4d106757875dab25dada246fc8d8864a diff --git a/demos/cases/GanttTaskTypes.css b/demos/cases/GanttTaskTypes.css index c720101..3da7f6b 100644 --- a/demos/cases/GanttTaskTypes.css +++ b/demos/cases/GanttTaskTypes.css @@ -2,54 +2,54 @@ overflow: hidden; height: 100%; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.narrow { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.narrow { background-color: #676a81; color: transparent; height: 10px !important; margin-top: 10px; border: 1px solid #63667a; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.narrow .wx-progress-percent { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.narrow .wx-progress-percent { background-color: #1a2630; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.narrow .wx-link { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.narrow .wx-link { background-color: #384047; border-radius: 0px; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.narrow .wx-link .wx-inner { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.narrow .wx-link .wx-inner { border-radius: 0px; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.round { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.round { background-color: #ffeb3b; border: 1px solid #ffeb3b; color: #384047; border-radius: 50px; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.round .wx-progress-percent { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.round .wx-progress-percent { background-color: #ffc107; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.round .wx-progress-wrapper { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.round .wx-progress-wrapper { border-radius: 50px; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.progress { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.progress { background-color: transparent; color: var(--wx-color-font); border-radius: 50px; border: 1px solid #00bcd4; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.progress .wx-progress-percent { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.progress .wx-progress-percent { background-color: #00bcd4; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.progress .wx-progress-wrapper { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.progress .wx-progress-wrapper { border-radius: 50px; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.urgent { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.urgent { background-color: #f49a82; border: 1px solid #f45e36; } -.demo.wx-I1glfWSB > .wx-gantt .wx-bar.wx-task.urgent .wx-progress-percent { +.demo.wx-I1glfWSB .wx-gantt .wx-bar.wx-task.urgent .wx-progress-percent { background-color: #f45e36; } diff --git a/demos/cases/GanttTaskTypes.jsx b/demos/cases/GanttTaskTypes.jsx index 7f2510e..3c3dbf7 100644 --- a/demos/cases/GanttTaskTypes.jsx +++ b/demos/cases/GanttTaskTypes.jsx @@ -1,6 +1,6 @@ import { useMemo, useState } from 'react'; import { getTypedData, taskTypes } from '../data'; -import { Gantt, Editor } from '../../src/'; +import { Gantt, Editor, ContextMenu } from '../../src/'; import './GanttTaskTypes.css'; function GanttTaskTypes(props) { @@ -11,14 +11,16 @@ function GanttTaskTypes(props) { return (