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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 QM-Design
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { CSSProperties, Nullable } from './types';
|
|
2
|
+
export declare const on: (element: Element | HTMLElement | Document | Window, event: string, handler: EventListenerOrEventListenerObject) => void;
|
|
3
|
+
export declare const off: (element: Element | HTMLElement | Document | Window, event: string, handler: EventListenerOrEventListenerObject) => void;
|
|
4
|
+
export declare const once: (el: HTMLElement, event: string, fn: EventListener) => void;
|
|
5
|
+
export declare const stop: (ev: Event) => void;
|
|
6
|
+
export declare const prevent: (ev: Event) => void;
|
|
7
|
+
/**
|
|
8
|
+
* @description 获取元素样式
|
|
9
|
+
* @param {HTMLNode} element 元素节点
|
|
10
|
+
* @param {string} styleName css 属性名称
|
|
11
|
+
* @returns css 样式的值
|
|
12
|
+
*/
|
|
13
|
+
export declare const getStyle: (element: HTMLElement, styleName: string) => Nullable<string>;
|
|
14
|
+
/**
|
|
15
|
+
* @description 设置元素样式
|
|
16
|
+
* @param {HTMLNode} element 元素节点
|
|
17
|
+
* @param {string} styleName css 属性名称
|
|
18
|
+
* @param {string} value css 属性的值
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare const setStyle: (element: HTMLElement, styleName: CSSProperties | string, value?: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* @description 移除元素样式
|
|
24
|
+
* @param {HTMLNode} element 元素节点
|
|
25
|
+
* @param {string} styleName css 属性名称
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare const removeStyle: (element: HTMLElement, styleName: CSSProperties | string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* @description 判断目标元素在坐标上,是否在参考节点里边
|
|
31
|
+
* @param {HTMLNode} el 目标节点
|
|
32
|
+
* @param {HTMLNode} container 参考节点
|
|
33
|
+
* @returns boolean
|
|
34
|
+
*/
|
|
35
|
+
export declare const isInContainer: (el: HTMLElement, container: HTMLElement) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @description 获取元素距离窗口顶部的上边距
|
|
38
|
+
* @param {HTMLNode} el 元素节点
|
|
39
|
+
* @returns 上边距的值
|
|
40
|
+
*/
|
|
41
|
+
export declare const getOffsetTop: (el: HTMLElement) => number;
|
|
42
|
+
/**
|
|
43
|
+
* @description 获取目标元素距离参考节点的上边距
|
|
44
|
+
* @param {HTMLNode} el 目标节点
|
|
45
|
+
* @param {HTMLNode} container 参考节点
|
|
46
|
+
* @returns 上边距的值
|
|
47
|
+
*/
|
|
48
|
+
export declare const getOffsetTopDistance: (el: HTMLElement, container: HTMLElement) => number;
|
|
49
|
+
/**
|
|
50
|
+
* @description 获取元素距离窗口的横纵坐标
|
|
51
|
+
* @param {HTMLNode} el 目标节点
|
|
52
|
+
* @returns 横纵坐标的值
|
|
53
|
+
*/
|
|
54
|
+
export declare const getPosition: (el: HTMLElement) => Record<'x' | 'y', number>;
|
|
55
|
+
/**
|
|
56
|
+
* @description 获取满足条件的祖先元素
|
|
57
|
+
* @param {HTMLNode} el 参考节点
|
|
58
|
+
* @param {string} selector 目标节点 classname
|
|
59
|
+
* @returns 满足条件的祖先元素
|
|
60
|
+
*/
|
|
61
|
+
export declare const getParentNode: (el: HTMLElement, selector: string) => Nullable<HTMLElement>;
|
|
62
|
+
/**
|
|
63
|
+
* @description 判断目标元素是否为参考节点的后代
|
|
64
|
+
* @param {HTMLNode} el 目标元素
|
|
65
|
+
* @param {HTMLNode} container 目标节点
|
|
66
|
+
* @returns boolean
|
|
67
|
+
*/
|
|
68
|
+
export declare const contains: (el: Element | HTMLElement | null, container: HTMLElement) => boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @description 滚动到指定位置,动画效果
|
|
71
|
+
* @param {HTMLNode} el 带滚动条元素
|
|
72
|
+
* @param {number} t 滚动条上边距
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
export declare const scrollToY: (el: HTMLElement, t: number) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const __DEV__: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getPrefixCls: (suffixCls: string) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ResizeObserver from 'resize-observer-polyfill';
|
|
2
|
+
import type { CustomHTMLElement } from './types';
|
|
3
|
+
type IResizeListener = (option: ResizeObserverEntry) => void;
|
|
4
|
+
export type ResizableElement = CustomHTMLElement<{
|
|
5
|
+
__resizeListeners__?: Array<IResizeListener>;
|
|
6
|
+
__ro__?: ResizeObserver;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const addResizeListener: (element: ResizableElement, fn: IResizeListener) => void;
|
|
9
|
+
export declare const removeResizeListener: (element: ResizableElement, fn: IResizeListener) => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getScrollBarWidth: () => number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type Nullable<T> = T | null;
|
|
3
|
+
export type ValueOf<T> = T[keyof T];
|
|
4
|
+
export type DeepPartial<T> = {
|
|
5
|
+
[P in keyof T]?: T[P] extends Record<string, unknown> ? DeepPartial<T[P]> : T[P];
|
|
6
|
+
};
|
|
7
|
+
export type JSXElement = React.ReactNode | JSX.Element;
|
|
8
|
+
export type AnyObject<T> = {
|
|
9
|
+
[key: string]: T;
|
|
10
|
+
};
|
|
11
|
+
export type AnyFunction<T> = (...args: any[]) => T;
|
|
12
|
+
export type CustomHTMLElement<T> = HTMLElement & T;
|
|
13
|
+
export type CSSProperties = React.CSSProperties;
|
|
14
|
+
export type TimeoutHandle = ReturnType<typeof setTimeout>;
|
|
15
|
+
export type IntervalHandle = ReturnType<typeof setInterval>;
|
|
16
|
+
export type AjaxResponse<T = any> = {
|
|
17
|
+
code: number;
|
|
18
|
+
data: T;
|
|
19
|
+
message: string;
|
|
20
|
+
};
|
|
21
|
+
export declare enum SizeHeight {
|
|
22
|
+
large = 40,
|
|
23
|
+
middle = 32,
|
|
24
|
+
small = 24
|
|
25
|
+
}
|
|
26
|
+
export type ComponentSize = 'small' | 'middle' | 'large';
|
|
27
|
+
export type Locale = 'zh-cn' | 'en';
|
|
28
|
+
export type IDict = {
|
|
29
|
+
text: string;
|
|
30
|
+
value: string | number;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
children?: Array<IDict> | Nullable<undefined>;
|
|
33
|
+
};
|
|
34
|
+
export type IAuth = {
|
|
35
|
+
dataIndex?: string;
|
|
36
|
+
visible?: number;
|
|
37
|
+
disabled?: number;
|
|
38
|
+
secretName?: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { isNumber, isString, isUndefined, isFunction, isArray, isPlainObject as isObject, debounce, throttle, get, set } from 'lodash-es';
|
|
3
|
+
import type { AnyFunction, AnyObject } from './types';
|
|
4
|
+
export { isNumber, isString, isArray, isUndefined, isFunction, isObject, debounce, throttle, get, set };
|
|
5
|
+
export declare const isIE: () => boolean;
|
|
6
|
+
export declare const isEdge: () => boolean;
|
|
7
|
+
export declare const isChrome: () => boolean;
|
|
8
|
+
export declare const isFirefox: () => boolean;
|
|
9
|
+
export declare const isSimpleValue: (x: unknown) => boolean;
|
|
10
|
+
export declare const isValidElement: (c: React.ReactNode) => boolean;
|
|
11
|
+
export declare const isFragment: (c: React.ReactNode) => boolean;
|
|
12
|
+
export declare const noop: () => void;
|
|
13
|
+
export declare const trueNoop: () => boolean;
|
|
14
|
+
export declare const hasOwn: <T extends AnyObject<unknown>>(obj: T, key: string) => boolean;
|
|
15
|
+
export declare const sleep: (delay: number) => Promise<unknown>;
|
|
16
|
+
export declare const nextTick: (cb: AnyFunction<void>) => void;
|
|
17
|
+
export declare const errorCapture: (asyncFn: AnyFunction<any>, ...params: any[]) => Promise<any[]>;
|
|
18
|
+
export declare const camelize: (input: string) => string;
|
|
19
|
+
export declare const isEmpty: (val: any) => boolean;
|
|
20
|
+
export declare const isValid: (val: string) => boolean;
|
|
21
|
+
export declare const getValueByPath: (obj: AnyObject<any>, paths?: string) => unknown;
|
|
22
|
+
export declare const setValueByPath: (obj: AnyObject<any>, path: string, value: unknown) => void;
|
|
23
|
+
export declare const omit: <T extends object, K extends keyof T>(obj: T, fields: K[] | readonly K[]) => Omit<T, K>;
|
|
24
|
+
export declare const deepClone: <T extends object>(target: T, map?: WeakMap<object, any>) => T;
|
|
25
|
+
export declare const getParserWidth: (val: number | string) => string;
|
|
26
|
+
export declare const flatJson: <T extends Record<string, any>>(jsonObj: T) => T;
|
|
27
|
+
export declare const parseJson: <T extends Record<string, any>>(jsonObj: T) => T;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { CSSProperties } from '../../_utils/types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
showDivider?: boolean;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type AnchorItemProps = IProps;
|
|
11
|
+
declare class QmAnchorItem extends Component<IProps> {
|
|
12
|
+
static displayName: string;
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export default QmAnchorItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { AnyFunction } from '../../_utils/types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
activeKey: number;
|
|
5
|
+
labels: string[];
|
|
6
|
+
onTabClick: AnyFunction<void>;
|
|
7
|
+
};
|
|
8
|
+
declare class AnchorNav extends Component<IProps> {
|
|
9
|
+
renderLabel(): React.ReactNode[];
|
|
10
|
+
render(): React.JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export default AnchorNav;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import type { ComponentSize, CSSProperties } from '../../_utils/types';
|
|
4
|
+
type ILabelItem = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
type IProps = {
|
|
9
|
+
defaultActiveIndex?: number;
|
|
10
|
+
size?: ComponentSize;
|
|
11
|
+
labelWidth?: number | string;
|
|
12
|
+
labelList?: Array<ILabelItem>;
|
|
13
|
+
tabPosition?: 'left' | 'top';
|
|
14
|
+
onTabClick?: (label: ILabelItem, ev: React.MouseEvent) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
};
|
|
19
|
+
type IState = {
|
|
20
|
+
activeKey: number;
|
|
21
|
+
};
|
|
22
|
+
export type AnchorProps = IProps;
|
|
23
|
+
declare class QmAnchor extends Component<IProps, IState> {
|
|
24
|
+
static Item: React.ClassicComponentClass<{
|
|
25
|
+
label: string;
|
|
26
|
+
showDivider?: boolean | undefined;
|
|
27
|
+
style?: React.CSSProperties | undefined;
|
|
28
|
+
className?: string | undefined;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
}>;
|
|
31
|
+
static propTypes: {
|
|
32
|
+
size: (props: any, propName: any, componentName: any) => void;
|
|
33
|
+
labelWidth: (props: any, propName: any, componentName: any) => void;
|
|
34
|
+
labelList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
35
|
+
id: PropTypes.Requireable<string>;
|
|
36
|
+
label: PropTypes.Requireable<string>;
|
|
37
|
+
}> | null | undefined)[]>;
|
|
38
|
+
};
|
|
39
|
+
static defaultProps: {
|
|
40
|
+
tabPosition: string;
|
|
41
|
+
};
|
|
42
|
+
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
43
|
+
private currentState;
|
|
44
|
+
private itemsTotal;
|
|
45
|
+
private timer;
|
|
46
|
+
private scrollEvent;
|
|
47
|
+
private scrollRef;
|
|
48
|
+
private get __is_conf();
|
|
49
|
+
constructor(props: IProps);
|
|
50
|
+
componentDidMount(): void;
|
|
51
|
+
componentWillUnmount(): void;
|
|
52
|
+
initialHandle(): void;
|
|
53
|
+
createDistances(): number[];
|
|
54
|
+
findCurrentIndex(t: number): number;
|
|
55
|
+
getTargetElement(index: number): HTMLElement;
|
|
56
|
+
onScrollHandle: (ev: MouseEvent) => void;
|
|
57
|
+
onTabClickHandle: (index: number) => void;
|
|
58
|
+
SCROLL_TO_ITEM: (index: number) => void;
|
|
59
|
+
render(): React.JSX.Element;
|
|
60
|
+
}
|
|
61
|
+
export default QmAnchor;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-07-31 22:38:07
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-anchor: ~'@{qm-prefix}-anchor';
|
|
10
|
+
|
|
11
|
+
.@{prefix-anchor} {
|
|
12
|
+
.reset-container;
|
|
13
|
+
display: flex;
|
|
14
|
+
.anchor-nav {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: none;
|
|
17
|
+
.item {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
height: @--height-md;
|
|
21
|
+
position: relative;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
&.actived {
|
|
24
|
+
color: @--primary-color;
|
|
25
|
+
&::after {
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
background-color: @--primary-color;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
span {
|
|
32
|
+
.text-overflow-cut();
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&-left {
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
.anchor-nav {
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
margin-right: @--margin-md;
|
|
42
|
+
border-right: 1px solid @--border-color-base;
|
|
43
|
+
.item {
|
|
44
|
+
justify-content: flex-end;
|
|
45
|
+
padding: 0 @--padding-md;
|
|
46
|
+
&.actived {
|
|
47
|
+
&::after {
|
|
48
|
+
width: 2px;
|
|
49
|
+
right: -2px;
|
|
50
|
+
top: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&-top {
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
.anchor-nav {
|
|
60
|
+
flex-direction: row;
|
|
61
|
+
margin-bottom: @--margin-md;
|
|
62
|
+
border-bottom: 1px solid @--border-color-base;
|
|
63
|
+
.item {
|
|
64
|
+
justify-content: center;
|
|
65
|
+
padding: 0 @--padding-md + 2px;
|
|
66
|
+
&.actived {
|
|
67
|
+
&::after {
|
|
68
|
+
height: 2px;
|
|
69
|
+
bottom: -2px;
|
|
70
|
+
left: @--padding-md;
|
|
71
|
+
right: @--padding-md;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.anchor-container {
|
|
78
|
+
flex: auto;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
min-height: 0;
|
|
81
|
+
overflow-y: auto;
|
|
82
|
+
overflow-x: hidden;
|
|
83
|
+
}
|
|
84
|
+
// ------ size ------
|
|
85
|
+
// 40 32 24
|
|
86
|
+
&--lg {
|
|
87
|
+
.anchor-nav {
|
|
88
|
+
.item {
|
|
89
|
+
height: @--height-lg;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&--sm {
|
|
94
|
+
.anchor-nav {
|
|
95
|
+
.item {
|
|
96
|
+
height: @--height-sm + 2px;
|
|
97
|
+
font-size: 13px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import 'antd/es/date-picker/style/index';
|
|
3
|
+
declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
4
|
+
status?: "" | "error" | "warning" | undefined;
|
|
5
|
+
dropdownClassName?: string | undefined;
|
|
6
|
+
popupClassName?: string | undefined;
|
|
7
|
+
}, unknown> & {
|
|
8
|
+
WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
9
|
+
status?: "" | "error" | "warning" | undefined;
|
|
10
|
+
dropdownClassName?: string | undefined;
|
|
11
|
+
popupClassName?: string | undefined;
|
|
12
|
+
}, "picker">, unknown>;
|
|
13
|
+
MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
14
|
+
status?: "" | "error" | "warning" | undefined;
|
|
15
|
+
dropdownClassName?: string | undefined;
|
|
16
|
+
popupClassName?: string | undefined;
|
|
17
|
+
}, "picker">, unknown>;
|
|
18
|
+
YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
19
|
+
status?: "" | "error" | "warning" | undefined;
|
|
20
|
+
dropdownClassName?: string | undefined;
|
|
21
|
+
popupClassName?: string | undefined;
|
|
22
|
+
}, "picker">, unknown>;
|
|
23
|
+
RangePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").RangePickerProps<Dayjs> & {
|
|
24
|
+
dropdownClassName?: string | undefined;
|
|
25
|
+
popupClassName?: string | undefined;
|
|
26
|
+
}, unknown>;
|
|
27
|
+
TimePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
28
|
+
locale?: import("antd/es/date-picker/generatePicker").PickerLocale | undefined;
|
|
29
|
+
size?: import("antd/es/button").ButtonSize;
|
|
30
|
+
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
31
|
+
bordered?: boolean | undefined;
|
|
32
|
+
status?: "" | "error" | "warning" | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
status?: "" | "error" | "warning" | undefined;
|
|
35
|
+
dropdownClassName?: string | undefined;
|
|
36
|
+
popupClassName?: string | undefined;
|
|
37
|
+
}, "picker">, unknown>;
|
|
38
|
+
QuarterPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
39
|
+
locale?: import("antd/es/date-picker/generatePicker").PickerLocale | undefined;
|
|
40
|
+
size?: import("antd/es/button").ButtonSize;
|
|
41
|
+
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
42
|
+
bordered?: boolean | undefined;
|
|
43
|
+
status?: "" | "error" | "warning" | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
status?: "" | "error" | "warning" | undefined;
|
|
46
|
+
dropdownClassName?: string | undefined;
|
|
47
|
+
popupClassName?: string | undefined;
|
|
48
|
+
}, "picker">, unknown>;
|
|
49
|
+
};
|
|
50
|
+
export default DatePicker;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { PickerTimeProps, RangePickerTimeProps } from 'antd/es/date-picker/generatePicker';
|
|
4
|
+
export interface TimePickerProps extends Omit<PickerTimeProps<Dayjs>, 'picker'> {
|
|
5
|
+
popupClassName?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TimeRangePickerProps extends Omit<RangePickerTimeProps<Dayjs>, 'picker'> {
|
|
8
|
+
popupClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
11
|
+
declare const RangePicker: React.ForwardRefExoticComponent<TimeRangePickerProps & React.RefAttributes<any>>;
|
|
12
|
+
type MergedTimePicker = typeof TimePicker & {
|
|
13
|
+
RangePicker: typeof RangePicker;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: MergedTimePicker;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import './dayjs';
|
|
2
|
+
export type { AffixProps } from 'antd';
|
|
3
|
+
export { Affix } from 'antd';
|
|
4
|
+
export type { AnchorProps, AnchorLinkProps } from 'antd';
|
|
5
|
+
export { Anchor } from 'antd';
|
|
6
|
+
export type { AutoCompleteProps } from 'antd';
|
|
7
|
+
export { AutoComplete } from 'antd';
|
|
8
|
+
export type { AlertProps } from 'antd';
|
|
9
|
+
export { Alert } from 'antd';
|
|
10
|
+
export type { AvatarProps } from 'antd';
|
|
11
|
+
export { Avatar } from 'antd';
|
|
12
|
+
export type { BackTopProps } from 'antd';
|
|
13
|
+
export { BackTop } from 'antd';
|
|
14
|
+
export type { BadgeProps } from 'antd';
|
|
15
|
+
export { Badge } from 'antd';
|
|
16
|
+
export type { BreadcrumbProps, BreadcrumbItemProps } from 'antd';
|
|
17
|
+
export { Breadcrumb } from 'antd';
|
|
18
|
+
export type { ButtonProps } from 'antd';
|
|
19
|
+
export { Button } from 'antd';
|
|
20
|
+
export type { CalendarProps } from 'antd';
|
|
21
|
+
export { default as Calendar } from './Calendar';
|
|
22
|
+
export type { CardProps } from 'antd';
|
|
23
|
+
export { Card } from 'antd';
|
|
24
|
+
export type { CollapseProps, CollapsePanelProps } from 'antd';
|
|
25
|
+
export { Collapse } from 'antd';
|
|
26
|
+
export type { CarouselProps } from 'antd';
|
|
27
|
+
export { Carousel } from 'antd';
|
|
28
|
+
export type { CascaderProps } from 'antd';
|
|
29
|
+
export { Cascader } from 'antd';
|
|
30
|
+
export type { CheckboxProps, CheckboxOptionType } from 'antd';
|
|
31
|
+
export { Checkbox } from 'antd';
|
|
32
|
+
export type { ColProps } from 'antd';
|
|
33
|
+
export { Col } from 'antd';
|
|
34
|
+
export type { CommentProps } from 'antd';
|
|
35
|
+
export { Comment } from 'antd';
|
|
36
|
+
export { ConfigProvider } from 'antd';
|
|
37
|
+
export type { DatePickerProps } from 'antd';
|
|
38
|
+
export { default as DatePicker } from './DatePicker';
|
|
39
|
+
export type { DescriptionsProps } from 'antd';
|
|
40
|
+
export { Descriptions } from 'antd';
|
|
41
|
+
export type { DividerProps } from 'antd';
|
|
42
|
+
export { Divider } from 'antd';
|
|
43
|
+
export type { DropDownProps } from 'antd';
|
|
44
|
+
export { Dropdown } from 'antd';
|
|
45
|
+
export type { DrawerProps } from 'antd';
|
|
46
|
+
export { Drawer } from 'antd';
|
|
47
|
+
export type { EmptyProps } from 'antd';
|
|
48
|
+
export { Empty } from 'antd';
|
|
49
|
+
export type { FormInstance, FormProps, FormItemProps } from 'antd';
|
|
50
|
+
export { Form } from 'antd';
|
|
51
|
+
export { Grid } from 'antd';
|
|
52
|
+
export type { InputProps } from 'antd';
|
|
53
|
+
export { Input } from 'antd';
|
|
54
|
+
export type { ImageProps } from 'antd';
|
|
55
|
+
export { Image } from 'antd';
|
|
56
|
+
export type { InputNumberProps } from 'antd';
|
|
57
|
+
export { InputNumber } from 'antd';
|
|
58
|
+
export type { LayoutProps } from 'antd';
|
|
59
|
+
export { Layout } from 'antd';
|
|
60
|
+
export type { ListProps } from 'antd';
|
|
61
|
+
export { List } from 'antd';
|
|
62
|
+
export type { MessageArgsProps } from 'antd';
|
|
63
|
+
export { message } from 'antd';
|
|
64
|
+
export type { MenuProps, MenuTheme, SubMenuProps, MenuItemProps } from 'antd';
|
|
65
|
+
export { Menu } from 'antd';
|
|
66
|
+
export type { MentionProps } from 'antd';
|
|
67
|
+
export { Mentions } from 'antd';
|
|
68
|
+
export type { ModalProps, ModalFuncProps } from 'antd';
|
|
69
|
+
export { Modal } from 'antd';
|
|
70
|
+
export type { StatisticProps } from 'antd';
|
|
71
|
+
export { Statistic } from 'antd';
|
|
72
|
+
export { notification } from 'antd';
|
|
73
|
+
export type { PageHeaderProps } from 'antd';
|
|
74
|
+
export { PageHeader } from 'antd';
|
|
75
|
+
export type { PaginationProps } from 'antd';
|
|
76
|
+
export { Pagination } from 'antd';
|
|
77
|
+
export type { PopconfirmProps } from 'antd';
|
|
78
|
+
export { Popconfirm } from 'antd';
|
|
79
|
+
export type { PopoverProps } from 'antd';
|
|
80
|
+
export { Popover } from 'antd';
|
|
81
|
+
export type { ProgressProps } from 'antd';
|
|
82
|
+
export { Progress } from 'antd';
|
|
83
|
+
export type { RadioProps, RadioChangeEvent, RadioGroupProps } from 'antd';
|
|
84
|
+
export { Radio } from 'antd';
|
|
85
|
+
export type { RateProps } from 'antd';
|
|
86
|
+
export { Rate } from 'antd';
|
|
87
|
+
export type { ResultProps } from 'antd';
|
|
88
|
+
export { Result } from 'antd';
|
|
89
|
+
export type { RowProps } from 'antd';
|
|
90
|
+
export { Row } from 'antd';
|
|
91
|
+
export type { SelectProps } from 'antd';
|
|
92
|
+
export { Select } from 'antd';
|
|
93
|
+
export type { SkeletonProps } from 'antd';
|
|
94
|
+
export { Skeleton } from 'antd';
|
|
95
|
+
export type { SliderSingleProps } from 'antd';
|
|
96
|
+
export { Slider } from 'antd';
|
|
97
|
+
export type { SpaceProps } from 'antd';
|
|
98
|
+
export { Space } from 'antd';
|
|
99
|
+
export type { SpinProps } from 'antd';
|
|
100
|
+
export { Spin } from 'antd';
|
|
101
|
+
export type { StepProps, StepsProps } from 'antd';
|
|
102
|
+
export { Steps } from 'antd';
|
|
103
|
+
export type { SwitchProps } from 'antd';
|
|
104
|
+
export { Switch } from 'antd';
|
|
105
|
+
export type { TransferProps } from 'antd';
|
|
106
|
+
export { Transfer } from 'antd';
|
|
107
|
+
export type { TreeProps, TreeNodeProps, TreeDataNode } from 'antd';
|
|
108
|
+
export { Tree } from 'antd';
|
|
109
|
+
export type { TreeSelectProps } from 'antd';
|
|
110
|
+
export { TreeSelect } from 'antd';
|
|
111
|
+
export type { TabsProps, TabPaneProps } from 'antd';
|
|
112
|
+
export { Tabs } from 'antd';
|
|
113
|
+
export type { TagProps, TagType } from 'antd';
|
|
114
|
+
export { Tag } from 'antd';
|
|
115
|
+
export type { TimePickerProps, TimeRangePickerProps } from 'antd';
|
|
116
|
+
export { default as TimePicker } from './TimePicker';
|
|
117
|
+
export type { TimelineProps, TimelineItemProps } from 'antd';
|
|
118
|
+
export { Timeline } from 'antd';
|
|
119
|
+
export type { TooltipProps } from 'antd';
|
|
120
|
+
export { Tooltip } from 'antd';
|
|
121
|
+
export type { TypographyProps } from 'antd';
|
|
122
|
+
export { Typography } from 'antd';
|
|
123
|
+
export type { UploadProps } from 'antd';
|
|
124
|
+
export { Upload } from 'antd';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:41:37
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-03-28 11:50:55
|
|
6
|
+
*/
|
|
7
|
+
@import 'antd/dist/antd.variable.less';
|
|
8
|
+
|
|
9
|
+
@root-entry-name: variable;
|
|
10
|
+
|
|
11
|
+
// Antd Reset
|
|
12
|
+
.ant-select {
|
|
13
|
+
&-disabled {
|
|
14
|
+
.ant-select-selection-item,
|
|
15
|
+
.ant-select-selection-item-content {
|
|
16
|
+
color: @--text-color-secondary-dark;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|