完成d.ts定义的优化

This commit is contained in:
yangd 2018-08-30 13:27:15 +08:00
parent 6da055f33f
commit 414730dde3
61 changed files with 353 additions and 382 deletions

54
types/rate.d.ts vendored Normal file
View file

@ -0,0 +1,54 @@
// Type definitions for iview 3.0.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from "vue";
export declare class Rate extends Vue {
/**
* star总数
* @default 5
*/
count?: number;
/**
* star 使 v-model
* @default 0
*/
value?: number;
/**
*
* @default false
*/
'allow-half'?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
'show-text'?: boolean;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
*/
character?: string;
/**
* 使
*/
icon?: string;
/**
* 使
*/
'custom-icon'?: string;
/**
*
*/
$emit(eventName: 'on-change', value: number): this;
}