From a3c8930b39371db10832a429bc1a5caaf2a6dee9 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 6 Jul 2020 17:57:55 +0800 Subject: [PATCH] style: format --- components/vc-calendar/src/Calendar.jsx | 6 +++++- components/vc-calendar/src/RangeCalendar.jsx | 6 +++++- components/vc-calendar/src/date/DateInput.jsx | 6 +++++- types/color-picker.d.ts | 14 +++++++------- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/components/vc-calendar/src/Calendar.jsx b/components/vc-calendar/src/Calendar.jsx index 920008afe..a35888ed2 100644 --- a/components/vc-calendar/src/Calendar.jsx +++ b/components/vc-calendar/src/Calendar.jsx @@ -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, diff --git a/components/vc-calendar/src/RangeCalendar.jsx b/components/vc-calendar/src/RangeCalendar.jsx index c6f22e9b9..f8b273b26 100644 --- a/components/vc-calendar/src/RangeCalendar.jsx +++ b/components/vc-calendar/src/RangeCalendar.jsx @@ -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, diff --git a/components/vc-calendar/src/date/DateInput.jsx b/components/vc-calendar/src/date/DateInput.jsx index f6da213f0..b16074681 100644 --- a/components/vc-calendar/src/date/DateInput.jsx +++ b/components/vc-calendar/src/date/DateInput.jsx @@ -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, diff --git a/types/color-picker.d.ts b/types/color-picker.d.ts index bfd393ba7..ba8fedae6 100644 --- a/types/color-picker.d.ts +++ b/types/color-picker.d.ts @@ -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; }