xdesign-vue-next
Version:
XDesign Component for vue-next
182 lines (181 loc) • 6.24 kB
TypeScript
import { PropType } from 'vue';
import { Color } from '../../utils';
declare const _default: import("vue").DefineComponent<{
color: {
type: PropType<Color>;
};
onInputChange: {
type: FunctionConstructor;
default: () => () => void;
};
clearable: BooleanConstructor;
closeBtn: {
type: PropType<string | boolean | ((h: typeof import("vue").h) => import("../../..").SlotReturnValue)>;
default: string | boolean | ((h: typeof import("vue").h) => import("../../..").SlotReturnValue);
};
colorModes: {
type: PropType<("monochrome" | "linear-gradient")[]>;
default: () => string[];
};
disabled: BooleanConstructor;
enableAlpha: BooleanConstructor;
enableMultipleGradient: {
type: BooleanConstructor;
default: boolean;
};
format: {
type: PropType<"RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS">;
default: "RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS";
validator(val: "RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS"): boolean;
};
inputProps: {
type: PropType<import("../../../input").TdInputProps>;
};
multiple: BooleanConstructor;
popupProps: {
type: PropType<import("../../..").TdPopupProps>;
};
recentColors: {
type: PropType<boolean | string[]>;
default: any;
};
defaultRecentColors: {
type: PropType<boolean | string[]>;
default: () => boolean | string[];
};
selectInputProps: {
type: PropType<import("../../..").TdSelectInputProps>;
};
showPrimaryColorPreview: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: PropType<import("../../..").SizeEnum>;
default: import("../../..").SizeEnum;
validator(val: import("../../..").SizeEnum): boolean;
};
swatchColors: {
type: PropType<string[]>;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onChange: PropType<(value: string, context: {
color: import("../..").ColorObject;
trigger: import("../..").ColorPickerChangeTrigger;
}) => void>;
onPaletteBarChange: PropType<(context: {
color: import("../..").ColorObject;
}) => void>;
onRecentColorsChange: PropType<(value: string[]) => void>;
}, {
modelValue: any;
inputConfigs: import("vue").ComputedRef<(import("./config").FormatInput | import("./config").FormatInputNumber)[]>;
handleChange: (key: string, v: number | string) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
color: {
type: PropType<Color>;
};
onInputChange: {
type: FunctionConstructor;
default: () => () => void;
};
clearable: BooleanConstructor;
closeBtn: {
type: PropType<string | boolean | ((h: typeof import("vue").h) => import("../../..").SlotReturnValue)>;
default: string | boolean | ((h: typeof import("vue").h) => import("../../..").SlotReturnValue);
};
colorModes: {
type: PropType<("monochrome" | "linear-gradient")[]>;
default: () => string[];
};
disabled: BooleanConstructor;
enableAlpha: BooleanConstructor;
enableMultipleGradient: {
type: BooleanConstructor;
default: boolean;
};
format: {
type: PropType<"RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS">;
default: "RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS";
validator(val: "RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS"): boolean;
};
inputProps: {
type: PropType<import("../../../input").TdInputProps>;
};
multiple: BooleanConstructor;
popupProps: {
type: PropType<import("../../..").TdPopupProps>;
};
recentColors: {
type: PropType<boolean | string[]>;
default: any;
};
defaultRecentColors: {
type: PropType<boolean | string[]>;
default: () => boolean | string[];
};
selectInputProps: {
type: PropType<import("../../..").TdSelectInputProps>;
};
showPrimaryColorPreview: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: PropType<import("../../..").SizeEnum>;
default: import("../../..").SizeEnum;
validator(val: import("../../..").SizeEnum): boolean;
};
swatchColors: {
type: PropType<string[]>;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onChange: PropType<(value: string, context: {
color: import("../..").ColorObject;
trigger: import("../..").ColorPickerChangeTrigger;
}) => void>;
onPaletteBarChange: PropType<(context: {
color: import("../..").ColorObject;
}) => void>;
onRecentColorsChange: PropType<(value: string[]) => void>;
}>>, {
value: string;
disabled: boolean;
multiple: boolean;
size: import("../../..").SizeEnum;
format: "RGB" | "RGBA" | "HSL" | "HSLA" | "HSB" | "HSV" | "HSVA" | "HEX" | "CMYK" | "CSS";
modelValue: string;
defaultValue: string;
clearable: boolean;
onInputChange: Function;
closeBtn: string | boolean | ((h: typeof import("vue").h) => import("../../..").SlotReturnValue);
colorModes: ("monochrome" | "linear-gradient")[];
recentColors: boolean | string[];
defaultRecentColors: boolean | string[];
enableAlpha: boolean;
enableMultipleGradient: boolean;
showPrimaryColorPreview: boolean;
}, {}>;
export default _default;