feat: establish composed color picker protocol
This commit is contained in:
@@ -72,3 +72,21 @@ const wrongFieldModel: ColorFieldProps = { modelValue: 123 };
|
||||
void field;
|
||||
void wrongValidator;
|
||||
void wrongFieldModel;
|
||||
|
||||
import type { ColorPickerProps } from "../../packages/vue/src/components/color-picker/context";
|
||||
const picker: ColorPickerProps = {
|
||||
modelValue: color,
|
||||
open: false,
|
||||
name: "color",
|
||||
};
|
||||
const emptyPicker: ColorPickerProps = {
|
||||
// @ts-expect-error picker is non-null even when a child field is cleared
|
||||
modelValue: null,
|
||||
};
|
||||
const numericPicker: ColorPickerProps = {
|
||||
// @ts-expect-error numeric color values are not accepted
|
||||
value: 123,
|
||||
};
|
||||
void picker;
|
||||
void emptyPicker;
|
||||
void numericPicker;
|
||||
|
||||
Reference in New Issue
Block a user