Skip to content

Commit

Permalink
feat(pro:search): add IxProSearchShortcut comp and shortcut slots (#1594
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sallerli1 committed Jul 6, 2023
1 parent 6c6d41b commit c605be2
Show file tree
Hide file tree
Showing 11 changed files with 612 additions and 26 deletions.
3 changes: 2 additions & 1 deletion packages/pro/index.ts
Expand Up @@ -9,7 +9,7 @@ import type { App, Directive } from 'vue'

import { IxProForm } from '@idux/pro/form'
import { IxProLayout, IxProLayoutSiderTrigger } from '@idux/pro/layout'
import { IxProSearch } from '@idux/pro/search'
import { IxProSearch, IxProSearchShortcut } from '@idux/pro/search'
import { IxProTable, IxProTableLayoutTool } from '@idux/pro/table'
import { IxProTextarea } from '@idux/pro/textarea'
import { IxProTransfer } from '@idux/pro/transfer'
Expand All @@ -28,6 +28,7 @@ const components = [
IxProTree,
IxProTextarea,
IxProSearch,
IxProSearchShortcut,
]

const install = (app: App): void => {
Expand Down
14 changes: 14 additions & 0 deletions packages/pro/search/demo/CustomShortcuts.md
@@ -0,0 +1,14 @@
---
order: 12
title:
zh: 自定义快捷面板Shortcuts
en: Quick select panel shortcuts customization
---

## zh

通过 `shortcuts` 插槽配合 `IxProSearchShortcut` 自定义快捷栏。

## en

Customize shortcuts via slot `shortcuts` using `IxProSearchShortcut`.

0 comments on commit c605be2

Please sign in to comment.