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', 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,

View File

@ -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,

View File

@ -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,

View File

@ -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;
} }