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,357 @@
|
|
|
1
|
+
@import '../helpers/mixin.scss';
|
|
2
|
+
|
|
3
|
+
$btnThemeList: (
|
|
4
|
+
(
|
|
5
|
+
name: "primary",
|
|
6
|
+
textColor: var(--vxe-ui-font-primary-color),
|
|
7
|
+
btnColor: #fff,
|
|
8
|
+
btnLightenColor: var(--vxe-ui-status-primary-lighten-color),
|
|
9
|
+
btnDarkenColor: var(--vxe-ui-status-primary-darken-color),
|
|
10
|
+
btnDisabledColor: var(--vxe-ui-status-primary-disabled-color)
|
|
11
|
+
),
|
|
12
|
+
(
|
|
13
|
+
name: "success",
|
|
14
|
+
textColor: var(--vxe-ui-status-success-color),
|
|
15
|
+
btnColor: #fff,
|
|
16
|
+
btnLightenColor: var(--vxe-ui-status-success-lighten-color),
|
|
17
|
+
btnDarkenColor: var(--vxe-ui-status-success-darken-color),
|
|
18
|
+
btnDisabledColor: var(--vxe-ui-status-success-disabled-color)
|
|
19
|
+
),
|
|
20
|
+
(
|
|
21
|
+
name: "info",
|
|
22
|
+
textColor: var(--vxe-ui-status-info-color),
|
|
23
|
+
btnColor: #fff,
|
|
24
|
+
btnLightenColor: var(--vxe-ui-status-info-lighten-color),
|
|
25
|
+
btnDarkenColor: var(--vxe-ui-status-info-darken-color),
|
|
26
|
+
btnDisabledColor: var(--vxe-ui-status-info-disabled-color)
|
|
27
|
+
),
|
|
28
|
+
(
|
|
29
|
+
name: "warning",
|
|
30
|
+
textColor: var(--vxe-ui-status-warning-color),
|
|
31
|
+
btnColor: #fff,
|
|
32
|
+
btnLightenColor: var(--vxe-ui-status-warning-lighten-color),
|
|
33
|
+
btnDarkenColor: var(--vxe-ui-status-warning-darken-color),
|
|
34
|
+
btnDisabledColor: var(--vxe-ui-status-warning-disabled-color)
|
|
35
|
+
),
|
|
36
|
+
(
|
|
37
|
+
name: "danger",
|
|
38
|
+
textColor: var(--vxe-ui-status-danger-color),
|
|
39
|
+
btnColor: #fff,
|
|
40
|
+
btnLightenColor: var(--vxe-ui-status-danger-lighten-color),
|
|
41
|
+
btnDarkenColor: var(--vxe-ui-status-danger-darken-color),
|
|
42
|
+
btnDisabledColor: var(--vxe-ui-status-danger-disabled-color)
|
|
43
|
+
),
|
|
44
|
+
(
|
|
45
|
+
name: "perfect",
|
|
46
|
+
textColor: var(--vxe-ui-table-header-background-color),
|
|
47
|
+
btnColor: var(--vxe-ui-font-color),
|
|
48
|
+
btnLightenColor: var(--vxe-ui-table-header-background-color),
|
|
49
|
+
btnDarkenColor: var(--vxe-ui-table-header-background-color),
|
|
50
|
+
btnDisabledColor: var(--vxe-ui-table-header-background-color)
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
.vxe-button {
|
|
55
|
+
position: relative;
|
|
56
|
+
text-align: center;
|
|
57
|
+
background-color: var(--vxe-ui-button-default-background-color);
|
|
58
|
+
outline: 0;
|
|
59
|
+
font-size: var(--vxe-ui-font-size);
|
|
60
|
+
max-width: var(--vxe-ui-button-max-width);
|
|
61
|
+
line-height: 1.5;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
user-select: none;
|
|
67
|
+
appearance: none;
|
|
68
|
+
@include createAnimationTransition(border, .2s);
|
|
69
|
+
&:not(.is--disabled) {
|
|
70
|
+
color: var(--vxe-ui-font-color);
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
&.is--loading {
|
|
74
|
+
cursor: progress;
|
|
75
|
+
&:before {
|
|
76
|
+
content: "";
|
|
77
|
+
position: absolute;
|
|
78
|
+
left: -1px;
|
|
79
|
+
top: -1px;
|
|
80
|
+
right: -1px;
|
|
81
|
+
bottom: -1px;
|
|
82
|
+
border-radius: inherit;
|
|
83
|
+
background-color: hsla(0,0%,100%,.35);
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
&.is--disabled {
|
|
88
|
+
color: var(--vxe-ui-font-disabled-color);
|
|
89
|
+
&:not(.is--loading) {
|
|
90
|
+
cursor: no-drop;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&.type--text {
|
|
94
|
+
text-decoration: none;
|
|
95
|
+
border: 0;
|
|
96
|
+
padding: 0.1em 0.5em;
|
|
97
|
+
background-color: transparent;
|
|
98
|
+
&:not(.is--disabled) {
|
|
99
|
+
&:focus {
|
|
100
|
+
color: var(--vxe-ui-font-darken-color);
|
|
101
|
+
}
|
|
102
|
+
&:hover {
|
|
103
|
+
color: var(--vxe-ui-status-primary-lighten-color);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@for $index from 0 to length($btnThemeList) {
|
|
107
|
+
$item: nth($btnThemeList, $index + 1);
|
|
108
|
+
&.theme--#{map-get($item, name)} {
|
|
109
|
+
color: map-get($item, textColor);
|
|
110
|
+
&:not(.is--disabled) {
|
|
111
|
+
&:focus {
|
|
112
|
+
color: map-get($item, btnDarkenColor);
|
|
113
|
+
}
|
|
114
|
+
&:hover {
|
|
115
|
+
color: map-get($item, btnLightenColor);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
&.is--disabled {
|
|
119
|
+
color: map-get($item, btnDisabledColor);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
&.type--button {
|
|
125
|
+
font-family: inherit;
|
|
126
|
+
height: var(--vxe-ui-button-height-default);
|
|
127
|
+
line-height: 1;
|
|
128
|
+
border: 1px solid var(--vxe-ui-input-border-color);
|
|
129
|
+
&.is--round {
|
|
130
|
+
border-radius: var(--vxe-ui-button-round-border-radius-default);
|
|
131
|
+
}
|
|
132
|
+
&:not(.is--round) {
|
|
133
|
+
border-radius: var(--vxe-ui-border-radius);
|
|
134
|
+
}
|
|
135
|
+
&.is--circle {
|
|
136
|
+
padding: 0 0.5em;
|
|
137
|
+
min-width: var(--vxe-ui-button-height-default);
|
|
138
|
+
border-radius: 50%;
|
|
139
|
+
}
|
|
140
|
+
&:not(.is--circle) {
|
|
141
|
+
padding: 0 1em;
|
|
142
|
+
}
|
|
143
|
+
&:not(.is--disabled) {
|
|
144
|
+
&:hover {
|
|
145
|
+
color: var(--vxe-ui-status-primary-lighten-color);
|
|
146
|
+
}
|
|
147
|
+
&:focus {
|
|
148
|
+
border-color: var(--vxe-ui-font-primary-color);
|
|
149
|
+
}
|
|
150
|
+
&:active {
|
|
151
|
+
color: var(--vxe-ui-status-primary-darken-color);
|
|
152
|
+
border-color: var(--vxe-ui-status-primary-darken-color);
|
|
153
|
+
background-color: var(--vxe-ui-button-default-background-color);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@for $index from 0 to length($btnThemeList) {
|
|
157
|
+
$item: nth($btnThemeList, $index + 1);
|
|
158
|
+
$textColor: map-get($item, textColor);
|
|
159
|
+
$btnColor: map-get($item, btnColor);
|
|
160
|
+
&.theme--#{map-get($item, name)} {
|
|
161
|
+
color: $btnColor;
|
|
162
|
+
&:not(.is--disabled) {
|
|
163
|
+
border-color: $textColor;
|
|
164
|
+
background-color: $textColor;
|
|
165
|
+
&:hover {
|
|
166
|
+
color: $btnColor;
|
|
167
|
+
background-color: map-get($item, btnLightenColor);
|
|
168
|
+
border-color: map-get($item, btnLightenColor);
|
|
169
|
+
}
|
|
170
|
+
&:active {
|
|
171
|
+
color: $btnColor;
|
|
172
|
+
background-color: map-get($item, btnDarkenColor);
|
|
173
|
+
border-color: map-get($item, btnDarkenColor);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
&.is--disabled {
|
|
177
|
+
border-color: map-get($item, btnDisabledColor);
|
|
178
|
+
background-color: map-get($item, btnDisabledColor);
|
|
179
|
+
}
|
|
180
|
+
&.is--loading {
|
|
181
|
+
border-color: $textColor;
|
|
182
|
+
background-color: $textColor;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
&.size--medium {
|
|
188
|
+
font-size: var(--vxe-ui-font-size-medium);
|
|
189
|
+
&.type--button {
|
|
190
|
+
height: var(--vxe-ui-button-height-medium);
|
|
191
|
+
&.is--circle {
|
|
192
|
+
min-width: var(--vxe-ui-button-height-medium);
|
|
193
|
+
}
|
|
194
|
+
&.is--round {
|
|
195
|
+
border-radius: var(--vxe-ui-button-round-border-radius-medium);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
.vxe-button--loading-icon,
|
|
199
|
+
.vxe-button--icon {
|
|
200
|
+
min-width: var(--vxe-ui-font-size-medium);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
&.size--small {
|
|
204
|
+
font-size: var(--vxe-ui-font-size-small);
|
|
205
|
+
&.type--button {
|
|
206
|
+
height: var(--vxe-ui-button-height-small);
|
|
207
|
+
&.is--circle {
|
|
208
|
+
min-width: var(--vxe-ui-button-height-small);
|
|
209
|
+
}
|
|
210
|
+
&.is--round {
|
|
211
|
+
border-radius: var(--vxe-ui-button-round-border-radius-small);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
.vxe-button--loading-icon,
|
|
215
|
+
.vxe-button--icon {
|
|
216
|
+
min-width: var(--vxe-ui-font-size-small);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
&.size--mini {
|
|
220
|
+
font-size: var(--vxe-ui-font-size-mini);
|
|
221
|
+
&.type--button {
|
|
222
|
+
height: var(--vxe-ui-button-height-mini);
|
|
223
|
+
&.is--circle {
|
|
224
|
+
min-width: var(--vxe-ui-button-height-mini);
|
|
225
|
+
}
|
|
226
|
+
&.is--round {
|
|
227
|
+
border-radius: var(--vxe-ui-button-round-border-radius-mini);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
.vxe-button--loading-icon,
|
|
231
|
+
.vxe-button--icon {
|
|
232
|
+
min-width: var(--vxe-ui-font-size-mini);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
.vxe-input,
|
|
237
|
+
.vxe-button,
|
|
238
|
+
.vxe-button-wrapper {
|
|
239
|
+
&+.vxe-button-wrapper,
|
|
240
|
+
&+.vxe-button.type--button,
|
|
241
|
+
&+.vxe-button--dropdown {
|
|
242
|
+
margin-left: 12px;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
.vxe-button--loading-icon,
|
|
246
|
+
.vxe-button--icon {
|
|
247
|
+
min-width: var(--vxe-ui-font-size);
|
|
248
|
+
&+.vxe-button--content {
|
|
249
|
+
margin-left: 4px;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
.vxe-button--wrapper,
|
|
253
|
+
.vxe-button--dropdown {
|
|
254
|
+
display: inline-block;
|
|
255
|
+
}
|
|
256
|
+
.vxe-button--dropdown {
|
|
257
|
+
position: relative;
|
|
258
|
+
&+.vxe-button-wrapper,
|
|
259
|
+
&+.vxe-button.type--button,
|
|
260
|
+
&+.vxe-button--dropdown {
|
|
261
|
+
margin-left: 12px;
|
|
262
|
+
}
|
|
263
|
+
& > .vxe-button {
|
|
264
|
+
&.type--button {
|
|
265
|
+
@for $index from 0 to length($btnThemeList) {
|
|
266
|
+
$item: nth($btnThemeList, $index + 1);
|
|
267
|
+
$btnColor: map-get($item, btnColor);
|
|
268
|
+
&.theme--#{map-get($item, name)} {
|
|
269
|
+
color: $btnColor;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
&.is--active {
|
|
275
|
+
& > .vxe-button {
|
|
276
|
+
&:not(.is--disabled) {
|
|
277
|
+
color: var(--vxe-ui-status-primary-lighten-color);
|
|
278
|
+
}
|
|
279
|
+
&.type--text {
|
|
280
|
+
@for $index from 0 to length($btnThemeList) {
|
|
281
|
+
$item: nth($btnThemeList, $index + 1);
|
|
282
|
+
&.theme--#{map-get($item, name)} {
|
|
283
|
+
color: map-get($item, btnLightenColor);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
&.type--button {
|
|
288
|
+
@for $index from 0 to length($btnThemeList) {
|
|
289
|
+
$item: nth($btnThemeList, $index + 1);
|
|
290
|
+
&.theme--#{map-get($item, name)} {
|
|
291
|
+
color: map-get($item, btnColor);
|
|
292
|
+
background-color: map-get($item, btnLightenColor);
|
|
293
|
+
border-color: map-get($item, btnLightenColor);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
.vxe-button--dropdown-arrow {
|
|
299
|
+
transform: rotate(180deg);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.vxe-button--dropdown-arrow {
|
|
305
|
+
display: inline-block;
|
|
306
|
+
font-size: 12px;
|
|
307
|
+
margin-left: 4px;
|
|
308
|
+
@include createAnimationTransition(transform, .2s);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.vxe-button--dropdown-panel {
|
|
312
|
+
display: none;
|
|
313
|
+
position: absolute;
|
|
314
|
+
right: 0;
|
|
315
|
+
padding: 4px 0;
|
|
316
|
+
&.animat--leave {
|
|
317
|
+
display: block;
|
|
318
|
+
opacity: 0;
|
|
319
|
+
transform: scaleY(0.5);
|
|
320
|
+
transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s cubic-bezier(.23,1,.32,1);
|
|
321
|
+
transform-origin: center top;
|
|
322
|
+
backface-visibility: hidden;
|
|
323
|
+
transform-style: preserve-3d;
|
|
324
|
+
&[placement="top"] {
|
|
325
|
+
transform-origin: center bottom;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
&.animat--enter {
|
|
329
|
+
opacity: 1;
|
|
330
|
+
transform: scaleY(1);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
.vxe-button--dropdown-wrapper {
|
|
334
|
+
padding: 5px;
|
|
335
|
+
background-color: var(--vxe-ui-button-dropdown-panel-background-color);
|
|
336
|
+
border-radius: var(--vxe-ui-border-radius);
|
|
337
|
+
border: 1px solid var(--vxe-ui-input-border-color);
|
|
338
|
+
box-shadow: 0 1px 6px rgba(0,0,0,.2);
|
|
339
|
+
& > .vxe-button.type--text,
|
|
340
|
+
& > .vxe-button.type--button {
|
|
341
|
+
display: block;
|
|
342
|
+
width: 100%;
|
|
343
|
+
border: 0;
|
|
344
|
+
margin: 0.4em 0 0 0;
|
|
345
|
+
}
|
|
346
|
+
& > .vxe-button {
|
|
347
|
+
&.type--text {
|
|
348
|
+
padding: 2px 8px;
|
|
349
|
+
}
|
|
350
|
+
&:first-child {
|
|
351
|
+
margin-top: 0;
|
|
352
|
+
}
|
|
353
|
+
&:last-child {
|
|
354
|
+
margin-bottom: 0;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// 24 栅格布局
|
|
2
|
+
$colSpanList: 4.16667%, 8.33333%, 12.5%, 16.66667%, 20.83333%, 25%, 29.16667%, 33.33333%,
|
|
3
|
+
37.5%, 41.66667%, 45.83333%, 50%, 54.16667%, 58.33333%, 62.5%, 66.66667%,
|
|
4
|
+
70.83333%, 75%, 79.16667%, 83.33333%, 87.5%, 91.66667%, 95.83333%, 100%;
|
|
5
|
+
.vxe-col {
|
|
6
|
+
display: block;
|
|
7
|
+
&.is--ellipsis {
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
}
|
|
12
|
+
&.is--fill {
|
|
13
|
+
flex-grow: 1;
|
|
14
|
+
}
|
|
15
|
+
&:not(.is--fill) {
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
&.align--left {
|
|
19
|
+
text-align: left;
|
|
20
|
+
}
|
|
21
|
+
&.align--center {
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
&.align--right {
|
|
25
|
+
text-align: right;
|
|
26
|
+
}
|
|
27
|
+
@for $i from 0 to length($colSpanList) {
|
|
28
|
+
&.span#{$i + 1} {
|
|
29
|
+
width: nth($colSpanList, $i + 1);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../helpers/mixin.scss';
|