@cregis/ui 1.0.14 → 1.0.16

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.
@@ -600,6 +600,7 @@ export declare interface SwitchProps {
600
600
  }
601
601
 
602
602
  export declare const TableList: DefineComponent<CregisTableProps, {
603
+ selectMode: Ref<boolean>;
603
604
  openSelect: () => void;
604
605
  closeSelect: () => void;
605
606
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -631,6 +632,7 @@ declare interface TableListColumnProps {
631
632
  columnHeight?: number;
632
633
  minTableWidth?: number;
633
634
  type?: 'default' | 'select';
635
+ selectVisible?: boolean;
634
636
  selected?: boolean;
635
637
  blank?: boolean;
636
638
  prop?: string;
@@ -642,6 +644,13 @@ declare interface TableListColumnProps {
642
644
  hidden?: boolean;
643
645
  }
644
646
 
647
+ export declare interface TableListInstance {
648
+ /** 是否开启批量选择模式 */
649
+ selectMode: Ref<boolean>;
650
+ openSelect: () => void;
651
+ closeSelect: () => void;
652
+ }
653
+
645
654
  export declare const TabPane: DefineComponent<TabPaneProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
646
655
 
647
656
  export declare interface TabPaneProps {
@@ -695,29 +704,36 @@ declare type TagType = 'subtle' | 'solid' | 'gray' | 'strokeSubtle' | 'strokeSol
695
704
 
696
705
  export declare const Timeline: DefineComponent<TimelineProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
697
706
  dotSize: number | string;
698
- dotColor: string;
699
- lineColor: string;
707
+ activeColor: string;
700
708
  lineWidth: number | string;
701
709
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
702
710
 
711
+ /** 未激活节点圆点颜色,固定不可自定义 */
712
+ export declare const TIMELINE_INACTIVE_DOT_COLOR = "var(--material-card-deep)";
713
+
703
714
  export declare const TIMELINE_KEY: InjectionKey<TimelineContext>;
704
715
 
716
+ /** 节点连线颜色,固定不可自定义 */
717
+ export declare const TIMELINE_LINE_COLOR = "var(--stroke-outline-subtle)";
718
+
705
719
  export declare interface TimelineContext {
706
720
  dotSize: Ref<number | string>;
707
- dotColor: Ref<string>;
708
- lineColor: Ref<string>;
721
+ activeColor: Ref<string>;
709
722
  lineWidth: Ref<number | string>;
710
723
  }
711
724
 
712
725
  export declare const TimelineItem: DefineComponent<TimelineItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
726
+ active: boolean;
713
727
  contentHoverable: boolean;
714
728
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
715
729
 
716
730
  export declare interface TimelineItemProps {
731
+ /** 是否为激活节点,默认 true */
732
+ active?: boolean;
717
733
  /** 节点圆点直径,可覆盖 Timeline 默认值 */
718
734
  dotSize?: number | string;
719
- /** 节点圆点颜色,可覆盖 Timeline 默认值 */
720
- dotColor?: string;
735
+ /** 激活节点圆点颜色,可覆盖 Timeline 默认值 */
736
+ activeColor?: string;
721
737
  /** 连接线宽度,可覆盖 Timeline 默认值 */
722
738
  lineWidth?: number | string;
723
739
  /** content 区域是否启用 hover 背景,默认 true */
@@ -727,10 +743,8 @@ export declare interface TimelineItemProps {
727
743
  export declare interface TimelineProps {
728
744
  /** 节点圆点直径,默认 8 */
729
745
  dotSize?: number | string;
730
- /** 节点圆点颜色,默认绿色 */
731
- dotColor?: string;
732
- /** 连接线颜色 */
733
- lineColor?: string;
746
+ /** 激活节点圆点颜色,默认 var(--text-brand-primary) */
747
+ activeColor?: string;
734
748
  /** 连接线宽度,默认 2 */
735
749
  lineWidth?: number | string;
736
750
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cregis/ui",
3
3
  "private": false,
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"