xdesign-vue-next
Version:
XDesign Component for vue-next
172 lines (171 loc) • 6.37 kB
TypeScript
declare const _default: import("vue").DefineComponent<{
clearable: BooleanConstructor;
closeBtn: {
type: import("vue").PropType<string | boolean | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
default: string | boolean | ((h: typeof import("vue").h) => import("..").SlotReturnValue);
};
colorModes: {
type: import("vue").PropType<("monochrome" | "linear-gradient")[]>;
default: () => string[];
};
disabled: BooleanConstructor;
enableAlpha: BooleanConstructor;
enableMultipleGradient: {
type: BooleanConstructor;
default: boolean;
};
format: {
type: import("vue").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: import("vue").PropType<import("..").TdInputProps>;
};
multiple: BooleanConstructor;
popupProps: {
type: import("vue").PropType<import("../popup").TdPopupProps>;
};
recentColors: {
type: import("vue").PropType<boolean | string[]>;
default: any;
};
defaultRecentColors: {
type: import("vue").PropType<boolean | string[]>;
default: () => boolean | string[];
};
selectInputProps: {
type: import("vue").PropType<import("..").TdSelectInputProps>;
};
showPrimaryColorPreview: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: import("vue").PropType<import("..").SizeEnum>;
default: import("..").SizeEnum;
validator(val: import("..").SizeEnum): boolean;
};
swatchColors: {
type: import("vue").PropType<string[]>;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onChange: import("vue").PropType<(value: string, context: {
color: import("./type").ColorObject;
trigger: import("./type").ColorPickerChangeTrigger;
}) => void>;
onPaletteBarChange: import("vue").PropType<(context: {
color: import("./type").ColorObject;
}) => void>;
onRecentColorsChange: import("vue").PropType<(value: string[]) => void>;
}, {
baseClassName: import("vue").ComputedRef<string>;
innerValue: import("vue").Ref<string>;
visible: import("vue").Ref<boolean>;
refTrigger: import("vue").Ref<HTMLElement>;
renderPopupContent: () => JSX.Element;
setVisible: (value: boolean) => boolean;
setInnerValue: import("../hooks/useVModel").ChangeHandler<string, [context: {
color: import("./type").ColorObject;
trigger: import("./type").ColorPickerChangeTrigger;
}]>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
clearable: BooleanConstructor;
closeBtn: {
type: import("vue").PropType<string | boolean | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
default: string | boolean | ((h: typeof import("vue").h) => import("..").SlotReturnValue);
};
colorModes: {
type: import("vue").PropType<("monochrome" | "linear-gradient")[]>;
default: () => string[];
};
disabled: BooleanConstructor;
enableAlpha: BooleanConstructor;
enableMultipleGradient: {
type: BooleanConstructor;
default: boolean;
};
format: {
type: import("vue").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: import("vue").PropType<import("..").TdInputProps>;
};
multiple: BooleanConstructor;
popupProps: {
type: import("vue").PropType<import("../popup").TdPopupProps>;
};
recentColors: {
type: import("vue").PropType<boolean | string[]>;
default: any;
};
defaultRecentColors: {
type: import("vue").PropType<boolean | string[]>;
default: () => boolean | string[];
};
selectInputProps: {
type: import("vue").PropType<import("..").TdSelectInputProps>;
};
showPrimaryColorPreview: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: import("vue").PropType<import("..").SizeEnum>;
default: import("..").SizeEnum;
validator(val: import("..").SizeEnum): boolean;
};
swatchColors: {
type: import("vue").PropType<string[]>;
};
value: {
type: StringConstructor;
default: any;
};
modelValue: {
type: StringConstructor;
default: any;
};
defaultValue: {
type: StringConstructor;
default: string;
};
onChange: import("vue").PropType<(value: string, context: {
color: import("./type").ColorObject;
trigger: import("./type").ColorPickerChangeTrigger;
}) => void>;
onPaletteBarChange: import("vue").PropType<(context: {
color: import("./type").ColorObject;
}) => void>;
onRecentColorsChange: import("vue").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;
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;