Skip to content

fix(auto-complete): fix auto-complete docs build error: dead link #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/devui-vue/docs/components/auto-complete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,23 +453,23 @@ d-auto-complete 参数
| disabledKey | `string` | -- | 可选,禁用单个选项,当传入资源 source 选项类型为对象,比如设置为'disabled',则当对象的 disable 属性为 true 时,比如{ label: xxx, disabled: true },该选项将禁用 | [自定义数据匹配方法](#自定义数据匹配方法) |
| itemTemplate | `slot` | -- | 可选,自定义展示模板。slotProps:{ index: 下标索引, item: 当前项内容 }。 | [自定义模板展示](#自定义模板展示) |
| noResultItemTemplate | `slot` | -- | 可选,没有匹配项的展示结果。slotProps:输入内容。 | [自定义模板展示](#自定义模板展示) |
| formatter | `(item: any) => string` | [`defaultFormatter`](#defaultformatter) | 可选,格式化函数 | [自定义数据匹配方法](#自定义数据匹配方法) |
| formatter | `(item: any) => string` | [`defaultFormatter`](#defaultFormatter) | 可选,格式化函数 | [自定义数据匹配方法](#自定义数据匹配方法) |
| isSearching | `boolean` | false | 可选,是否在搜索中,用于控制 searchingTemplate 是否显示 | [自定义数据匹配方法](#自定义数据匹配方法) |
| searchingTemplate | `slot` | -- | 可选,自定义搜索中显示模板。slotProps:输入内容。 | [自定义数据匹配方法](#自定义数据匹配方法) |
| sceneType | `string` | -- | 可选,值为 'select'、'suggest' | [启用懒加载](demo#auto-lazy-load) |
| searchFn | `(term: string) => Array<any>` | [`defaultSearchFn`](#defaultsearchfn) | 可选,自定义搜索过滤 | [自定义数据匹配方法](#自定义数据匹配方法) |
| tipsText | `string` | '最近输入' | 可选,提示文字 | [设置禁用](demo#auto-disable) |
| latestSource | `Array<any>` | -- | 可选, 最近输入 | [最近输入](demo#auto-latest) |
| valueParser | `(item: any) => any` | [`defaultValueParse`](#defaultvalueparse) | 可选, 对选中后数据进行处理 | [启用懒加载](demo#auto-lazy-load) |
| enableLazyLoad | `boolean` | false | 可选,是否允许懒加载 | [启用懒加载](demo#auto-lazy-load) |
| sceneType | `string` | -- | 可选,值为 'select'、'suggest' | [启用懒加载](#启用懒加载) |
| searchFn | `(term: string) => Array<any>` | [`defaultSearchFn`](#defaultSearchFn) | 可选,自定义搜索过滤 | [自定义数据匹配方法](#自定义数据匹配方法) |
| tipsText | `string` | '最近输入' | 可选,提示文字 | [设置禁用](#设置禁用) |
| latestSource | `Array<any>` | -- | 可选, 最近输入 | [最近输入](#最近输入) |
| valueParser | `(item: any) => any` | [`defaultValueParse`](#defaultValueParse) | 可选, 对选中后数据进行处理 | [懒加载](#懒加载) |
| enableLazyLoad | `boolean` | false | 可选,是否允许懒加载 | [懒加载](#懒加载) |
| dAutoCompleteWidth | `number` | -- | 可选,调整宽度(`px`) |[基本用法](#基本用法)
| showAnimation | `boolean` | true | 可选,是否开启动画 | | ✔ | | |

d-auto-complete 事件

| 参数 | 类型 | 说明 | 跳转 Demo |
| :-----------------: | :----------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------- |
| loadMore | `EventEmitter<ComponentRef<AutoCompletePopupComponent>>` | 懒加载触发事件,配合`enableLazyLoad`使用,使用`$event.loadFinish()`关闭 loading 状态,其中\$event 为 AutoCompletePopupComponent 的实例 | [启用懒加载](demo#auto-lazy-load) |
| loadMore | `EventEmitter<ComponentRef<AutoCompletePopupComponent>>` | 懒加载触发事件,配合`enableLazyLoad`使用,使用`$event.loadFinish()`关闭 loading 状态,其中\$event 为 AutoCompletePopupComponent 的实例 | [懒加载](#懒加载) |
| selectValue | `EventEmitter<any>` | 可选,选择选项之后的回调函数 | [基本用法](#基本用法) |
| transInputFocusEmit | `EventEmitter<any>` | 可选,Input focus 时回调函数 | [基本用法](#基本用法) |

Expand Down
Loading