@cregis/ui 1.0.18 → 1.0.21
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.
- package/dist/index.css +1 -1
- package/dist/index.js +3225 -3157
- package/dist/types/index.d.ts +27 -15
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -607,10 +607,12 @@ export declare const TableList: DefineComponent<CregisTableProps, {
|
|
|
607
607
|
"row-click": (...args: any[]) => void;
|
|
608
608
|
"update:selected-list": (...args: any[]) => void;
|
|
609
609
|
"selected-change": (...args: any[]) => void;
|
|
610
|
+
"select-close": (...args: any[]) => void;
|
|
610
611
|
}, string, PublicProps, Readonly<CregisTableProps> & Readonly<{
|
|
611
612
|
"onRow-click"?: (...args: any[]) => any;
|
|
612
613
|
"onUpdate:selected-list"?: (...args: any[]) => any;
|
|
613
614
|
"onSelected-change"?: (...args: any[]) => any;
|
|
615
|
+
"onSelect-close"?: (...args: any[]) => any;
|
|
614
616
|
}>, {
|
|
615
617
|
columnHeight: number;
|
|
616
618
|
headerHeight: number;
|
|
@@ -688,8 +690,9 @@ export declare interface TabsProps {
|
|
|
688
690
|
}
|
|
689
691
|
|
|
690
692
|
export declare const Tag: DefineComponent<TagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TagProps> & Readonly<{}>, {
|
|
691
|
-
type: "danger" | "sameWhite" | "solid" | "success" | "invalid" | "warning" | "subtle" | "gray" | "strokeSubtle" | "strokeSolid" | "ready" | "apricot" | "khaki" | "grass" | "sage" | "cyan" | "iceBlue" | "periwinkle" | "lilac" | "orchid" | "mallow" | "rose" | "coral" | "mauve" | "moss" | "steel" | "grape" | "lime";
|
|
693
|
+
type: "danger" | "sameWhite" | "solid" | "success" | "invalid" | "warning" | "subtle" | "gray" | "strokeSubtle" | "strokeSolid" | "ready" | "apricot" | "khaki" | "grass" | "sage" | "cyan" | "iceBlue" | "periwinkle" | "lilac" | "orchid" | "mallow" | "rose" | "coral" | "mauve" | "moss" | "steel" | "grape" | "lime" | "amlDanger";
|
|
692
694
|
size: TagSize;
|
|
695
|
+
palette: boolean;
|
|
693
696
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
694
697
|
|
|
695
698
|
export declare type TagProps = {
|
|
@@ -697,57 +700,66 @@ export declare type TagProps = {
|
|
|
697
700
|
size?: TagSize;
|
|
698
701
|
text?: string;
|
|
699
702
|
maxWidth?: string | number;
|
|
703
|
+
palette?: boolean;
|
|
700
704
|
};
|
|
701
705
|
|
|
702
706
|
export declare type TagSize = 'small' | 'medium' | 'large';
|
|
703
707
|
|
|
704
|
-
declare type TagType = 'subtle' | 'solid' | 'gray' | 'strokeSubtle' | 'strokeSolid' | 'danger' | 'warning' | 'success' | 'ready' | 'invalid' | 'apricot' | 'khaki' | 'grass' | 'sage' | 'cyan' | 'iceBlue' | 'periwinkle' | 'lilac' | 'orchid' | 'mallow' | 'rose' | 'coral' | 'mauve' | 'moss' | 'steel' | 'grape' | 'sameWhite' | 'lime';
|
|
708
|
+
declare type TagType = 'subtle' | 'solid' | 'gray' | 'strokeSubtle' | 'strokeSolid' | 'danger' | 'warning' | 'success' | 'ready' | 'invalid' | 'apricot' | 'khaki' | 'grass' | 'sage' | 'cyan' | 'iceBlue' | 'periwinkle' | 'lilac' | 'orchid' | 'mallow' | 'rose' | 'coral' | 'mauve' | 'moss' | 'steel' | 'grape' | 'sameWhite' | 'lime' | 'amlDanger';
|
|
705
709
|
|
|
706
710
|
export declare const Timeline: DefineComponent<TimelineProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
|
|
707
711
|
dotSize: number | string;
|
|
708
|
-
activeColor: string;
|
|
709
712
|
lineWidth: number | string;
|
|
713
|
+
iconSize: number | string;
|
|
710
714
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
711
715
|
|
|
712
|
-
/** 未激活节点圆点颜色,固定不可自定义 */
|
|
713
|
-
export declare const TIMELINE_INACTIVE_DOT_COLOR = "var(--material-card-deep)";
|
|
714
|
-
|
|
715
716
|
export declare const TIMELINE_KEY: InjectionKey<TimelineContext>;
|
|
716
717
|
|
|
717
718
|
/** 节点连线颜色,固定不可自定义 */
|
|
718
719
|
export declare const TIMELINE_LINE_COLOR = "var(--stroke-outline-subtle)";
|
|
719
720
|
|
|
721
|
+
/** 已完成节点背景色 */
|
|
722
|
+
export declare const TIMELINE_STATUS_FINISHED_COLOR = "var(--material-brand-primary)";
|
|
723
|
+
|
|
724
|
+
/** 未开始节点边框色 */
|
|
725
|
+
export declare const TIMELINE_STATUS_NOT_STARTED_BORDER_COLOR = "var(--stroke-outline-deep)";
|
|
726
|
+
|
|
727
|
+
/** 待处理节点背景色 */
|
|
728
|
+
export declare const TIMELINE_STATUS_PENDING_COLOR = "var(--material-warning-primary)";
|
|
729
|
+
|
|
720
730
|
export declare interface TimelineContext {
|
|
721
731
|
dotSize: Ref<number | string>;
|
|
722
|
-
activeColor: Ref<string>;
|
|
723
732
|
lineWidth: Ref<number | string>;
|
|
733
|
+
iconSize: Ref<number | string>;
|
|
724
734
|
}
|
|
725
735
|
|
|
726
736
|
export declare const TimelineItem: DefineComponent<TimelineItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
|
|
727
|
-
|
|
737
|
+
status: TimelineItemStatus;
|
|
728
738
|
contentHoverable: boolean;
|
|
729
739
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
730
740
|
|
|
731
741
|
export declare interface TimelineItemProps {
|
|
732
|
-
/**
|
|
733
|
-
|
|
742
|
+
/** 节点状态:finished 已完成 / pending 待处理 / not-started 未开始,默认 not-started */
|
|
743
|
+
status?: TimelineItemStatus;
|
|
734
744
|
/** 节点圆点直径,可覆盖 Timeline 默认值 */
|
|
735
745
|
dotSize?: number | string;
|
|
736
|
-
/** 激活节点圆点颜色,可覆盖 Timeline 默认值 */
|
|
737
|
-
activeColor?: string;
|
|
738
746
|
/** 连接线宽度,可覆盖 Timeline 默认值 */
|
|
739
747
|
lineWidth?: number | string;
|
|
748
|
+
/** 节点图标尺寸,可覆盖 Timeline 默认值 */
|
|
749
|
+
iconSize?: number | string;
|
|
740
750
|
/** content 区域是否启用 hover 背景,默认 true */
|
|
741
751
|
contentHoverable?: boolean;
|
|
742
752
|
}
|
|
743
753
|
|
|
754
|
+
export declare type TimelineItemStatus = 'finished' | 'pending' | 'not-started';
|
|
755
|
+
|
|
744
756
|
export declare interface TimelineProps {
|
|
745
|
-
/** 节点圆点直径,默认
|
|
757
|
+
/** 节点圆点直径,默认 16 */
|
|
746
758
|
dotSize?: number | string;
|
|
747
|
-
/** 激活节点圆点颜色,默认 var(--text-brand-primary) */
|
|
748
|
-
activeColor?: string;
|
|
749
759
|
/** 连接线宽度,默认 2 */
|
|
750
760
|
lineWidth?: number | string;
|
|
761
|
+
/** 节点图标尺寸,默认 8 */
|
|
762
|
+
iconSize?: number | string;
|
|
751
763
|
}
|
|
752
764
|
|
|
753
765
|
export declare type Type = 'primary' | 'info' | 'success' | 'warning' | 'danger';
|