@kdcloudjs/table 1.0.0
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 +568 -0
- package/README.md +111 -0
- package/dist/@kdcloudjs/table.css +422 -0
- package/dist/@kdcloudjs/table.css.map +1 -0
- package/dist/@kdcloudjs/table.js +38578 -0
- package/dist/@kdcloudjs/table.js.map +1 -0
- package/dist/@kdcloudjs/table.min.css +9 -0
- package/dist/@kdcloudjs/table.min.js +208 -0
- package/dist/@kdcloudjs/table.min.js.map +1 -0
- package/dist/default-theme.js +344 -0
- package/dist/kd-table.css +422 -0
- package/dist/kd-table.css.map +1 -0
- package/dist/kd-table.js +38578 -0
- package/dist/kd-table.js.map +1 -0
- package/dist/kd-table.min.css +9 -0
- package/dist/kd-table.min.js +208 -0
- package/dist/kd-table.min.js.map +1 -0
- package/dist/kd-ui-complete.less +779 -0
- package/dist/kd-ui.less +2 -0
- package/dist/theme.js +13 -0
- package/es/_utils/arrayUtil.d.ts +5 -0
- package/es/_utils/arrayUtil.js +17 -0
- package/es/_utils/devwarning.d.ts +1 -0
- package/es/_utils/devwarning.js +10 -0
- package/es/_utils/formatUtil.d.ts +46 -0
- package/es/_utils/formatUtil.js +346 -0
- package/es/_utils/hooks.d.ts +51 -0
- package/es/_utils/hooks.js +165 -0
- package/es/_utils/index.d.ts +8 -0
- package/es/_utils/index.js +15 -0
- package/es/_utils/numberUtil.d.ts +34 -0
- package/es/_utils/numberUtil.js +181 -0
- package/es/_utils/omit.d.ts +1 -0
- package/es/_utils/omit.js +11 -0
- package/es/_utils/react-children.d.ts +2 -0
- package/es/_utils/react-children.js +8 -0
- package/es/_utils/type.d.ts +12 -0
- package/es/_utils/type.js +15 -0
- package/es/_utils/usePopper.d.ts +29 -0
- package/es/_utils/usePopper.js +546 -0
- package/es/config-provider/ConfigContext.d.ts +22 -0
- package/es/config-provider/ConfigContext.js +7 -0
- package/es/config-provider/compDefaultProps.d.ts +8 -0
- package/es/config-provider/compDefaultProps.js +10 -0
- package/es/config-provider/configProvider.d.ts +11 -0
- package/es/config-provider/configProvider.js +40 -0
- package/es/config-provider/defaultConfig.d.ts +10 -0
- package/es/config-provider/defaultConfig.js +18 -0
- package/es/config-provider/index.d.ts +6 -0
- package/es/config-provider/index.js +6 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +4 -0
- package/es/locale/index.d.ts +3 -0
- package/es/locale/index.js +3 -0
- package/es/locale/locale.d.ts +50 -0
- package/es/locale/locale.js +251 -0
- package/es/locale/zh-CN.d.ts +8 -0
- package/es/locale/zh-CN.js +8 -0
- package/es/style/color/colors.less +2 -0
- package/es/style/core/index.less +2 -0
- package/es/style/core/motion/other.less +28 -0
- package/es/style/core/motion/slide.less +53 -0
- package/es/style/core/motion.less +2 -0
- package/es/style/core/reset.less +186 -0
- package/es/style/css.js +1 -0
- package/es/style/index.css +410 -0
- package/es/style/index.d.ts +1 -0
- package/es/style/index.js +1 -0
- package/es/style/index.less +2 -0
- package/es/style/mixins/index.less +19 -0
- package/es/style/mixins/overlay.less +22 -0
- package/es/style/mixins/reset.less +13 -0
- package/es/style/themes/default.less +445 -0
- package/es/style/themes/index.less +1 -0
- package/es/table/base/calculations.d.ts +5 -0
- package/es/table/base/calculations.js +364 -0
- package/es/table/base/colgroup.d.ts +5 -0
- package/es/table/base/colgroup.js +22 -0
- package/es/table/base/empty.d.ts +9 -0
- package/es/table/base/empty.js +38 -0
- package/es/table/base/header.d.ts +5 -0
- package/es/table/base/header.js +324 -0
- package/es/table/base/helpers/SpanManager.d.ts +9 -0
- package/es/table/base/helpers/SpanManager.js +50 -0
- package/es/table/base/helpers/TableDOMUtils.d.ts +18 -0
- package/es/table/base/helpers/TableDOMUtils.js +104 -0
- package/es/table/base/helpers/__test__/SpanManager.test.d.ts +1 -0
- package/es/table/base/helpers/__test__/SpanManager.test.js +18 -0
- package/es/table/base/helpers/__test__/TableDOMUtils.test.d.ts +1 -0
- package/es/table/base/helpers/__test__/TableDOMUtils.test.js +34 -0
- package/es/table/base/helpers/__test__/rowHeightManager.test.d.ts +1 -0
- package/es/table/base/helpers/__test__/rowHeightManager.test.js +30 -0
- package/es/table/base/helpers/__test__/visible-part.test.d.ts +1 -0
- package/es/table/base/helpers/__test__/visible-part.test.js +28 -0
- package/es/table/base/helpers/rowHeightManager.d.ts +7 -0
- package/es/table/base/helpers/rowHeightManager.js +157 -0
- package/es/table/base/helpers/visible-part.d.ts +23 -0
- package/es/table/base/helpers/visible-part.js +58 -0
- package/es/table/base/html-table.d.ts +15 -0
- package/es/table/base/html-table.js +132 -0
- package/es/table/base/index.d.ts +3 -0
- package/es/table/base/index.js +2 -0
- package/es/table/base/interfaces.d.ts +54 -0
- package/es/table/base/interfaces.js +0 -0
- package/es/table/base/loading.d.ts +13 -0
- package/es/table/base/loading.js +60 -0
- package/es/table/base/styles.d.ts +132 -0
- package/es/table/base/styles.js +112 -0
- package/es/table/base/table.d.ts +150 -0
- package/es/table/base/table.js +733 -0
- package/es/table/base/utils.d.ts +36 -0
- package/es/table/base/utils.js +193 -0
- package/es/table/common-views.d.ts +24 -0
- package/es/table/common-views.js +70 -0
- package/es/table/index.d.ts +6 -0
- package/es/table/index.js +6 -0
- package/es/table/interfaces.d.ts +98 -0
- package/es/table/interfaces.js +0 -0
- package/es/table/internals.d.ts +14 -0
- package/es/table/internals.js +56 -0
- package/es/table/pipeline/features/__test__/multiSelect.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/multiSelect.test.js +152 -0
- package/es/table/pipeline/features/__test__/rowDetail.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/rowDetail.test.js +223 -0
- package/es/table/pipeline/features/__test__/rowGrouping.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/rowGrouping.test.js +120 -0
- package/es/table/pipeline/features/__test__/singleSelect.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/singleSelect.test.js +191 -0
- package/es/table/pipeline/features/__test__/sort.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/sort.test.js +213 -0
- package/es/table/pipeline/features/__test__/tips.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/tips.test.js +123 -0
- package/es/table/pipeline/features/__test__/treeMode.test.d.ts +1 -0
- package/es/table/pipeline/features/__test__/treeMode.test.js +202 -0
- package/es/table/pipeline/features/autoFill.d.ts +4 -0
- package/es/table/pipeline/features/autoFill.js +63 -0
- package/es/table/pipeline/features/autoRowSpan.d.ts +2 -0
- package/es/table/pipeline/features/autoRowSpan.js +72 -0
- package/es/table/pipeline/features/buildTree.d.ts +2 -0
- package/es/table/pipeline/features/buildTree.js +8 -0
- package/es/table/pipeline/features/columnDrag.d.ts +6 -0
- package/es/table/pipeline/features/columnDrag.js +265 -0
- package/es/table/pipeline/features/columnFilter.d.ts +20 -0
- package/es/table/pipeline/features/columnFilter.js +173 -0
- package/es/table/pipeline/features/columnHover.d.ts +12 -0
- package/es/table/pipeline/features/columnHover.js +51 -0
- package/es/table/pipeline/features/columnRangeHover.d.ts +15 -0
- package/es/table/pipeline/features/columnRangeHover.js +83 -0
- package/es/table/pipeline/features/columnResizeWidth.d.ts +21 -0
- package/es/table/pipeline/features/columnResizeWidth.js +173 -0
- package/es/table/pipeline/features/contextMenu.d.ts +14 -0
- package/es/table/pipeline/features/contextMenu.js +370 -0
- package/es/table/pipeline/features/filter/DefaultFilterContent.d.ts +4 -0
- package/es/table/pipeline/features/filter/DefaultFilterContent.js +91 -0
- package/es/table/pipeline/features/filter/Filter.d.ts +17 -0
- package/es/table/pipeline/features/filter/Filter.js +111 -0
- package/es/table/pipeline/features/filter/FilterPanel.d.ts +20 -0
- package/es/table/pipeline/features/filter/FilterPanel.js +81 -0
- package/es/table/pipeline/features/filter/__test__/Filter.test.d.ts +1 -0
- package/es/table/pipeline/features/filter/__test__/Filter.test.js +29 -0
- package/es/table/pipeline/features/filter/index.d.ts +4 -0
- package/es/table/pipeline/features/filter/index.js +4 -0
- package/es/table/pipeline/features/filter/util.d.ts +10 -0
- package/es/table/pipeline/features/filter/util.js +67 -0
- package/es/table/pipeline/features/index.d.ts +16 -0
- package/es/table/pipeline/features/index.js +16 -0
- package/es/table/pipeline/features/multiSelect.d.ts +27 -0
- package/es/table/pipeline/features/multiSelect.js +208 -0
- package/es/table/pipeline/features/rowDetail.d.ts +35 -0
- package/es/table/pipeline/features/rowDetail.js +254 -0
- package/es/table/pipeline/features/rowGrouping.d.ts +14 -0
- package/es/table/pipeline/features/rowGrouping.js +200 -0
- package/es/table/pipeline/features/singleSelect.d.ts +23 -0
- package/es/table/pipeline/features/singleSelect.js +122 -0
- package/es/table/pipeline/features/sort.d.ts +40 -0
- package/es/table/pipeline/features/sort.js +332 -0
- package/es/table/pipeline/features/tips.d.ts +2 -0
- package/es/table/pipeline/features/tips.js +57 -0
- package/es/table/pipeline/features/treeMode.d.ts +37 -0
- package/es/table/pipeline/features/treeMode.js +234 -0
- package/es/table/pipeline/features/treeSelect.d.ts +38 -0
- package/es/table/pipeline/features/treeSelect.js +154 -0
- package/es/table/pipeline/index.d.ts +3 -0
- package/es/table/pipeline/index.js +3 -0
- package/es/table/pipeline/pipeline.d.ts +85 -0
- package/es/table/pipeline/pipeline.js +272 -0
- package/es/table/pivot/cross-table/buildCrossTable.d.ts +14 -0
- package/es/table/pivot/cross-table/buildCrossTable.js +294 -0
- package/es/table/pivot/cross-table/constants.d.ts +1 -0
- package/es/table/pivot/cross-table/constants.js +1 -0
- package/es/table/pivot/cross-table/cross-table.d.ts +18 -0
- package/es/table/pivot/cross-table/cross-table.js +55 -0
- package/es/table/pivot/cross-table/index.d.ts +4 -0
- package/es/table/pivot/cross-table/index.js +3 -0
- package/es/table/pivot/cross-table/interfaces.d.ts +29 -0
- package/es/table/pivot/cross-table/interfaces.js +0 -0
- package/es/table/pivot/cross-table/internals.d.ts +13 -0
- package/es/table/pivot/cross-table/internals.js +0 -0
- package/es/table/pivot/cross-tree-table/buildCrossTreeTable.d.ts +14 -0
- package/es/table/pivot/cross-tree-table/buildCrossTreeTable.js +219 -0
- package/es/table/pivot/cross-tree-table/cross-tree-table.d.ts +38 -0
- package/es/table/pivot/cross-tree-table/cross-tree-table.js +127 -0
- package/es/table/pivot/cross-tree-table/index.d.ts +2 -0
- package/es/table/pivot/cross-tree-table/index.js +2 -0
- package/es/table/pivot/pivot-utils/buildDrillTree.d.ts +16 -0
- package/es/table/pivot/pivot-utils/buildDrillTree.js +93 -0
- package/es/table/pivot/pivot-utils/builders.d.ts +26 -0
- package/es/table/pivot/pivot-utils/builders.js +252 -0
- package/es/table/pivot/pivot-utils/convert-utils.d.ts +31 -0
- package/es/table/pivot/pivot-utils/convert-utils.js +180 -0
- package/es/table/pivot/pivot-utils/index.d.ts +5 -0
- package/es/table/pivot/pivot-utils/index.js +4 -0
- package/es/table/pivot/pivot-utils/interfaces.d.ts +12 -0
- package/es/table/pivot/pivot-utils/interfaces.js +0 -0
- package/es/table/pivot/pivot-utils/simpleEncode.d.ts +1 -0
- package/es/table/pivot/pivot-utils/simpleEncode.js +7 -0
- package/es/table/style/css.js +2 -0
- package/es/table/style/index.css +0 -0
- package/es/table/style/index.d.ts +2 -0
- package/es/table/style/index.js +2 -0
- package/es/table/style/index.less +1 -0
- package/es/table/transforms/autoRowSpan.d.ts +3 -0
- package/es/table/transforms/autoRowSpan.js +73 -0
- package/es/table/transforms/autoWidth.d.ts +25 -0
- package/es/table/transforms/autoWidth.js +160 -0
- package/es/table/transforms/buildTree.d.ts +3 -0
- package/es/table/transforms/buildTree.js +15 -0
- package/es/table/transforms/columnHover.d.ts +17 -0
- package/es/table/transforms/columnHover.js +59 -0
- package/es/table/transforms/columnRangeHover.d.ts +17 -0
- package/es/table/transforms/columnRangeHover.js +94 -0
- package/es/table/transforms/columnResize.d.ts +27 -0
- package/es/table/transforms/columnResize.js +152 -0
- package/es/table/transforms/flatten.d.ts +3 -0
- package/es/table/transforms/flatten.js +16 -0
- package/es/table/transforms/index.d.ts +12 -0
- package/es/table/transforms/index.js +12 -0
- package/es/table/transforms/orderField.d.ts +3 -0
- package/es/table/transforms/orderField.js +22 -0
- package/es/table/transforms/sort.d.ts +43 -0
- package/es/table/transforms/sort.js +338 -0
- package/es/table/transforms/tips.d.ts +8 -0
- package/es/table/transforms/tips.js +54 -0
- package/es/table/transforms/treeMode.d.ts +30 -0
- package/es/table/transforms/treeMode.js +252 -0
- package/es/table/transforms/visible.d.ts +5 -0
- package/es/table/transforms/visible.js +19 -0
- package/es/table/transforms/warnTransformsDeprecated.d.ts +1 -0
- package/es/table/transforms/warnTransformsDeprecated.js +8 -0
- package/es/table/use/useResizeObserver.d.ts +2 -0
- package/es/table/use/useResizeObserver.js +20 -0
- package/es/table/utils/applyTransforms.d.ts +6 -0
- package/es/table/utils/applyTransforms.js +15 -0
- package/es/table/utils/buildTree.d.ts +36 -0
- package/es/table/utils/buildTree.js +119 -0
- package/es/table/utils/collectNodes.d.ts +8 -0
- package/es/table/utils/collectNodes.js +59 -0
- package/es/table/utils/console.d.ts +11 -0
- package/es/table/utils/console.js +58 -0
- package/es/table/utils/copyToClipboard.d.ts +3 -0
- package/es/table/utils/copyToClipboard.js +30 -0
- package/es/table/utils/element.d.ts +42 -0
- package/es/table/utils/element.js +228 -0
- package/es/table/utils/exportTableAsExcel.d.ts +4 -0
- package/es/table/utils/exportTableAsExcel.js +188 -0
- package/es/table/utils/getTreeDepth.d.ts +3 -0
- package/es/table/utils/getTreeDepth.js +41 -0
- package/es/table/utils/groupBy.d.ts +1 -0
- package/es/table/utils/groupBy.js +37 -0
- package/es/table/utils/index.d.ts +18 -0
- package/es/table/utils/index.js +18 -0
- package/es/table/utils/isGroupColumn.d.ts +2 -0
- package/es/table/utils/isGroupColumn.js +7 -0
- package/es/table/utils/isLeafNode.d.ts +2 -0
- package/es/table/utils/isLeafNode.js +4 -0
- package/es/table/utils/layeredFilter.d.ts +2 -0
- package/es/table/utils/layeredFilter.js +25 -0
- package/es/table/utils/layeredSort.d.ts +5 -0
- package/es/table/utils/layeredSort.js +26 -0
- package/es/table/utils/makeRecursiveMapper.d.ts +9 -0
- package/es/table/utils/makeRecursiveMapper.js +76 -0
- package/es/table/utils/mergeCellProps.d.ts +8 -0
- package/es/table/utils/mergeCellProps.js +67 -0
- package/es/table/utils/others.d.ts +16 -0
- package/es/table/utils/others.js +80 -0
- package/es/table/utils/proto.d.ts +21 -0
- package/es/table/utils/proto.js +106 -0
- package/es/table/utils/smartCompare.d.ts +9 -0
- package/es/table/utils/smartCompare.js +51 -0
- package/es/table/utils/traverseColumn.d.ts +11 -0
- package/es/table/utils/traverseColumn.js +88 -0
- package/es/table/utils/tree-data-helpers/StrictTreeDataHelper.d.ts +22 -0
- package/es/table/utils/tree-data-helpers/StrictTreeDataHelper.js +138 -0
- package/es/table/utils/tree-data-helpers/TreeDataHelper.d.ts +26 -0
- package/es/table/utils/tree-data-helpers/TreeDataHelper.js +337 -0
- package/lib/_utils/arrayUtil.d.ts +5 -0
- package/lib/_utils/arrayUtil.js +26 -0
- package/lib/_utils/devwarning.d.ts +1 -0
- package/lib/_utils/devwarning.js +21 -0
- package/lib/_utils/formatUtil.d.ts +46 -0
- package/lib/_utils/formatUtil.js +358 -0
- package/lib/_utils/hooks.d.ts +51 -0
- package/lib/_utils/hooks.js +187 -0
- package/lib/_utils/index.d.ts +8 -0
- package/lib/_utils/index.js +28 -0
- package/lib/_utils/numberUtil.d.ts +34 -0
- package/lib/_utils/numberUtil.js +202 -0
- package/lib/_utils/omit.d.ts +1 -0
- package/lib/_utils/omit.js +21 -0
- package/lib/_utils/react-children.d.ts +2 -0
- package/lib/_utils/react-children.js +20 -0
- package/lib/_utils/type.d.ts +12 -0
- package/lib/_utils/type.js +27 -0
- package/lib/_utils/usePopper.d.ts +29 -0
- package/lib/_utils/usePopper.js +574 -0
- package/lib/config-provider/ConfigContext.d.ts +22 -0
- package/lib/config-provider/ConfigContext.js +19 -0
- package/lib/config-provider/compDefaultProps.d.ts +8 -0
- package/lib/config-provider/compDefaultProps.js +17 -0
- package/lib/config-provider/configProvider.d.ts +11 -0
- package/lib/config-provider/configProvider.js +56 -0
- package/lib/config-provider/defaultConfig.d.ts +10 -0
- package/lib/config-provider/defaultConfig.js +30 -0
- package/lib/config-provider/index.d.ts +6 -0
- package/lib/config-provider/index.js +37 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +45 -0
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +25 -0
- package/lib/locale/locale.d.ts +50 -0
- package/lib/locale/locale.js +277 -0
- package/lib/locale/zh-CN.d.ts +8 -0
- package/lib/locale/zh-CN.js +15 -0
- package/lib/style/color/colors.less +2 -0
- package/lib/style/components.less +1 -0
- package/lib/style/core/index.less +2 -0
- package/lib/style/core/motion/other.less +28 -0
- package/lib/style/core/motion/slide.less +53 -0
- package/lib/style/core/motion.less +2 -0
- package/lib/style/core/reset.less +186 -0
- package/lib/style/css.js +3 -0
- package/lib/style/index.css +410 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/style/index.js +3 -0
- package/lib/style/index.less +2 -0
- package/lib/style/mixins/index.less +19 -0
- package/lib/style/mixins/overlay.less +22 -0
- package/lib/style/mixins/reset.less +13 -0
- package/lib/style/themes/default.less +445 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/table/base/calculations.d.ts +5 -0
- package/lib/table/base/calculations.js +385 -0
- package/lib/table/base/colgroup.d.ts +5 -0
- package/lib/table/base/colgroup.js +33 -0
- package/lib/table/base/empty.d.ts +9 -0
- package/lib/table/base/empty.js +54 -0
- package/lib/table/base/header.d.ts +5 -0
- package/lib/table/base/header.js +340 -0
- package/lib/table/base/helpers/SpanManager.d.ts +9 -0
- package/lib/table/base/helpers/SpanManager.js +59 -0
- package/lib/table/base/helpers/TableDOMUtils.d.ts +18 -0
- package/lib/table/base/helpers/TableDOMUtils.js +113 -0
- package/lib/table/base/helpers/__test__/SpanManager.test.d.ts +1 -0
- package/lib/table/base/helpers/__test__/SpanManager.test.js +23 -0
- package/lib/table/base/helpers/__test__/TableDOMUtils.test.d.ts +1 -0
- package/lib/table/base/helpers/__test__/TableDOMUtils.test.js +41 -0
- package/lib/table/base/helpers/__test__/rowHeightManager.test.d.ts +1 -0
- package/lib/table/base/helpers/__test__/rowHeightManager.test.js +33 -0
- package/lib/table/base/helpers/__test__/visible-part.test.d.ts +1 -0
- package/lib/table/base/helpers/__test__/visible-part.test.js +31 -0
- package/lib/table/base/helpers/rowHeightManager.d.ts +7 -0
- package/lib/table/base/helpers/rowHeightManager.js +170 -0
- package/lib/table/base/helpers/visible-part.d.ts +23 -0
- package/lib/table/base/helpers/visible-part.js +72 -0
- package/lib/table/base/html-table.d.ts +15 -0
- package/lib/table/base/html-table.js +149 -0
- package/lib/table/base/index.d.ts +3 -0
- package/lib/table/base/index.js +21 -0
- package/lib/table/base/interfaces.d.ts +54 -0
- package/lib/table/base/interfaces.js +0 -0
- package/lib/table/base/loading.d.ts +13 -0
- package/lib/table/base/loading.js +71 -0
- package/lib/table/base/styles.d.ts +132 -0
- package/lib/table/base/styles.js +136 -0
- package/lib/table/base/table.d.ts +150 -0
- package/lib/table/base/table.js +773 -0
- package/lib/table/base/utils.d.ts +36 -0
- package/lib/table/base/utils.js +234 -0
- package/lib/table/common-views.d.ts +24 -0
- package/lib/table/common-views.js +90 -0
- package/lib/table/index.d.ts +6 -0
- package/lib/table/index.js +85 -0
- package/lib/table/interfaces.d.ts +98 -0
- package/lib/table/interfaces.js +0 -0
- package/lib/table/internals.d.ts +14 -0
- package/lib/table/internals.js +64 -0
- package/lib/table/pipeline/features/__test__/multiSelect.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/multiSelect.test.js +163 -0
- package/lib/table/pipeline/features/__test__/rowDetail.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/rowDetail.test.js +230 -0
- package/lib/table/pipeline/features/__test__/rowGrouping.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/rowGrouping.test.js +129 -0
- package/lib/table/pipeline/features/__test__/singleSelect.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/singleSelect.test.js +201 -0
- package/lib/table/pipeline/features/__test__/sort.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/sort.test.js +218 -0
- package/lib/table/pipeline/features/__test__/tips.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/tips.test.js +133 -0
- package/lib/table/pipeline/features/__test__/treeMode.test.d.ts +1 -0
- package/lib/table/pipeline/features/__test__/treeMode.test.js +206 -0
- package/lib/table/pipeline/features/autoFill.d.ts +4 -0
- package/lib/table/pipeline/features/autoFill.js +80 -0
- package/lib/table/pipeline/features/autoRowSpan.d.ts +2 -0
- package/lib/table/pipeline/features/autoRowSpan.js +84 -0
- package/lib/table/pipeline/features/buildTree.d.ts +2 -0
- package/lib/table/pipeline/features/buildTree.js +16 -0
- package/lib/table/pipeline/features/columnDrag.d.ts +6 -0
- package/lib/table/pipeline/features/columnDrag.js +278 -0
- package/lib/table/pipeline/features/columnFilter.d.ts +20 -0
- package/lib/table/pipeline/features/columnFilter.js +197 -0
- package/lib/table/pipeline/features/columnHover.d.ts +12 -0
- package/lib/table/pipeline/features/columnHover.js +62 -0
- package/lib/table/pipeline/features/columnRangeHover.d.ts +15 -0
- package/lib/table/pipeline/features/columnRangeHover.js +95 -0
- package/lib/table/pipeline/features/columnResizeWidth.d.ts +21 -0
- package/lib/table/pipeline/features/columnResizeWidth.js +192 -0
- package/lib/table/pipeline/features/contextMenu.d.ts +14 -0
- package/lib/table/pipeline/features/contextMenu.js +397 -0
- package/lib/table/pipeline/features/filter/DefaultFilterContent.d.ts +4 -0
- package/lib/table/pipeline/features/filter/DefaultFilterContent.js +112 -0
- package/lib/table/pipeline/features/filter/Filter.d.ts +17 -0
- package/lib/table/pipeline/features/filter/Filter.js +129 -0
- package/lib/table/pipeline/features/filter/FilterPanel.d.ts +20 -0
- package/lib/table/pipeline/features/filter/FilterPanel.js +98 -0
- package/lib/table/pipeline/features/filter/__test__/Filter.test.d.ts +1 -0
- package/lib/table/pipeline/features/filter/__test__/Filter.test.js +36 -0
- package/lib/table/pipeline/features/filter/index.d.ts +4 -0
- package/lib/table/pipeline/features/filter/index.js +39 -0
- package/lib/table/pipeline/features/filter/util.d.ts +10 -0
- package/lib/table/pipeline/features/filter/util.js +77 -0
- package/lib/table/pipeline/features/index.d.ts +16 -0
- package/lib/table/pipeline/features/index.js +141 -0
- package/lib/table/pipeline/features/multiSelect.d.ts +27 -0
- package/lib/table/pipeline/features/multiSelect.js +227 -0
- package/lib/table/pipeline/features/rowDetail.d.ts +35 -0
- package/lib/table/pipeline/features/rowDetail.js +283 -0
- package/lib/table/pipeline/features/rowGrouping.d.ts +14 -0
- package/lib/table/pipeline/features/rowGrouping.js +227 -0
- package/lib/table/pipeline/features/singleSelect.d.ts +23 -0
- package/lib/table/pipeline/features/singleSelect.js +138 -0
- package/lib/table/pipeline/features/sort.d.ts +40 -0
- package/lib/table/pipeline/features/sort.js +361 -0
- package/lib/table/pipeline/features/tips.d.ts +2 -0
- package/lib/table/pipeline/features/tips.js +73 -0
- package/lib/table/pipeline/features/treeMode.d.ts +37 -0
- package/lib/table/pipeline/features/treeMode.js +266 -0
- package/lib/table/pipeline/features/treeSelect.d.ts +38 -0
- package/lib/table/pipeline/features/treeSelect.js +169 -0
- package/lib/table/pipeline/index.d.ts +3 -0
- package/lib/table/pipeline/index.js +26 -0
- package/lib/table/pipeline/pipeline.d.ts +85 -0
- package/lib/table/pipeline/pipeline.js +291 -0
- package/lib/table/pivot/cross-table/buildCrossTable.d.ts +14 -0
- package/lib/table/pivot/cross-table/buildCrossTable.js +313 -0
- package/lib/table/pivot/cross-table/constants.d.ts +1 -0
- package/lib/table/pivot/cross-table/constants.js +8 -0
- package/lib/table/pivot/cross-table/cross-table.d.ts +18 -0
- package/lib/table/pivot/cross-table/cross-table.js +71 -0
- package/lib/table/pivot/cross-table/index.d.ts +4 -0
- package/lib/table/pivot/cross-table/index.js +31 -0
- package/lib/table/pivot/cross-table/interfaces.d.ts +29 -0
- package/lib/table/pivot/cross-table/interfaces.js +0 -0
- package/lib/table/pivot/cross-table/internals.d.ts +13 -0
- package/lib/table/pivot/cross-table/internals.js +0 -0
- package/lib/table/pivot/cross-tree-table/buildCrossTreeTable.d.ts +14 -0
- package/lib/table/pivot/cross-tree-table/buildCrossTreeTable.js +240 -0
- package/lib/table/pivot/cross-tree-table/cross-tree-table.d.ts +38 -0
- package/lib/table/pivot/cross-tree-table/cross-tree-table.js +144 -0
- package/lib/table/pivot/cross-tree-table/index.d.ts +2 -0
- package/lib/table/pivot/cross-tree-table/index.js +23 -0
- package/lib/table/pivot/pivot-utils/buildDrillTree.d.ts +16 -0
- package/lib/table/pivot/pivot-utils/buildDrillTree.js +106 -0
- package/lib/table/pivot/pivot-utils/builders.d.ts +26 -0
- package/lib/table/pivot/pivot-utils/builders.js +272 -0
- package/lib/table/pivot/pivot-utils/convert-utils.d.ts +31 -0
- package/lib/table/pivot/pivot-utils/convert-utils.js +204 -0
- package/lib/table/pivot/pivot-utils/index.d.ts +5 -0
- package/lib/table/pivot/pivot-utils/index.js +59 -0
- package/lib/table/pivot/pivot-utils/interfaces.d.ts +12 -0
- package/lib/table/pivot/pivot-utils/interfaces.js +0 -0
- package/lib/table/pivot/pivot-utils/simpleEncode.d.ts +1 -0
- package/lib/table/pivot/pivot-utils/simpleEncode.js +14 -0
- package/lib/table/style/css.js +5 -0
- package/lib/table/style/index.css +0 -0
- package/lib/table/style/index.d.ts +2 -0
- package/lib/table/style/index.js +5 -0
- package/lib/table/style/index.less +1 -0
- package/lib/table/transforms/autoRowSpan.d.ts +3 -0
- package/lib/table/transforms/autoRowSpan.js +86 -0
- package/lib/table/transforms/autoWidth.d.ts +25 -0
- package/lib/table/transforms/autoWidth.js +187 -0
- package/lib/table/transforms/buildTree.d.ts +3 -0
- package/lib/table/transforms/buildTree.js +23 -0
- package/lib/table/transforms/columnHover.d.ts +17 -0
- package/lib/table/transforms/columnHover.js +74 -0
- package/lib/table/transforms/columnRangeHover.d.ts +17 -0
- package/lib/table/transforms/columnRangeHover.js +110 -0
- package/lib/table/transforms/columnResize.d.ts +27 -0
- package/lib/table/transforms/columnResize.js +176 -0
- package/lib/table/transforms/flatten.d.ts +3 -0
- package/lib/table/transforms/flatten.js +24 -0
- package/lib/table/transforms/index.d.ts +12 -0
- package/lib/table/transforms/index.js +131 -0
- package/lib/table/transforms/orderField.d.ts +3 -0
- package/lib/table/transforms/orderField.js +33 -0
- package/lib/table/transforms/sort.d.ts +43 -0
- package/lib/table/transforms/sort.js +369 -0
- package/lib/table/transforms/tips.d.ts +8 -0
- package/lib/table/transforms/tips.js +71 -0
- package/lib/table/transforms/treeMode.d.ts +30 -0
- package/lib/table/transforms/treeMode.js +286 -0
- package/lib/table/transforms/visible.d.ts +5 -0
- package/lib/table/transforms/visible.js +31 -0
- package/lib/table/transforms/warnTransformsDeprecated.d.ts +1 -0
- package/lib/table/transforms/warnTransformsDeprecated.js +19 -0
- package/lib/table/use/useResizeObserver.d.ts +2 -0
- package/lib/table/use/useResizeObserver.js +32 -0
- package/lib/table/utils/applyTransforms.d.ts +6 -0
- package/lib/table/utils/applyTransforms.js +24 -0
- package/lib/table/utils/buildTree.d.ts +36 -0
- package/lib/table/utils/buildTree.js +140 -0
- package/lib/table/utils/collectNodes.d.ts +8 -0
- package/lib/table/utils/collectNodes.js +72 -0
- package/lib/table/utils/console.d.ts +11 -0
- package/lib/table/utils/console.js +68 -0
- package/lib/table/utils/copyToClipboard.d.ts +3 -0
- package/lib/table/utils/copyToClipboard.js +40 -0
- package/lib/table/utils/element.d.ts +42 -0
- package/lib/table/utils/element.js +243 -0
- package/lib/table/utils/exportTableAsExcel.d.ts +4 -0
- package/lib/table/utils/exportTableAsExcel.js +205 -0
- package/lib/table/utils/getTreeDepth.d.ts +3 -0
- package/lib/table/utils/getTreeDepth.js +54 -0
- package/lib/table/utils/groupBy.d.ts +1 -0
- package/lib/table/utils/groupBy.js +48 -0
- package/lib/table/utils/index.d.ts +18 -0
- package/lib/table/utils/index.js +187 -0
- package/lib/table/utils/isGroupColumn.d.ts +2 -0
- package/lib/table/utils/isGroupColumn.js +17 -0
- package/lib/table/utils/isLeafNode.d.ts +2 -0
- package/lib/table/utils/isLeafNode.js +11 -0
- package/lib/table/utils/layeredFilter.d.ts +2 -0
- package/lib/table/utils/layeredFilter.js +38 -0
- package/lib/table/utils/layeredSort.d.ts +5 -0
- package/lib/table/utils/layeredSort.js +37 -0
- package/lib/table/utils/makeRecursiveMapper.d.ts +9 -0
- package/lib/table/utils/makeRecursiveMapper.js +94 -0
- package/lib/table/utils/mergeCellProps.d.ts +8 -0
- package/lib/table/utils/mergeCellProps.js +78 -0
- package/lib/table/utils/others.d.ts +16 -0
- package/lib/table/utils/others.js +108 -0
- package/lib/table/utils/proto.d.ts +21 -0
- package/lib/table/utils/proto.js +117 -0
- package/lib/table/utils/smartCompare.d.ts +9 -0
- package/lib/table/utils/smartCompare.js +58 -0
- package/lib/table/utils/traverseColumn.d.ts +11 -0
- package/lib/table/utils/traverseColumn.js +103 -0
- package/lib/table/utils/tree-data-helpers/StrictTreeDataHelper.d.ts +22 -0
- package/lib/table/utils/tree-data-helpers/StrictTreeDataHelper.js +154 -0
- package/lib/table/utils/tree-data-helpers/TreeDataHelper.d.ts +26 -0
- package/lib/table/utils/tree-data-helpers/TreeDataHelper.js +358 -0
- package/package.json +213 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* normalize.css 和现有产品的结合版本, 根据兼容性进行了调整 */
|
|
4
|
+
/* Document
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
/* Sections
|
|
8
|
+
========================================================================== */
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Remove the margin in all browsers.
|
|
12
|
+
*/
|
|
13
|
+
html,body {
|
|
14
|
+
height: 100%;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 0;
|
|
17
|
+
font-size:12px;
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
html,body,input, textarea, select, button{
|
|
22
|
+
font-family:"Microsoft YaHei","PingFangSC-Regular","Helvetica Neue", Helvetica, Arial,"Hiragino Sans GB","WenQuanYi Micro Hei", sans-serif;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
body {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Remove the gray background on active links in IE 10.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
a {
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/* Forms
|
|
39
|
+
========================================================================== */
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*/
|
|
43
|
+
input {
|
|
44
|
+
padding: 0;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 1. Change the font styles in all browsers.
|
|
49
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
button,
|
|
53
|
+
input,
|
|
54
|
+
optgroup,
|
|
55
|
+
select,
|
|
56
|
+
textarea {
|
|
57
|
+
margin: 0; /* 2 */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Show the overflow in IE.
|
|
62
|
+
* 1. Show the overflow in Edge.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
button,
|
|
66
|
+
input { /* 1 */
|
|
67
|
+
overflow: visible;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
72
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
button,
|
|
76
|
+
select { /* 1 */
|
|
77
|
+
text-transform: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
button,
|
|
85
|
+
[type="button"],
|
|
86
|
+
[type="reset"],
|
|
87
|
+
[type="submit"] {
|
|
88
|
+
-webkit-appearance: button;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Remove the inner border and padding in Firefox.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
button::-moz-focus-inner,
|
|
96
|
+
[type="button"]::-moz-focus-inner,
|
|
97
|
+
[type="reset"]::-moz-focus-inner,
|
|
98
|
+
[type="submit"]::-moz-focus-inner {
|
|
99
|
+
border-style: none;
|
|
100
|
+
padding: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Restore the focus styles unset by the previous rule.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
button:-moz-focusring,
|
|
108
|
+
[type="button"]:-moz-focusring,
|
|
109
|
+
[type="reset"]:-moz-focusring,
|
|
110
|
+
[type="submit"]:-moz-focusring {
|
|
111
|
+
outline: 1px dotted ButtonText;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
progress {
|
|
119
|
+
vertical-align: baseline;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
textarea {
|
|
127
|
+
overflow: auto;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 1. Add the correct box sizing in IE 10.
|
|
132
|
+
* 2. Remove the padding in IE 10.
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
[type="checkbox"],
|
|
136
|
+
[type="radio"] {
|
|
137
|
+
box-sizing: border-box; /* 1 */
|
|
138
|
+
padding: 0; /* 2 */
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
146
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
147
|
+
height: auto;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
152
|
+
* 2. Correct the outline style in Safari.
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
[type="search"] {
|
|
156
|
+
-webkit-appearance: textfield; /* 1 */
|
|
157
|
+
outline-offset: -2px; /* 2 */
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
[type="search"]::-webkit-search-decoration {
|
|
165
|
+
-webkit-appearance: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/* Misc
|
|
170
|
+
========================================================================== */
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Add the correct display in IE 10+.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
template {
|
|
177
|
+
display: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Add the correct display in IE 10.
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
[hidden] {
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
package/lib/style/css.js
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
/* ----------- color ——————---- start */
|
|
2
|
+
/* ----------- color ——————---- end */
|
|
3
|
+
/* ----------- font ——————---- start */
|
|
4
|
+
/* ----------- font ——————---- end */
|
|
5
|
+
/* ----------- zIndex ——————---- start */
|
|
6
|
+
/*
|
|
7
|
+
普通组件内部自身层级应设置在0-100间
|
|
8
|
+
*/
|
|
9
|
+
/* ----------- zIndex ——————---- end */
|
|
10
|
+
/* ----------- transition ——————---- start */
|
|
11
|
+
/* ----------- transition ——————---- end */
|
|
12
|
+
/* ----------- Button ——————---- start */
|
|
13
|
+
/* ----------- Button ——————---- end */
|
|
14
|
+
/* ----------- Collapse ——————---- start */
|
|
15
|
+
/* ----------- Collapse ——————---- end */
|
|
16
|
+
/* ----------- Switch ——————---- start */
|
|
17
|
+
/* ----------- Switch ——————---- end */
|
|
18
|
+
/* ----------- Input ——————---- start */
|
|
19
|
+
/* ----------- Input ——————---- end */
|
|
20
|
+
/* ----------- InputNumber ——————---- start */
|
|
21
|
+
/* ----------- InputNumber ——————---- end */
|
|
22
|
+
/* ----------- checkbox ——————---- start */
|
|
23
|
+
/* ----------- checkbox ——————---- end */
|
|
24
|
+
/* ----------- Radio ——————---- start */
|
|
25
|
+
/* ----------- Radio ——————---- end */
|
|
26
|
+
/* ----------- icon ——————---- start */
|
|
27
|
+
/* ----------- icon ——————---- end */
|
|
28
|
+
/* ----------- Popconfirm ——————---- start */
|
|
29
|
+
/* ----------- Popconfirm ——————---- end */
|
|
30
|
+
/* ----------- Popover ——————---- start */
|
|
31
|
+
/* ----------- Popover ——————---- end */
|
|
32
|
+
/* ----------- Progress ——————---- start */
|
|
33
|
+
/* ----------- Progress ——————---- end */
|
|
34
|
+
/* ----------- Pagination ——————---- start */
|
|
35
|
+
/* ----------- Pagination ——————---- end */
|
|
36
|
+
/* ----------- Timeline ——————---- start */
|
|
37
|
+
/* ----------- Timeline ——————---- end */
|
|
38
|
+
/* ----------- Tabs ——————---- start */
|
|
39
|
+
/* ----------- Tabs ——————---- end */
|
|
40
|
+
/* ----------- Select ——————---- start */
|
|
41
|
+
/* ----------- Select ——————---- end */
|
|
42
|
+
/* ----------- Rate ——————---- start */
|
|
43
|
+
/* ----------- Rate ——————---- end */
|
|
44
|
+
/* ----------- Dropdown ——————---- start */
|
|
45
|
+
/* ----------- Dropdown ——————---- end */
|
|
46
|
+
/* ----------- Tooltip ——————---- start */
|
|
47
|
+
/* ----------- Tooltip ——————---- end */
|
|
48
|
+
/* ----------- Transfer ——————---- start */
|
|
49
|
+
/* ----------- Transfer ——————---- end */
|
|
50
|
+
/* ----------- Alert ——————---- start */
|
|
51
|
+
/* ----------- Alert ——————---- end */
|
|
52
|
+
/* ----------- Split-Panel ——————---- start */
|
|
53
|
+
/* ----------- Split-Panel ——————---- end */
|
|
54
|
+
/* ----------- Modal ——————---- start */
|
|
55
|
+
/* ----------- Modal ——————---- end */
|
|
56
|
+
/* ----------- Steps ——————---- start */
|
|
57
|
+
/* ----------- Steps ——————---- end */
|
|
58
|
+
/* ----------- Tag ——————---- start */
|
|
59
|
+
/* ----------- Tag ——————---- end */
|
|
60
|
+
@-webkit-keyframes loadingcircle {
|
|
61
|
+
100% {
|
|
62
|
+
-webkit-transform: rotate(360deg);
|
|
63
|
+
transform: rotate(360deg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@keyframes loadingcircle {
|
|
67
|
+
100% {
|
|
68
|
+
-webkit-transform: rotate(360deg);
|
|
69
|
+
transform: rotate(360deg);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@-webkit-keyframes waveEffect {
|
|
73
|
+
100% {
|
|
74
|
+
-webkit-box-shadow: 0 0 0 6px #5582f3;
|
|
75
|
+
box-shadow: 0 0 0 6px #5582f3;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
@keyframes waveEffect {
|
|
79
|
+
100% {
|
|
80
|
+
-webkit-box-shadow: 0 0 0 6px #5582f3;
|
|
81
|
+
box-shadow: 0 0 0 6px #5582f3;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
@-webkit-keyframes fadeEffect {
|
|
85
|
+
100% {
|
|
86
|
+
opacity: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
@keyframes fadeEffect {
|
|
90
|
+
100% {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@-webkit-keyframes kdRadioEffect {
|
|
95
|
+
0% {
|
|
96
|
+
-webkit-transform: translateY(-50%) scale(0.5);
|
|
97
|
+
transform: translateY(-50%) scale(0.5);
|
|
98
|
+
opacity: 0;
|
|
99
|
+
}
|
|
100
|
+
100% {
|
|
101
|
+
-webkit-transform: translateY(-50%) scale(1);
|
|
102
|
+
transform: translateY(-50%) scale(1);
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@keyframes kdRadioEffect {
|
|
107
|
+
0% {
|
|
108
|
+
-webkit-transform: translateY(-50%) scale(0.5);
|
|
109
|
+
transform: translateY(-50%) scale(0.5);
|
|
110
|
+
opacity: 0;
|
|
111
|
+
}
|
|
112
|
+
100% {
|
|
113
|
+
-webkit-transform: translateY(-50%) scale(1);
|
|
114
|
+
transform: translateY(-50%) scale(1);
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@-webkit-keyframes kdSlideDownIn {
|
|
119
|
+
0% {
|
|
120
|
+
-webkit-transform: scaleY(0.8);
|
|
121
|
+
transform: scaleY(0.8);
|
|
122
|
+
-webkit-transform-origin: 50% 0%;
|
|
123
|
+
transform-origin: 50% 0%;
|
|
124
|
+
opacity: 0;
|
|
125
|
+
}
|
|
126
|
+
100% {
|
|
127
|
+
-webkit-transform: scaleY(1);
|
|
128
|
+
transform: scaleY(1);
|
|
129
|
+
-webkit-transform-origin: 50% 0%;
|
|
130
|
+
transform-origin: 50% 0%;
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
@keyframes kdSlideDownIn {
|
|
135
|
+
0% {
|
|
136
|
+
-webkit-transform: scaleY(0.8);
|
|
137
|
+
transform: scaleY(0.8);
|
|
138
|
+
-webkit-transform-origin: 50% 0%;
|
|
139
|
+
transform-origin: 50% 0%;
|
|
140
|
+
opacity: 0;
|
|
141
|
+
}
|
|
142
|
+
100% {
|
|
143
|
+
-webkit-transform: scaleY(1);
|
|
144
|
+
transform: scaleY(1);
|
|
145
|
+
-webkit-transform-origin: 50% 0%;
|
|
146
|
+
transform-origin: 50% 0%;
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@-webkit-keyframes kdSlideDownOut {
|
|
151
|
+
0% {
|
|
152
|
+
-webkit-transform: scaleY(1);
|
|
153
|
+
transform: scaleY(1);
|
|
154
|
+
-webkit-transform-origin: 50% 0%;
|
|
155
|
+
transform-origin: 50% 0%;
|
|
156
|
+
opacity: 1;
|
|
157
|
+
}
|
|
158
|
+
100% {
|
|
159
|
+
-webkit-transform: scaleY(0.9);
|
|
160
|
+
transform: scaleY(0.9);
|
|
161
|
+
-webkit-transform-origin: 50% 0%;
|
|
162
|
+
transform-origin: 50% 0%;
|
|
163
|
+
opacity: 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
@keyframes kdSlideDownOut {
|
|
167
|
+
0% {
|
|
168
|
+
-webkit-transform: scaleY(1);
|
|
169
|
+
transform: scaleY(1);
|
|
170
|
+
-webkit-transform-origin: 50% 0%;
|
|
171
|
+
transform-origin: 50% 0%;
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
174
|
+
100% {
|
|
175
|
+
-webkit-transform: scaleY(0.9);
|
|
176
|
+
transform: scaleY(0.9);
|
|
177
|
+
-webkit-transform-origin: 50% 0%;
|
|
178
|
+
transform-origin: 50% 0%;
|
|
179
|
+
opacity: 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
@-webkit-keyframes kdSlideUpIn {
|
|
183
|
+
0% {
|
|
184
|
+
-webkit-transform-origin: 50% 100%;
|
|
185
|
+
transform-origin: 50% 100%;
|
|
186
|
+
opacity: 0;
|
|
187
|
+
}
|
|
188
|
+
5% {
|
|
189
|
+
-webkit-transform: scaleY(0.8);
|
|
190
|
+
transform: scaleY(0.8);
|
|
191
|
+
}
|
|
192
|
+
100% {
|
|
193
|
+
-webkit-transform: scaleY(1);
|
|
194
|
+
transform: scaleY(1);
|
|
195
|
+
-webkit-transform-origin: 50% 100%;
|
|
196
|
+
transform-origin: 50% 100%;
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
@keyframes kdSlideUpIn {
|
|
201
|
+
0% {
|
|
202
|
+
-webkit-transform-origin: 50% 100%;
|
|
203
|
+
transform-origin: 50% 100%;
|
|
204
|
+
opacity: 0;
|
|
205
|
+
}
|
|
206
|
+
5% {
|
|
207
|
+
-webkit-transform: scaleY(0.8);
|
|
208
|
+
transform: scaleY(0.8);
|
|
209
|
+
}
|
|
210
|
+
100% {
|
|
211
|
+
-webkit-transform: scaleY(1);
|
|
212
|
+
transform: scaleY(1);
|
|
213
|
+
-webkit-transform-origin: 50% 100%;
|
|
214
|
+
transform-origin: 50% 100%;
|
|
215
|
+
opacity: 1;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
@-webkit-keyframes kdSlideUpOut {
|
|
219
|
+
0% {
|
|
220
|
+
-webkit-transform: scaleY(1);
|
|
221
|
+
transform: scaleY(1);
|
|
222
|
+
-webkit-transform-origin: 50% 100%;
|
|
223
|
+
transform-origin: 50% 100%;
|
|
224
|
+
opacity: 1;
|
|
225
|
+
}
|
|
226
|
+
100% {
|
|
227
|
+
-webkit-transform: scaleY(0.9);
|
|
228
|
+
transform: scaleY(0.9);
|
|
229
|
+
-webkit-transform-origin: 50% 100%;
|
|
230
|
+
transform-origin: 50% 100%;
|
|
231
|
+
opacity: 0;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
@keyframes kdSlideUpOut {
|
|
235
|
+
0% {
|
|
236
|
+
-webkit-transform: scaleY(1);
|
|
237
|
+
transform: scaleY(1);
|
|
238
|
+
-webkit-transform-origin: 50% 100%;
|
|
239
|
+
transform-origin: 50% 100%;
|
|
240
|
+
opacity: 1;
|
|
241
|
+
}
|
|
242
|
+
100% {
|
|
243
|
+
-webkit-transform: scaleY(0.9);
|
|
244
|
+
transform: scaleY(0.9);
|
|
245
|
+
-webkit-transform-origin: 50% 100%;
|
|
246
|
+
transform-origin: 50% 100%;
|
|
247
|
+
opacity: 0;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
251
|
+
/* normalize.css 和现有产品的结合版本, 根据兼容性进行了调整 */
|
|
252
|
+
/* Document
|
|
253
|
+
========================================================================== */
|
|
254
|
+
/* Sections
|
|
255
|
+
========================================================================== */
|
|
256
|
+
/**
|
|
257
|
+
* Remove the margin in all browsers.
|
|
258
|
+
*/
|
|
259
|
+
html,
|
|
260
|
+
body {
|
|
261
|
+
height: 100%;
|
|
262
|
+
padding: 0;
|
|
263
|
+
margin: 0;
|
|
264
|
+
font-size: 12px;
|
|
265
|
+
}
|
|
266
|
+
html,
|
|
267
|
+
body,
|
|
268
|
+
input,
|
|
269
|
+
textarea,
|
|
270
|
+
select,
|
|
271
|
+
button {
|
|
272
|
+
font-family: "Microsoft YaHei", "PingFangSC-Regular", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
|
|
273
|
+
}
|
|
274
|
+
body {
|
|
275
|
+
-webkit-box-sizing: border-box;
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Remove the gray background on active links in IE 10.
|
|
280
|
+
*/
|
|
281
|
+
a {
|
|
282
|
+
background-color: transparent;
|
|
283
|
+
}
|
|
284
|
+
/* Forms
|
|
285
|
+
========================================================================== */
|
|
286
|
+
/**
|
|
287
|
+
*/
|
|
288
|
+
input {
|
|
289
|
+
padding: 0;
|
|
290
|
+
margin: 0;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* 1. Change the font styles in all browsers.
|
|
294
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
295
|
+
*/
|
|
296
|
+
button,
|
|
297
|
+
input,
|
|
298
|
+
optgroup,
|
|
299
|
+
select,
|
|
300
|
+
textarea {
|
|
301
|
+
margin: 0;
|
|
302
|
+
/* 2 */
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Show the overflow in IE.
|
|
306
|
+
* 1. Show the overflow in Edge.
|
|
307
|
+
*/
|
|
308
|
+
button,
|
|
309
|
+
input {
|
|
310
|
+
/* 1 */
|
|
311
|
+
overflow: visible;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
315
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
316
|
+
*/
|
|
317
|
+
button,
|
|
318
|
+
select {
|
|
319
|
+
/* 1 */
|
|
320
|
+
text-transform: none;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
324
|
+
*/
|
|
325
|
+
button,
|
|
326
|
+
[type="button"],
|
|
327
|
+
[type="reset"],
|
|
328
|
+
[type="submit"] {
|
|
329
|
+
-webkit-appearance: button;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Remove the inner border and padding in Firefox.
|
|
333
|
+
*/
|
|
334
|
+
button::-moz-focus-inner,
|
|
335
|
+
[type="button"]::-moz-focus-inner,
|
|
336
|
+
[type="reset"]::-moz-focus-inner,
|
|
337
|
+
[type="submit"]::-moz-focus-inner {
|
|
338
|
+
border-style: none;
|
|
339
|
+
padding: 0;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Restore the focus styles unset by the previous rule.
|
|
343
|
+
*/
|
|
344
|
+
button:-moz-focusring,
|
|
345
|
+
[type="button"]:-moz-focusring,
|
|
346
|
+
[type="reset"]:-moz-focusring,
|
|
347
|
+
[type="submit"]:-moz-focusring {
|
|
348
|
+
outline: 1px dotted ButtonText;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
352
|
+
*/
|
|
353
|
+
progress {
|
|
354
|
+
vertical-align: baseline;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
358
|
+
*/
|
|
359
|
+
textarea {
|
|
360
|
+
overflow: auto;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* 1. Add the correct box sizing in IE 10.
|
|
364
|
+
* 2. Remove the padding in IE 10.
|
|
365
|
+
*/
|
|
366
|
+
[type="checkbox"],
|
|
367
|
+
[type="radio"] {
|
|
368
|
+
-webkit-box-sizing: border-box;
|
|
369
|
+
box-sizing: border-box;
|
|
370
|
+
/* 1 */
|
|
371
|
+
padding: 0;
|
|
372
|
+
/* 2 */
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
376
|
+
*/
|
|
377
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
378
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
379
|
+
height: auto;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
383
|
+
* 2. Correct the outline style in Safari.
|
|
384
|
+
*/
|
|
385
|
+
[type="search"] {
|
|
386
|
+
-webkit-appearance: textfield;
|
|
387
|
+
/* 1 */
|
|
388
|
+
outline-offset: -2px;
|
|
389
|
+
/* 2 */
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
393
|
+
*/
|
|
394
|
+
[type="search"]::-webkit-search-decoration {
|
|
395
|
+
-webkit-appearance: none;
|
|
396
|
+
}
|
|
397
|
+
/* Misc
|
|
398
|
+
========================================================================== */
|
|
399
|
+
/**
|
|
400
|
+
* Add the correct display in IE 10+.
|
|
401
|
+
*/
|
|
402
|
+
template {
|
|
403
|
+
display: none;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Add the correct display in IE 10.
|
|
407
|
+
*/
|
|
408
|
+
[hidden] {
|
|
409
|
+
display: none;
|
|
410
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Mixins
|
|
2
|
+
//----------------------------------------
|
|
3
|
+
@import 'reset';
|
|
4
|
+
|
|
5
|
+
/* 多行显示省略号 */
|
|
6
|
+
.multilpleEllipsis(@n: n) {
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
display: -webkit-box;
|
|
10
|
+
-webkit-line-clamp: @n;
|
|
11
|
+
-webkit-box-orient: vertical;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* 单行显示省略号 */
|
|
15
|
+
.ellipsis() {
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '../themes/default.less';
|
|
2
|
+
|
|
3
|
+
.overlay(@bgcolor, @isUseMaskZindex) {
|
|
4
|
+
position: fixed;
|
|
5
|
+
background-color: @bgcolor;
|
|
6
|
+
z-index: if(boolean(@isUseMaskZindex), @zIndex-masker, auto);
|
|
7
|
+
.overall-postion()
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.overall-postion {
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
top: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.static-overlay(@bgcolor, @isUseMaskZindex) {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
background-color: @bgcolor;
|
|
21
|
+
z-index: if(boolean(@isUseMaskZindex), @zIndex-masker, auto);
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import '../themes/index';
|
|
2
|
+
|
|
3
|
+
@font-variant: tabular-nums;
|
|
4
|
+
@font-feature-settings: 'tnum';
|
|
5
|
+
|
|
6
|
+
.reset-component() {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
font-variant: @font-variant;
|
|
11
|
+
list-style: none;
|
|
12
|
+
font-feature-settings: @font-feature-settings;
|
|
13
|
+
}
|