-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.ts
More file actions
68 lines (63 loc) · 2.04 KB
/
plugin.ts
File metadata and controls
68 lines (63 loc) · 2.04 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import type { App, Component, Plugin } from 'vue'
import { ZPagination } from './components/common/Pagination'
import { ZAdaptiveIcon } from './components/common/AdaptiveIcon'
import { ZButton } from './components/common/Button'
import { ZCheckbox } from './components/common/Checkbox'
import { ZColorPicker } from './components/common/ColorPicker'
import { ZCommandCard } from './components/common/CommandCard'
import { ZCommandTag } from './components/common/CommandTag'
import { ZConfirmDialog } from './components/common/ConfirmDialog'
import { ZDetailPanel } from './components/common/DetailPanel'
import { ZDrawer, ZDrawerContent } from './components/common/Drawer'
import { ZPopover } from './components/common/Popover'
import { ZSelect } from './components/common/Select'
import { ZFeatureCard } from './components/common/FeatureCard'
import { ZHotkeyInput } from './components/common/HotkeyInput'
import { ZInput } from './components/common/Input'
import { ZPluginDetail } from './components/common/PluginDetail'
import { ZRadio } from './components/common/Radio'
import { ZShortcutEditor } from './components/common/ShortcutEditor'
import { ZSlider } from './components/common/Slider'
import { ZSwitch } from './components/common/Switch'
import { ZTab, ZTabPane, ZTabs } from './components/common/Tabs'
import { ZTag } from './components/common/Tag'
import { ZTagDropdown } from './components/common/TagDropdown'
import { ZToast } from './components/common/Toast'
const components = {
ZPagination,
ZAdaptiveIcon,
ZButton,
ZCheckbox,
ZColorPicker,
ZCommandCard,
ZCommandTag,
ZConfirmDialog,
ZDetailPanel,
ZDrawer,
ZDrawerContent,
ZPopover,
ZSelect,
ZFeatureCard,
ZHotkeyInput,
ZInput,
ZPluginDetail,
ZRadio,
ZShortcutEditor,
ZSlider,
ZSwitch,
ZTab,
ZTabPane,
ZTabs,
ZTag,
ZTagDropdown,
ZToast
} as const
export function install(app: App): void {
Object.entries(components).forEach(([name, component]) => {
app.component(name, component as Component)
})
}
const plugin: Plugin = {
install
}
export default plugin