Skip to content

Commit 16a4a1b

Browse files
fix(editable-select): editable-select组件demo问题修复 (DevCloudFE#1735)
Co-authored-by: GreatZP <greatzp@greatzp.cn>
1 parent c2f227f commit 16a4a1b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/devui-vue/docs/components/editable-select/index.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export default defineComponent({
417417
return item.label.toLowerCase().includes(query.toLowerCase());
418418
});
419419
} else {
420-
options.value = [];
420+
options.value.splice(0, options.value.length);
421421
}
422422
};
423423
@@ -456,20 +456,20 @@ export default defineComponent({
456456
| placeholder | `string` | 'Select' | 可选,输入框的默认提示文字 | [基本用法](#基本用法) |
457457
| width | `number` | -- | 可选,输入框宽度 | [基本用法](#基本用法) |
458458
| max-height | `number` | -- | 可选,下拉框最大高度 | [基本用法](#基本用法) |
459-
| disabled | `boolean` | false | 可选,是否禁用选择器本身 | [禁用选择器本身 ](#禁用选择器本身) |
459+
| disabled | `boolean` | false | 可选,是否禁用选择器本身 | [禁用选择器本身](#禁用选择器本身) |
460460
| disabled-key | `string` | '' | 可选,设置禁用选项的 Key 值 | [禁用选项](#有用选项) |
461461
| enable-lazy-load | `boolean` | false | 可选,是否允许懒加载 | [远程搜索](#远程搜索) |
462-
| filter-method | ` (inputValue:string)=>Array<Options>` | -- | 可选,自定义筛选方法 | [自定义匹配方法](#自定义筛选方法) |
462+
| filter-method | `(inputValue:string)=>Array<Options>` | -- | 可选,自定义筛选方法 | [自定义匹配方法](#自定义筛选方法) |
463463
| remote-method | `(inputValue:string)=>Array<Options>` | -- | 可选,自定义远程搜索方法 | [远程搜索](#远程搜索) |
464464

465465
### EditableSelect 事件
466466

467467
| 事件名 | 回调参数 | 说明 | 跳转 Demo |
468468
| :------------- | :------------------------------ | :---------------------------- | :-------------------- |
469-
| load-more | ` (inputvalue:string)=>void` | 可选,懒加载触发事件 | [远程搜索](#远程搜索) |
470-
| focus | ` (e: FocusEvent)=>void` | 可选,当 input 获得焦点时触发 | |
471-
| blur | ` (e: FocusEvent)->void` | 可选,当 input 失去焦点时触发 | |
472-
| change | ` (value:string\|number)=>void` | 可选,选中值发生变化时触发 |
469+
| load-more | `(inputvalue:string)=>void` | 可选,懒加载触发事件 | [远程搜索](#远程搜索) |
470+
| focus | `(e: FocusEvent)=>void` | 可选,当 input 获得焦点时触发 | |
471+
| blur | `(e: FocusEvent)->void` | 可选,当 input 失去焦点时触发 | |
472+
| change | `(value:string\|number)=>void` | 可选,选中值发生变化时触发 |
473473
| visible-change | `(visible:boolean)=>void` | 可选,下拉框显隐时触发 |
474474

475475
### EditableSelect 插槽

packages/devui-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-devui",
3-
"version": "1.5.14",
3+
"version": "1.5.15",
44
"license": "MIT",
55
"description": "DevUI components based on Vite and Vue3",
66
"keywords": [

0 commit comments

Comments
 (0)