This repository was archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathCommandBar.vue
51 lines (50 loc) · 1.93 KB
/
CommandBar.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
<docs-content title='CommandBar'>
<div slot='Overview' v-html='overviewContent'></div>
<div slot='Variants'>
<docs-code-block title='Default CommandBar' :code='defaultCode'>
<ou-command-bar>
<template slot='main'>
<ou-search-box type='commandBar' placeholder='Search' />
<ou-command-button icon='CircleRing'>Command</ou-command-button>
<ou-contextual-menu>
<ou-command-button icon='CircleRing' type='dropdown'>New</ou-command-button>
<div slot='list'>
<ou-contextual-menu-item name='Animals' />
<ou-contextual-menu-item name='Books' />
<ou-contextual-menu-item name='Education' />
<ou-contextual-menu-item name='Music' />
<ou-contextual-menu-item name='Sports' disabled />
</div>
</ou-contextual-menu>
<ou-command-button icon='CircleRing'>Command</ou-command-button>
<ou-command-button icon='CircleRing'>Command</ou-command-button>
<ou-command-button icon='CircleRing'>Command</ou-command-button>
</template>
<template slot='side'>
<ou-command-button icon='CircleRing' type='noLabel'></ou-command-button>
</template>
</ou-command-bar>
</docs-code-block>
</div>
<div slot='Implementation'>
<docs-table type='slot' :data='commandBarSlot' name='CommandBar' />
</div>
</docs-content>
</template>
<script>
import overviewContent from '../markdown/command_bar/overview.md';
import defaultCode from '../markdown/command_bar/defaultCode.md';
export default {
data() {
return {
overviewContent,
defaultCode,
commandBarSlot: [
{ name: 'main', description: 'the main area of the command bar' },
{ name: 'side', description: 'the side area of the command bar' }
]
};
}
};
</script>