dcp-design-react 1.7.42
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 +4 -0
- package/lib/_utils/cloneElement.d.ts +2 -0
- package/lib/_utils/dom.d.ts +75 -0
- package/lib/_utils/download.d.ts +7 -0
- package/lib/_utils/error.d.ts +2 -0
- package/lib/_utils/isDev.d.ts +1 -0
- package/lib/_utils/isMobile.d.ts +1 -0
- package/lib/_utils/isServer.d.ts +2 -0
- package/lib/_utils/prefix.d.ts +1 -0
- package/lib/_utils/resize-event.d.ts +10 -0
- package/lib/_utils/scrollbar-width.d.ts +1 -0
- package/lib/_utils/types.d.ts +39 -0
- package/lib/_utils/util.d.ts +27 -0
- package/lib/_utils/validators.d.ts +2 -0
- package/lib/anchor/index.d.ts +4 -0
- package/lib/anchor/src/anchor-item.d.ts +15 -0
- package/lib/anchor/src/anchor-nav.d.ts +12 -0
- package/lib/anchor/src/anchor.d.ts +61 -0
- package/lib/anchor/style/index.less +101 -0
- package/lib/antd/Calendar.d.ts +4 -0
- package/lib/antd/DatePicker.d.ts +50 -0
- package/lib/antd/TimePicker.d.ts +16 -0
- package/lib/antd/compact.less +11 -0
- package/lib/antd/dayjs.d.ts +1 -0
- package/lib/antd/index.d.ts +124 -0
- package/lib/antd/index.less +19 -0
- package/lib/button/index.d.ts +3 -0
- package/lib/button/src/button.d.ts +32 -0
- package/lib/button/style/index.less +12 -0
- package/lib/collapse/index.d.ts +3 -0
- package/lib/collapse/src/Content.d.ts +3 -0
- package/lib/collapse/src/_util/motion.less +13 -0
- package/lib/collapse/src/_util/motionUtil.d.ts +3 -0
- package/lib/collapse/src/collapse.d.ts +18 -0
- package/lib/collapse/style/index.less +24 -0
- package/lib/config-provider/context.d.ts +10 -0
- package/lib/config-provider/index.d.ts +3 -0
- package/lib/config-provider/src/config-provider.d.ts +36 -0
- package/lib/copy-to-clipboard/index.d.ts +3 -0
- package/lib/copy-to-clipboard/src/copy-to-clipboard.d.ts +15 -0
- package/lib/copy-to-clipboard/style/index.less +12 -0
- package/lib/countup/index.d.ts +3 -0
- package/lib/countup/src/countup.d.ts +17 -0
- package/lib/countup/style/index.less +22 -0
- package/lib/cropper/index.d.ts +3 -0
- package/lib/cropper/src/cropper.d.ts +213 -0
- package/lib/cropper/style/index.less +13 -0
- package/lib/divider/index.d.ts +3 -0
- package/lib/divider/src/divider.d.ts +27 -0
- package/lib/divider/style/index.less +54 -0
- package/lib/download/index.d.ts +3 -0
- package/lib/download/src/download.d.ts +54 -0
- package/lib/download/style/index.less +12 -0
- package/lib/drawer/index.d.ts +3 -0
- package/lib/drawer/src/drawer.d.ts +46 -0
- package/lib/drawer/style/index.less +82 -0
- package/lib/empty/index.d.ts +3 -0
- package/lib/empty/src/empty.d.ts +15 -0
- package/lib/empty/style/index.less +35 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/src/context.d.ts +9 -0
- package/lib/form/src/fields-filter.d.ts +26 -0
- package/lib/form/src/form-cascader.d.ts +21 -0
- package/lib/form/src/form-checkbox-group.d.ts +19 -0
- package/lib/form/src/form-checkbox.d.ts +16 -0
- package/lib/form/src/form-city-select.d.ts +10 -0
- package/lib/form/src/form-date.d.ts +10 -0
- package/lib/form/src/form-divider.d.ts +10 -0
- package/lib/form/src/form-immediate.d.ts +20 -0
- package/lib/form/src/form-input-number.d.ts +11 -0
- package/lib/form/src/form-input.d.ts +11 -0
- package/lib/form/src/form-item-view.d.ts +7 -0
- package/lib/form/src/form-multiple-search-helper.d.ts +20 -0
- package/lib/form/src/form-multiple-tree-table-helper.d.ts +20 -0
- package/lib/form/src/form-radio.d.ts +19 -0
- package/lib/form/src/form-range-date.d.ts +10 -0
- package/lib/form/src/form-range-input-number.d.ts +10 -0
- package/lib/form/src/form-range-input.d.ts +10 -0
- package/lib/form/src/form-range-search-helper.d.ts +20 -0
- package/lib/form/src/form-range-time.d.ts +10 -0
- package/lib/form/src/form-rate.d.ts +10 -0
- package/lib/form/src/form-region-select.d.ts +10 -0
- package/lib/form/src/form-search-helper.d.ts +21 -0
- package/lib/form/src/form-select.d.ts +21 -0
- package/lib/form/src/form-switch.d.ts +10 -0
- package/lib/form/src/form-text-area.d.ts +10 -0
- package/lib/form/src/form-time.d.ts +10 -0
- package/lib/form/src/form-tinymce.d.ts +10 -0
- package/lib/form/src/form-tree-select.d.ts +21 -0
- package/lib/form/src/form-tree-table-helper.d.ts +20 -0
- package/lib/form/src/form-upload-file.d.ts +10 -0
- package/lib/form/src/form-upload-img.d.ts +10 -0
- package/lib/form/src/form.d.ts +197 -0
- package/lib/form/src/types.d.ts +356 -0
- package/lib/form/src/utils.d.ts +57 -0
- package/lib/form/style/index.less +352 -0
- package/lib/guide-tracker/index.d.ts +3 -0
- package/lib/guide-tracker/src/Panel.d.ts +9 -0
- package/lib/guide-tracker/src/guideTracker.d.ts +37 -0
- package/lib/guide-tracker/src/lib/Highlighter.d.ts +2 -0
- package/lib/guide-tracker/src/lib/Overlay.d.ts +36 -0
- package/lib/guide-tracker/src/lib/index.d.ts +29 -0
- package/lib/guide-tracker/src/lib/utils.d.ts +27 -0
- package/lib/guide-tracker/style/index.less +189 -0
- package/lib/hoc/outsideClick.d.ts +1 -0
- package/lib/hooks/useDebounce.d.ts +3 -0
- package/lib/hooks/useEvent.d.ts +2 -0
- package/lib/hooks/useForceUpdate.d.ts +1 -0
- package/lib/hooks/useLayoutUpdateEffect.d.ts +2 -0
- package/lib/hooks/useLocale.d.ts +4 -0
- package/lib/hooks/useMergedState.d.ts +8 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useResizeObserve.d.ts +5 -0
- package/lib/hooks/useSafeState.d.ts +4 -0
- package/lib/hooks/useSize.d.ts +9 -0
- package/lib/hooks/useUpdateEffect.d.ts +2 -0
- package/lib/index.d.ts +127 -0
- package/lib/index.esm.js +1 -0
- package/lib/index.full.js +1 -0
- package/lib/index.js +1 -0
- package/lib/locale/index.d.ts +11 -0
- package/lib/locale/index.js +44 -0
- package/lib/locale/lang/en.d.ts +320 -0
- package/lib/locale/lang/en.js +325 -0
- package/lib/locale/lang/zh-cn.d.ts +320 -0
- package/lib/locale/lang/zh-cn.js +325 -0
- package/lib/modal/index.d.ts +3 -0
- package/lib/modal/src/modal.d.ts +68 -0
- package/lib/modal/style/index.less +95 -0
- package/lib/pinyin/core.d.ts +12 -0
- package/lib/pinyin/dict.d.ts +31 -0
- package/lib/pinyin/index.d.ts +2 -0
- package/lib/pinyin/patchers/56l.d.ts +7 -0
- package/lib/print/index.d.ts +3 -0
- package/lib/print/src/LodopFuncs.d.ts +1 -0
- package/lib/print/src/config.d.ts +6 -0
- package/lib/print/src/container.d.ts +14 -0
- package/lib/print/src/context.d.ts +6 -0
- package/lib/print/src/preview.d.ts +61 -0
- package/lib/print/src/print.d.ts +37 -0
- package/lib/print/src/setting.d.ts +49 -0
- package/lib/print/src/utils.d.ts +5 -0
- package/lib/print/style/index.less +175 -0
- package/lib/qm-design.d.ts +28 -0
- package/lib/range-table-helper/index.d.ts +3 -0
- package/lib/range-table-helper/src/range-table-helper.d.ts +22 -0
- package/lib/range-table-helper/style/index.less +18 -0
- package/lib/scrollbar/index.d.ts +3 -0
- package/lib/scrollbar/src/context.d.ts +7 -0
- package/lib/scrollbar/src/scrollbar.d.ts +28 -0
- package/lib/scrollbar/src/thumb.d.ts +15 -0
- package/lib/scrollbar/style/index.less +72 -0
- package/lib/search-helper/index.d.ts +3 -0
- package/lib/search-helper/src/search-helper.d.ts +24 -0
- package/lib/search-helper/style/index.less +14 -0
- package/lib/search-tree/index.d.ts +3 -0
- package/lib/search-tree/src/search-tree.d.ts +57 -0
- package/lib/search-tree/style/index.less +34 -0
- package/lib/space/index.d.ts +3 -0
- package/lib/space/src/space.d.ts +12 -0
- package/lib/space/style/index.less +12 -0
- package/lib/spin/index.d.ts +3 -0
- package/lib/spin/src/spin.d.ts +14 -0
- package/lib/spin/style/index.less +16 -0
- package/lib/split/index.d.ts +4 -0
- package/lib/split/src/context.d.ts +8 -0
- package/lib/split/src/resize-bar.d.ts +8 -0
- package/lib/split/src/split-pane.d.ts +11 -0
- package/lib/split/src/split.d.ts +18 -0
- package/lib/split/style/index.less +83 -0
- package/lib/style/common.less +8 -0
- package/lib/style/compact.css +26706 -0
- package/lib/style/compact.less +10 -0
- package/lib/style/compact.min.css +1 -0
- package/lib/style/index.css +30459 -0
- package/lib/style/index.less +39 -0
- package/lib/style/index.min.css +1 -0
- package/lib/style/mixins/box.less +13 -0
- package/lib/style/mixins/clearfix.less +21 -0
- package/lib/style/mixins/index.less +11 -0
- package/lib/style/mixins/operation-unit.less +24 -0
- package/lib/style/mixins/reset.less +34 -0
- package/lib/style/mixins/size.less +15 -0
- package/lib/style/reset.less +132 -0
- package/lib/style/themes/compact.less +19 -0
- package/lib/style/themes/default.less +117 -0
- package/lib/style/themes/index.less +7 -0
- package/lib/style/var.less +9 -0
- package/lib/table/index.d.ts +4 -0
- package/lib/table/src/alert/index.d.ts +6 -0
- package/lib/table/src/body/index.d.ts +8 -0
- package/lib/table/src/body/useMergeCell.d.ts +7 -0
- package/lib/table/src/body/useValueFormat.d.ts +12 -0
- package/lib/table/src/clipboard/index.d.ts +8 -0
- package/lib/table/src/clipboard/setting.d.ts +8 -0
- package/lib/table/src/column-filter/index.d.ts +7 -0
- package/lib/table/src/config/index.d.ts +47 -0
- package/lib/table/src/context/index.d.ts +85 -0
- package/lib/table/src/edit/InputNumber.d.ts +26 -0
- package/lib/table/src/edit/index.d.ts +15 -0
- package/lib/table/src/empty/index.d.ts +3 -0
- package/lib/table/src/expandable/all.d.ts +6 -0
- package/lib/table/src/expandable/index.d.ts +9 -0
- package/lib/table/src/export/define.d.ts +8 -0
- package/lib/table/src/export/index.d.ts +19 -0
- package/lib/table/src/export/setting.d.ts +14 -0
- package/lib/table/src/export/useExport.d.ts +13 -0
- package/lib/table/src/fast-search/index.d.ts +7 -0
- package/lib/table/src/fast-search/setting.d.ts +6 -0
- package/lib/table/src/filter/index.d.ts +8 -0
- package/lib/table/src/filter-sql/index.d.ts +5 -0
- package/lib/table/src/filter-sql/lib/filter_string.d.ts +11 -0
- package/lib/table/src/filter-sql/lib/operations.d.ts +8 -0
- package/lib/table/src/filter-sql/lib/variables_replacement.d.ts +5 -0
- package/lib/table/src/footer/index.d.ts +8 -0
- package/lib/table/src/full-screen/index.d.ts +8 -0
- package/lib/table/src/group-summary/index.d.ts +7 -0
- package/lib/table/src/group-summary/result.d.ts +9 -0
- package/lib/table/src/group-summary/setting.d.ts +6 -0
- package/lib/table/src/header/index.d.ts +10 -0
- package/lib/table/src/hooks/useImperativeMethod.d.ts +49 -0
- package/lib/table/src/hooks/useTableCore.d.ts +93 -0
- package/lib/table/src/hooks/useTableEffect.d.ts +45 -0
- package/lib/table/src/hooks/useTableLayout.d.ts +44 -0
- package/lib/table/src/hooks/useTableMemo.d.ts +48 -0
- package/lib/table/src/hooks/useTableRef.d.ts +111 -0
- package/lib/table/src/hooks/useTableState.d.ts +98 -0
- package/lib/table/src/icon/caretdown.d.ts +3 -0
- package/lib/table/src/icon/caretup.d.ts +3 -0
- package/lib/table/src/icon/filter.d.ts +3 -0
- package/lib/table/src/import/SelectFile.d.ts +8 -0
- package/lib/table/src/import/index.d.ts +8 -0
- package/lib/table/src/import/setting.d.ts +8 -0
- package/lib/table/src/manager/index.d.ts +15 -0
- package/lib/table/src/pager/index.d.ts +9 -0
- package/lib/table/src/print/index.d.ts +8 -0
- package/lib/table/src/reload/index.d.ts +7 -0
- package/lib/table/src/resizable/index.d.ts +7 -0
- package/lib/table/src/select-collection/index.d.ts +8 -0
- package/lib/table/src/select-collection/result.d.ts +8 -0
- package/lib/table/src/selection/all.d.ts +7 -0
- package/lib/table/src/selection/index.d.ts +12 -0
- package/lib/table/src/store/index.d.ts +33 -0
- package/lib/table/src/super-search/index.d.ts +7 -0
- package/lib/table/src/super-search/result.d.ts +6 -0
- package/lib/table/src/table/index.d.ts +5 -0
- package/lib/table/src/table/props.d.ts +299 -0
- package/lib/table/src/table/types.d.ts +444 -0
- package/lib/table/src/toolbox/index.d.ts +18 -0
- package/lib/table/src/utils/index.d.ts +43 -0
- package/lib/table/style/alert.less +34 -0
- package/lib/table/style/body.less +77 -0
- package/lib/table/style/clipboard.less +29 -0
- package/lib/table/style/column-filter.less +94 -0
- package/lib/table/style/empty.less +19 -0
- package/lib/table/style/expandable.less +64 -0
- package/lib/table/style/export.less +26 -0
- package/lib/table/style/fast-search.less +110 -0
- package/lib/table/style/footer.less +33 -0
- package/lib/table/style/full-screen.less +21 -0
- package/lib/table/style/group-summary.less +93 -0
- package/lib/table/style/header.less +207 -0
- package/lib/table/style/import.less +25 -0
- package/lib/table/style/index.less +29 -0
- package/lib/table/style/pager.less +29 -0
- package/lib/table/style/print.less +21 -0
- package/lib/table/style/reload.less +21 -0
- package/lib/table/style/select-collection.less +21 -0
- package/lib/table/style/size.less +88 -0
- package/lib/table/style/super-search.less +102 -0
- package/lib/table/style/table.less +372 -0
- package/lib/table/style/tollbox.less +39 -0
- package/lib/table/style/toper.less +31 -0
- package/lib/table/style/variable.less +48 -0
- package/lib/tabs/index.d.ts +4 -0
- package/lib/tabs/src/tab-pane.d.ts +9 -0
- package/lib/tabs/src/tabs.d.ts +19 -0
- package/lib/tabs/style/index.less +32 -0
- package/lib/tinymce/index.d.ts +3 -0
- package/lib/tinymce/src/Events.d.ts +85 -0
- package/lib/tinymce/src/ScriptLoader.d.ts +13 -0
- package/lib/tinymce/src/TinyMCE.d.ts +9 -0
- package/lib/tinymce/src/Utils.d.ts +20 -0
- package/lib/tinymce/src/components/Editor.d.ts +73 -0
- package/lib/tinymce/src/components/EditorPropTypes.d.ts +18 -0
- package/lib/tinymce/src/index.d.ts +35 -0
- package/lib/tinymce/style/index.less +18 -0
- package/lib/tour/index.d.ts +4 -0
- package/lib/tour/src/Mask.d.ts +17 -0
- package/lib/tour/src/Pause.d.ts +10 -0
- package/lib/tour/src/Tour.d.ts +41 -0
- package/lib/tour/src/TourStep/DefaultPanel.d.ts +4 -0
- package/lib/tour/src/TourStep/index.d.ts +34 -0
- package/lib/tour/src/hooks/useTarget.d.ts +14 -0
- package/lib/tour/src/placements.d.ts +29 -0
- package/lib/tour/src/util.d.ts +5 -0
- package/lib/tour/style/index.less +157 -0
- package/lib/transition/index.d.ts +3 -0
- package/lib/transition/src/tools.d.ts +13 -0
- package/lib/transition/src/transition.d.ts +12 -0
- package/lib/transition/src/types.d.ts +25 -0
- package/lib/transition/src/useTransition.d.ts +2 -0
- package/lib/tree-helper/index.d.ts +3 -0
- package/lib/tree-helper/src/tree-helper.d.ts +22 -0
- package/lib/tree-helper/style/index.less +21 -0
- package/lib/tree-table-helper/index.d.ts +3 -0
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +31 -0
- package/lib/tree-table-helper/style/index.less +24 -0
- package/lib/upload-file/index.d.ts +3 -0
- package/lib/upload-file/src/upload-file.d.ts +35 -0
- package/lib/upload-file/style/index.less +18 -0
- package/lib/upload-img/index.d.ts +3 -0
- package/lib/upload-img/src/cropper-preview.d.ts +32 -0
- package/lib/upload-img/src/upload-img.d.ts +39 -0
- package/lib/upload-img/style/index.less +41 -0
- package/lib/version/index.d.ts +2 -0
- package/package.json +138 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-03-16 19:06:00
|
|
6
|
+
*/
|
|
7
|
+
@import './variable.less';
|
|
8
|
+
@import './toper.less';
|
|
9
|
+
@import './alert.less';
|
|
10
|
+
@import './full-screen.less';
|
|
11
|
+
@import './reload.less';
|
|
12
|
+
@import './print.less';
|
|
13
|
+
@import './import.less';
|
|
14
|
+
@import './export.less';
|
|
15
|
+
@import './clipboard.less';
|
|
16
|
+
@import './tollbox.less';
|
|
17
|
+
@import './select-collection.less';
|
|
18
|
+
@import './group-summary.less';
|
|
19
|
+
@import './super-search.less';
|
|
20
|
+
@import './fast-search.less';
|
|
21
|
+
@import './column-filter.less';
|
|
22
|
+
@import './table.less';
|
|
23
|
+
@import './header.less';
|
|
24
|
+
@import './body.less';
|
|
25
|
+
@import './footer.less';
|
|
26
|
+
@import './pager.less';
|
|
27
|
+
@import './empty.less';
|
|
28
|
+
@import './expandable.less';
|
|
29
|
+
@import './size.less';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-26 11:45:02
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-09-04 10:17:37
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table}-pager {
|
|
10
|
+
margin-top: @v-module-distance;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
.pager-alert {
|
|
14
|
+
.@{prefix-table}__alert {
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.ant-pagination {
|
|
19
|
+
line-height: 1;
|
|
20
|
+
&-options-size-changer.ant-select {
|
|
21
|
+
width: auto;
|
|
22
|
+
&.ant-select-status-error {
|
|
23
|
+
.ant-select-selector {
|
|
24
|
+
border-color: @--border-color-base !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-26 11:45:02
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-01-09 10:06:27
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table}-print {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
padding: 5px 3px;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: all 0.3s ease;
|
|
15
|
+
.icon {
|
|
16
|
+
font-size: 1.05em;
|
|
17
|
+
}
|
|
18
|
+
&:hover {
|
|
19
|
+
color: @v-primary-color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-26 11:45:02
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-12-31 14:12:41
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table}-reload {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
padding: 5px 3px;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: all 0.3s ease;
|
|
15
|
+
.icon {
|
|
16
|
+
font-size: 1.05em;
|
|
17
|
+
}
|
|
18
|
+
&:hover {
|
|
19
|
+
color: @v-primary-color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-26 11:45:02
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-01-06 10:27:07
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table}-select-collection {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
padding: 5px 3px;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: all 0.3s ease;
|
|
15
|
+
.icon {
|
|
16
|
+
font-size: 1.05em;
|
|
17
|
+
}
|
|
18
|
+
&:hover {
|
|
19
|
+
color: @v-primary-color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-02-28 22:11:53
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-12-28 13:59:08
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table} {
|
|
10
|
+
// 42 34 26
|
|
11
|
+
&--wrapper {
|
|
12
|
+
font-size: @v-font-size;
|
|
13
|
+
.@{prefix-table}-top {
|
|
14
|
+
height: @v-table-row-height - 2px;
|
|
15
|
+
}
|
|
16
|
+
.header--column,
|
|
17
|
+
.body--column,
|
|
18
|
+
.footer--column {
|
|
19
|
+
&.col--ellipsis {
|
|
20
|
+
height: @v-table-row-height;
|
|
21
|
+
}
|
|
22
|
+
&:not(.col--ellipsis) {
|
|
23
|
+
padding: ceil(((@v-table-row-height - @v-table-row-line-height) / 2)) 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.is--head-group {
|
|
27
|
+
.header--column.col--ellipsis {
|
|
28
|
+
height: @v-table-row-height * 0.8;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.row--height {
|
|
32
|
+
height: @v-table-row-height;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--lg {
|
|
37
|
+
font-size: @v-font-size-large;
|
|
38
|
+
.@{prefix-table}-top {
|
|
39
|
+
height: @v-table-row-height-large - 2px;
|
|
40
|
+
}
|
|
41
|
+
.header--column,
|
|
42
|
+
.body--column,
|
|
43
|
+
.footer--column {
|
|
44
|
+
&.col--ellipsis {
|
|
45
|
+
height: @v-table-row-height-large;
|
|
46
|
+
}
|
|
47
|
+
&:not(.col--ellipsis) {
|
|
48
|
+
padding: ceil(((@v-table-row-height-large - @v-table-row-line-height) / 2)) 0;
|
|
49
|
+
}
|
|
50
|
+
.cell--edit {
|
|
51
|
+
margin: 0 -1 * (@v-module-distance / 2);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.is--head-group {
|
|
55
|
+
.header--column.col--ellipsis {
|
|
56
|
+
height: @v-table-row-height-large * 0.8;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.row--height {
|
|
60
|
+
height: @v-table-row-height-large;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&--sm {
|
|
65
|
+
font-size: @v-font-size-small;
|
|
66
|
+
.@{prefix-table}-top {
|
|
67
|
+
height: @v-table-row-height-small - 2px;
|
|
68
|
+
}
|
|
69
|
+
.header--column,
|
|
70
|
+
.body--column,
|
|
71
|
+
.footer--column {
|
|
72
|
+
&.col--ellipsis {
|
|
73
|
+
height: @v-table-row-height-small;
|
|
74
|
+
}
|
|
75
|
+
&:not(.col--ellipsis) {
|
|
76
|
+
padding: ceil(((@v-table-row-height-small - @v-table-row-line-height) / 2)) 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.is--head-group {
|
|
80
|
+
.header--column.col--ellipsis {
|
|
81
|
+
height: @v-table-row-height-small * 0.8;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.row--height {
|
|
85
|
+
height: @v-table-row-height-small;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-26 11:45:02
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-11-26 21:11:13
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table}-super-search {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
padding: 5px 3px;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: all 0.3s ease;
|
|
15
|
+
.icon {
|
|
16
|
+
font-size: 1.05em;
|
|
17
|
+
}
|
|
18
|
+
&:hover {
|
|
19
|
+
color: @v-primary-color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{prefix-table}-super-search__setting {
|
|
24
|
+
.main {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
height: 100%;
|
|
28
|
+
margin-bottom: @v-module-distance;
|
|
29
|
+
.container {
|
|
30
|
+
flex: 1;
|
|
31
|
+
width: 0;
|
|
32
|
+
.lang-js {
|
|
33
|
+
display: block;
|
|
34
|
+
margin-top: @v-module-distance;
|
|
35
|
+
background-color: #2b3a42;
|
|
36
|
+
padding: 6px 10px;
|
|
37
|
+
color: #62b1d8;
|
|
38
|
+
border-radius: @v-border-radius;
|
|
39
|
+
text-shadow: 0 1px 0 rgba(23, 31, 35, 0.5);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.saved {
|
|
43
|
+
width: 200px;
|
|
44
|
+
.form-wrap {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
.card-wrap {
|
|
48
|
+
margin-top: @v-module-distance;
|
|
49
|
+
border: 1px solid @v-table-border-color;
|
|
50
|
+
> h5 {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
font-size: inherit;
|
|
54
|
+
font-weight: normal;
|
|
55
|
+
margin-bottom: 0;
|
|
56
|
+
padding: 0 @v-module-distance;
|
|
57
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
58
|
+
background-color: @v-table-header-background-color;
|
|
59
|
+
}
|
|
60
|
+
> ul {
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
li {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
position: relative;
|
|
66
|
+
padding: 6px @v-module-distance;
|
|
67
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
transition: all 0.3s ease;
|
|
70
|
+
&:last-of-type {
|
|
71
|
+
border-bottom: 0;
|
|
72
|
+
}
|
|
73
|
+
&:hover {
|
|
74
|
+
background-color: @v-table-row-hover-background-color;
|
|
75
|
+
.close {
|
|
76
|
+
visibility: visible;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&.selected {
|
|
80
|
+
background-color: @v-table-row-selected-background-color;
|
|
81
|
+
}
|
|
82
|
+
.title {
|
|
83
|
+
i {
|
|
84
|
+
margin-right: 5px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.close {
|
|
88
|
+
position: absolute;
|
|
89
|
+
right: @v-module-distance;
|
|
90
|
+
visibility: hidden;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.line {
|
|
97
|
+
border-left: 1px dashed @--border-color-base;
|
|
98
|
+
padding-left: @v-module-distance;
|
|
99
|
+
margin-left: @v-module-distance;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-06-03 21:46:35
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
10
|
+
|
|
11
|
+
// 外层容器
|
|
12
|
+
.@{prefix-table}--wrapper {
|
|
13
|
+
.reset-container();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 全屏 */
|
|
17
|
+
.@{prefix-table}--maximize {
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
height: 100%;
|
|
23
|
+
z-index: 100;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
padding: @v-module-distance;
|
|
26
|
+
padding-bottom: 0;
|
|
27
|
+
background-color: @v-table-background-color;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* table 样式 */
|
|
31
|
+
.@{prefix-table} {
|
|
32
|
+
position: relative;
|
|
33
|
+
background-color: @v-table-background-color;
|
|
34
|
+
&:before,
|
|
35
|
+
&:after {
|
|
36
|
+
content: '';
|
|
37
|
+
position: absolute;
|
|
38
|
+
left: 0;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 0;
|
|
41
|
+
z-index: 3;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
&:before {
|
|
45
|
+
top: 0;
|
|
46
|
+
border-top: 1px solid @v-table-border-color;
|
|
47
|
+
}
|
|
48
|
+
&:after {
|
|
49
|
+
bottom: -1px;
|
|
50
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--header,
|
|
54
|
+
&--body,
|
|
55
|
+
&--footer {
|
|
56
|
+
border: 0;
|
|
57
|
+
border-spacing: 0;
|
|
58
|
+
border-collapse: separate;
|
|
59
|
+
table-layout: fixed;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--header-wrapper,
|
|
63
|
+
&--footer-wrapper {
|
|
64
|
+
overflow-x: hidden;
|
|
65
|
+
overflow-y: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--body-wrapper {
|
|
69
|
+
overflow-y: auto;
|
|
70
|
+
overflow-x: auto;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--merge-cell {
|
|
74
|
+
position: absolute;
|
|
75
|
+
display: none;
|
|
76
|
+
border: 2px solid @v-primary-color;
|
|
77
|
+
border-radius: @v-border-radius;
|
|
78
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
79
|
+
z-index: 9;
|
|
80
|
+
.btn {
|
|
81
|
+
position: absolute;
|
|
82
|
+
right: -54px;
|
|
83
|
+
bottom: 0;
|
|
84
|
+
}
|
|
85
|
+
.cancel {
|
|
86
|
+
bottom: 30px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.c--resize {
|
|
91
|
+
cursor: col-resize;
|
|
92
|
+
.header--column {
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.header--column {
|
|
98
|
+
background-color: @v-table-header-background-color;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.body--column {
|
|
102
|
+
transition: background-color 0.3s ease;
|
|
103
|
+
background-color: @v-table-background-color;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.footer--column {
|
|
107
|
+
background-color: @v-table-footer-background-color;
|
|
108
|
+
border-bottom: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.body--row:hover {
|
|
112
|
+
.body--column {
|
|
113
|
+
background-color: @v-table-row-hover-background-color;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.body--row-striped {
|
|
118
|
+
.body--column {
|
|
119
|
+
background-color: @v-table-header-background-color;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.body--row-selected {
|
|
124
|
+
.body--column {
|
|
125
|
+
background-color: @v-table-row-selected-background-color;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.body--row-current {
|
|
130
|
+
.body--column {
|
|
131
|
+
background-color: @v-table-row-current-background-color;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.body--row-expanded {
|
|
136
|
+
.body--column {
|
|
137
|
+
background-color: @v-table-row-expanded-background-color;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.body--row-group_1 {
|
|
142
|
+
.body--column {
|
|
143
|
+
background-color: @--primary-1;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.body--row-group_2 {
|
|
148
|
+
.body--column {
|
|
149
|
+
background-color: @--primary-2;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.body--row-group_3 {
|
|
154
|
+
.body--column {
|
|
155
|
+
background-color: @--primary-3;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.header--column,
|
|
160
|
+
.body--column,
|
|
161
|
+
.footer--column {
|
|
162
|
+
position: relative;
|
|
163
|
+
text-align: left;
|
|
164
|
+
// line-height: @v-table-row-line-height;
|
|
165
|
+
&:not(.col--ellipsis) {
|
|
166
|
+
padding: ceil(((@v-table-row-height - @v-table-row-line-height) / 2)) 0;
|
|
167
|
+
.cell {
|
|
168
|
+
line-height: 1.2;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&.col--center:not(.header--column) {
|
|
172
|
+
text-align: center;
|
|
173
|
+
}
|
|
174
|
+
&.col--right:not(.header--column) {
|
|
175
|
+
text-align: right;
|
|
176
|
+
}
|
|
177
|
+
.cell {
|
|
178
|
+
white-space: pre-wrap;
|
|
179
|
+
word-break: break-all;
|
|
180
|
+
padding: 0 @v-module-distance;
|
|
181
|
+
.cell--indent {
|
|
182
|
+
float: left;
|
|
183
|
+
height: 1px;
|
|
184
|
+
visibility: hidden;
|
|
185
|
+
}
|
|
186
|
+
.cell--sign {
|
|
187
|
+
content: ' ';
|
|
188
|
+
top: -5px;
|
|
189
|
+
left: -5px;
|
|
190
|
+
position: absolute;
|
|
191
|
+
z-index: 1;
|
|
192
|
+
border-width: 5px;
|
|
193
|
+
border-style: solid;
|
|
194
|
+
border-color: transparent @v-primary-color transparent transparent;
|
|
195
|
+
transform: rotate(45deg);
|
|
196
|
+
pointer-events: none;
|
|
197
|
+
}
|
|
198
|
+
.cell--copy {
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-shrink: 0;
|
|
201
|
+
align-items: center;
|
|
202
|
+
justify-content: space-between;
|
|
203
|
+
.text {
|
|
204
|
+
flex: 1;
|
|
205
|
+
.text-overflow-cut();
|
|
206
|
+
}
|
|
207
|
+
.icon {
|
|
208
|
+
margin-right: -2px;
|
|
209
|
+
color: @v-font-secondary-color;
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// 自定义
|
|
217
|
+
&.is--fixed {
|
|
218
|
+
.cell-fix-left,
|
|
219
|
+
.cell-fix-right {
|
|
220
|
+
position: sticky;
|
|
221
|
+
z-index: 2;
|
|
222
|
+
}
|
|
223
|
+
.cell-fix-left-last {
|
|
224
|
+
&::after {
|
|
225
|
+
content: '';
|
|
226
|
+
position: absolute;
|
|
227
|
+
top: 0;
|
|
228
|
+
right: 0;
|
|
229
|
+
bottom: -1px;
|
|
230
|
+
width: 20px;
|
|
231
|
+
transform: translateX(100%);
|
|
232
|
+
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
|
233
|
+
pointer-events: none;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
.cell-fix-right-first {
|
|
237
|
+
&::after {
|
|
238
|
+
content: '';
|
|
239
|
+
position: absolute;
|
|
240
|
+
top: 0;
|
|
241
|
+
left: 0;
|
|
242
|
+
bottom: -1px;
|
|
243
|
+
width: 20px;
|
|
244
|
+
transform: translateX(-100%);
|
|
245
|
+
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
|
246
|
+
pointer-events: none;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
&.ping--left .cell-fix-left-last::after {
|
|
250
|
+
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
251
|
+
}
|
|
252
|
+
&.ping--right .cell-fix-right-first::after {
|
|
253
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.is--sortable {
|
|
258
|
+
.column-has-sorter {
|
|
259
|
+
transition: background-color 0.3s ease;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
&:hover {
|
|
262
|
+
background-color: @v-table-column-sort-hover-color;
|
|
263
|
+
}
|
|
264
|
+
&.column--sort {
|
|
265
|
+
background-color: @v-table-column-sorted-color;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
.column--sort {
|
|
269
|
+
background-color: @v-table-header-background-color;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&.is--border {
|
|
274
|
+
.header--column,
|
|
275
|
+
.body--column,
|
|
276
|
+
.footer--column {
|
|
277
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
278
|
+
border-right: 1px solid @v-table-border-color;
|
|
279
|
+
.box-sizing-content();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&:not(.is--border) {
|
|
284
|
+
&:before,
|
|
285
|
+
&:after {
|
|
286
|
+
border: 0;
|
|
287
|
+
}
|
|
288
|
+
.header--column,
|
|
289
|
+
.body--column {
|
|
290
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&.is--merge-cell &--body-wrapper > table > tbody {
|
|
295
|
+
pointer-events: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* body 填充元素 */
|
|
299
|
+
.body--x-space {
|
|
300
|
+
height: 0;
|
|
301
|
+
visibility: hidden;
|
|
302
|
+
&::after {
|
|
303
|
+
content: '.';
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
.body--y-space {
|
|
307
|
+
width: 0;
|
|
308
|
+
line-height: 0;
|
|
309
|
+
float: left;
|
|
310
|
+
visibility: hidden;
|
|
311
|
+
&::after {
|
|
312
|
+
content: '.';
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* 列宽线 */
|
|
317
|
+
&--resizable-bar {
|
|
318
|
+
display: none;
|
|
319
|
+
position: absolute;
|
|
320
|
+
top: 0;
|
|
321
|
+
left: 0;
|
|
322
|
+
width: 1px;
|
|
323
|
+
height: 100%;
|
|
324
|
+
z-index: 4;
|
|
325
|
+
&:before {
|
|
326
|
+
content: '';
|
|
327
|
+
display: block;
|
|
328
|
+
height: 100%;
|
|
329
|
+
background-color: @v-table-resizable-color;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* 边框线 */
|
|
334
|
+
&--border-line {
|
|
335
|
+
&:before,
|
|
336
|
+
&:after {
|
|
337
|
+
content: '';
|
|
338
|
+
position: absolute;
|
|
339
|
+
top: 0;
|
|
340
|
+
width: 0;
|
|
341
|
+
height: 100%;
|
|
342
|
+
z-index: 3;
|
|
343
|
+
pointer-events: none;
|
|
344
|
+
}
|
|
345
|
+
&:before {
|
|
346
|
+
left: 0;
|
|
347
|
+
border-left: 1px solid @v-table-border-color;
|
|
348
|
+
}
|
|
349
|
+
&:after {
|
|
350
|
+
right: 0;
|
|
351
|
+
border-right: 1px solid @v-table-border-color;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* 溢出列 */
|
|
356
|
+
.header--column,
|
|
357
|
+
.body--column,
|
|
358
|
+
.footer--column {
|
|
359
|
+
&.col--ellipsis {
|
|
360
|
+
.cell {
|
|
361
|
+
.text-overflow-cut();
|
|
362
|
+
word-break: break-all;
|
|
363
|
+
white-space: pre;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* 弹出层 */
|
|
369
|
+
&__popper {
|
|
370
|
+
padding: @v-module-distance;
|
|
371
|
+
}
|
|
372
|
+
}
|