vxe-pc-ui 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +48 -5
- package/es/anchor/index.js +8 -0
- package/es/anchor/src/anchor.js +202 -0
- package/es/anchor/style.css +40 -0
- package/es/anchor/style.min.css +1 -0
- package/es/anchor-link/index.js +8 -0
- package/es/anchor-link/src/anchor-link.js +94 -0
- package/es/anchor-link/src/util.js +19 -0
- package/es/anchor-link/style.css +0 -0
- package/es/anchor-link/style.min.css +0 -0
- package/es/breadcrumb/index.js +8 -0
- package/es/breadcrumb/src/breadcrumb.js +44 -0
- package/es/breadcrumb/style.css +19 -0
- package/es/breadcrumb/style.min.css +1 -0
- package/es/breadcrumb-item/index.js +8 -0
- package/es/breadcrumb-item/src/breadcrumb-item.js +54 -0
- package/es/breadcrumb-item/style.css +0 -0
- package/es/breadcrumb-item/style.min.css +0 -0
- package/es/button/index.js +8 -0
- package/es/button/src/button.js +487 -0
- package/es/button/style.css +513 -0
- package/es/button/style.min.css +1 -0
- package/es/button-group/index.js +8 -0
- package/es/button-group/src/button-group.js +66 -0
- package/es/button-group/style.css +0 -0
- package/es/button-group/style.min.css +0 -0
- package/es/col/index.js +8 -0
- package/es/col/src/col.js +80 -0
- package/es/col/style.css +95 -0
- package/es/col/style.min.css +1 -0
- package/es/components.js +57 -0
- package/es/design/index.js +8 -0
- package/es/design/src/design.js +41 -0
- package/es/design/style.css +0 -0
- package/es/design/style.min.css +0 -0
- package/es/hooks/size.js +10 -0
- package/es/icon/index.js +8 -0
- package/es/icon/src/icon.js +24 -0
- package/es/icon/style.css +766 -0
- package/es/icon/style.min.css +1 -0
- package/es/index.esm.js +3 -0
- package/es/layout-aside/index.js +8 -0
- package/es/layout-aside/src/layout-aside.js +68 -0
- package/es/layout-aside/style.css +12 -0
- package/es/layout-aside/style.min.css +1 -0
- package/es/layout-body/index.js +8 -0
- package/es/layout-body/src/layout-body.js +37 -0
- package/es/layout-body/style.css +3 -0
- package/es/layout-body/style.min.css +1 -0
- package/es/layout-container/index.js +8 -0
- package/es/layout-container/src/layout-container.js +41 -0
- package/es/layout-container/style.css +10 -0
- package/es/layout-container/style.min.css +1 -0
- package/es/layout-footer/index.js +8 -0
- package/es/layout-footer/src/layout-footer.js +41 -0
- package/es/layout-footer/style.css +10 -0
- package/es/layout-footer/style.min.css +1 -0
- package/es/layout-header/index.js +8 -0
- package/es/layout-header/src/layout-header.js +41 -0
- package/es/layout-header/style.css +10 -0
- package/es/layout-header/style.min.css +1 -0
- package/es/locale/lang/en-US.d.ts +2 -0
- package/es/locale/lang/en-US.js +463 -0
- package/es/locale/lang/es-ES.d.ts +2 -0
- package/es/locale/lang/es-ES.js +463 -0
- package/es/locale/lang/ja-JP.d.ts +2 -0
- package/es/locale/lang/ja-JP.js +463 -0
- package/es/locale/lang/pt-BR.d.ts +2 -0
- package/es/locale/lang/pt-BR.js +463 -0
- package/es/locale/lang/zh-CN.d.ts +2 -0
- package/es/locale/lang/zh-CN.js +463 -0
- package/es/locale/lang/zh-HK.d.ts +2 -0
- package/es/locale/lang/zh-HK.js +2 -0
- package/es/locale/lang/zh-MO.d.ts +2 -0
- package/es/locale/lang/zh-MO.js +2 -0
- package/es/locale/lang/zh-TC.d.ts +2 -0
- package/es/locale/lang/zh-TC.js +463 -0
- package/es/locale/lang/zh-TW.d.ts +2 -0
- package/es/locale/lang/zh-TW.js +2 -0
- package/es/row/index.js +8 -0
- package/es/row/src/row.js +69 -0
- package/es/row/style.css +10 -0
- package/es/row/style.min.css +1 -0
- package/es/style.css +1 -0
- package/es/style.min.css +1 -0
- package/es/ui/index.js +4 -0
- package/es/ui/src/core.js +41 -0
- package/es/ui/src/dom.js +90 -0
- package/es/ui/src/event.js +75 -0
- package/es/ui/src/globalStore.js +8 -0
- package/es/ui/src/iconStore.js +76 -0
- package/es/ui/src/log.js +13 -0
- package/es/ui/src/theme.js +10 -0
- package/es/ui/src/utils.js +17 -0
- package/es/ui/style.css +0 -0
- package/es/ui/style.min.css +0 -0
- package/es/vxe-anchor/index.js +3 -0
- package/es/vxe-anchor/style.css +40 -0
- package/es/vxe-anchor/style.min.css +1 -0
- package/es/vxe-anchor-link/index.js +3 -0
- package/es/vxe-anchor-link/style.css +0 -0
- package/es/vxe-anchor-link/style.min.css +0 -0
- package/es/vxe-breadcrumb/index.js +3 -0
- package/es/vxe-breadcrumb/style.css +19 -0
- package/es/vxe-breadcrumb/style.min.css +1 -0
- package/es/vxe-breadcrumb-item/index.js +3 -0
- package/es/vxe-breadcrumb-item/style.css +0 -0
- package/es/vxe-breadcrumb-item/style.min.css +0 -0
- package/es/vxe-button/index.js +3 -0
- package/es/vxe-button/style.css +513 -0
- package/es/vxe-button/style.min.css +1 -0
- package/es/vxe-button-group/index.js +3 -0
- package/es/vxe-button-group/style.css +0 -0
- package/es/vxe-button-group/style.min.css +0 -0
- package/es/vxe-col/index.js +3 -0
- package/es/vxe-col/style.css +95 -0
- package/es/vxe-col/style.min.css +1 -0
- package/es/vxe-design/index.js +3 -0
- package/es/vxe-design/style.css +0 -0
- package/es/vxe-design/style.min.css +0 -0
- package/es/vxe-icon/index.js +3 -0
- package/es/vxe-icon/style.css +766 -0
- package/es/vxe-icon/style.min.css +1 -0
- package/es/vxe-layout-aside/index.js +3 -0
- package/es/vxe-layout-aside/style.css +12 -0
- package/es/vxe-layout-aside/style.min.css +1 -0
- package/es/vxe-layout-body/index.js +3 -0
- package/es/vxe-layout-body/style.css +3 -0
- package/es/vxe-layout-body/style.min.css +1 -0
- package/es/vxe-layout-container/index.js +3 -0
- package/es/vxe-layout-container/style.css +10 -0
- package/es/vxe-layout-container/style.min.css +1 -0
- package/es/vxe-layout-footer/index.js +3 -0
- package/es/vxe-layout-footer/style.css +10 -0
- package/es/vxe-layout-footer/style.min.css +1 -0
- package/es/vxe-layout-header/index.js +3 -0
- package/es/vxe-layout-header/style.css +10 -0
- package/es/vxe-layout-header/style.min.css +1 -0
- package/es/vxe-row/index.js +3 -0
- package/es/vxe-row/style.css +10 -0
- package/es/vxe-row/style.min.css +1 -0
- package/es/vxe-ui/index.js +3 -0
- package/es/vxe-ui/style.css +0 -0
- package/es/vxe-ui/style.min.css +0 -0
- package/lib/anchor/index.js +15 -0
- package/lib/anchor/index.min.js +1 -0
- package/lib/anchor/src/anchor.js +220 -0
- package/lib/anchor/src/anchor.min.js +1 -0
- package/lib/anchor/style/index.js +1 -0
- package/lib/anchor/style/style.css +40 -0
- package/lib/anchor/style/style.min.css +1 -0
- package/lib/anchor-link/index.js +15 -0
- package/lib/anchor-link/index.min.js +1 -0
- package/lib/anchor-link/src/anchor-link.js +106 -0
- package/lib/anchor-link/src/anchor-link.min.js +1 -0
- package/lib/anchor-link/src/util.js +29 -0
- package/lib/anchor-link/src/util.min.js +1 -0
- package/lib/anchor-link/style/index.js +1 -0
- package/lib/anchor-link/style/style.css +0 -0
- package/lib/anchor-link/style/style.min.css +0 -0
- package/lib/breadcrumb/index.js +15 -0
- package/lib/breadcrumb/index.min.js +1 -0
- package/lib/breadcrumb/src/breadcrumb.js +53 -0
- package/lib/breadcrumb/src/breadcrumb.min.js +1 -0
- package/lib/breadcrumb/style/index.js +1 -0
- package/lib/breadcrumb/style/style.css +19 -0
- package/lib/breadcrumb/style/style.min.css +1 -0
- package/lib/breadcrumb-item/index.js +15 -0
- package/lib/breadcrumb-item/index.min.js +1 -0
- package/lib/breadcrumb-item/src/breadcrumb-item.js +58 -0
- package/lib/breadcrumb-item/src/breadcrumb-item.min.js +1 -0
- package/lib/breadcrumb-item/style/index.js +1 -0
- package/lib/breadcrumb-item/style/style.css +0 -0
- package/lib/breadcrumb-item/style/style.min.css +0 -0
- package/lib/button/index.js +15 -0
- package/lib/button/index.min.js +1 -0
- package/lib/button/src/button.js +540 -0
- package/lib/button/src/button.min.js +1 -0
- package/lib/button/style/index.js +1 -0
- package/lib/button/style/style.css +513 -0
- package/lib/button/style/style.min.css +1 -0
- package/lib/button-group/index.js +15 -0
- package/lib/button-group/index.min.js +1 -0
- package/lib/button-group/src/button-group.js +88 -0
- package/lib/button-group/src/button-group.min.js +1 -0
- package/lib/button-group/style/index.js +1 -0
- package/lib/button-group/style/style.css +0 -0
- package/lib/button-group/style/style.min.css +0 -0
- package/lib/col/index.js +15 -0
- package/lib/col/index.min.js +1 -0
- package/lib/col/src/col.js +96 -0
- package/lib/col/src/col.min.js +1 -0
- package/lib/col/style/index.js +1 -0
- package/lib/col/style/style.css +95 -0
- package/lib/col/style/style.min.css +1 -0
- package/lib/components.js +230 -0
- package/lib/components.min.js +1 -0
- package/lib/design/index.js +15 -0
- package/lib/design/index.min.js +1 -0
- package/lib/design/src/design.js +48 -0
- package/lib/design/src/design.min.js +1 -0
- package/lib/design/style/index.js +1 -0
- package/lib/design/style/style.css +0 -0
- package/lib/design/style/style.min.css +0 -0
- package/lib/hooks/size.js +16 -0
- package/lib/hooks/size.min.js +1 -0
- package/lib/icon/index.js +15 -0
- package/lib/icon/index.min.js +1 -0
- package/lib/icon/src/icon.js +36 -0
- package/lib/icon/src/icon.min.js +1 -0
- package/lib/icon/style/index.js +1 -0
- package/lib/icon/style/style.css +766 -0
- package/lib/icon/style/style.min.css +1 -0
- package/lib/index.common.js +22 -0
- package/lib/index.umd.js +4461 -0
- package/lib/index.umd.min.js +1 -0
- package/lib/layout-aside/index.js +15 -0
- package/lib/layout-aside/index.min.js +1 -0
- package/lib/layout-aside/src/layout-aside.js +80 -0
- package/lib/layout-aside/src/layout-aside.min.js +1 -0
- package/lib/layout-aside/style/index.js +1 -0
- package/lib/layout-aside/style/style.css +12 -0
- package/lib/layout-aside/style/style.min.css +1 -0
- package/lib/layout-body/index.js +15 -0
- package/lib/layout-body/index.min.js +1 -0
- package/lib/layout-body/src/layout-body.js +46 -0
- package/lib/layout-body/src/layout-body.min.js +1 -0
- package/lib/layout-body/style/index.js +1 -0
- package/lib/layout-body/style/style.css +3 -0
- package/lib/layout-body/style/style.min.css +1 -0
- package/lib/layout-container/index.js +15 -0
- package/lib/layout-container/index.min.js +1 -0
- package/lib/layout-container/src/layout-container.js +50 -0
- package/lib/layout-container/src/layout-container.min.js +1 -0
- package/lib/layout-container/style/index.js +1 -0
- package/lib/layout-container/style/style.css +10 -0
- package/lib/layout-container/style/style.min.css +1 -0
- package/lib/layout-footer/index.js +15 -0
- package/lib/layout-footer/index.min.js +1 -0
- package/lib/layout-footer/src/layout-footer.js +50 -0
- package/lib/layout-footer/src/layout-footer.min.js +1 -0
- package/lib/layout-footer/style/index.js +1 -0
- package/lib/layout-footer/style/style.css +10 -0
- package/lib/layout-footer/style/style.min.css +1 -0
- package/lib/layout-header/index.js +15 -0
- package/lib/layout-header/index.min.js +1 -0
- package/lib/layout-header/src/layout-header.js +50 -0
- package/lib/layout-header/src/layout-header.min.js +1 -0
- package/lib/layout-header/style/index.js +1 -0
- package/lib/layout-header/style/style.css +10 -0
- package/lib/layout-header/style/style.min.css +1 -0
- package/lib/locale/lang/en-US.d.ts +2 -0
- package/lib/locale/lang/en-US.js +469 -0
- package/lib/locale/lang/en-US.min.js +1 -0
- package/lib/locale/lang/en-US.umd.js +483 -0
- package/lib/locale/lang/es-ES.d.ts +2 -0
- package/lib/locale/lang/es-ES.js +469 -0
- package/lib/locale/lang/es-ES.min.js +1 -0
- package/lib/locale/lang/es-ES.umd.js +483 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -0
- package/lib/locale/lang/ja-JP.js +469 -0
- package/lib/locale/lang/ja-JP.min.js +1 -0
- package/lib/locale/lang/ja-JP.umd.js +483 -0
- package/lib/locale/lang/pt-BR.d.ts +2 -0
- package/lib/locale/lang/pt-BR.js +469 -0
- package/lib/locale/lang/pt-BR.min.js +1 -0
- package/lib/locale/lang/pt-BR.umd.js +483 -0
- package/lib/locale/lang/zh-CN.d.ts +2 -0
- package/lib/locale/lang/zh-CN.js +469 -0
- package/lib/locale/lang/zh-CN.min.js +1 -0
- package/lib/locale/lang/zh-CN.umd.js +483 -0
- package/lib/locale/lang/zh-HK.d.ts +2 -0
- package/lib/locale/lang/zh-HK.js +9 -0
- package/lib/locale/lang/zh-HK.min.js +1 -0
- package/lib/locale/lang/zh-HK.umd.js +483 -0
- package/lib/locale/lang/zh-MO.d.ts +2 -0
- package/lib/locale/lang/zh-MO.js +9 -0
- package/lib/locale/lang/zh-MO.min.js +1 -0
- package/lib/locale/lang/zh-MO.umd.js +483 -0
- package/lib/locale/lang/zh-TC.d.ts +2 -0
- package/lib/locale/lang/zh-TC.js +469 -0
- package/lib/locale/lang/zh-TC.min.js +1 -0
- package/lib/locale/lang/zh-TC.umd.js +483 -0
- package/lib/locale/lang/zh-TW.d.ts +2 -0
- package/lib/locale/lang/zh-TW.js +9 -0
- package/lib/locale/lang/zh-TW.min.js +1 -0
- package/lib/locale/lang/zh-TW.umd.js +483 -0
- package/lib/row/index.js +15 -0
- package/lib/row/index.min.js +1 -0
- package/lib/row/src/row.js +82 -0
- package/lib/row/src/row.min.js +1 -0
- package/lib/row/style/index.js +1 -0
- package/lib/row/style/style.css +10 -0
- package/lib/row/style/style.min.css +1 -0
- package/lib/style.css +1 -0
- package/lib/style.min.css +1 -0
- package/lib/ui/index.js +25 -0
- package/lib/ui/index.min.js +1 -0
- package/lib/ui/src/core.js +53 -0
- package/lib/ui/src/core.min.js +1 -0
- package/lib/ui/src/dom.js +127 -0
- package/lib/ui/src/dom.min.js +1 -0
- package/lib/ui/src/event.js +100 -0
- package/lib/ui/src/event.min.js +1 -0
- package/lib/ui/src/globalStore.js +14 -0
- package/lib/ui/src/globalStore.min.js +1 -0
- package/lib/ui/src/iconStore.js +82 -0
- package/lib/ui/src/iconStore.min.js +1 -0
- package/lib/ui/src/log.js +22 -0
- package/lib/ui/src/log.min.js +1 -0
- package/lib/ui/src/theme.js +17 -0
- package/lib/ui/src/theme.min.js +1 -0
- package/lib/ui/src/utils.js +28 -0
- package/lib/ui/src/utils.min.js +1 -0
- package/lib/ui/style/index.js +1 -0
- package/lib/ui/style/style.css +0 -0
- package/lib/ui/style/style.min.css +0 -0
- package/lib/vxe-anchor/index.js +22 -0
- package/lib/vxe-anchor/index.min.js +1 -0
- package/lib/vxe-anchor/style/index.js +1 -0
- package/lib/vxe-anchor/style/style.css +40 -0
- package/lib/vxe-anchor/style/style.min.css +1 -0
- package/lib/vxe-anchor-link/index.js +22 -0
- package/lib/vxe-anchor-link/index.min.js +1 -0
- package/lib/vxe-anchor-link/style/index.js +1 -0
- package/lib/vxe-anchor-link/style/style.css +0 -0
- package/lib/vxe-anchor-link/style/style.min.css +0 -0
- package/lib/vxe-breadcrumb/index.js +22 -0
- package/lib/vxe-breadcrumb/index.min.js +1 -0
- package/lib/vxe-breadcrumb/style/index.js +1 -0
- package/lib/vxe-breadcrumb/style/style.css +19 -0
- package/lib/vxe-breadcrumb/style/style.min.css +1 -0
- package/lib/vxe-breadcrumb-item/index.js +22 -0
- package/lib/vxe-breadcrumb-item/index.min.js +1 -0
- package/lib/vxe-breadcrumb-item/style/index.js +1 -0
- package/lib/vxe-breadcrumb-item/style/style.css +0 -0
- package/lib/vxe-breadcrumb-item/style/style.min.css +0 -0
- package/lib/vxe-button/index.js +22 -0
- package/lib/vxe-button/index.min.js +1 -0
- package/lib/vxe-button/style/index.js +1 -0
- package/lib/vxe-button/style/style.css +513 -0
- package/lib/vxe-button/style/style.min.css +1 -0
- package/lib/vxe-button-group/index.js +22 -0
- package/lib/vxe-button-group/index.min.js +1 -0
- package/lib/vxe-button-group/style/index.js +1 -0
- package/lib/vxe-button-group/style/style.css +0 -0
- package/lib/vxe-button-group/style/style.min.css +0 -0
- package/lib/vxe-col/index.js +22 -0
- package/lib/vxe-col/index.min.js +1 -0
- package/lib/vxe-col/style/index.js +1 -0
- package/lib/vxe-col/style/style.css +95 -0
- package/lib/vxe-col/style/style.min.css +1 -0
- package/lib/vxe-design/index.js +22 -0
- package/lib/vxe-design/index.min.js +1 -0
- package/lib/vxe-design/style/index.js +1 -0
- package/lib/vxe-design/style/style.css +0 -0
- package/lib/vxe-design/style/style.min.css +0 -0
- package/lib/vxe-icon/index.js +22 -0
- package/lib/vxe-icon/index.min.js +1 -0
- package/lib/vxe-icon/style/index.js +1 -0
- package/lib/vxe-icon/style/style.css +766 -0
- package/lib/vxe-icon/style/style.min.css +1 -0
- package/lib/vxe-layout-aside/index.js +22 -0
- package/lib/vxe-layout-aside/index.min.js +1 -0
- package/lib/vxe-layout-aside/style/index.js +1 -0
- package/lib/vxe-layout-aside/style/style.css +12 -0
- package/lib/vxe-layout-aside/style/style.min.css +1 -0
- package/lib/vxe-layout-body/index.js +22 -0
- package/lib/vxe-layout-body/index.min.js +1 -0
- package/lib/vxe-layout-body/style/index.js +1 -0
- package/lib/vxe-layout-body/style/style.css +3 -0
- package/lib/vxe-layout-body/style/style.min.css +1 -0
- package/lib/vxe-layout-container/index.js +22 -0
- package/lib/vxe-layout-container/index.min.js +1 -0
- package/lib/vxe-layout-container/style/index.js +1 -0
- package/lib/vxe-layout-container/style/style.css +10 -0
- package/lib/vxe-layout-container/style/style.min.css +1 -0
- package/lib/vxe-layout-footer/index.js +22 -0
- package/lib/vxe-layout-footer/index.min.js +1 -0
- package/lib/vxe-layout-footer/style/index.js +1 -0
- package/lib/vxe-layout-footer/style/style.css +10 -0
- package/lib/vxe-layout-footer/style/style.min.css +1 -0
- package/lib/vxe-layout-header/index.js +22 -0
- package/lib/vxe-layout-header/index.min.js +1 -0
- package/lib/vxe-layout-header/style/index.js +1 -0
- package/lib/vxe-layout-header/style/style.css +10 -0
- package/lib/vxe-layout-header/style/style.min.css +1 -0
- package/lib/vxe-row/index.js +22 -0
- package/lib/vxe-row/index.min.js +1 -0
- package/lib/vxe-row/style/index.js +1 -0
- package/lib/vxe-row/style/style.css +10 -0
- package/lib/vxe-row/style/style.min.css +1 -0
- package/lib/vxe-ui/index.js +22 -0
- package/lib/vxe-ui/index.min.js +1 -0
- package/lib/vxe-ui/style/index.js +1 -0
- package/lib/vxe-ui/style/style.css +0 -0
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/package.json +83 -55
- package/packages/anchor/index.ts +11 -0
- package/packages/anchor/src/anchor.ts +233 -0
- package/packages/anchor-link/index.ts +11 -0
- package/packages/anchor-link/src/anchor-link.ts +118 -0
- package/packages/anchor-link/src/util.ts +23 -0
- package/packages/breadcrumb/index.ts +11 -0
- package/packages/breadcrumb/src/breadcrumb.ts +60 -0
- package/packages/breadcrumb-item/index.ts +11 -0
- package/packages/breadcrumb-item/src/breadcrumb-item.ts +71 -0
- package/packages/button/index.ts +11 -0
- package/packages/button/src/button.ts +526 -0
- package/packages/button-group/index.ts +11 -0
- package/packages/button-group/src/button-group.ts +81 -0
- package/packages/col/index.ts +11 -0
- package/packages/col/src/col.ts +98 -0
- package/packages/components.ts +66 -0
- package/packages/design/index.ts +11 -0
- package/packages/design/src/design.ts +55 -0
- package/packages/hooks/size.ts +14 -0
- package/packages/icon/index.ts +11 -0
- package/packages/icon/src/icon.ts +27 -0
- package/packages/index.ts +4 -0
- package/packages/layout-aside/index.ts +11 -0
- package/packages/layout-aside/src/layout-aside.ts +85 -0
- package/packages/layout-body/index.ts +11 -0
- package/packages/layout-body/src/layout-body.ts +52 -0
- package/packages/layout-container/index.ts +11 -0
- package/packages/layout-container/src/layout-container.ts +56 -0
- package/packages/layout-footer/index.ts +11 -0
- package/packages/layout-footer/src/layout-footer.ts +56 -0
- package/packages/layout-header/index.ts +11 -0
- package/packages/layout-header/src/layout-header.ts +56 -0
- package/packages/locale/lang/en-US.ts +465 -0
- package/packages/locale/lang/es-ES.ts +465 -0
- package/packages/locale/lang/ja-JP.ts +465 -0
- package/packages/locale/lang/pt-BR.ts +465 -0
- package/packages/locale/lang/zh-CN.ts +465 -0
- package/packages/locale/lang/zh-HK.ts +3 -0
- package/packages/locale/lang/zh-MO.ts +3 -0
- package/packages/locale/lang/zh-TC.ts +465 -0
- package/packages/locale/lang/zh-TW.ts +3 -0
- package/packages/row/index.ts +11 -0
- package/packages/row/src/row.ts +86 -0
- package/packages/ui/index.ts +6 -0
- package/packages/ui/src/core.ts +51 -0
- package/packages/ui/src/dom.ts +103 -0
- package/packages/ui/src/event.ts +88 -0
- package/packages/ui/src/globalStore.ts +11 -0
- package/packages/ui/src/iconStore.ts +88 -0
- package/packages/ui/src/log.ts +16 -0
- package/packages/ui/src/theme.ts +13 -0
- package/packages/ui/src/utils.ts +22 -0
- package/styles/all.scss +17 -0
- package/styles/base.scss +16 -0
- package/styles/components/anchor-link.scss +0 -0
- package/styles/components/anchor.scss +42 -0
- package/styles/components/breadcrumb-item.scss +0 -0
- package/styles/components/breadcrumb.scss +20 -0
- package/styles/components/button-group.scss +0 -0
- package/styles/components/button.scss +357 -0
- package/styles/components/col.scss +32 -0
- package/styles/components/design.scss +1 -0
- package/styles/components/icon.scss +785 -0
- package/styles/components/layout-aside.scss +14 -0
- package/styles/components/layout-body.scss +5 -0
- package/styles/components/layout-container.scss +12 -0
- package/styles/components/layout-footer.scss +12 -0
- package/styles/components/layout-header.scss +12 -0
- package/styles/components/row.scss +10 -0
- package/styles/components/ui.scss +0 -0
- package/styles/helpers/mixin.scss +82 -0
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/theme/base.scss +81 -0
- package/styles/theme/dark.scss +7 -0
- package/styles/theme/default.scss +5 -0
- package/types/all.d.ts +67 -0
- package/types/component/anchor-link.d.ts +74 -0
- package/types/component/anchor.d.ts +79 -0
- package/types/component/breadcrumb-item.d.ts +58 -0
- package/types/component/breadcrumb.d.ts +61 -0
- package/types/component/button-group.d.ts +86 -0
- package/types/component/button.d.ts +157 -0
- package/types/component/col.d.ts +58 -0
- package/types/component/design.d.ts +63 -0
- package/types/component/icon.d.ts +67 -0
- package/types/component/layout-aside.d.ts +57 -0
- package/types/component/layout-body.d.ts +58 -0
- package/types/component/layout-container.d.ts +58 -0
- package/types/component/layout-footer.d.ts +58 -0
- package/types/component/layout-header.d.ts +58 -0
- package/types/component/row.d.ts +65 -0
- package/types/index.d.ts +4 -0
- package/types/tool/common.d.ts +52 -0
- package/types/tool/index.d.ts +6 -0
- package/types/ui/global-config.d.ts +15 -0
- package/types/ui/global-icon.d.ts +15 -0
- package/types/ui/index.d.ts +42 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive, computed, inject } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
import { toCssUnit } from '../../ui/src/dom'
|
|
4
|
+
|
|
5
|
+
import { ColReactData, ColPrivateRef, VxeColPrivateComputed, VxeColConstructor, VxeColPrivateMethods, VxeRowConstructor, VxeRowPrivateMethods } from '../../../types'
|
|
6
|
+
|
|
7
|
+
export default defineComponent({
|
|
8
|
+
name: 'VxeCol',
|
|
9
|
+
props: {
|
|
10
|
+
span: [Number, String],
|
|
11
|
+
align: String,
|
|
12
|
+
width: [Number, String],
|
|
13
|
+
fill: Boolean,
|
|
14
|
+
ellipsis: Boolean
|
|
15
|
+
},
|
|
16
|
+
emits: [],
|
|
17
|
+
setup (props, context) {
|
|
18
|
+
const { slots } = context
|
|
19
|
+
|
|
20
|
+
const xID = XEUtils.uniqueId()
|
|
21
|
+
|
|
22
|
+
const refElem = ref<HTMLDivElement>()
|
|
23
|
+
|
|
24
|
+
const reactData = reactive<ColReactData>({
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const refMaps: ColPrivateRef = {
|
|
28
|
+
refElem
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const $xeRow = inject<(VxeRowConstructor & VxeRowPrivateMethods) | null>('$xeRow', null)
|
|
32
|
+
|
|
33
|
+
const computeColGutter = computed(() => {
|
|
34
|
+
if ($xeRow) {
|
|
35
|
+
return $xeRow.props.gutter
|
|
36
|
+
}
|
|
37
|
+
return null
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
const computeColStyle = computed(() => {
|
|
41
|
+
const { width } = props
|
|
42
|
+
const colGutter = computeColGutter.value
|
|
43
|
+
const style: Record<string, string | number> = {}
|
|
44
|
+
if (colGutter) {
|
|
45
|
+
const [lrGutter, tbGutter] = XEUtils.isArray(colGutter) ? colGutter : [colGutter]
|
|
46
|
+
if (lrGutter) {
|
|
47
|
+
const padding = XEUtils.isNumber(lrGutter) ? toCssUnit(lrGutter / 2) : `calc(${toCssUnit(lrGutter)} / 2)`
|
|
48
|
+
style.paddingLeft = padding
|
|
49
|
+
style.paddingRight = padding
|
|
50
|
+
}
|
|
51
|
+
if (tbGutter) {
|
|
52
|
+
const padding = XEUtils.isNumber(tbGutter) ? toCssUnit(tbGutter / 2) : `calc(${toCssUnit(tbGutter)} / 2)`
|
|
53
|
+
style.paddingTop = padding
|
|
54
|
+
style.paddingBottom = padding
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (width) {
|
|
58
|
+
style.width = toCssUnit(width)
|
|
59
|
+
}
|
|
60
|
+
return style
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
const computeMaps: VxeColPrivateComputed = {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const $xeCol = {
|
|
67
|
+
xID,
|
|
68
|
+
props,
|
|
69
|
+
context,
|
|
70
|
+
reactData,
|
|
71
|
+
|
|
72
|
+
getRefMaps: () => refMaps,
|
|
73
|
+
getComputeMaps: () => computeMaps
|
|
74
|
+
} as unknown as VxeColConstructor & VxeColPrivateMethods
|
|
75
|
+
|
|
76
|
+
const renderVN = () => {
|
|
77
|
+
const { span, fill, align, ellipsis } = props
|
|
78
|
+
const colStyle = computeColStyle.value
|
|
79
|
+
const defaultSlot = slots.default
|
|
80
|
+
return h('div', {
|
|
81
|
+
ref: refElem,
|
|
82
|
+
class: ['vxe-col', span ? `span${span}` : '', align ? `align--${align}` : '', {
|
|
83
|
+
'is--span': span,
|
|
84
|
+
'is--fill': fill,
|
|
85
|
+
'is--ellipsis': ellipsis
|
|
86
|
+
}],
|
|
87
|
+
style: colStyle
|
|
88
|
+
}, defaultSlot ? defaultSlot({}) : [])
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
$xeCol.renderVN = renderVN
|
|
92
|
+
|
|
93
|
+
return $xeCol
|
|
94
|
+
},
|
|
95
|
+
render () {
|
|
96
|
+
return this.renderVN()
|
|
97
|
+
}
|
|
98
|
+
})
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
import { setConfig } from './ui'
|
|
4
|
+
import VxeIcon from './icon'
|
|
5
|
+
import VxeLayoutContainer from './layout-container'
|
|
6
|
+
import VxeLayoutHeader from './layout-header'
|
|
7
|
+
import VxeLayoutAside from './layout-aside'
|
|
8
|
+
import VxeLayoutBody from './layout-body'
|
|
9
|
+
import VxeLayoutFooter from './layout-footer'
|
|
10
|
+
import VxeRow from './row'
|
|
11
|
+
import VxeCol from './col'
|
|
12
|
+
import VxeBreadcrumb from './breadcrumb'
|
|
13
|
+
import VxeBreadcrumbItem from './breadcrumb-item'
|
|
14
|
+
import VxeButton from './button'
|
|
15
|
+
import VxeButtonGroup from './button-group'
|
|
16
|
+
import VxeAnchor from './anchor'
|
|
17
|
+
import VxeAnchorLink from './anchor-link'
|
|
18
|
+
import VxeDesign from './design'
|
|
19
|
+
|
|
20
|
+
import zhCN from './locale/lang/zh-CN'
|
|
21
|
+
|
|
22
|
+
import { VxeGlobalConfig } from '../types'
|
|
23
|
+
|
|
24
|
+
// 默认中文
|
|
25
|
+
setConfig({
|
|
26
|
+
i18n: (key: string, args: any) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args)
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
export function install (app: App, options?: VxeGlobalConfig) {
|
|
30
|
+
setConfig(options)
|
|
31
|
+
|
|
32
|
+
app.use(VxeIcon)
|
|
33
|
+
app.use(VxeLayoutContainer)
|
|
34
|
+
app.use(VxeLayoutHeader)
|
|
35
|
+
app.use(VxeLayoutAside)
|
|
36
|
+
app.use(VxeLayoutBody)
|
|
37
|
+
app.use(VxeLayoutFooter)
|
|
38
|
+
app.use(VxeRow)
|
|
39
|
+
app.use(VxeCol)
|
|
40
|
+
app.use(VxeBreadcrumb)
|
|
41
|
+
app.use(VxeBreadcrumbItem)
|
|
42
|
+
app.use(VxeButton)
|
|
43
|
+
app.use(VxeButtonGroup)
|
|
44
|
+
app.use(VxeAnchor)
|
|
45
|
+
app.use(VxeAnchorLink)
|
|
46
|
+
app.use(VxeDesign)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export * from './ui'
|
|
50
|
+
|
|
51
|
+
// Components
|
|
52
|
+
export * from './icon'
|
|
53
|
+
export * from './layout-container'
|
|
54
|
+
export * from './layout-header'
|
|
55
|
+
export * from './layout-aside'
|
|
56
|
+
export * from './layout-body'
|
|
57
|
+
export * from './layout-footer'
|
|
58
|
+
export * from './row'
|
|
59
|
+
export * from './col'
|
|
60
|
+
export * from './breadcrumb'
|
|
61
|
+
export * from './breadcrumb-item'
|
|
62
|
+
export * from './button'
|
|
63
|
+
export * from './button-group'
|
|
64
|
+
export * from './anchor'
|
|
65
|
+
export * from './anchor-link'
|
|
66
|
+
export * from './design'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeDesignComponent from './src/design'
|
|
3
|
+
|
|
4
|
+
const VxeDesign = Object.assign({}, VxeDesignComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeDesignComponent.name as string, VxeDesignComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const Design = VxeDesign
|
|
11
|
+
export default VxeDesign
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent, ref, h, PropType, reactive } from 'vue'
|
|
2
|
+
import VxeUI from '../../ui'
|
|
3
|
+
import XEUtils from 'xe-utils'
|
|
4
|
+
|
|
5
|
+
import { VxeDesignPropTypes, DesignReactData, DesignPrivateRef, VxeDesignPrivateComputed, VxeDesignConstructor, VxeDesignPrivateMethods } from '../../../types'
|
|
6
|
+
|
|
7
|
+
export default defineComponent({
|
|
8
|
+
name: 'VxeDesign',
|
|
9
|
+
props: {
|
|
10
|
+
size: {
|
|
11
|
+
type: String as PropType<VxeDesignPropTypes.Size>,
|
|
12
|
+
default: () => VxeUI.getConfig('design.size')
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: [],
|
|
16
|
+
setup (props, context) {
|
|
17
|
+
const xID = XEUtils.uniqueId()
|
|
18
|
+
|
|
19
|
+
const refElem = ref<HTMLDivElement>()
|
|
20
|
+
|
|
21
|
+
const reactData = reactive<DesignReactData>({
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const refMaps: DesignPrivateRef = {
|
|
25
|
+
refElem
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const computeMaps: VxeDesignPrivateComputed = {
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const $xedesign = {
|
|
32
|
+
xID,
|
|
33
|
+
props,
|
|
34
|
+
context,
|
|
35
|
+
reactData,
|
|
36
|
+
|
|
37
|
+
getRefMaps: () => refMaps,
|
|
38
|
+
getComputeMaps: () => computeMaps
|
|
39
|
+
} as unknown as VxeDesignConstructor & VxeDesignPrivateMethods
|
|
40
|
+
|
|
41
|
+
const renderVN = () => {
|
|
42
|
+
return h('div', {
|
|
43
|
+
ref: refElem,
|
|
44
|
+
class: 'vxe-design'
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
$xedesign.renderVN = renderVN
|
|
49
|
+
|
|
50
|
+
return $xedesign
|
|
51
|
+
},
|
|
52
|
+
render () {
|
|
53
|
+
return this.renderVN()
|
|
54
|
+
}
|
|
55
|
+
})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { computed, inject, provide, ComputedRef } from 'vue'
|
|
2
|
+
|
|
3
|
+
import { VxeComponentSize } from '../../types'
|
|
4
|
+
|
|
5
|
+
export function useSize (props: { size?: VxeComponentSize }) {
|
|
6
|
+
// 组件尺寸上下文
|
|
7
|
+
const xesize = inject('xesize', null as ComputedRef<VxeComponentSize> | null)
|
|
8
|
+
const computeSize = computed(() => {
|
|
9
|
+
return props.size || (xesize ? xesize.value : null)
|
|
10
|
+
})
|
|
11
|
+
provide('xesize', computeSize)
|
|
12
|
+
|
|
13
|
+
return computeSize
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeIconComponent from './src/icon'
|
|
3
|
+
|
|
4
|
+
const VxeIcon = Object.assign({}, VxeIconComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeIconComponent.name as string, VxeIconComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const Icon = VxeIcon
|
|
11
|
+
export default VxeIcon
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent, h, PropType } from 'vue'
|
|
2
|
+
|
|
3
|
+
import { VxeIconPropTypes, VxeIconEmits } from '../../../types/all'
|
|
4
|
+
|
|
5
|
+
export default defineComponent({
|
|
6
|
+
name: 'VxeIcon',
|
|
7
|
+
props: {
|
|
8
|
+
name: String as PropType<VxeIconPropTypes.Name>,
|
|
9
|
+
roll: Boolean as PropType<VxeIconPropTypes.Roll>,
|
|
10
|
+
status: String as PropType<VxeIconPropTypes.Status>
|
|
11
|
+
},
|
|
12
|
+
emits: [
|
|
13
|
+
'click'
|
|
14
|
+
] as VxeIconEmits,
|
|
15
|
+
setup (props, { emit }) {
|
|
16
|
+
const clickEvent = (evnt: KeyboardEvent) => {
|
|
17
|
+
emit('click', { $event: evnt })
|
|
18
|
+
}
|
|
19
|
+
return () => {
|
|
20
|
+
const { name, roll, status } = props
|
|
21
|
+
return h('i', {
|
|
22
|
+
class: [`vxe-icon-${name}`, roll ? 'roll' : '', status ? [`theme--${status}`] : ''],
|
|
23
|
+
onClick: clickEvent
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeLayoutAsideComponent from './src/layout-aside'
|
|
3
|
+
|
|
4
|
+
const VxeLayoutAside = Object.assign({}, VxeLayoutAsideComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeLayoutAsideComponent.name as string, VxeLayoutAsideComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const LayoutAside = VxeLayoutAside
|
|
11
|
+
export default VxeLayoutAside
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive, onMounted, computed } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
import { toCssUnit } from '../../ui/src/dom'
|
|
4
|
+
|
|
5
|
+
import { LayoutAsideReactData, LayoutAsidePrivateRef, VxeLayoutAsidePrivateComputed, VxeLayoutAsideConstructor, VxeLayoutAsidePrivateMethods } from '../../../types'
|
|
6
|
+
|
|
7
|
+
export default defineComponent({
|
|
8
|
+
name: 'VxeLayoutAside',
|
|
9
|
+
props: {
|
|
10
|
+
width: [String, Number],
|
|
11
|
+
collapsed: Boolean,
|
|
12
|
+
collapseWidth: [String, Number]
|
|
13
|
+
},
|
|
14
|
+
emits: [],
|
|
15
|
+
setup (props, context) {
|
|
16
|
+
const { slots } = context
|
|
17
|
+
|
|
18
|
+
const xID = XEUtils.uniqueId()
|
|
19
|
+
|
|
20
|
+
const refElem = ref<HTMLDivElement>()
|
|
21
|
+
|
|
22
|
+
const reactData = reactive<LayoutAsideReactData>({})
|
|
23
|
+
|
|
24
|
+
const refMaps: LayoutAsidePrivateRef = {
|
|
25
|
+
refElem
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const computeWrapperWidth = computed(() => {
|
|
29
|
+
const { width, collapsed, collapseWidth } = props
|
|
30
|
+
if (collapsed) {
|
|
31
|
+
if (collapseWidth) {
|
|
32
|
+
return toCssUnit(collapseWidth)
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
if (width) {
|
|
36
|
+
return toCssUnit(width)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return ''
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
const computeMaps: VxeLayoutAsidePrivateComputed = {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const $xeLayoutAside = {
|
|
46
|
+
xID,
|
|
47
|
+
props,
|
|
48
|
+
context,
|
|
49
|
+
reactData,
|
|
50
|
+
|
|
51
|
+
getRefMaps: () => refMaps,
|
|
52
|
+
getComputeMaps: () => computeMaps
|
|
53
|
+
} as unknown as VxeLayoutAsideConstructor & VxeLayoutAsidePrivateMethods
|
|
54
|
+
|
|
55
|
+
const renderVN = () => {
|
|
56
|
+
const { width, collapsed } = props
|
|
57
|
+
const wrapperWidth = computeWrapperWidth.value
|
|
58
|
+
const defaultSlot = slots.default
|
|
59
|
+
|
|
60
|
+
return h('div', {
|
|
61
|
+
ref: refElem,
|
|
62
|
+
class: ['vxe-layout-aside', {
|
|
63
|
+
'is--default-width': !width,
|
|
64
|
+
'is--collapse': collapsed
|
|
65
|
+
}],
|
|
66
|
+
style: wrapperWidth
|
|
67
|
+
? {
|
|
68
|
+
width: wrapperWidth
|
|
69
|
+
}
|
|
70
|
+
: null
|
|
71
|
+
}, defaultSlot ? defaultSlot({}) : [])
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
onMounted(() => {
|
|
75
|
+
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
$xeLayoutAside.renderVN = renderVN
|
|
79
|
+
|
|
80
|
+
return $xeLayoutAside
|
|
81
|
+
},
|
|
82
|
+
render () {
|
|
83
|
+
return this.renderVN()
|
|
84
|
+
}
|
|
85
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeLayoutBodyComponent from './src/layout-body'
|
|
3
|
+
|
|
4
|
+
const VxeLayoutBody = Object.assign({}, VxeLayoutBodyComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeLayoutBodyComponent.name as string, VxeLayoutBodyComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const LayoutBody = VxeLayoutBody
|
|
11
|
+
export default VxeLayoutBody
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
|
|
4
|
+
import { LayoutBodyReactData, LayoutBodyPrivateRef, VxeLayoutBodyPrivateComputed, VxeLayoutBodyConstructor, VxeLayoutBodyPrivateMethods } from '../../../types'
|
|
5
|
+
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'VxeLayoutBody',
|
|
8
|
+
props: {},
|
|
9
|
+
emits: [],
|
|
10
|
+
setup (props, context) {
|
|
11
|
+
const { slots } = context
|
|
12
|
+
|
|
13
|
+
const xID = XEUtils.uniqueId()
|
|
14
|
+
|
|
15
|
+
const refElem = ref<HTMLDivElement>()
|
|
16
|
+
|
|
17
|
+
const reactData = reactive<LayoutBodyReactData>({
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const refMaps: LayoutBodyPrivateRef = {
|
|
21
|
+
refElem
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const computeMaps: VxeLayoutBodyPrivateComputed = {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const $xeLayoutBody = {
|
|
28
|
+
xID,
|
|
29
|
+
props,
|
|
30
|
+
context,
|
|
31
|
+
reactData,
|
|
32
|
+
|
|
33
|
+
getRefMaps: () => refMaps,
|
|
34
|
+
getComputeMaps: () => computeMaps
|
|
35
|
+
} as unknown as VxeLayoutBodyConstructor & VxeLayoutBodyPrivateMethods
|
|
36
|
+
|
|
37
|
+
const renderVN = () => {
|
|
38
|
+
const defaultSlot = slots.default
|
|
39
|
+
return h('div', {
|
|
40
|
+
ref: refElem,
|
|
41
|
+
class: 'vxe-layout-body'
|
|
42
|
+
}, defaultSlot ? defaultSlot({}) : [])
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
$xeLayoutBody.renderVN = renderVN
|
|
46
|
+
|
|
47
|
+
return $xeLayoutBody
|
|
48
|
+
},
|
|
49
|
+
render () {
|
|
50
|
+
return this.renderVN()
|
|
51
|
+
}
|
|
52
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeLayoutContainerComponent from './src/layout-container'
|
|
3
|
+
|
|
4
|
+
const VxeLayoutContainer = Object.assign({}, VxeLayoutContainerComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeLayoutContainerComponent.name as string, VxeLayoutContainerComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const LayoutContainer = VxeLayoutContainer
|
|
11
|
+
export default VxeLayoutContainer
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
|
|
4
|
+
import { LayoutContainerReactData, LayoutContainerPrivateRef, VxeLayoutContainerPrivateComputed, VxeLayoutContainerConstructor, VxeLayoutContainerPrivateMethods } from '../../../types'
|
|
5
|
+
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'VxeLayoutContainer',
|
|
8
|
+
props: {
|
|
9
|
+
vertical: Boolean
|
|
10
|
+
},
|
|
11
|
+
emits: [],
|
|
12
|
+
setup (props, context) {
|
|
13
|
+
const { slots } = context
|
|
14
|
+
|
|
15
|
+
const xID = XEUtils.uniqueId()
|
|
16
|
+
|
|
17
|
+
const refElem = ref<HTMLDivElement>()
|
|
18
|
+
|
|
19
|
+
const reactData = reactive<LayoutContainerReactData>({
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const refMaps: LayoutContainerPrivateRef = {
|
|
23
|
+
refElem
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const computeMaps: VxeLayoutContainerPrivateComputed = {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const $xeLayoutContainer = {
|
|
30
|
+
xID,
|
|
31
|
+
props,
|
|
32
|
+
context,
|
|
33
|
+
reactData,
|
|
34
|
+
|
|
35
|
+
getRefMaps: () => refMaps,
|
|
36
|
+
getComputeMaps: () => computeMaps
|
|
37
|
+
} as unknown as VxeLayoutContainerConstructor & VxeLayoutContainerPrivateMethods
|
|
38
|
+
|
|
39
|
+
const renderVN = () => {
|
|
40
|
+
const defaultSlot = slots.default
|
|
41
|
+
return h('div', {
|
|
42
|
+
ref: refElem,
|
|
43
|
+
class: ['vxe-layout-container', {
|
|
44
|
+
'is--vertical': props.vertical
|
|
45
|
+
}]
|
|
46
|
+
}, defaultSlot ? defaultSlot({}) : [])
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
$xeLayoutContainer.renderVN = renderVN
|
|
50
|
+
|
|
51
|
+
return $xeLayoutContainer
|
|
52
|
+
},
|
|
53
|
+
render () {
|
|
54
|
+
return this.renderVN()
|
|
55
|
+
}
|
|
56
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeLayoutFooterComponent from './src/layout-footer'
|
|
3
|
+
|
|
4
|
+
const VxeLayoutFooter = Object.assign({}, VxeLayoutFooterComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeLayoutFooterComponent.name as string, VxeLayoutFooterComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const LayoutFooter = VxeLayoutFooter
|
|
11
|
+
export default VxeLayoutFooter
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
|
|
4
|
+
import { LayoutFooterReactData, LayoutFooterPrivateRef, VxeLayoutFooterPrivateComputed, VxeLayoutFooterConstructor, VxeLayoutFooterPrivateMethods } from '../../../types'
|
|
5
|
+
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'VxeLayoutFooter',
|
|
8
|
+
props: {
|
|
9
|
+
fixed: Boolean
|
|
10
|
+
},
|
|
11
|
+
emits: [],
|
|
12
|
+
setup (props, context) {
|
|
13
|
+
const { slots } = context
|
|
14
|
+
|
|
15
|
+
const xID = XEUtils.uniqueId()
|
|
16
|
+
|
|
17
|
+
const refElem = ref<HTMLDivElement>()
|
|
18
|
+
|
|
19
|
+
const reactData = reactive<LayoutFooterReactData>({
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const refMaps: LayoutFooterPrivateRef = {
|
|
23
|
+
refElem
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const computeMaps: VxeLayoutFooterPrivateComputed = {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const $xeLayoutFooter = {
|
|
30
|
+
xID,
|
|
31
|
+
props,
|
|
32
|
+
context,
|
|
33
|
+
reactData,
|
|
34
|
+
|
|
35
|
+
getRefMaps: () => refMaps,
|
|
36
|
+
getComputeMaps: () => computeMaps
|
|
37
|
+
} as unknown as VxeLayoutFooterConstructor & VxeLayoutFooterPrivateMethods
|
|
38
|
+
|
|
39
|
+
const renderVN = () => {
|
|
40
|
+
const defaultSlot = slots.default
|
|
41
|
+
return h('div', {
|
|
42
|
+
ref: refElem,
|
|
43
|
+
class: ['vxe-layout-footer', {
|
|
44
|
+
'is--fixed': props.fixed
|
|
45
|
+
}]
|
|
46
|
+
}, defaultSlot ? defaultSlot({}) : [])
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
$xeLayoutFooter.renderVN = renderVN
|
|
50
|
+
|
|
51
|
+
return $xeLayoutFooter
|
|
52
|
+
},
|
|
53
|
+
render () {
|
|
54
|
+
return this.renderVN()
|
|
55
|
+
}
|
|
56
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import VxeLayoutHeaderComponent from './src/layout-header'
|
|
3
|
+
|
|
4
|
+
const VxeLayoutHeader = Object.assign({}, VxeLayoutHeaderComponent, {
|
|
5
|
+
install (app: App) {
|
|
6
|
+
app.component(VxeLayoutHeaderComponent.name as string, VxeLayoutHeaderComponent)
|
|
7
|
+
}
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const LayoutHeader = VxeLayoutHeader
|
|
11
|
+
export default VxeLayoutHeader
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
|
|
4
|
+
import { LayoutHeaderReactData, LayoutHeaderPrivateRef, VxeLayoutHeaderPrivateComputed, VxeLayoutHeaderConstructor, VxeLayoutHeaderPrivateMethods } from '../../../types'
|
|
5
|
+
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'VxeLayoutHeader',
|
|
8
|
+
props: {
|
|
9
|
+
fixed: Boolean
|
|
10
|
+
},
|
|
11
|
+
emits: [],
|
|
12
|
+
setup (props, context) {
|
|
13
|
+
const { slots } = context
|
|
14
|
+
|
|
15
|
+
const xID = XEUtils.uniqueId()
|
|
16
|
+
|
|
17
|
+
const refElem = ref<HTMLDivElement>()
|
|
18
|
+
|
|
19
|
+
const reactData = reactive<LayoutHeaderReactData>({
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const refMaps: LayoutHeaderPrivateRef = {
|
|
23
|
+
refElem
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const computeMaps: VxeLayoutHeaderPrivateComputed = {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const $xeLayoutHeader = {
|
|
30
|
+
xID,
|
|
31
|
+
props,
|
|
32
|
+
context,
|
|
33
|
+
reactData,
|
|
34
|
+
|
|
35
|
+
getRefMaps: () => refMaps,
|
|
36
|
+
getComputeMaps: () => computeMaps
|
|
37
|
+
} as unknown as VxeLayoutHeaderConstructor & VxeLayoutHeaderPrivateMethods
|
|
38
|
+
|
|
39
|
+
const renderVN = () => {
|
|
40
|
+
const defaultSlot = slots.default
|
|
41
|
+
return h('div', {
|
|
42
|
+
ref: refElem,
|
|
43
|
+
class: ['vxe-layout-header', {
|
|
44
|
+
'is--fixed': props.fixed
|
|
45
|
+
}]
|
|
46
|
+
}, defaultSlot ? defaultSlot({}) : [])
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
$xeLayoutHeader.renderVN = renderVN
|
|
50
|
+
|
|
51
|
+
return $xeLayoutHeader
|
|
52
|
+
},
|
|
53
|
+
render () {
|
|
54
|
+
return this.renderVN()
|
|
55
|
+
}
|
|
56
|
+
})
|