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,103 @@
|
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
|
|
3
|
+
export const browse = XEUtils.browse()
|
|
4
|
+
|
|
5
|
+
const reClsMap: { [key: string]: any } = {}
|
|
6
|
+
|
|
7
|
+
function getClsRE (cls: any) {
|
|
8
|
+
if (!reClsMap[cls]) {
|
|
9
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g')
|
|
10
|
+
}
|
|
11
|
+
return reClsMap[cls]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function getNodeOffset (elem: any, container: any, rest: any): any {
|
|
15
|
+
if (elem) {
|
|
16
|
+
const parentElem = elem.parentNode
|
|
17
|
+
rest.top += elem.offsetTop
|
|
18
|
+
rest.left += elem.offsetLeft
|
|
19
|
+
if (parentElem && parentElem !== document.documentElement && parentElem !== document.body) {
|
|
20
|
+
rest.top -= parentElem.scrollTop
|
|
21
|
+
rest.left -= parentElem.scrollLeft
|
|
22
|
+
}
|
|
23
|
+
if (container && (elem === container || elem.offsetParent === container) ? 0 : elem.offsetParent) {
|
|
24
|
+
return getNodeOffset(elem.offsetParent, container, rest)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return rest
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function isPx (val: any) {
|
|
31
|
+
return val && /^\d+(px)?$/.test(val)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function isScale (val: any) {
|
|
35
|
+
return val && /^\d+%$/.test(val)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function hasClass (elem: any, cls: any) {
|
|
39
|
+
return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls))
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function removeClass (elem: any, cls: any) {
|
|
43
|
+
if (elem && hasClass(elem, cls)) {
|
|
44
|
+
elem.className = elem.className.replace(getClsRE(cls), '')
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function addClass (elem: any, cls: string) {
|
|
49
|
+
if (elem && !hasClass(elem, cls)) {
|
|
50
|
+
removeClass(elem, cls)
|
|
51
|
+
elem.className = `${elem.className} ${cls}`
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function toCssUnit (val?: number | string) {
|
|
56
|
+
if (XEUtils.isNumber(val)) {
|
|
57
|
+
return `${val}px`
|
|
58
|
+
}
|
|
59
|
+
return val || ''
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function getDomNode () {
|
|
63
|
+
const documentElement = document.documentElement
|
|
64
|
+
const bodyElem = document.body
|
|
65
|
+
return {
|
|
66
|
+
scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
|
|
67
|
+
scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
|
|
68
|
+
visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
|
|
69
|
+
visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 检查触发源是否属于目标节点
|
|
75
|
+
*/
|
|
76
|
+
export function getEventTargetNode (evnt: any, container: any, queryCls?: string, queryMethod?: (target: Element) => boolean) {
|
|
77
|
+
let targetElem
|
|
78
|
+
let target = (evnt.target.shadowRoot && evnt.composed) ? (evnt.composedPath()[0] || evnt.target) : evnt.target
|
|
79
|
+
while (target && target.nodeType && target !== document) {
|
|
80
|
+
if (queryCls && hasClass(target, queryCls) && (!queryMethod || queryMethod(target))) {
|
|
81
|
+
targetElem = target
|
|
82
|
+
} else if (target === container) {
|
|
83
|
+
return { flag: queryCls ? !!targetElem : true, container, targetElem: targetElem }
|
|
84
|
+
}
|
|
85
|
+
target = target.parentNode
|
|
86
|
+
}
|
|
87
|
+
return { flag: false }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 获取元素相对于 document 的位置
|
|
92
|
+
*/
|
|
93
|
+
export function getOffsetPos (elem: any, container: any) {
|
|
94
|
+
return getNodeOffset(elem, container, { left: 0, top: 0 })
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function getAbsolutePos (elem: any) {
|
|
98
|
+
const bounding = elem.getBoundingClientRect()
|
|
99
|
+
const boundingTop = bounding.top
|
|
100
|
+
const boundingLeft = bounding.left
|
|
101
|
+
const { scrollTop, scrollLeft, visibleHeight, visibleWidth } = getDomNode()
|
|
102
|
+
return { boundingTop, top: scrollTop + boundingTop, boundingLeft, left: scrollLeft + boundingLeft, visibleHeight, visibleWidth }
|
|
103
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
import { browse } from './dom'
|
|
3
|
+
|
|
4
|
+
import { VxeComponentBase } from '../../../types'
|
|
5
|
+
|
|
6
|
+
export const EVENT_KEYS = {
|
|
7
|
+
F2: 'F2',
|
|
8
|
+
ESCAPE: 'Escape',
|
|
9
|
+
ENTER: 'Enter',
|
|
10
|
+
TAB: 'Tab',
|
|
11
|
+
DELETE: 'Delete',
|
|
12
|
+
BACKSPACE: 'Backspace',
|
|
13
|
+
SPACEBAR: ' ',
|
|
14
|
+
CONTEXT_MENU: 'ContextMenu',
|
|
15
|
+
ARROW_UP: 'ArrowUp',
|
|
16
|
+
ARROW_DOWN: 'ArrowDown',
|
|
17
|
+
ARROW_LEFT: 'ArrowLeft',
|
|
18
|
+
ARROW_RIGHT: 'ArrowRight',
|
|
19
|
+
PAGE_UP: 'PageUp',
|
|
20
|
+
PAGE_DOWN: 'PageDown'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const convertEventKeys: { [key: string]: string } = {
|
|
24
|
+
' ': 'Spacebar',
|
|
25
|
+
Apps: EVENT_KEYS.CONTEXT_MENU,
|
|
26
|
+
Del: EVENT_KEYS.DELETE,
|
|
27
|
+
Up: EVENT_KEYS.ARROW_UP,
|
|
28
|
+
Down: EVENT_KEYS.ARROW_DOWN,
|
|
29
|
+
Left: EVENT_KEYS.ARROW_LEFT,
|
|
30
|
+
Right: EVENT_KEYS.ARROW_RIGHT
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 监听全局事件
|
|
34
|
+
const wheelName = browse.firefox ? 'DOMMouseScroll' : 'mousewheel'
|
|
35
|
+
const eventStore: {
|
|
36
|
+
comp: VxeComponentBase;
|
|
37
|
+
type: string;
|
|
38
|
+
cb: (evnt: Event) => void;
|
|
39
|
+
}[] = []
|
|
40
|
+
|
|
41
|
+
export const hasEventKey = (evnt: KeyboardEvent, targetKey: string) => {
|
|
42
|
+
const { key } = evnt
|
|
43
|
+
targetKey = targetKey.toLowerCase()
|
|
44
|
+
return key ? (targetKey === key.toLowerCase() || !!(convertEventKeys[key] && convertEventKeys[key].toLowerCase() === targetKey)) : false
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function triggerEvent (evnt: Event) {
|
|
48
|
+
const isWheel = evnt.type === wheelName
|
|
49
|
+
eventStore.forEach(({ type, cb }) => {
|
|
50
|
+
// 如果被取消冒泡,不再执行
|
|
51
|
+
if (!evnt.cancelBubble) {
|
|
52
|
+
if (type === evnt.type || (isWheel && type === 'mousewheel')) {
|
|
53
|
+
cb(evnt)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const GlobalEvent = {
|
|
60
|
+
on (comp: VxeComponentBase, type: string, cb: (evnt: any) => void) {
|
|
61
|
+
eventStore.push({ comp, type, cb })
|
|
62
|
+
},
|
|
63
|
+
off (comp: VxeComponentBase, type: string) {
|
|
64
|
+
XEUtils.remove(eventStore, item => item.comp === comp && item.type === type)
|
|
65
|
+
},
|
|
66
|
+
trigger: triggerEvent,
|
|
67
|
+
eqKeypad (evnt: KeyboardEvent, keyVal: string) {
|
|
68
|
+
const { key } = evnt
|
|
69
|
+
if (keyVal.toLowerCase() === key.toLowerCase()) {
|
|
70
|
+
return true
|
|
71
|
+
}
|
|
72
|
+
return false
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (browse.isDoc) {
|
|
77
|
+
if (!browse.msie) {
|
|
78
|
+
window.addEventListener('copy', triggerEvent, false)
|
|
79
|
+
window.addEventListener('cut', triggerEvent, false)
|
|
80
|
+
window.addEventListener('paste', triggerEvent, false)
|
|
81
|
+
}
|
|
82
|
+
document.addEventListener('keydown', triggerEvent, false)
|
|
83
|
+
document.addEventListener('contextmenu', triggerEvent, false)
|
|
84
|
+
window.addEventListener('mousedown', triggerEvent, false)
|
|
85
|
+
window.addEventListener('blur', triggerEvent, false)
|
|
86
|
+
window.addEventListener('resize', triggerEvent, false)
|
|
87
|
+
window.addEventListener(wheelName, XEUtils.throttle(triggerEvent, 100, { leading: true, trailing: false }), { passive: true, capture: false })
|
|
88
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { VxeGlobalIcon } from '../../../types'
|
|
2
|
+
|
|
3
|
+
const iconPrefix = 'vxe-icon-'
|
|
4
|
+
|
|
5
|
+
const iconConfigStore: VxeGlobalIcon = {
|
|
6
|
+
// loading
|
|
7
|
+
LOADING: iconPrefix + 'spinner roll vxe-loading--default-icon',
|
|
8
|
+
|
|
9
|
+
// table
|
|
10
|
+
TABLE_SORT_ASC: iconPrefix + 'caret-up',
|
|
11
|
+
TABLE_SORT_DESC: iconPrefix + 'caret-down',
|
|
12
|
+
TABLE_FILTER_NONE: iconPrefix + 'funnel',
|
|
13
|
+
TABLE_FILTER_MATCH: iconPrefix + 'funnel',
|
|
14
|
+
TABLE_EDIT: iconPrefix + 'edit',
|
|
15
|
+
TABLE_TITLE_PREFIX: iconPrefix + 'question-circle-fill',
|
|
16
|
+
TABLE_TITLE_SUFFIX: iconPrefix + 'question-circle-fill',
|
|
17
|
+
TABLE_TREE_LOADED: iconPrefix + 'spinner roll',
|
|
18
|
+
TABLE_TREE_OPEN: iconPrefix + 'caret-right rotate90',
|
|
19
|
+
TABLE_TREE_CLOSE: iconPrefix + 'caret-right',
|
|
20
|
+
TABLE_EXPAND_LOADED: iconPrefix + 'spinner roll',
|
|
21
|
+
TABLE_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
22
|
+
TABLE_EXPAND_CLOSE: iconPrefix + 'arrow-right',
|
|
23
|
+
TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked',
|
|
24
|
+
TABLE_CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
|
|
25
|
+
TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate',
|
|
26
|
+
TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked',
|
|
27
|
+
TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
|
|
28
|
+
|
|
29
|
+
// button
|
|
30
|
+
BUTTON_DROPDOWN: iconPrefix + 'arrow-down',
|
|
31
|
+
BUTTON_LOADING: iconPrefix + 'spinner roll',
|
|
32
|
+
|
|
33
|
+
// select
|
|
34
|
+
SELECT_LOADED: iconPrefix + 'spinner roll',
|
|
35
|
+
SELECT_OPEN: iconPrefix + 'caret-down rotate180',
|
|
36
|
+
SELECT_CLOSE: iconPrefix + 'caret-down',
|
|
37
|
+
|
|
38
|
+
// pager
|
|
39
|
+
PAGER_HOME: iconPrefix + 'home-page',
|
|
40
|
+
PAGER_END: iconPrefix + 'end-page',
|
|
41
|
+
PAGER_JUMP_PREV: iconPrefix + 'arrow-double-left',
|
|
42
|
+
PAGER_JUMP_NEXT: iconPrefix + 'arrow-double-right',
|
|
43
|
+
PAGER_PREV_PAGE: iconPrefix + 'arrow-left',
|
|
44
|
+
PAGER_NEXT_PAGE: iconPrefix + 'arrow-right',
|
|
45
|
+
PAGER_JUMP_MORE: iconPrefix + 'ellipsis-h',
|
|
46
|
+
|
|
47
|
+
// input
|
|
48
|
+
INPUT_CLEAR: iconPrefix + 'error-circle-fill',
|
|
49
|
+
INPUT_PWD: iconPrefix + 'eye-fill',
|
|
50
|
+
INPUT_SHOW_PWD: iconPrefix + 'eye-fill-close',
|
|
51
|
+
INPUT_PREV_NUM: iconPrefix + 'caret-up',
|
|
52
|
+
INPUT_NEXT_NUM: iconPrefix + 'caret-down',
|
|
53
|
+
INPUT_DATE: iconPrefix + 'calendar',
|
|
54
|
+
INPUT_SEARCH: iconPrefix + 'search',
|
|
55
|
+
|
|
56
|
+
// modal
|
|
57
|
+
MODAL_ZOOM_IN: iconPrefix + 'square',
|
|
58
|
+
MODAL_ZOOM_OUT: iconPrefix + 'maximize',
|
|
59
|
+
MODAL_CLOSE: iconPrefix + 'close',
|
|
60
|
+
MODAL_INFO: iconPrefix + 'info-circle-fill',
|
|
61
|
+
MODAL_SUCCESS: iconPrefix + 'success-circle-fill',
|
|
62
|
+
MODAL_WARNING: iconPrefix + 'warnion-circle-fill',
|
|
63
|
+
MODAL_ERROR: iconPrefix + 'error-circle-fill',
|
|
64
|
+
MODAL_QUESTION: iconPrefix + 'question-circle-fill',
|
|
65
|
+
MODAL_LOADING: iconPrefix + 'spinner roll',
|
|
66
|
+
|
|
67
|
+
// toolbar
|
|
68
|
+
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
|
|
69
|
+
TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'repeat roll',
|
|
70
|
+
TOOLBAR_TOOLS_IMPORT: iconPrefix + 'upload',
|
|
71
|
+
TOOLBAR_TOOLS_EXPORT: iconPrefix + 'download',
|
|
72
|
+
TOOLBAR_TOOLS_PRINT: iconPrefix + 'print',
|
|
73
|
+
TOOLBAR_TOOLS_FULLSCREEN: iconPrefix + 'fullscreen',
|
|
74
|
+
TOOLBAR_TOOLS_MINIMIZE: iconPrefix + 'minimize',
|
|
75
|
+
TOOLBAR_TOOLS_CUSTOM: iconPrefix + 'custom-column',
|
|
76
|
+
TOOLBAR_TOOLS_FIXED_LEFT: iconPrefix + 'fixed-left',
|
|
77
|
+
TOOLBAR_TOOLS_FIXED_LEFT_ACTIVED: iconPrefix + 'fixed-left-fill',
|
|
78
|
+
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + 'fixed-right',
|
|
79
|
+
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVED: iconPrefix + 'fixed-right-fill',
|
|
80
|
+
|
|
81
|
+
// form
|
|
82
|
+
FORM_PREFIX: iconPrefix + 'question-circle-fill',
|
|
83
|
+
FORM_SUFFIX: iconPrefix + 'question-circle-fill',
|
|
84
|
+
FORM_FOLDING: iconPrefix + 'arrow-up rotate180',
|
|
85
|
+
FORM_UNFOLDING: iconPrefix + 'arrow-up'
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export default iconConfigStore
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import globalConfigStore from './globalStore'
|
|
2
|
+
|
|
3
|
+
export function getLog (message: string, params?: any) {
|
|
4
|
+
return `[vxe-table v${process.env.VUE_APP_VXE_TABLE_VERSION}] ${globalConfigStore.i18n(message, params)}`
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function outLog (type: 'log' | 'warn' | 'error') {
|
|
8
|
+
return function (message: string, params?: any) {
|
|
9
|
+
const msg = getLog(message, params)
|
|
10
|
+
console[type](msg)
|
|
11
|
+
return msg
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const warnLog = outLog('warn')
|
|
16
|
+
export const errLog = outLog('error')
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import globalConfigStore from './globalStore'
|
|
2
|
+
|
|
3
|
+
import { VxeGlobalConfig } from '../../../types'
|
|
4
|
+
|
|
5
|
+
export default function setTheme (options?: VxeGlobalConfig) {
|
|
6
|
+
const theme = (options ? options.theme : null) || globalConfigStore.theme || 'default'
|
|
7
|
+
if (typeof document !== 'undefined') {
|
|
8
|
+
const documentElement = document.documentElement
|
|
9
|
+
if (documentElement) {
|
|
10
|
+
documentElement.setAttribute('data-vxe-ui-theme', theme)
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
import DomZIndex from 'dom-zindex'
|
|
3
|
+
|
|
4
|
+
export function isEnableConf (conf: any): boolean {
|
|
5
|
+
return conf && conf.enabled !== false
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function isEmptyValue (cellValue: any) {
|
|
9
|
+
return cellValue === null || cellValue === undefined || cellValue === ''
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function nextZIndex () {
|
|
13
|
+
return DomZIndex.getNext()
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function getLastZIndex () {
|
|
17
|
+
return DomZIndex.getCurrent()
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function getFuncText (content?: string | number | boolean | null) {
|
|
21
|
+
return content ? XEUtils.toValueString(content) : ''
|
|
22
|
+
}
|
package/styles/all.scss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@import './base.scss';
|
|
2
|
+
|
|
3
|
+
@import './components/icon.scss';
|
|
4
|
+
@import './components/layout-container.scss';
|
|
5
|
+
@import './components/layout-header.scss';
|
|
6
|
+
@import './components/layout-aside.scss';
|
|
7
|
+
@import './components/layout-body.scss';
|
|
8
|
+
@import './components/layout-footer.scss';
|
|
9
|
+
@import './components/row.scss';
|
|
10
|
+
@import './components/col.scss';
|
|
11
|
+
@import './components/breadcrumb.scss';
|
|
12
|
+
@import './components/breadcrumb-item.scss';
|
|
13
|
+
@import './components/button.scss';
|
|
14
|
+
@import './components/button-group.scss';
|
|
15
|
+
@import './components/anchor.scss';
|
|
16
|
+
@import './components/anchor-link.scss';
|
|
17
|
+
@import './components/design.scss';
|
package/styles/base.scss
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import './theme/default.scss';
|
|
2
|
+
@import './theme/dark.scss';
|
|
3
|
+
|
|
4
|
+
%boxSizing {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[class*="vxe-"] {
|
|
9
|
+
font-variant: tabular-nums;
|
|
10
|
+
font-feature-settings: 'tnum';
|
|
11
|
+
@extend %boxSizing;
|
|
12
|
+
&:after, &:before,
|
|
13
|
+
*:after, *:before {
|
|
14
|
+
@extend %boxSizing;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import '../helpers/mixin.scss';
|
|
2
|
+
|
|
3
|
+
.vxe-anchor {
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
.vxe-anchor--marker {
|
|
7
|
+
position: absolute;
|
|
8
|
+
left: 0;
|
|
9
|
+
top: 0;
|
|
10
|
+
width: 0.2em;
|
|
11
|
+
height: 1.5em;
|
|
12
|
+
padding: 0.25em 0;
|
|
13
|
+
@include createAnimationTransition(all, 0.35s);
|
|
14
|
+
&::before {
|
|
15
|
+
display: block;
|
|
16
|
+
content: "";
|
|
17
|
+
height: 100%;
|
|
18
|
+
width: 100%;
|
|
19
|
+
border-radius: 1em;
|
|
20
|
+
background-color: var(--vxe-ui-anchor-link-active-color);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.vxe-anchor-link {
|
|
25
|
+
position: relative;
|
|
26
|
+
padding-left: 0.6em;
|
|
27
|
+
&.is--active {
|
|
28
|
+
& > .vxe-anchor-link--item {
|
|
29
|
+
color: var(--vxe-ui-anchor-link-active-color);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.vxe-anchor-link--item {
|
|
34
|
+
display: block;
|
|
35
|
+
height: 1.5em;
|
|
36
|
+
line-height: 1.5em;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
color: var(--vxe-ui-anchor-link-color);
|
|
42
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
.vxe-breadcrumb {
|
|
3
|
+
color: var(--vxe-ui-breadcrumb-item-color);
|
|
4
|
+
}
|
|
5
|
+
.vxe-breadcrumb-item {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
color: var(--vxe-ui-breadcrumb-color);
|
|
8
|
+
&:last-child {
|
|
9
|
+
.vxe-breadcrumb-item--content {
|
|
10
|
+
color: var(--vxe-ui-breadcrumb-current-item-color);
|
|
11
|
+
}
|
|
12
|
+
.vxe-breadcrumb-item--separator {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.vxe-breadcrumb-item--separator {
|
|
18
|
+
margin: 0 0.6em;
|
|
19
|
+
color: var(--vxe-ui-font-placeholder-color);
|
|
20
|
+
}
|
|
File without changes
|