iview/dist/types/time-picker.d.ts

169 lines
5.4 KiB
TypeScript
Raw Normal View History

2018-08-31 18:04:17 +08:00
// Type definitions for iview 3.1.0
2018-08-30 18:11:37 +08:00
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
2018-08-31 18:04:17 +08:00
import Vue,{ VNode } from 'vue';
2018-08-30 18:11:37 +08:00
export declare class TimePicker extends Vue {
/**
* timetimerange
* @default time
*/
type?: 'time' | 'timerange';
/**
* JavaScript Date new Date()
* value 使 v-model Date @on-change 使
*
* yyyy 2016
* yy 16
* MM 01
* M 1
* MMMM January
* MMM Jan
* dd 01
* d 1
* Do 1st
* DD 00
* D 0
* dddd Monday
* ddd Mon
* HH 24 01
* H 24 1
* hh 12 01
* h 12 1
* mm 01
* m 1
* ss 01
* s 1
* SSS 019
* SS 01
* S 1
* A AM/PM
* a am/pm
* ZZ +0800
*/
value?: Date;
/**
*
* @default HH:mm:ss
*
* yyyy 2016
* yy 16
* MM 01
* M 1
* MMMM January
* MMM Jan
* dd 01
* d 1
* Do 1st
* DD 00
* D 0
* dddd Monday
* ddd Mon
* HH 24 01
* H 24 1
* hh 12 01
* h 12 1
* mm 01
* m 1
* ss 01
* s 1
* SSS 019
* SS 01
* S 1
* A AM/PM
* a am/pm
* ZZ +0800
*/
format?: string;
/**
*
* [1, 15] 00153045
* @default []
*/
steps?: any[];
/**
*
* top,top-start,top-end
* bottom,bottom-start,bottom-end
* left,left-start,left-end
* right,right-start,right-end
* @default bottom-start
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
*
* @default
*/
placeholder?: string;
/**
*
* @default false
*/
confirm?: boolean;
/**
* true false
* 使 slot confirm 使,
* @default null
*/
open?: boolean;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
* open
* @default false
*/
readonly?: boolean;
/**
* 使 slot
* @default true
*/
editable?: boolean;
/**
* body Tabs fixed Table 使
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: boolean;
/**
* 09:41:00
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
/**
*
*/
$emit(eventName: 'on-ok'): this;
/**
*
*/
$emit(eventName: 'on-clear'): this;
/**
* slot插槽对象
*/
$slots: {
/**
* open 使
*/
'': VNode[];
};
}