@cregis/ui 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -709,49 +709,60 @@ declare type TagType = 'subtle' | 'solid' | 'gray' | 'strokeSubtle' | 'strokeSol
709
709
 
710
710
  export declare const Timeline: DefineComponent<TimelineProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
711
711
  dotSize: number | string;
712
- activeColor: string;
713
712
  lineWidth: number | string;
713
+ iconSize: number | string;
714
714
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
715
715
 
716
- /** 未激活节点圆点颜色,固定不可自定义 */
717
- export declare const TIMELINE_INACTIVE_DOT_COLOR = "var(--material-card-deep)";
718
-
719
716
  export declare const TIMELINE_KEY: InjectionKey<TimelineContext>;
720
717
 
721
718
  /** 节点连线颜色,固定不可自定义 */
722
719
  export declare const TIMELINE_LINE_COLOR = "var(--stroke-outline-subtle)";
723
720
 
721
+ /** 已驳回 / 已撤回节点背景色 */
722
+ export declare const TIMELINE_STATUS_DANGER_COLOR = "var(--material-danger-primary)";
723
+
724
+ /** 已完成节点背景色 */
725
+ export declare const TIMELINE_STATUS_FINISHED_COLOR = "var(--material-brand-primary)";
726
+
727
+ /** 未开始节点边框色 */
728
+ export declare const TIMELINE_STATUS_NOT_STARTED_BORDER_COLOR = "var(--stroke-outline-deep)";
729
+
730
+ /** 待处理节点背景色 */
731
+ export declare const TIMELINE_STATUS_PENDING_COLOR = "var(--material-warning-primary)";
732
+
724
733
  export declare interface TimelineContext {
725
734
  dotSize: Ref<number | string>;
726
- activeColor: Ref<string>;
727
735
  lineWidth: Ref<number | string>;
736
+ iconSize: Ref<number | string>;
728
737
  }
729
738
 
730
739
  export declare const TimelineItem: DefineComponent<TimelineItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
731
- active: boolean;
740
+ status: TimelineItemStatus;
732
741
  contentHoverable: boolean;
733
742
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
734
743
 
735
744
  export declare interface TimelineItemProps {
736
- /** 是否为激活节点,默认 true */
737
- active?: boolean;
745
+ /** 节点状态:finished 已完成 / pending 待处理 / not-started 未开始 / rejected 已驳回 / withdrawn 已撤回,默认 not-started */
746
+ status?: TimelineItemStatus;
738
747
  /** 节点圆点直径,可覆盖 Timeline 默认值 */
739
748
  dotSize?: number | string;
740
- /** 激活节点圆点颜色,可覆盖 Timeline 默认值 */
741
- activeColor?: string;
742
749
  /** 连接线宽度,可覆盖 Timeline 默认值 */
743
750
  lineWidth?: number | string;
751
+ /** 节点图标尺寸,可覆盖 Timeline 默认值 */
752
+ iconSize?: number | string;
744
753
  /** content 区域是否启用 hover 背景,默认 true */
745
754
  contentHoverable?: boolean;
746
755
  }
747
756
 
757
+ export declare type TimelineItemStatus = 'finished' | 'pending' | 'not-started' | 'rejected' | 'withdrawn';
758
+
748
759
  export declare interface TimelineProps {
749
- /** 节点圆点直径,默认 8 */
760
+ /** 节点圆点直径,默认 16 */
750
761
  dotSize?: number | string;
751
- /** 激活节点圆点颜色,默认 var(--text-brand-primary) */
752
- activeColor?: string;
753
762
  /** 连接线宽度,默认 2 */
754
763
  lineWidth?: number | string;
764
+ /** 节点图标尺寸,默认 8 */
765
+ iconSize?: number | string;
755
766
  }
756
767
 
757
768
  export declare type Type = 'primary' | 'info' | 'success' | 'warning' | 'danger';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cregis/ui",
3
3
  "private": false,
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"