optimized

This commit is contained in:
2023-04-06 00:08:03 +08:00
parent adb74b7441
commit c27d44872b
11 changed files with 314 additions and 91 deletions

View File

@ -28,67 +28,67 @@
parent?: HTMLElement;
}</pre>
</p>
<h3>textkey?: string</h3>
<h4>textkey?: string</h4>
<p>
数据源中用以显示的属性,默认为 <code>text</code>
</p>
<h3>valuekey?: string</h3>
<h4>valuekey?: string</h4>
<p>
数据源中作为值的属性,默认为 <code>value</code>
</p>
<h3>htmlkey?: string</h3>
<h4>htmlkey?: string</h4>
<p>
数据源中用来以 html 方式呈现的属性,默认为 <code>html</code>
</p>
<h3>maxlength?: Number</h3>
<h4>maxlength?: Number</h4>
<p>
作为输入类型时的最大允许字符数,默认为 500
</p>
<h3>multiselect?: boolean</h3>
<h4>multiselect?: boolean</h4>
<p>
是否允许多选,仅在选择类型下有效
</p>
<h3>selected?: string</h3>
<h4>selected?: string</h4>
<p>
默认选中的项目的值
</p>
<h3>selectedlist?: Array&lt;DropdownItem | any&gt;</h3>
<h4>selectedlist?: Array&lt;DropdownItem | any&gt;</h4>
<p>
多选时默认选中的项目的值的列表
</p>
<h3>disabled?: boolean</h3>
<h4>disabled?: boolean</h4>
<p>
初始化时下拉框是否禁用
</p>
<h3>input?: boolean</h3>
<h4>input?: boolean</h4>
<p>
是否为输入类型
</p>
<h3>search?: boolean</h3>
<h4>search?: boolean</h4>
<p>
是否允许搜索
</p>
<h3>searchkeys?: Array&lt;string&gt;</h3>
<h4>searchkeys?: Array&lt;string&gt;</h4>
<p>
搜索时搜索的数据源属性的列表,默认为 <code>[valuekey]</code>
</p>
<h3>searchplaceholder?: string</h3>
<h4>searchplaceholder?: string</h4>
<p>
搜索输入框的占位字符串
</p>
<h3>tabindex?: Number</h3>
<h4>tabindex?: Number</h4>
<p>
下拉框的焦点顺序
</p>
<h3>placeholder?: string</h3>
<h4>placeholder?: string</h4>
<p>
作为输入类型时,输入框的占位字符串
</p>
<h3>slidefixed?: boolean</h3>
<h4>slidefixed?: boolean</h4>
<p>
下拉方向是否固定为下
</p>
<h3>parent?: HTMLElement</h3>
<h4>parent?: HTMLElement</h4>
<p>
下拉列表呈现的父容器,默认为 <code>document.body</code>
</p>