diff --git a/.gitignore b/.gitignore index 6364707073716036f0a76c8e4db36dd6dde12a53..8481697f278837bbf5abd341f05e6f6372349a8e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ dist-ssr package-lock.json .history .vscode +devui/vue-devui.ts diff --git a/devui/vue-devui.ts b/devui/vue-devui.ts deleted file mode 100644 index 4cc3741e80ed1015a63dd87da13d6d202b1eed74..0000000000000000000000000000000000000000 --- a/devui/vue-devui.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { App } from 'vue' - -// 通用 -import Button from './button' -import Icon from './icon' -import Panel from './panel' - -// 导航 -import Tabs from './tabs' - -// 反馈 -import Alert from './alert/alert' -import Toast, { ToastService } from './toast' -import DLoading, { LoadingService, Loading } from './loading' - -// 数据录入 -import Checkbox from './checkbox' -import Radio from './radio' -import Switch from './switch' -import TagsInput from './tags-input' -import TextInput from './text-input' - -// 数据展示 -import Avatar from './avatar' -import Carousel from './carousel' - -function install(app: App): void { - const packages = [ - Button, - Icon, - Panel, - Tabs, - Alert, - Toast, - ToastService, - DLoading, - Checkbox, - Radio, - Switch, - TagsInput, - TextInput, - Avatar, - Carousel - ] - packages.forEach((item: any) => { - if (item.install) { - app.use(item) - } else if (item.name) { - app.component(item.name, item) - } - }) -} - -export { - Button, - Icon, - Panel, - Tabs, - Alert, - Toast, - ToastService, - LoadingService, - Loading, - Checkbox, - Radio, - Switch, - TagsInput, - TextInput, - Avatar, - Carousel -} -export default { install, version: '0.0.1' }