ant-design-vue/types/time-picker.d.ts
Akshay Jat 0e499ee908 feat: typescript support (#359)
* feat: typescript support

Added typing files for better support in Typescript

* feat: typescript support

Adding declare keywords left in last commit

* feat: typescript support

Added support to add Ant Design globally (Vue.use(Antd))

* feat: typescript support

Fix wrong import file

* fix: typescript support

changed aobject[] to object[]

* feat: typescript support

Removed Library version from comments & corrected few incorrect types

* fix: typescript support

Tree : xxxKeys should support number[]

* fix: typescript support

table: updated return type for customXXX

* fix: typescript support

Fix spelling mistake (plcement => placement)
2019-01-01 12:13:51 +08:00

178 lines
3.1 KiB
TypeScript

// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { Moment } from "moment";
export declare class TimePicker extends AntdComponent {
/**
* some addon to timepicker panel bottom
* @type any (slot | slot-scope)
*/
addon: any;
/**
* allow clearing text
* @default true
* @type boolean
*/
allowEmpty: boolean;
/**
* get focus when component mounted
* @default false
* @type boolean
*/
autoFocus: boolean;
/**
* clear tooltip of icon
* @default 'clear'
* @type string
*/
clearText: string;
/**
* default open panel value, used to set utcOffset,locale if value/defaultValue absent
* @default Moment
* @type Moment
*/
defaultOpenValue: Moment;
/**
* to set default time
* @type Moment
*/
defaultValue: Moment;
/**
* determine whether the TimePicker is disabled
* @default false
* @type boolean
*/
disabled: boolean;
/**
* to specify the hours that cannot be selected
* @type Function
*/
disabledHours: () => any;
/**
* to specify the minutes that cannot be selected
* @type Function
*/
disabledMinutes: (selectedHour: any) => any;
/**
* to specify the seconds that cannot be selected
* @type Function
*/
disabledSeconds: (selectedHour: any, selectedMinute: any) => any;
/**
* to set the time format
* @default "HH:mm:ss"
* @type string
*/
format: string;
/**
* to set the container of the floating layer, while the default is to create a div element in body
* @type Function
*/
getPopupContainer: (trigger: any) => any;
/**
* hide the options that can not be selected
* @default false
* @type boolean
*/
hideDisabledOptions: boolean;
/**
* interval between hours in picker
* @default 1
* @type number
*/
hourStep: number;
/**
* Set the readonly attribute of the input tag (avoids virtual keyboard on touch devices)
* @default false
* @type boolean
*/
inputReadOnly: boolean;
/**
* interval between minutes in picker
* @default 1
* @type number
*/
minuteStep: number;
/**
* whether to popup panel
* @default false
* @type boolean
*/
open: boolean;
/**
* display when there's no value
* @default "Select a time"
* @type string
*/
placeholder: string;
/**
* className of panel
* @type string
*/
popupClassName: string;
/**
* interval between seconds in picker
* @default 1
* @type number
*/
secondStep: number;
/**
* The custom suffix icon
* @type any (string | VNode | slot)
*/
suffixIcon: any;
/**
* display as 12 hours format, with default format h:mm:ss a
* @default false
* @type boolean
*/
use12Hours: boolean;
/**
* to set time
* @type Moment
*/
value: Moment;
/**
* Time picker size
* @default 'default'
* @type string
*/
size: "large" | "default" | "small";
/**
* remove focus
*/
blur(): void;
/**
* get focus
*/
focus(): void;
}