2021-09-27 06:09:33 +08:00
|
|
|
import type { App } from 'vue'
|
|
|
|
import type { IDefineComponent, InstallOptions } from './module/type/index'
|
|
|
|
|
2021-09-27 15:30:38 +08:00
|
|
|
import "./css/layui.css"
|
2021-10-01 20:22:49 +08:00
|
|
|
import "./css/layui-vue.css"
|
|
|
|
import LayAvatar from './module/avatar/index'
|
2021-09-27 06:09:33 +08:00
|
|
|
import LayRadio from './module/radio/index'
|
|
|
|
import LayButton from './module/button/index'
|
2021-09-27 14:08:05 +08:00
|
|
|
import LayButtonContainer from './module/buttonContainer/index'
|
2021-09-27 13:35:53 +08:00
|
|
|
import LayButtonGroup from './module/buttonGroup/index'
|
2021-09-27 06:09:33 +08:00
|
|
|
import LayIcon from './module/icon/index'
|
2021-09-27 08:43:12 +08:00
|
|
|
import LayCard from './module/card/index'
|
2021-09-27 06:09:33 +08:00
|
|
|
import LayLayout from "./module/layout/index"
|
|
|
|
import LaySide from "./module/side/index"
|
|
|
|
import LayBody from "./module/body/index"
|
|
|
|
import LayHeader from "./module/header/index"
|
|
|
|
import LayFooter from "./module/footer/index"
|
|
|
|
import LayLogo from "./module/logo/index"
|
2021-09-27 06:59:01 +08:00
|
|
|
import LayPanel from "./module/panel/index"
|
2021-09-28 09:42:28 +08:00
|
|
|
import LayProgress from "./module/progress/index"
|
2021-09-27 15:30:38 +08:00
|
|
|
import LayCol from "./module/col/index"
|
|
|
|
import LayRow from "./module/row/index"
|
2021-09-27 16:42:13 +08:00
|
|
|
import LayInput from "./module/input/index"
|
|
|
|
import LayBadge from "./module/badge/index"
|
2021-09-27 17:39:35 +08:00
|
|
|
import LayBlock from "./module/block/index"
|
2021-09-27 22:01:22 +08:00
|
|
|
import LayLine from "./module/line/index"
|
2021-09-28 10:35:58 +08:00
|
|
|
import LayTimeline from "./module/timeline/index"
|
|
|
|
import LayTimelineItem from "./module/timelineItem/index"
|
2021-09-28 12:41:16 +08:00
|
|
|
import LayTextarea from "./module/textarea/index"
|
2021-09-28 15:01:12 +08:00
|
|
|
import LaySwitch from "./module/switch/index"
|
2021-09-29 09:42:11 +08:00
|
|
|
import LayCollapse from "./module/collapse/index"
|
2021-10-01 13:35:00 +08:00
|
|
|
import LayCollapseItem from "./module/collapseItem/index"
|
2021-09-29 09:42:11 +08:00
|
|
|
import LayContainer from "./module/container/index"
|
2021-09-29 23:42:53 +08:00
|
|
|
import LayMenu from './module/menu/index'
|
|
|
|
import LayMenuItem from './module/menuItem/index'
|
|
|
|
import LayMenuChildItem from './module/menuChildItem/index'
|
2021-09-30 01:44:02 +08:00
|
|
|
import LayCheckbox from './module/checkbox/index'
|
|
|
|
import LayForm from './module/form/index'
|
2021-09-30 14:56:36 +08:00
|
|
|
import LayBreadcrumb from './module/breadcrumb/index'
|
|
|
|
import LayBreadcrumbItem from './module/breadcrumbItem/index'
|
2021-10-01 22:31:21 +08:00
|
|
|
import LayField from './module/field/index'
|
2021-10-02 00:05:59 +08:00
|
|
|
import LaySelect from './module/select/index'
|
2021-09-27 06:09:33 +08:00
|
|
|
|
|
|
|
const components: Record<string, IDefineComponent> = {
|
|
|
|
LayRadio,
|
|
|
|
LayButton,
|
|
|
|
LayIcon,
|
|
|
|
LayLayout,
|
|
|
|
LaySide,
|
|
|
|
LayHeader,
|
|
|
|
LayBody,
|
|
|
|
LayFooter,
|
2021-09-27 06:59:01 +08:00
|
|
|
LayLogo,
|
2021-09-27 08:43:12 +08:00
|
|
|
LayPanel,
|
2021-09-27 09:24:54 +08:00
|
|
|
LayCard,
|
2021-09-27 13:35:53 +08:00
|
|
|
LayProgress,
|
2021-09-27 14:08:05 +08:00
|
|
|
LayButtonGroup,
|
2021-09-27 15:30:38 +08:00
|
|
|
LayButtonContainer,
|
|
|
|
LayRow,
|
|
|
|
LayCol,
|
2021-09-27 16:42:13 +08:00
|
|
|
LayInput,
|
2021-09-27 17:39:35 +08:00
|
|
|
LayBadge,
|
2021-09-27 22:01:22 +08:00
|
|
|
LayBlock,
|
2021-09-28 10:35:58 +08:00
|
|
|
LayLine,
|
|
|
|
LayTimeline,
|
2021-09-28 12:41:16 +08:00
|
|
|
LayTimelineItem,
|
2021-09-28 15:01:12 +08:00
|
|
|
LayTextarea,
|
2021-09-29 09:42:11 +08:00
|
|
|
LaySwitch,
|
|
|
|
LayCollapse,
|
2021-10-01 13:35:00 +08:00
|
|
|
LayCollapseItem,
|
2021-09-29 23:42:53 +08:00
|
|
|
LayContainer,
|
|
|
|
LayMenu,
|
|
|
|
LayMenuItem,
|
2021-09-30 01:44:02 +08:00
|
|
|
LayMenuChildItem,
|
|
|
|
LayCheckbox,
|
2021-09-30 14:56:36 +08:00
|
|
|
LayForm,
|
|
|
|
LayBreadcrumb,
|
2021-10-01 20:22:49 +08:00
|
|
|
LayBreadcrumbItem,
|
2021-10-01 22:31:21 +08:00
|
|
|
LayAvatar,
|
2021-10-02 00:05:59 +08:00
|
|
|
LayField,
|
|
|
|
LaySelect
|
2021-09-27 06:09:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const install = (app: App, options?: InstallOptions): void => {
|
|
|
|
const _options = options;
|
|
|
|
app.config.globalProperties.$PROOPTIONS = _options
|
|
|
|
|
|
|
|
for (const key in components) {
|
|
|
|
const item = components[key]
|
|
|
|
app.component(item.name || key, item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-01 20:38:24 +08:00
|
|
|
console.log("document Site : http://layui-vue.pearadmin.com")
|
|
|
|
|
2021-09-27 06:09:33 +08:00
|
|
|
export {
|
|
|
|
LayRadio,
|
|
|
|
LayIcon,
|
|
|
|
LayButton,
|
|
|
|
LayLayout,
|
|
|
|
LaySide,
|
|
|
|
LayHeader,
|
|
|
|
LayBody,
|
|
|
|
LayFooter,
|
|
|
|
LayLogo,
|
2021-09-27 06:59:01 +08:00
|
|
|
LayPanel,
|
2021-09-27 08:43:12 +08:00
|
|
|
LayCard,
|
2021-09-27 09:24:54 +08:00
|
|
|
LayProgress,
|
2021-09-27 13:35:53 +08:00
|
|
|
LayButtonGroup,
|
2021-09-27 14:08:05 +08:00
|
|
|
LayButtonContainer,
|
2021-09-27 15:30:38 +08:00
|
|
|
LayRow,
|
|
|
|
LayCol,
|
2021-09-27 16:42:13 +08:00
|
|
|
LayInput,
|
|
|
|
LayBadge,
|
2021-09-27 17:39:35 +08:00
|
|
|
LayBlock,
|
2021-09-27 22:01:22 +08:00
|
|
|
LayLine,
|
2021-09-28 10:35:58 +08:00
|
|
|
LayTimeline,
|
|
|
|
LayTimelineItem,
|
2021-09-28 12:41:16 +08:00
|
|
|
LayTextarea,
|
2021-09-28 15:01:12 +08:00
|
|
|
LaySwitch,
|
2021-09-29 09:42:11 +08:00
|
|
|
LayCollapse,
|
2021-10-01 13:35:00 +08:00
|
|
|
LayCollapseItem,
|
2021-09-29 09:42:11 +08:00
|
|
|
LayContainer,
|
2021-09-29 23:42:53 +08:00
|
|
|
LayMenu,
|
|
|
|
LayMenuItem,
|
|
|
|
LayMenuChildItem,
|
2021-09-30 01:44:02 +08:00
|
|
|
LayCheckbox,
|
|
|
|
LayForm,
|
2021-09-30 14:56:36 +08:00
|
|
|
LayBreadcrumb,
|
|
|
|
LayBreadcrumbItem,
|
2021-10-01 20:22:49 +08:00
|
|
|
LayAvatar,
|
2021-10-01 22:31:21 +08:00
|
|
|
LayField,
|
2021-10-02 00:05:59 +08:00
|
|
|
LaySelect,
|
2021-09-27 06:09:33 +08:00
|
|
|
install,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default { install }
|