style: format
parent
660ead3271
commit
a3c8930b39
|
@ -25,7 +25,11 @@ const Calendar = {
|
||||||
name: 'Calendar',
|
name: 'Calendar',
|
||||||
props: {
|
props: {
|
||||||
locale: PropTypes.object.def(enUs),
|
locale: PropTypes.object.def(enUs),
|
||||||
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
format: PropTypes.oneOfType([
|
||||||
|
PropTypes.string,
|
||||||
|
PropTypes.arrayOf(PropTypes.string),
|
||||||
|
PropTypes.func,
|
||||||
|
]),
|
||||||
visible: PropTypes.bool.def(true),
|
visible: PropTypes.bool.def(true),
|
||||||
prefixCls: PropTypes.string.def('rc-calendar'),
|
prefixCls: PropTypes.string.def('rc-calendar'),
|
||||||
// prefixCls: PropTypes.string,
|
// prefixCls: PropTypes.string,
|
||||||
|
|
|
@ -110,7 +110,11 @@ const RangeCalendar = {
|
||||||
// onValueChange: PropTypes.func,
|
// onValueChange: PropTypes.func,
|
||||||
// onHoverChange: PropTypes.func,
|
// onHoverChange: PropTypes.func,
|
||||||
// onPanelChange: PropTypes.func,
|
// onPanelChange: PropTypes.func,
|
||||||
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
format: PropTypes.oneOfType([
|
||||||
|
PropTypes.string,
|
||||||
|
PropTypes.arrayOf(PropTypes.string),
|
||||||
|
PropTypes.func,
|
||||||
|
]),
|
||||||
// onClear: PropTypes.func,
|
// onClear: PropTypes.func,
|
||||||
type: PropTypes.any.def('both'),
|
type: PropTypes.any.def('both'),
|
||||||
disabledDate: PropTypes.func,
|
disabledDate: PropTypes.func,
|
||||||
|
|
|
@ -16,7 +16,11 @@ const DateInput = {
|
||||||
timePicker: PropTypes.object,
|
timePicker: PropTypes.object,
|
||||||
value: PropTypes.object,
|
value: PropTypes.object,
|
||||||
disabledTime: PropTypes.any,
|
disabledTime: PropTypes.any,
|
||||||
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
format: PropTypes.oneOfType([
|
||||||
|
PropTypes.string,
|
||||||
|
PropTypes.arrayOf(PropTypes.string),
|
||||||
|
PropTypes.func,
|
||||||
|
]),
|
||||||
locale: PropTypes.object,
|
locale: PropTypes.object,
|
||||||
disabledDate: PropTypes.func,
|
disabledDate: PropTypes.func,
|
||||||
// onChange: PropTypes.func,
|
// onChange: PropTypes.func,
|
||||||
|
|
|
@ -6,13 +6,13 @@ import Pickr from '@simonwep/pickr';
|
||||||
|
|
||||||
export declare class ColorPicker extends AntdComponent {
|
export declare class ColorPicker extends AntdComponent {
|
||||||
/** simonwep/pickr's options */
|
/** simonwep/pickr's options */
|
||||||
config?:Pickr.Options
|
config?: Pickr.Options;
|
||||||
/**prefix class name */
|
/**prefix class name */
|
||||||
prefixCls?: string
|
prefixCls?: string;
|
||||||
/** default color value */
|
/** default color value */
|
||||||
defaultValue?: string
|
defaultValue?: string;
|
||||||
/** color value */
|
/** color value */
|
||||||
value?: string
|
value?: string;
|
||||||
/**
|
/**
|
||||||
* language package setting
|
* language package setting
|
||||||
* @type object
|
* @type object
|
||||||
|
@ -23,7 +23,7 @@ export declare class ColorPicker extends AntdComponent {
|
||||||
* @default 0
|
* @default 0
|
||||||
* @type number
|
* @type number
|
||||||
* */
|
* */
|
||||||
colorRounded?:number
|
colorRounded?: number;
|
||||||
/**
|
/**
|
||||||
* descriptions size type
|
* descriptions size type
|
||||||
* @default 'default'
|
* @default 'default'
|
||||||
|
@ -42,10 +42,10 @@ export declare class ColorPicker extends AntdComponent {
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
disabled: boolean
|
disabled: boolean;
|
||||||
/**
|
/**
|
||||||
* to set the color format
|
* to set the color format
|
||||||
* @default "HEXA"
|
* @default "HEXA"
|
||||||
*/
|
*/
|
||||||
format: Pickr.Representation
|
format: Pickr.Representation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue