@cregis/ui 1.1.6 → 1.1.8
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 +1581 -1510
- package/dist/types/index.d.ts +13 -4
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare const Cascader: DefineComponent<CascaderProps, {}, {}, {}, {}, Co
|
|
|
78
78
|
options: CascaderRootOption[];
|
|
79
79
|
maxPopperHeight: StringOrNumber;
|
|
80
80
|
offset: [number, number];
|
|
81
|
-
align: "left" | "
|
|
81
|
+
align: "left" | "center" | "right";
|
|
82
82
|
filterDebounceMs: number;
|
|
83
83
|
noDataText: string;
|
|
84
84
|
noMatchText: string;
|
|
@@ -540,7 +540,7 @@ export declare const Select: DefineComponent<SelectProps, {}, {}, {}, {}, Compon
|
|
|
540
540
|
type: "plain" | "default" | "noBorder";
|
|
541
541
|
size: "small" | "medium" | "large" | "extraSmall";
|
|
542
542
|
placeholder: string;
|
|
543
|
-
align: "left" | "
|
|
543
|
+
align: "left" | "center" | "right";
|
|
544
544
|
filterDebounceMs: number;
|
|
545
545
|
noDataText: string;
|
|
546
546
|
noMatchText: string;
|
|
@@ -726,10 +726,12 @@ export declare interface TabsProps {
|
|
|
726
726
|
modelValue: string | number;
|
|
727
727
|
type?: 'default' | 'card';
|
|
728
728
|
size?: TabSize;
|
|
729
|
+
/** 整个 Tabs 的宽度,数字按 px 处理 */
|
|
730
|
+
width?: string | number;
|
|
729
731
|
}
|
|
730
732
|
|
|
731
733
|
export declare const Tag: DefineComponent<TagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TagProps> & Readonly<{}>, {
|
|
732
|
-
type: "danger" | "sameWhite" | "solid" | "
|
|
734
|
+
type: "danger" | "sameWhite" | "solid" | "invalid" | "success" | "warning" | "subtle" | "gray" | "strokeSubtle" | "strokeSolid" | "ready" | "apricot" | "khaki" | "grass" | "sage" | "cyan" | "iceBlue" | "periwinkle" | "lilac" | "orchid" | "mallow" | "rose" | "coral" | "mauve" | "moss" | "steel" | "grape" | "lime" | "amlDanger";
|
|
733
735
|
size: TagSize;
|
|
734
736
|
palette: boolean;
|
|
735
737
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -825,7 +827,9 @@ declare type Type_2 = 'default' | 'plain' | 'noBorder';
|
|
|
825
827
|
|
|
826
828
|
declare type Type_3 = 'default' | 'plain' | 'noBorder';
|
|
827
829
|
|
|
828
|
-
export declare const Upload: DefineComponent<UploadProps, {
|
|
830
|
+
export declare const Upload: DefineComponent<UploadProps, {
|
|
831
|
+
reset: () => void;
|
|
832
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
829
833
|
"update:modelValue": (value: string) => any;
|
|
830
834
|
}, string, PublicProps, Readonly<UploadProps> & Readonly<{
|
|
831
835
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
@@ -837,6 +841,11 @@ export declare interface UploadEmits {
|
|
|
837
841
|
(e: 'update:modelValue', value: string): void;
|
|
838
842
|
}
|
|
839
843
|
|
|
844
|
+
export declare interface UploadInstance {
|
|
845
|
+
/** 重置到初始状态,用于上传异常后重新选择文件 */
|
|
846
|
+
reset: () => void;
|
|
847
|
+
}
|
|
848
|
+
|
|
840
849
|
export declare interface UploadProps {
|
|
841
850
|
modelValue: string;
|
|
842
851
|
accept?: string;
|