mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
c75582b4b6
* chore: update type popconfirm * chore: update type page-header * chore: update type popover * chore: update type progress * chore: update type radio * chore: update type rate * chore: update type row * fix: remove string type * chore: update type Select * fix:add $props * chore: update type spin * chore: update type statistic * chore: update type step * fix : add $props * fix:popconfirm add $props * fix: page-header types * fix: add onChange * fix : select type * fix: add type * fix: defined PaginationRenderProps
77 lines
1.4 KiB
TypeScript
77 lines
1.4 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 { VNodeChild } from 'vue';
|
|
export declare class Rate extends AntdComponent {
|
|
$props: {
|
|
/**
|
|
* whether to allow clear when click again
|
|
* @default true
|
|
* @type boolean
|
|
*/
|
|
allowClear?: boolean;
|
|
|
|
/**
|
|
* whether to allow semi selection
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
allowHalf?: boolean;
|
|
|
|
/**
|
|
* get focus when component mounted
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
autofocus?: boolean;
|
|
|
|
/**
|
|
* custom character of rate
|
|
* @default <StarOutlined />
|
|
* @type any (String or slot="character")
|
|
*/
|
|
character?: VNodeChild | JSX.Element;
|
|
|
|
/**
|
|
* star count
|
|
* @default 5
|
|
* @type number
|
|
*/
|
|
count?: number;
|
|
|
|
/**
|
|
* default value
|
|
* @default 0
|
|
* @type number
|
|
*/
|
|
defaultValue?: number;
|
|
|
|
/**
|
|
* read only, unable to interact
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
disabled?: boolean;
|
|
|
|
/**
|
|
* current value
|
|
* @type number
|
|
*/
|
|
value?: number;
|
|
|
|
tooltips?: Array<string>;
|
|
|
|
}
|
|
/**
|
|
* remove focus
|
|
*/
|
|
blur(): void;
|
|
|
|
/**
|
|
* get focus
|
|
*/
|
|
focus(): void;
|
|
}
|