change to jsdoc
This commit is contained in:
@ -82,6 +82,27 @@ function filterSource(searchkeys, textkey, key, source) {
|
||||
return source;
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉列表参数对象
|
||||
* @typedef DropdownOptions
|
||||
* @property {string} [textKey=text] - 文本关键字
|
||||
* @property {string} [valueKey=value] - 值关键字
|
||||
* @property {string} [htmlKey=html] - 源码显示的关键字
|
||||
* @property {number} [maxLength=500] - 最大输入长度
|
||||
* @property {boolean} [multiSelect] - 是否允许多选
|
||||
* @property {string} [selected] - 选中值
|
||||
* @property {string[]} [selectedList] - 选中的数组
|
||||
* @property {boolean} [disabled] - 是否禁用
|
||||
* @property {boolean} [input] - 是否支持输入
|
||||
* @property {boolean} [search] - 是否支持搜索
|
||||
* @property {string[]} [searchKeys] - 搜索的关键字数组
|
||||
* @property {string} [searchPlaceholder] - 搜索提示文本,默认值取语言资源 `searchHolder` "Search..."
|
||||
* @property {number} [tabIndex] - 焦点索引
|
||||
* @property {string} [placeholder] - 输入框的提示文本
|
||||
* @property {boolean} [slideFixed] - 是否固定为向下展开
|
||||
* @property {HTMLElement} [wrapper] - 父元素,默认添加到头元素之后
|
||||
*/
|
||||
|
||||
export class Dropdown {
|
||||
_var = {};
|
||||
// _var.options;
|
||||
|
Reference in New Issue
Block a user