fixed: column drag issue.

optimized: documentation.
This commit is contained in:
2024-01-26 14:09:52 +08:00
parent 0b9b322b80
commit 984496e08e
5 changed files with 313 additions and 78 deletions

16
lib/ui/dropdown.d.ts vendored
View File

@ -32,7 +32,7 @@ export interface DropdownOptions {
search?: boolean;
/** 搜索的关键字数组 */
searchKeys?: Array<string>;
/** 搜索提示文本,默认值取语言资源 <code>searchHolder</code> "Search..." */
/** 搜索提示文本,默认值取语言资源 `searchHolder` "Search..." */
searchPlaceholder?: string;
/** 焦点索引 */
tabIndex?: Number;
@ -47,7 +47,7 @@ export interface DropdownOptions {
/** 下拉框类 */
export class Dropdown {
/**
* 把父元素下的所有 <code>select</code> 元素修改为统一下拉框组件
* 把父元素下的所有 `select` 元素修改为统一下拉框组件
* @param dom 父元素
* @returns 返回该父元素
*/
@ -64,16 +64,24 @@ export class Dropdown {
/**
* 选中时触发
* @param item 选中的条目
* @eventProperty
*/
onSelected: (item: DropdownItem) => void;
/**
* 选中多个时触发
* @param list 选中的条目数组
* @eventProperty
*/
onSelectedList: (list: Array<DropdownItem>) => void;
/** 下拉框展开时触发 */
/**
* 下拉框展开时触发
* @eventProperty
*/
onExpanded: () => void;
/** 下拉框收缩时触发 */
/**
* 下拉框收缩时触发
* @eventProperty
*/
onCollapsed: () => void;
/** 获取下拉框是否禁用 */