/*
 * @Author: Rindy
 * @Date: 2021-09-01 16:52:26
 * @LastEditors: Rindy
 * @LastEditTime: 2021-09-02 10:43:29
 * @Description: 通用组件
 */
import { setup } from './utils/componentHelper'
import Dialog, { Window, Toast, Alert, DialogContent } from './components/dialog'
import Loading from './components/loading'
import Message from './components/message'
import Tree from './components/tree'
import Button from './components/button'
import { Group, GroupOption } from './components/group'
import Icon from './components/icon'
import Floating from './components/floating'
import MenuItem from './components/menu-item'
import { Gate, GateContent } from './components/gate/index'
import Slide from './components/slide/index'
import Audio from './components/audio'
import Cropper from './components/cropper'
import Scrollbar from './components/scrollbar'

const components = setup(DialogContent, Cropper, Message, Loading, Dialog, Window, Toast, Alert, Tree, Button, Group, GroupOption,  Icon, MenuItem, Floating, Gate, GateContent, Slide, Audio)

export { Scrollbar, DialogContent, Cropper, Message, Loading, Dialog, Tree, Button, Group, GroupOption,  Icon, MenuItem, Floating, Gate, GateContent, Slide, Audio }

export default function install(app) {
    components.forEach(component => component.install(app))
}
