ant-design-vue/types/date-picker/common.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

90 lines
1.9 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 DatepickerCommon extends AntdComponent {
/**
* Whether to show clear button
* @default true
* @type boolean
*/
allowClear: boolean;
/**
* get focus when component mounted
* @default false
* @type boolean
*/
autoFocus: boolean;
/**
* custom rendering function for date cells by setting a scoped slot
* @type any (slot="dateRender" slot-scope="current, today")
*/
dateRender: any;
/**
* determine whether the DatePicker is disabled
* @default false
* @type boolean
*/
disabled: boolean;
/**
* specify the date that cannot be selected
* @type Function
*/
disabledDate: (currentDate: Moment) => boolean;
/**
* to set the container of the floating layer, while the default is to create a div element in body
* @type Function
*/
getCalendarContainer: (trigger: any) => any;
/**
* localization configuration
* @type any
*/
locale: any;
/**
* open state of picker
* @type boolean
*/
open: boolean;
/**
* placeholder of date input
* @type string | string[]
*/
placeholder: string | string[];
/**
* to customize the style of the popup calendar
* @type object
*/
popupStyle: object;
/**
* to customize the className of the popup calendar
* @type string
*/
dropdownClassName: string;
/**
* determine the size of the input box, the height of large and small, are 40px and 24px respectively, while default size is 32px
* @type string
*/
size: "large" | "small" | "default";
/**
* The custom suffix icon
* @type any (VNode | slot)
*/
suffixIcon: any;
}