style: format

pull/2419/head^2
tanjinzhou 2020-07-06 17:57:55 +08:00
parent 660ead3271
commit a3c8930b39
4 changed files with 22 additions and 10 deletions

View File

@ -25,7 +25,11 @@ const Calendar = {
name: 'Calendar',
props: {
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),
prefixCls: PropTypes.string.def('rc-calendar'),
// prefixCls: PropTypes.string,

View File

@ -110,7 +110,11 @@ const RangeCalendar = {
// onValueChange: PropTypes.func,
// onHoverChange: 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,
type: PropTypes.any.def('both'),
disabledDate: PropTypes.func,

View File

@ -16,7 +16,11 @@ const DateInput = {
timePicker: PropTypes.object,
value: PropTypes.object,
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,
disabledDate: PropTypes.func,
// onChange: PropTypes.func,

View File

@ -6,13 +6,13 @@ import Pickr from '@simonwep/pickr';
export declare class ColorPicker extends AntdComponent {
/** simonwep/pickr's options */
config?:Pickr.Options
config?: Pickr.Options;
/**prefix class name */
prefixCls?: string
prefixCls?: string;
/** default color value */
defaultValue?: string
defaultValue?: string;
/** color value */
value?: string
value?: string;
/**
* language package setting
* @type object
@ -23,7 +23,7 @@ export declare class ColorPicker extends AntdComponent {
* @default 0
* @type number
* */
colorRounded?:number
colorRounded?: number;
/**
* descriptions size type
* @default 'default'
@ -42,10 +42,10 @@ export declare class ColorPicker extends AntdComponent {
* @default false
* @type boolean
*/
disabled: boolean
disabled: boolean;
/**
* to set the color format
* @default "HEXA"
*/
format: Pickr.Representation
format: Pickr.Representation;
}