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