mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 23:49:27 +08:00
feat: modulecss ->less
This commit is contained in:
parent
57448842da
commit
8fc9b66a21
@ -9,7 +9,7 @@ import {
|
|||||||
getWeekNumberISO8601,
|
getWeekNumberISO8601,
|
||||||
} from '../../helpers/date-helper';
|
} from '../../helpers/date-helper';
|
||||||
import { DateSetup } from '../../types/date-setup';
|
import { DateSetup } from '../../types/date-setup';
|
||||||
import styles from './calendar.module.css';
|
import styles from './calendar.less';
|
||||||
|
|
||||||
export type CalendarProps = {
|
export type CalendarProps = {
|
||||||
dateSetup: DateSetup;
|
dateSetup: DateSetup;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import styles from "./calendar.module.css";
|
import styles from "./calendar.less";
|
||||||
|
|
||||||
type TopPartOfCalendarProps = {
|
type TopPartOfCalendarProps = {
|
||||||
value: string;
|
value: string;
|
||||||
|
@ -14,7 +14,7 @@ import { GanttEvent } from '../../types/gantt-task-actions';
|
|||||||
import { DateSetup } from '../../types/date-setup';
|
import { DateSetup } from '../../types/date-setup';
|
||||||
import { HorizontalScroll } from '../other/horizontal-scroll';
|
import { HorizontalScroll } from '../other/horizontal-scroll';
|
||||||
import { removeHiddenTasks, sortTasks } from '../../helpers/other-helper';
|
import { removeHiddenTasks, sortTasks } from '../../helpers/other-helper';
|
||||||
import styles from './gantt.module.css';
|
import styles from './gantt.less';
|
||||||
import { GanttToolbarContext } from '../../context';
|
import { GanttToolbarContext } from '../../context';
|
||||||
import { useDesignable } from '../../../../../schema-component';
|
import { useDesignable } from '../../../../../schema-component';
|
||||||
import { TableBlockProvider, useGanttBlockContext, useBlockRequestContext } from '../../../../../block-provider';
|
import { TableBlockProvider, useGanttBlockContext, useBlockRequestContext } from '../../../../../block-provider';
|
||||||
|
@ -2,7 +2,7 @@ import React, { useRef, useEffect, forwardRef } from 'react';
|
|||||||
import { GridProps, Grid } from '../grid/grid';
|
import { GridProps, Grid } from '../grid/grid';
|
||||||
import { CalendarProps, Calendar } from '../calendar/calendar';
|
import { CalendarProps, Calendar } from '../calendar/calendar';
|
||||||
import { TaskGanttContentProps, TaskGanttContent } from './task-gantt-content';
|
import { TaskGanttContentProps, TaskGanttContent } from './task-gantt-content';
|
||||||
import styles from './gantt.module.css';
|
import styles from './gantt.less';
|
||||||
|
|
||||||
export type TaskGanttProps = {
|
export type TaskGanttProps = {
|
||||||
gridProps: GridProps;
|
gridProps: GridProps;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ReactChild } from "react";
|
import React, { ReactChild } from "react";
|
||||||
import { Task } from "../../types/public-types";
|
import { Task } from "../../types/public-types";
|
||||||
import { addToDate } from "../../helpers/date-helper";
|
import { addToDate } from "../../helpers/date-helper";
|
||||||
import styles from "./grid.module.css";
|
import styles from "./grid.less";
|
||||||
|
|
||||||
export type GridBodyProps = {
|
export type GridBodyProps = {
|
||||||
tasks: Task[];
|
tasks: Task[];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import styles from "./bar.module.css";
|
import styles from "./bar.less";
|
||||||
|
|
||||||
type BarDateHandleProps = {
|
type BarDateHandleProps = {
|
||||||
x: number;
|
x: number;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import style from "./bar.module.css";
|
import style from "./bar.less";
|
||||||
|
|
||||||
type BarDisplayProps = {
|
type BarDisplayProps = {
|
||||||
x: number;
|
x: number;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import styles from "./bar.module.css";
|
import styles from "./bar.less";
|
||||||
|
|
||||||
type BarProgressHandleProps = {
|
type BarProgressHandleProps = {
|
||||||
progressPoint: string;
|
progressPoint: string;
|
||||||
|
@ -3,7 +3,7 @@ import { getProgressPoint } from "../../../helpers/bar-helper";
|
|||||||
import { BarDisplay } from "./bar-display";
|
import { BarDisplay } from "./bar-display";
|
||||||
import { BarProgressHandle } from "./bar-progress-handle";
|
import { BarProgressHandle } from "./bar-progress-handle";
|
||||||
import { TaskItemProps } from "../task-item";
|
import { TaskItemProps } from "../task-item";
|
||||||
import styles from "./bar.module.css";
|
import styles from "./bar.less";
|
||||||
|
|
||||||
export const BarSmall: React.FC<TaskItemProps> = ({
|
export const BarSmall: React.FC<TaskItemProps> = ({
|
||||||
task,
|
task,
|
||||||
|
@ -4,7 +4,7 @@ import { BarDisplay } from "./bar-display";
|
|||||||
import { BarDateHandle } from "./bar-date-handle";
|
import { BarDateHandle } from "./bar-date-handle";
|
||||||
import { BarProgressHandle } from "./bar-progress-handle";
|
import { BarProgressHandle } from "./bar-progress-handle";
|
||||||
import { TaskItemProps } from "../task-item";
|
import { TaskItemProps } from "../task-item";
|
||||||
import styles from "./bar.module.css";
|
import styles from "./bar.less";
|
||||||
|
|
||||||
export const Bar: React.FC<TaskItemProps> = ({
|
export const Bar: React.FC<TaskItemProps> = ({
|
||||||
task,
|
task,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { TaskItemProps } from "../task-item";
|
import { TaskItemProps } from "../task-item";
|
||||||
import styles from "./milestone.module.css";
|
import styles from "./milestone.less";
|
||||||
|
|
||||||
export const Milestone: React.FC<TaskItemProps> = ({
|
export const Milestone: React.FC<TaskItemProps> = ({
|
||||||
task,
|
task,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { TaskItemProps } from "../task-item";
|
import { TaskItemProps } from "../task-item";
|
||||||
import styles from "./project.module.css";
|
import styles from "./project.less";
|
||||||
|
|
||||||
export const Project: React.FC<TaskItemProps> = ({ task, isSelected }) => {
|
export const Project: React.FC<TaskItemProps> = ({ task, isSelected }) => {
|
||||||
const barColor = isSelected
|
const barColor = isSelected
|
||||||
|
@ -5,7 +5,7 @@ import { Bar } from "./bar/bar";
|
|||||||
import { BarSmall } from "./bar/bar-small";
|
import { BarSmall } from "./bar/bar-small";
|
||||||
import { Milestone } from "./milestone/milestone";
|
import { Milestone } from "./milestone/milestone";
|
||||||
import { Project } from "./project/project";
|
import { Project } from "./project/project";
|
||||||
import style from "./task-list.module.css";
|
import style from "./task-list.less";
|
||||||
|
|
||||||
export type TaskItemProps = {
|
export type TaskItemProps = {
|
||||||
task: BarTask;
|
task: BarTask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user