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,80 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive, computed, inject } from 'vue';
|
|
2
|
+
import XEUtils from 'xe-utils';
|
|
3
|
+
import { toCssUnit } from '../../ui/src/dom';
|
|
4
|
+
export default defineComponent({
|
|
5
|
+
name: 'VxeCol',
|
|
6
|
+
props: {
|
|
7
|
+
span: [Number, String],
|
|
8
|
+
align: String,
|
|
9
|
+
width: [Number, String],
|
|
10
|
+
fill: Boolean,
|
|
11
|
+
ellipsis: Boolean
|
|
12
|
+
},
|
|
13
|
+
emits: [],
|
|
14
|
+
setup(props, context) {
|
|
15
|
+
const { slots } = context;
|
|
16
|
+
const xID = XEUtils.uniqueId();
|
|
17
|
+
const refElem = ref();
|
|
18
|
+
const reactData = reactive({});
|
|
19
|
+
const refMaps = {
|
|
20
|
+
refElem
|
|
21
|
+
};
|
|
22
|
+
const $xeRow = inject('$xeRow', null);
|
|
23
|
+
const computeColGutter = computed(() => {
|
|
24
|
+
if ($xeRow) {
|
|
25
|
+
return $xeRow.props.gutter;
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
});
|
|
29
|
+
const computeColStyle = computed(() => {
|
|
30
|
+
const { width } = props;
|
|
31
|
+
const colGutter = computeColGutter.value;
|
|
32
|
+
const style = {};
|
|
33
|
+
if (colGutter) {
|
|
34
|
+
const [lrGutter, tbGutter] = XEUtils.isArray(colGutter) ? colGutter : [colGutter];
|
|
35
|
+
if (lrGutter) {
|
|
36
|
+
const padding = XEUtils.isNumber(lrGutter) ? toCssUnit(lrGutter / 2) : `calc(${toCssUnit(lrGutter)} / 2)`;
|
|
37
|
+
style.paddingLeft = padding;
|
|
38
|
+
style.paddingRight = padding;
|
|
39
|
+
}
|
|
40
|
+
if (tbGutter) {
|
|
41
|
+
const padding = XEUtils.isNumber(tbGutter) ? toCssUnit(tbGutter / 2) : `calc(${toCssUnit(tbGutter)} / 2)`;
|
|
42
|
+
style.paddingTop = padding;
|
|
43
|
+
style.paddingBottom = padding;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (width) {
|
|
47
|
+
style.width = toCssUnit(width);
|
|
48
|
+
}
|
|
49
|
+
return style;
|
|
50
|
+
});
|
|
51
|
+
const computeMaps = {};
|
|
52
|
+
const $xeCol = {
|
|
53
|
+
xID,
|
|
54
|
+
props,
|
|
55
|
+
context,
|
|
56
|
+
reactData,
|
|
57
|
+
getRefMaps: () => refMaps,
|
|
58
|
+
getComputeMaps: () => computeMaps
|
|
59
|
+
};
|
|
60
|
+
const renderVN = () => {
|
|
61
|
+
const { span, fill, align, ellipsis } = props;
|
|
62
|
+
const colStyle = computeColStyle.value;
|
|
63
|
+
const defaultSlot = slots.default;
|
|
64
|
+
return h('div', {
|
|
65
|
+
ref: refElem,
|
|
66
|
+
class: ['vxe-col', span ? `span${span}` : '', align ? `align--${align}` : '', {
|
|
67
|
+
'is--span': span,
|
|
68
|
+
'is--fill': fill,
|
|
69
|
+
'is--ellipsis': ellipsis
|
|
70
|
+
}],
|
|
71
|
+
style: colStyle
|
|
72
|
+
}, defaultSlot ? defaultSlot({}) : []);
|
|
73
|
+
};
|
|
74
|
+
$xeCol.renderVN = renderVN;
|
|
75
|
+
return $xeCol;
|
|
76
|
+
},
|
|
77
|
+
render() {
|
|
78
|
+
return this.renderVN();
|
|
79
|
+
}
|
|
80
|
+
});
|
package/es/col/style.css
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.vxe-col {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
.vxe-col.is--ellipsis {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
}
|
|
9
|
+
.vxe-col.is--fill {
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
}
|
|
12
|
+
.vxe-col:not(.is--fill) {
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
}
|
|
15
|
+
.vxe-col.align--left {
|
|
16
|
+
text-align: left;
|
|
17
|
+
}
|
|
18
|
+
.vxe-col.align--center {
|
|
19
|
+
text-align: center;
|
|
20
|
+
}
|
|
21
|
+
.vxe-col.align--right {
|
|
22
|
+
text-align: right;
|
|
23
|
+
}
|
|
24
|
+
.vxe-col.span1 {
|
|
25
|
+
width: 4.16667%;
|
|
26
|
+
}
|
|
27
|
+
.vxe-col.span2 {
|
|
28
|
+
width: 8.33333%;
|
|
29
|
+
}
|
|
30
|
+
.vxe-col.span3 {
|
|
31
|
+
width: 12.5%;
|
|
32
|
+
}
|
|
33
|
+
.vxe-col.span4 {
|
|
34
|
+
width: 16.66667%;
|
|
35
|
+
}
|
|
36
|
+
.vxe-col.span5 {
|
|
37
|
+
width: 20.83333%;
|
|
38
|
+
}
|
|
39
|
+
.vxe-col.span6 {
|
|
40
|
+
width: 25%;
|
|
41
|
+
}
|
|
42
|
+
.vxe-col.span7 {
|
|
43
|
+
width: 29.16667%;
|
|
44
|
+
}
|
|
45
|
+
.vxe-col.span8 {
|
|
46
|
+
width: 33.33333%;
|
|
47
|
+
}
|
|
48
|
+
.vxe-col.span9 {
|
|
49
|
+
width: 37.5%;
|
|
50
|
+
}
|
|
51
|
+
.vxe-col.span10 {
|
|
52
|
+
width: 41.66667%;
|
|
53
|
+
}
|
|
54
|
+
.vxe-col.span11 {
|
|
55
|
+
width: 45.83333%;
|
|
56
|
+
}
|
|
57
|
+
.vxe-col.span12 {
|
|
58
|
+
width: 50%;
|
|
59
|
+
}
|
|
60
|
+
.vxe-col.span13 {
|
|
61
|
+
width: 54.16667%;
|
|
62
|
+
}
|
|
63
|
+
.vxe-col.span14 {
|
|
64
|
+
width: 58.33333%;
|
|
65
|
+
}
|
|
66
|
+
.vxe-col.span15 {
|
|
67
|
+
width: 62.5%;
|
|
68
|
+
}
|
|
69
|
+
.vxe-col.span16 {
|
|
70
|
+
width: 66.66667%;
|
|
71
|
+
}
|
|
72
|
+
.vxe-col.span17 {
|
|
73
|
+
width: 70.83333%;
|
|
74
|
+
}
|
|
75
|
+
.vxe-col.span18 {
|
|
76
|
+
width: 75%;
|
|
77
|
+
}
|
|
78
|
+
.vxe-col.span19 {
|
|
79
|
+
width: 79.16667%;
|
|
80
|
+
}
|
|
81
|
+
.vxe-col.span20 {
|
|
82
|
+
width: 83.33333%;
|
|
83
|
+
}
|
|
84
|
+
.vxe-col.span21 {
|
|
85
|
+
width: 87.5%;
|
|
86
|
+
}
|
|
87
|
+
.vxe-col.span22 {
|
|
88
|
+
width: 91.66667%;
|
|
89
|
+
}
|
|
90
|
+
.vxe-col.span23 {
|
|
91
|
+
width: 95.83333%;
|
|
92
|
+
}
|
|
93
|
+
.vxe-col.span24 {
|
|
94
|
+
width: 100%;
|
|
95
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vxe-col{display:block}.vxe-col.is--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-col.is--fill{flex-grow:1}.vxe-col:not(.is--fill){flex-shrink:0}.vxe-col.align--left{text-align:left}.vxe-col.align--center{text-align:center}.vxe-col.align--right{text-align:right}.vxe-col.span1{width:4.16667%}.vxe-col.span2{width:8.33333%}.vxe-col.span3{width:12.5%}.vxe-col.span4{width:16.66667%}.vxe-col.span5{width:20.83333%}.vxe-col.span6{width:25%}.vxe-col.span7{width:29.16667%}.vxe-col.span8{width:33.33333%}.vxe-col.span9{width:37.5%}.vxe-col.span10{width:41.66667%}.vxe-col.span11{width:45.83333%}.vxe-col.span12{width:50%}.vxe-col.span13{width:54.16667%}.vxe-col.span14{width:58.33333%}.vxe-col.span15{width:62.5%}.vxe-col.span16{width:66.66667%}.vxe-col.span17{width:70.83333%}.vxe-col.span18{width:75%}.vxe-col.span19{width:79.16667%}.vxe-col.span20{width:83.33333%}.vxe-col.span21{width:87.5%}.vxe-col.span22{width:91.66667%}.vxe-col.span23{width:95.83333%}.vxe-col.span24{width:100%}
|
package/es/components.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import XEUtils from 'xe-utils';
|
|
2
|
+
import { setConfig } from './ui';
|
|
3
|
+
import VxeIcon from './icon';
|
|
4
|
+
import VxeLayoutContainer from './layout-container';
|
|
5
|
+
import VxeLayoutHeader from './layout-header';
|
|
6
|
+
import VxeLayoutAside from './layout-aside';
|
|
7
|
+
import VxeLayoutBody from './layout-body';
|
|
8
|
+
import VxeLayoutFooter from './layout-footer';
|
|
9
|
+
import VxeRow from './row';
|
|
10
|
+
import VxeCol from './col';
|
|
11
|
+
import VxeBreadcrumb from './breadcrumb';
|
|
12
|
+
import VxeBreadcrumbItem from './breadcrumb-item';
|
|
13
|
+
import VxeButton from './button';
|
|
14
|
+
import VxeButtonGroup from './button-group';
|
|
15
|
+
import VxeAnchor from './anchor';
|
|
16
|
+
import VxeAnchorLink from './anchor-link';
|
|
17
|
+
import VxeDesign from './design';
|
|
18
|
+
import zhCN from './locale/lang/zh-CN';
|
|
19
|
+
// 默认中文
|
|
20
|
+
setConfig({
|
|
21
|
+
i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args)
|
|
22
|
+
});
|
|
23
|
+
export function install(app, options) {
|
|
24
|
+
setConfig(options);
|
|
25
|
+
app.use(VxeIcon);
|
|
26
|
+
app.use(VxeLayoutContainer);
|
|
27
|
+
app.use(VxeLayoutHeader);
|
|
28
|
+
app.use(VxeLayoutAside);
|
|
29
|
+
app.use(VxeLayoutBody);
|
|
30
|
+
app.use(VxeLayoutFooter);
|
|
31
|
+
app.use(VxeRow);
|
|
32
|
+
app.use(VxeCol);
|
|
33
|
+
app.use(VxeBreadcrumb);
|
|
34
|
+
app.use(VxeBreadcrumbItem);
|
|
35
|
+
app.use(VxeButton);
|
|
36
|
+
app.use(VxeButtonGroup);
|
|
37
|
+
app.use(VxeAnchor);
|
|
38
|
+
app.use(VxeAnchorLink);
|
|
39
|
+
app.use(VxeDesign);
|
|
40
|
+
}
|
|
41
|
+
export * from './ui';
|
|
42
|
+
// Components
|
|
43
|
+
export * from './icon';
|
|
44
|
+
export * from './layout-container';
|
|
45
|
+
export * from './layout-header';
|
|
46
|
+
export * from './layout-aside';
|
|
47
|
+
export * from './layout-body';
|
|
48
|
+
export * from './layout-footer';
|
|
49
|
+
export * from './row';
|
|
50
|
+
export * from './col';
|
|
51
|
+
export * from './breadcrumb';
|
|
52
|
+
export * from './breadcrumb-item';
|
|
53
|
+
export * from './button';
|
|
54
|
+
export * from './button-group';
|
|
55
|
+
export * from './anchor';
|
|
56
|
+
export * from './anchor-link';
|
|
57
|
+
export * from './design';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue';
|
|
2
|
+
import VxeUI from '../../ui';
|
|
3
|
+
import XEUtils from 'xe-utils';
|
|
4
|
+
export default defineComponent({
|
|
5
|
+
name: 'VxeDesign',
|
|
6
|
+
props: {
|
|
7
|
+
size: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: () => VxeUI.getConfig('design.size')
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: [],
|
|
13
|
+
setup(props, context) {
|
|
14
|
+
const xID = XEUtils.uniqueId();
|
|
15
|
+
const refElem = ref();
|
|
16
|
+
const reactData = reactive({});
|
|
17
|
+
const refMaps = {
|
|
18
|
+
refElem
|
|
19
|
+
};
|
|
20
|
+
const computeMaps = {};
|
|
21
|
+
const $xedesign = {
|
|
22
|
+
xID,
|
|
23
|
+
props,
|
|
24
|
+
context,
|
|
25
|
+
reactData,
|
|
26
|
+
getRefMaps: () => refMaps,
|
|
27
|
+
getComputeMaps: () => computeMaps
|
|
28
|
+
};
|
|
29
|
+
const renderVN = () => {
|
|
30
|
+
return h('div', {
|
|
31
|
+
ref: refElem,
|
|
32
|
+
class: 'vxe-design'
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
$xedesign.renderVN = renderVN;
|
|
36
|
+
return $xedesign;
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
return this.renderVN();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
File without changes
|
|
File without changes
|
package/es/hooks/size.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { computed, inject, provide } from 'vue';
|
|
2
|
+
export function useSize(props) {
|
|
3
|
+
// 组件尺寸上下文
|
|
4
|
+
const xesize = inject('xesize', null);
|
|
5
|
+
const computeSize = computed(() => {
|
|
6
|
+
return props.size || (xesize ? xesize.value : null);
|
|
7
|
+
});
|
|
8
|
+
provide('xesize', computeSize);
|
|
9
|
+
return computeSize;
|
|
10
|
+
}
|
package/es/icon/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
export default defineComponent({
|
|
3
|
+
name: 'VxeIcon',
|
|
4
|
+
props: {
|
|
5
|
+
name: String,
|
|
6
|
+
roll: Boolean,
|
|
7
|
+
status: String
|
|
8
|
+
},
|
|
9
|
+
emits: [
|
|
10
|
+
'click'
|
|
11
|
+
],
|
|
12
|
+
setup(props, { emit }) {
|
|
13
|
+
const clickEvent = (evnt) => {
|
|
14
|
+
emit('click', { $event: evnt });
|
|
15
|
+
};
|
|
16
|
+
return () => {
|
|
17
|
+
const { name, roll, status } = props;
|
|
18
|
+
return h('i', {
|
|
19
|
+
class: [`vxe-icon-${name}`, roll ? 'roll' : '', status ? [`theme--${status}`] : ''],
|
|
20
|
+
onClick: clickEvent
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|