/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { EventEmitter, ElementRef, Renderer } from '@angular/core'; import { Select } from './select'; export declare class Option { private renderer; private elementRef; private select; isSelectOption: boolean; /** 样式前缀 */ prefixCls: string; /** 值。默认根据此属性值进行筛选 */ value: any; /** title */ title: string; /** 是否禁用状态,默认为 false */ disabled: boolean; /** id */ id: string; /** * option click 事件,参数为:({ option, event }) */ optionClick: EventEmitter<{ event: Event; option: Option; }>; role: string; unselectable: string; constructor(renderer: Renderer, elementRef: ElementRef, select: Select); /** * 菜单样式 */ readonly classes: string; readonly ariaselected: any; readonly ariadisabled: any; readonly myId: any; onMouseEnter(event: MouseEvent): void; onMouseLeave(event: MouseEvent): void; onClick(event: MouseEvent): void; /** 是否已选择 */ isSelected(): boolean; /** 是否已激活 */ isActived(): boolean; /** * 获取Option的文本 */ getText(): string; /** text属性,直接取getText()的值 */ readonly text: string; }