Skip to content

Commit a3c8930

Browse files
committed
style: format
1 parent 660ead3 commit a3c8930

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

components/vc-calendar/src/Calendar.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ const Calendar = {
2525
name: 'Calendar',
2626
props: {
2727
locale: PropTypes.object.def(enUs),
28-
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
28+
format: PropTypes.oneOfType([
29+
PropTypes.string,
30+
PropTypes.arrayOf(PropTypes.string),
31+
PropTypes.func,
32+
]),
2933
visible: PropTypes.bool.def(true),
3034
prefixCls: PropTypes.string.def('rc-calendar'),
3135
// prefixCls: PropTypes.string,

components/vc-calendar/src/RangeCalendar.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ const RangeCalendar = {
110110
// onValueChange: PropTypes.func,
111111
// onHoverChange: PropTypes.func,
112112
// onPanelChange: PropTypes.func,
113-
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
113+
format: PropTypes.oneOfType([
114+
PropTypes.string,
115+
PropTypes.arrayOf(PropTypes.string),
116+
PropTypes.func,
117+
]),
114118
// onClear: PropTypes.func,
115119
type: PropTypes.any.def('both'),
116120
disabledDate: PropTypes.func,

components/vc-calendar/src/date/DateInput.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ const DateInput = {
1616
timePicker: PropTypes.object,
1717
value: PropTypes.object,
1818
disabledTime: PropTypes.any,
19-
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
19+
format: PropTypes.oneOfType([
20+
PropTypes.string,
21+
PropTypes.arrayOf(PropTypes.string),
22+
PropTypes.func,
23+
]),
2024
locale: PropTypes.object,
2125
disabledDate: PropTypes.func,
2226
// onChange: PropTypes.func,

types/color-picker.d.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import Pickr from '@simonwep/pickr';
66

77
export declare class ColorPicker extends AntdComponent {
88
/** simonwep/pickr's options */
9-
config?:Pickr.Options
9+
config?: Pickr.Options;
1010
/**prefix class name */
11-
prefixCls?: string
11+
prefixCls?: string;
1212
/** default color value */
13-
defaultValue?: string
13+
defaultValue?: string;
1414
/** color value */
15-
value?: string
15+
value?: string;
1616
/**
1717
* language package setting
1818
* @type object
@@ -23,7 +23,7 @@ export declare class ColorPicker extends AntdComponent {
2323
* @default 0
2424
* @type number
2525
* */
26-
colorRounded?:number
26+
colorRounded?: number;
2727
/**
2828
* descriptions size type
2929
* @default 'default'
@@ -42,10 +42,10 @@ export declare class ColorPicker extends AntdComponent {
4242
* @default false
4343
* @type boolean
4444
*/
45-
disabled: boolean
45+
disabled: boolean;
4646
/**
4747
* to set the color format
4848
* @default "HEXA"
4949
*/
50-
format: Pickr.Representation
50+
format: Pickr.Representation;
5151
}

0 commit comments

Comments
 (0)