linkmore-design 1.0.62 → 1.0.66
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/README.md +1 -1
- package/dist/Approval/demos/basic.d.ts +2 -0
- package/dist/Approval/index.d.ts +24 -0
- package/dist/Approval/style/index.d.ts +1 -0
- package/dist/AutoComplete/demos/basic.d.ts +3 -0
- package/dist/AutoComplete/index.d.ts +30 -0
- package/dist/AutoComplete/style/index.d.ts +1 -0
- package/dist/Avatar/demos/basic.d.ts +2 -0
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/style/index.d.ts +1 -0
- package/dist/Breadcrumb/demos/basic.d.ts +2 -0
- package/dist/Breadcrumb/demos/basic1.d.ts +2 -0
- package/dist/Breadcrumb/index.d.ts +4 -0
- package/dist/Breadcrumb/style/index.d.ts +1 -0
- package/dist/CardTable/utils.d.ts +1 -1
- package/dist/Col/demos/basic.d.ts +2 -0
- package/dist/Col/index.d.ts +3 -0
- package/dist/Col/style/index.d.ts +1 -0
- package/dist/Form/index.d.ts +1 -1
- package/dist/Grid/RowContext.d.ts +8 -0
- package/dist/Grid/col.d.ts +28 -0
- package/dist/Grid/demos/basic.d.ts +2 -0
- package/dist/Grid/hooks/useBreakpoint.d.ts +3 -0
- package/dist/Grid/index.d.ts +11 -0
- package/dist/Grid/row.d.ts +14 -0
- package/dist/Grid/style/index.d.ts +1 -0
- package/dist/Layout/demos/basic.d.ts +2 -0
- package/dist/Layout/index.d.ts +4 -0
- package/dist/Layout/style/index.d.ts +1 -0
- package/dist/LmEditTable/EditTable.d.ts +4 -1
- package/dist/LmEditTable/demos/colsort.d.ts +2 -0
- package/dist/LmEditTable/demos/size.d.ts +2 -0
- package/dist/LmEditTable/sortableBoxCol.d.ts +5 -0
- package/dist/LmEditTable/sortableItemCol.d.ts +1 -0
- package/dist/LmFilter/components/CustomSelectFilter.d.ts +4 -0
- package/dist/LmFilter/customFilter/drawer.d.ts +4 -0
- package/dist/LmFilter/customFilter/saveModal.d.ts +4 -0
- package/dist/LmFilter/customFilter/valueDrawer.d.ts +4 -0
- package/dist/LmFilter/filterFns/index.d.ts +35 -17
- package/dist/LmFilter/utils.d.ts +2 -0
- package/dist/Mentions/demos/basic.d.ts +2 -0
- package/dist/Mentions/index.d.ts +3 -0
- package/dist/Mentions/style/index.d.ts +1 -0
- package/dist/PageHeader/demos/basic.d.ts +2 -0
- package/dist/PageHeader/index.d.ts +24 -0
- package/dist/PageHeader/style/index.d.ts +1 -0
- package/dist/Popover/demos/basic.d.ts +2 -0
- package/dist/Popover/demos/basic1.d.ts +2 -0
- package/dist/Popover/index.d.ts +11 -0
- package/dist/Popover/style/index.d.ts +1 -0
- package/dist/Rate/demos/basic.d.ts +2 -0
- package/dist/Rate/index.d.ts +3 -0
- package/dist/Rate/style/index.d.ts +1 -0
- package/dist/Row/demos/basic.d.ts +2 -0
- package/dist/Row/index.d.ts +3 -0
- package/dist/Row/style/index.d.ts +1 -0
- package/dist/Steps/demos/basic.d.ts +2 -0
- package/dist/Steps/index.d.ts +3 -0
- package/dist/Steps/style/index.d.ts +1 -0
- package/dist/Tooltip/index.d.ts +43 -1
- package/dist/Typography/Base/Ellipsis.d.ts +14 -0
- package/dist/Typography/Base/EllipsisTooltip.d.ts +13 -0
- package/dist/Typography/Base/index.d.ts +54 -0
- package/dist/Typography/Editable.d.ts +20 -0
- package/dist/Typography/Link.d.ts +7 -0
- package/dist/Typography/Paragraph.d.ts +7 -0
- package/dist/Typography/Text.d.ts +8 -0
- package/dist/Typography/Title.d.ts +9 -0
- package/dist/Typography/Typography.d.ts +11 -0
- package/dist/Typography/demos/basic.d.ts +2 -0
- package/dist/Typography/hooks/useMergedConfig.d.ts +1 -0
- package/dist/Typography/hooks/useUpdatedEffect.d.ts +3 -0
- package/dist/Typography/index.d.ts +15 -0
- package/dist/Typography/style/index.d.ts +1 -0
- package/dist/_util/colors.d.ts +5 -0
- package/dist/_util/getRenderPropValue.d.ts +3 -0
- package/dist/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/dist/_util/hooks/useForceUpdate.d.ts +2 -0
- package/dist/_util/placements.d.ts +16 -0
- package/dist/_util/responsiveObserve.d.ts +21 -0
- package/dist/_util/styleChecker.d.ts +4 -0
- package/dist/_util/transButton.d.ts +9 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.umd.js +17449 -8958
- package/dist/index.umd.min.js +6 -6
- package/es/Approval/index.d.ts +24 -0
- package/es/Approval/index.js +210 -0
- package/es/Approval/style/index.css +592 -0
- package/es/Approval/style/index.d.ts +1 -0
- package/es/Approval/style/index.js +1 -0
- package/es/AutoComplete/index.d.ts +30 -0
- package/es/AutoComplete/index.js +101 -0
- package/es/AutoComplete/style/index.css +505 -0
- package/es/AutoComplete/style/index.d.ts +1 -0
- package/es/AutoComplete/style/index.js +1 -0
- package/es/Avatar/index.d.ts +3 -0
- package/es/Avatar/index.js +3 -0
- package/es/Avatar/style/index.css +505 -0
- package/es/Avatar/style/index.d.ts +1 -0
- package/es/Avatar/style/index.js +1 -0
- package/es/Breadcrumb/index.d.ts +4 -0
- package/es/Breadcrumb/index.js +3 -0
- package/es/Breadcrumb/style/index.css +505 -0
- package/es/Breadcrumb/style/index.d.ts +1 -0
- package/es/Breadcrumb/style/index.js +1 -0
- package/es/Col/README.md.old +22 -0
- package/es/Col/index.d.ts +3 -0
- package/es/Col/index.js +2 -0
- package/es/Col/style/index.css +505 -0
- package/es/Col/style/index.d.ts +1 -0
- package/es/Col/style/index.js +1 -0
- package/es/EditTable/README.md.old +66 -0
- package/es/Form/container.js +17 -1
- package/es/Form/index.d.ts +1 -1
- package/es/Form/index.js +5 -2
- package/es/Form/style/index.css +32 -17
- package/es/Grid/RowContext.d.ts +8 -0
- package/es/Grid/RowContext.js +3 -0
- package/es/Grid/col.d.ts +28 -0
- package/es/Grid/col.js +112 -0
- package/es/Grid/hooks/useBreakpoint.d.ts +3 -0
- package/es/Grid/hooks/useBreakpoint.js +24 -0
- package/es/Grid/index.d.ts +11 -0
- package/es/Grid/index.js +14 -0
- package/es/Grid/row.d.ts +14 -0
- package/es/Grid/row.js +142 -0
- package/es/Grid/style/index.css +505 -0
- package/es/Grid/style/index.d.ts +1 -0
- package/es/Grid/style/index.js +1 -0
- package/es/Layout/index.d.ts +4 -0
- package/es/Layout/index.js +3 -0
- package/es/Layout/style/index.css +505 -0
- package/es/Layout/style/index.d.ts +1 -0
- package/es/Layout/style/index.js +1 -0
- package/es/LmEditTable/EditTable.d.ts +4 -1
- package/es/LmEditTable/EditTable.js +241 -59
- package/es/LmEditTable/sortableBoxCol.d.ts +5 -0
- package/es/LmEditTable/sortableBoxCol.js +13 -0
- package/es/LmEditTable/sortableItemCol.d.ts +1 -0
- package/es/LmEditTable/sortableItemCol.js +48 -0
- package/es/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
- package/es/LmFilter/clearFilter/index.js +3 -5
- package/es/LmFilter/complexFilter/drawer.js +26 -9
- package/es/LmFilter/components/CheckboxFilter.js +1 -1
- package/es/LmFilter/components/CustomSelectFilter.js +139 -0
- package/es/LmFilter/components/EmptyFilter.js +2 -2
- package/es/LmFilter/components/SelectFilter.js +15 -6
- package/es/LmFilter/components/index.js +9 -2
- package/es/LmFilter/customFilter/drawer.js +427 -0
- package/es/LmFilter/customFilter/index.js +107 -2
- package/es/LmFilter/customFilter/saveModal.js +187 -0
- package/es/LmFilter/customFilter/valueDrawer.js +238 -0
- package/es/LmFilter/filterFns/index.js +316 -70
- package/es/LmFilter/style/{style.css → index.css} +61 -6
- package/es/LmFilter/style/index.js +1 -1
- package/es/LmFilter/utils.js +34 -0
- package/es/LmFilter/wrapper/FilterRoot.js +63 -49
- package/es/Mentions/index.d.ts +3 -0
- package/es/Mentions/index.js +3 -0
- package/es/Mentions/style/index.css +505 -0
- package/es/Mentions/style/index.d.ts +1 -0
- package/es/Mentions/style/index.js +1 -0
- package/es/PageHeader/index.d.ts +24 -0
- package/es/PageHeader/index.js +169 -0
- package/es/PageHeader/style/index.css +505 -0
- package/es/PageHeader/style/index.d.ts +1 -0
- package/es/PageHeader/style/index.js +1 -0
- package/es/Popover/index.d.ts +11 -0
- package/es/Popover/index.js +63 -0
- package/es/Popover/style/index.css +505 -0
- package/es/Popover/style/index.d.ts +1 -0
- package/es/Popover/style/index.js +1 -0
- package/es/Rate/index.d.ts +3 -0
- package/es/Rate/index.js +3 -0
- package/es/Rate/style/index.css +505 -0
- package/es/Rate/style/index.d.ts +1 -0
- package/es/Rate/style/index.js +1 -0
- package/es/Row/README.md.old +22 -0
- package/es/Row/index.d.ts +3 -0
- package/es/Row/index.js +2 -0
- package/es/Row/style/index.css +505 -0
- package/es/Row/style/index.d.ts +1 -0
- package/es/Row/style/index.js +1 -0
- package/es/Steps/index.d.ts +3 -0
- package/es/Steps/index.js +3 -0
- package/es/Steps/style/index.css +505 -0
- package/es/Steps/style/index.d.ts +1 -0
- package/es/Steps/style/index.js +1 -0
- package/es/Tooltip/index.d.ts +43 -1
- package/es/Tooltip/index.js +236 -1
- package/es/Typography/Base/Ellipsis.d.ts +14 -0
- package/es/Typography/Base/Ellipsis.js +197 -0
- package/es/Typography/Base/EllipsisTooltip.d.ts +13 -0
- package/es/Typography/Base/EllipsisTooltip.js +23 -0
- package/es/Typography/Base/index.d.ts +54 -0
- package/es/Typography/Base/index.js +509 -0
- package/es/Typography/Editable.d.ts +20 -0
- package/es/Typography/Editable.js +117 -0
- package/es/Typography/Link.d.ts +7 -0
- package/es/Typography/Link.js +43 -0
- package/es/Typography/Paragraph.d.ts +7 -0
- package/es/Typography/Paragraph.js +12 -0
- package/es/Typography/Text.d.ts +8 -0
- package/es/Typography/Text.js +41 -0
- package/es/Typography/Title.d.ts +9 -0
- package/es/Typography/Title.js +41 -0
- package/es/Typography/Typography.d.ts +11 -0
- package/es/Typography/Typography.js +61 -0
- package/es/Typography/hooks/useMergedConfig.d.ts +1 -0
- package/es/Typography/hooks/useMergedConfig.js +8 -0
- package/es/Typography/hooks/useUpdatedEffect.d.ts +3 -0
- package/es/Typography/hooks/useUpdatedEffect.js +13 -0
- package/es/Typography/index.d.ts +15 -0
- package/es/Typography/index.js +14 -0
- package/es/Typography/style/index.css +505 -0
- package/es/Typography/style/index.d.ts +1 -0
- package/es/Typography/style/index.js +1 -0
- package/es/_util/colors.d.ts +5 -0
- package/es/_util/colors.js +4 -0
- package/es/_util/getRenderPropValue.d.ts +3 -0
- package/es/_util/getRenderPropValue.js +13 -0
- package/es/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/es/_util/hooks/useFlexGapSupport.js +14 -0
- package/es/_util/hooks/useForceUpdate.d.ts +2 -0
- package/es/_util/hooks/useForceUpdate.js +11 -0
- package/es/_util/placements.d.ts +16 -0
- package/es/_util/placements.js +87 -0
- package/es/_util/responsiveObserve.d.ts +21 -0
- package/es/_util/responsiveObserve.js +66 -0
- package/es/_util/styleChecker.d.ts +4 -0
- package/es/_util/styleChecker.js +31 -0
- package/es/_util/transButton.d.ts +9 -0
- package/es/_util/transButton.js +73 -0
- package/es/index.d.ts +14 -0
- package/es/index.js +8 -1
- package/lib/Approval/index.d.ts +24 -0
- package/lib/Approval/index.js +223 -0
- package/lib/Approval/style/index.css +592 -0
- package/lib/Approval/style/index.d.ts +1 -0
- package/lib/Approval/style/index.js +3 -0
- package/lib/AutoComplete/index.d.ts +30 -0
- package/lib/AutoComplete/index.js +125 -0
- package/lib/AutoComplete/style/index.css +505 -0
- package/lib/AutoComplete/style/index.d.ts +1 -0
- package/lib/AutoComplete/style/index.js +3 -0
- package/lib/Avatar/index.d.ts +3 -0
- package/lib/Avatar/index.js +15 -0
- package/lib/Avatar/style/index.css +505 -0
- package/lib/Avatar/style/index.d.ts +1 -0
- package/lib/Avatar/style/index.js +3 -0
- package/lib/Breadcrumb/index.d.ts +4 -0
- package/lib/Breadcrumb/index.js +15 -0
- package/lib/Breadcrumb/style/index.css +505 -0
- package/lib/Breadcrumb/style/index.d.ts +1 -0
- package/lib/Breadcrumb/style/index.js +3 -0
- package/lib/Col/README.md.old +22 -0
- package/lib/Col/index.d.ts +3 -0
- package/lib/Col/index.js +11 -0
- package/lib/Col/style/index.css +505 -0
- package/lib/Col/style/index.d.ts +1 -0
- package/lib/Col/style/index.js +3 -0
- package/lib/EditTable/README.md.old +66 -0
- package/lib/Form/container.js +17 -1
- package/lib/Form/index.d.ts +1 -1
- package/lib/Form/index.js +5 -2
- package/lib/Form/style/index.css +32 -17
- package/lib/Grid/RowContext.d.ts +8 -0
- package/lib/Grid/RowContext.js +12 -0
- package/lib/Grid/col.d.ts +28 -0
- package/lib/Grid/col.js +128 -0
- package/lib/Grid/hooks/useBreakpoint.d.ts +3 -0
- package/lib/Grid/hooks/useBreakpoint.js +37 -0
- package/lib/Grid/index.d.ts +11 -0
- package/lib/Grid/index.js +45 -0
- package/lib/Grid/row.d.ts +14 -0
- package/lib/Grid/row.js +164 -0
- package/lib/Grid/style/index.css +505 -0
- package/lib/Grid/style/index.d.ts +1 -0
- package/lib/Grid/style/index.js +3 -0
- package/lib/Layout/index.d.ts +4 -0
- package/lib/Layout/index.js +15 -0
- package/lib/Layout/style/index.css +505 -0
- package/lib/Layout/style/index.d.ts +1 -0
- package/lib/Layout/style/index.js +3 -0
- package/lib/LmEditTable/EditTable.d.ts +4 -1
- package/lib/LmEditTable/EditTable.js +242 -60
- package/lib/LmEditTable/sortableBoxCol.d.ts +5 -0
- package/lib/LmEditTable/sortableBoxCol.js +24 -0
- package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
- package/lib/LmEditTable/sortableItemCol.js +61 -0
- package/lib/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
- package/lib/LmFilter/clearFilter/index.js +3 -5
- package/lib/LmFilter/complexFilter/drawer.js +26 -9
- package/lib/LmFilter/components/CheckboxFilter.js +1 -1
- package/lib/LmFilter/components/CustomSelectFilter.js +139 -0
- package/lib/LmFilter/components/EmptyFilter.js +2 -2
- package/lib/LmFilter/components/SelectFilter.js +15 -6
- package/lib/LmFilter/components/index.js +9 -2
- package/lib/LmFilter/customFilter/drawer.js +427 -0
- package/lib/LmFilter/customFilter/index.js +107 -2
- package/lib/LmFilter/customFilter/saveModal.js +187 -0
- package/lib/LmFilter/customFilter/valueDrawer.js +238 -0
- package/lib/LmFilter/filterFns/index.js +316 -70
- package/lib/LmFilter/style/{style.css → index.css} +61 -6
- package/lib/LmFilter/style/index.js +1 -1
- package/lib/LmFilter/utils.js +34 -0
- package/lib/LmFilter/wrapper/FilterRoot.js +63 -49
- package/lib/Mentions/index.d.ts +3 -0
- package/lib/Mentions/index.js +15 -0
- package/lib/Mentions/style/index.css +505 -0
- package/lib/Mentions/style/index.d.ts +1 -0
- package/lib/Mentions/style/index.js +3 -0
- package/lib/PageHeader/index.d.ts +24 -0
- package/lib/PageHeader/index.js +194 -0
- package/lib/PageHeader/style/index.css +505 -0
- package/lib/PageHeader/style/index.d.ts +1 -0
- package/lib/PageHeader/style/index.js +3 -0
- package/lib/Popover/index.d.ts +11 -0
- package/lib/Popover/index.js +81 -0
- package/lib/Popover/style/index.css +505 -0
- package/lib/Popover/style/index.d.ts +1 -0
- package/lib/Popover/style/index.js +3 -0
- package/lib/Rate/index.d.ts +3 -0
- package/lib/Rate/index.js +15 -0
- package/lib/Rate/style/index.css +505 -0
- package/lib/Rate/style/index.d.ts +1 -0
- package/lib/Rate/style/index.js +3 -0
- package/lib/Row/README.md.old +22 -0
- package/lib/Row/index.d.ts +3 -0
- package/lib/Row/index.js +11 -0
- package/lib/Row/style/index.css +505 -0
- package/lib/Row/style/index.d.ts +1 -0
- package/lib/Row/style/index.js +3 -0
- package/lib/Steps/index.d.ts +3 -0
- package/lib/Steps/index.js +15 -0
- package/lib/Steps/style/index.css +505 -0
- package/lib/Steps/style/index.d.ts +1 -0
- package/lib/Steps/style/index.js +3 -0
- package/lib/Tooltip/index.d.ts +43 -1
- package/lib/Tooltip/index.js +247 -1
- package/lib/Typography/Base/Ellipsis.d.ts +14 -0
- package/lib/Typography/Base/Ellipsis.js +212 -0
- package/lib/Typography/Base/EllipsisTooltip.d.ts +13 -0
- package/lib/Typography/Base/EllipsisTooltip.js +36 -0
- package/lib/Typography/Base/index.d.ts +54 -0
- package/lib/Typography/Base/index.js +545 -0
- package/lib/Typography/Editable.d.ts +20 -0
- package/lib/Typography/Editable.js +137 -0
- package/lib/Typography/Link.d.ts +7 -0
- package/lib/Typography/Link.js +58 -0
- package/lib/Typography/Paragraph.d.ts +7 -0
- package/lib/Typography/Paragraph.js +26 -0
- package/lib/Typography/Text.d.ts +8 -0
- package/lib/Typography/Text.js +57 -0
- package/lib/Typography/Title.d.ts +9 -0
- package/lib/Typography/Title.js +58 -0
- package/lib/Typography/Typography.d.ts +11 -0
- package/lib/Typography/Typography.js +77 -0
- package/lib/Typography/hooks/useMergedConfig.d.ts +1 -0
- package/lib/Typography/hooks/useMergedConfig.js +21 -0
- package/lib/Typography/hooks/useUpdatedEffect.d.ts +3 -0
- package/lib/Typography/hooks/useUpdatedEffect.js +24 -0
- package/lib/Typography/index.d.ts +15 -0
- package/lib/Typography/index.js +31 -0
- package/lib/Typography/style/index.css +505 -0
- package/lib/Typography/style/index.d.ts +1 -0
- package/lib/Typography/style/index.js +3 -0
- package/lib/_util/colors.d.ts +5 -0
- package/lib/_util/colors.js +14 -0
- package/lib/_util/getRenderPropValue.d.ts +3 -0
- package/lib/_util/getRenderPropValue.js +22 -0
- package/lib/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/lib/_util/hooks/useFlexGapSupport.js +30 -0
- package/lib/_util/hooks/useForceUpdate.d.ts +2 -0
- package/lib/_util/hooks/useForceUpdate.js +24 -0
- package/lib/_util/placements.d.ts +16 -0
- package/lib/_util/placements.js +98 -0
- package/lib/_util/responsiveObserve.d.ts +21 -0
- package/lib/_util/responsiveObserve.js +79 -0
- package/lib/_util/styleChecker.d.ts +4 -0
- package/lib/_util/styleChecker.js +52 -0
- package/lib/_util/transButton.d.ts +9 -0
- package/lib/_util/transButton.js +87 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.js +57 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ npm install git+http://git.codefr.com/UFX/UFX.SCM.linkDesign.git --save
|
|
|
53
53
|
```
|
|
54
54
|
├── style // 样式目录
|
|
55
55
|
│ ├──index.js // 负责引入其他样式
|
|
56
|
-
│ ├──
|
|
56
|
+
│ ├── index.less // 主要样式
|
|
57
57
|
│ └── other.less // 其他样式(例如组件子组件样式)
|
|
58
58
|
├── index.js // 组件
|
|
59
59
|
├── demos // 组件调试demo(在README.md中引入)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type VoidFunction = () => void;
|
|
3
|
+
export interface IApprovalItemProps {
|
|
4
|
+
avator?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
time?: string;
|
|
7
|
+
type?: 'start' | 'comment' | 'carbonCopy' | 'agree' | 'refuse';
|
|
8
|
+
[prop: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface IApprovalProps {
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
close?: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
userType?: 'self' | 'approver';
|
|
17
|
+
status?: number;
|
|
18
|
+
steps?: [];
|
|
19
|
+
onComment: VoidFunction;
|
|
20
|
+
onRefuse: VoidFunction;
|
|
21
|
+
onAgree: VoidFunction;
|
|
22
|
+
}
|
|
23
|
+
declare const LMApproval: React.FC<IApprovalProps>;
|
|
24
|
+
export default LMApproval;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO: 4.0
|
|
3
|
+
*
|
|
4
|
+
* - Remove `dataSource`
|
|
5
|
+
* - `size` not work with customizeInput
|
|
6
|
+
* - CustomizeInput not feedback `ENTER` key since accessibility enhancement
|
|
7
|
+
*/
|
|
8
|
+
import type { BaseSelectRef } from 'rc-select';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from 'antd/es/select';
|
|
11
|
+
import type { InputStatus } from '../_util/statusUtils';
|
|
12
|
+
import { AutoComplete as AntdAutoComplete } from 'antd';
|
|
13
|
+
export interface DataSourceItemObject {
|
|
14
|
+
value: string;
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type DataSourceItemType = DataSourceItemObject | React.ReactNode;
|
|
18
|
+
export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
|
19
|
+
dataSource?: DataSourceItemType[];
|
|
20
|
+
status?: InputStatus;
|
|
21
|
+
}
|
|
22
|
+
declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: AutoCompleteProps<ValueType, OptionType> & {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
} & {
|
|
25
|
+
ref?: React.Ref<BaseSelectRef>;
|
|
26
|
+
}) => React.ReactElement) & {
|
|
27
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
28
|
+
AntdAutoComplete: typeof AntdAutoComplete;
|
|
29
|
+
};
|
|
30
|
+
export default RefAutoComplete;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export interface LmFormProps extends FormProps {
|
|
|
7
7
|
responsive?: Boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface LmFormItemProps extends FormItemProps {
|
|
10
|
-
useStatus: any;
|
|
11
10
|
errorPlacement?: string;
|
|
11
|
+
responsive?: boolean;
|
|
12
12
|
}
|
|
13
13
|
declare const Reform: <Values = any>(props: FormProps<Values> & {
|
|
14
14
|
children?: React.ReactNode;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type ColSpanType = number | string;
|
|
3
|
+
declare type FlexType = number | 'none' | 'auto' | string;
|
|
4
|
+
export interface ColSize {
|
|
5
|
+
flex?: FlexType;
|
|
6
|
+
span?: ColSpanType;
|
|
7
|
+
order?: ColSpanType;
|
|
8
|
+
offset?: ColSpanType;
|
|
9
|
+
push?: ColSpanType;
|
|
10
|
+
pull?: ColSpanType;
|
|
11
|
+
}
|
|
12
|
+
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
flex?: FlexType;
|
|
14
|
+
span?: ColSpanType;
|
|
15
|
+
order?: ColSpanType;
|
|
16
|
+
offset?: ColSpanType;
|
|
17
|
+
push?: ColSpanType;
|
|
18
|
+
pull?: ColSpanType;
|
|
19
|
+
xs?: ColSpanType | ColSize;
|
|
20
|
+
sm?: ColSpanType | ColSize;
|
|
21
|
+
md?: ColSpanType | ColSize;
|
|
22
|
+
lg?: ColSpanType | ColSize;
|
|
23
|
+
xl?: ColSpanType | ColSize;
|
|
24
|
+
xxl?: ColSpanType | ColSize;
|
|
25
|
+
prefixCls?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export default Col;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Col from './col';
|
|
2
|
+
import Row from './row';
|
|
3
|
+
declare function useBreakpoint(): Partial<Record<import("../_util/responsiveObserve").Breakpoint, boolean>>;
|
|
4
|
+
export type { ColProps, ColSize } from './col';
|
|
5
|
+
export type { RowProps } from './row';
|
|
6
|
+
export { Row, Col };
|
|
7
|
+
export { Grid as AntdGrid } from 'antd';
|
|
8
|
+
declare const _default: {
|
|
9
|
+
useBreakpoint: typeof useBreakpoint;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Breakpoint } from '../_util/responsiveObserve';
|
|
3
|
+
declare const RowAligns: ["top", "middle", "bottom", "stretch"];
|
|
4
|
+
declare const RowJustify: ["start", "end", "center", "space-around", "space-between", "space-evenly"];
|
|
5
|
+
export declare type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;
|
|
6
|
+
export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
gutter?: Gutter | [Gutter, Gutter];
|
|
8
|
+
align?: typeof RowAligns[number];
|
|
9
|
+
justify?: typeof RowJustify[number];
|
|
10
|
+
prefixCls?: string;
|
|
11
|
+
wrap?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default Row;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -8,9 +8,11 @@ interface ILmEditTable extends TableProps<any> {
|
|
|
8
8
|
rowHoverEdit?: boolean;
|
|
9
9
|
isUseForm?: boolean;
|
|
10
10
|
isHoverEdit?: boolean;
|
|
11
|
-
useQuickOpetate?: boolean;
|
|
11
|
+
useQuickOpetate?: boolean | string[];
|
|
12
12
|
sortOpen?: boolean;
|
|
13
13
|
size?: TableProps<any>['size'];
|
|
14
|
+
colSortOpen?: boolean;
|
|
15
|
+
filterChange?: (data: TableProps<any>['columns']) => void;
|
|
14
16
|
}
|
|
15
17
|
interface ILmColumns extends TableColumnType<any> {
|
|
16
18
|
editable?: 'input' | 'number' | 'inputRange' | 'date' | 'select' | 'multiple' | 'checkbox' | 'radio' | 'switch' | 'upload' | 'operate' | 'lm_edit_opetate' | 'render';
|
|
@@ -19,6 +21,7 @@ interface ILmColumns extends TableColumnType<any> {
|
|
|
19
21
|
editEnum?: any;
|
|
20
22
|
valueType?: any;
|
|
21
23
|
order?: number;
|
|
24
|
+
componentProps?: Record<string, any>;
|
|
22
25
|
}
|
|
23
26
|
export declare type TLmEditTable = {
|
|
24
27
|
onChange?: (data: any[]) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SortableItem(props: any): JSX.Element;
|
|
@@ -1,22 +1,40 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export function initLocalization(props: any): {
|
|
2
|
+
basicFilter: any;
|
|
3
|
+
basicQuery: {};
|
|
4
|
+
customFilter: any;
|
|
5
|
+
customQuery: {};
|
|
6
|
+
};
|
|
7
|
+
export default useCoreOptions;
|
|
8
|
+
declare function useCoreOptions({ state, dispatch, props }: {
|
|
3
9
|
state: any;
|
|
4
10
|
dispatch: any;
|
|
5
11
|
props: any;
|
|
6
12
|
}): {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
CoreMethods: {
|
|
14
|
+
onQuery: ({ basicFilter, complexFilter, customFilter, basicQuery, type }?: any) => void;
|
|
15
|
+
setCustomFilter: (val: any) => void;
|
|
16
|
+
};
|
|
17
|
+
RefMethods: {
|
|
18
|
+
getState: () => any;
|
|
19
|
+
getBasicFilter: () => any;
|
|
20
|
+
getFilterValue: ({ field, type }: any) => any;
|
|
21
|
+
getFilterQuery: (originData?: any) => {
|
|
22
|
+
basicFilter: {};
|
|
23
|
+
globalQuery: {
|
|
24
|
+
filters: {
|
|
25
|
+
conditions: any[];
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
filterQuery: {
|
|
29
|
+
filters: {
|
|
30
|
+
conditions: any[];
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
setFilterValue: (itemValue: any, item: any) => void;
|
|
36
|
+
setFilterFieldValue: (field: any, value: any) => void;
|
|
37
|
+
setLocalization: (localization?: any) => void;
|
|
38
|
+
onClearChange: () => void;
|
|
39
|
+
};
|
|
22
40
|
};
|
package/dist/LmFilter/utils.d.ts
CHANGED
|
@@ -7,3 +7,5 @@ export function getRanges(): {
|
|
|
7
7
|
近一年: string[];
|
|
8
8
|
};
|
|
9
9
|
export function getFlatItem(filterValues: any, originArr: any, type?: string): any[];
|
|
10
|
+
export function getFilterShow(basicFilter: any, dataSource: any): {};
|
|
11
|
+
export function getFilterShowQuery(basicQuery: any, dataSource: any): any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AvatarProps } from '../Avatar';
|
|
3
|
+
import type { BreadcrumbProps } from '../Breadcrumb';
|
|
4
|
+
import Breadcrumb from '../Breadcrumb';
|
|
5
|
+
import type { TagType } from 'antd/es/tag';
|
|
6
|
+
export interface PageHeaderProps {
|
|
7
|
+
backIcon?: React.ReactNode;
|
|
8
|
+
prefixCls?: string;
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
subTitle?: React.ReactNode;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
breadcrumb?: BreadcrumbProps | React.ReactElement<typeof Breadcrumb>;
|
|
13
|
+
breadcrumbRender?: (props: PageHeaderProps, defaultDom: React.ReactNode) => React.ReactNode;
|
|
14
|
+
tags?: React.ReactElement<TagType> | React.ReactElement<TagType>[];
|
|
15
|
+
footer?: React.ReactNode;
|
|
16
|
+
extra?: React.ReactNode;
|
|
17
|
+
avatar?: AvatarProps;
|
|
18
|
+
onBack?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
ghost?: boolean;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare const PageHeader: React.FC<PageHeaderProps>;
|
|
24
|
+
export default PageHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AbstractTooltipProps } from '../Tooltip';
|
|
3
|
+
import type { RenderFunction } from '../_util/getRenderPropValue';
|
|
4
|
+
export interface PopoverProps extends AbstractTooltipProps {
|
|
5
|
+
title?: React.ReactNode | RenderFunction;
|
|
6
|
+
content?: React.ReactNode | RenderFunction;
|
|
7
|
+
/** @private Used For Popconfirm. Safe to remove. */
|
|
8
|
+
_overlay?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, keyof PopoverProps> & React.RefAttributes<unknown>>;
|
|
11
|
+
export default Popover;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { placements as Placements } from 'rc-tooltip/lib/placements';
|
|
2
|
+
import type { TooltipProps as RcTooltipProps } from 'rc-tooltip/lib/Tooltip';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import type { PresetColorType } from '../_util/colors';
|
|
5
|
+
import { AdjustOverflow, PlacementsConfig } from '../_util/placements';
|
|
6
|
+
import type { LiteralUnion } from '../_util/type';
|
|
7
|
+
export type { AdjustOverflow, PlacementsConfig };
|
|
8
|
+
export declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
9
|
+
export interface TooltipAlignConfig {
|
|
10
|
+
points?: [string, string];
|
|
11
|
+
offset?: [number | string, number | string];
|
|
12
|
+
targetOffset?: [number | string, number | string];
|
|
13
|
+
overflow?: {
|
|
14
|
+
adjustX: boolean;
|
|
15
|
+
adjustY: boolean;
|
|
16
|
+
};
|
|
17
|
+
useCssRight?: boolean;
|
|
18
|
+
useCssBottom?: boolean;
|
|
19
|
+
useCssTransform?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface AbstractTooltipProps extends Partial<Omit<RcTooltipProps, 'children'>> {
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
className?: string;
|
|
24
|
+
color?: LiteralUnion<PresetColorType, string>;
|
|
25
|
+
placement?: TooltipPlacement;
|
|
26
|
+
builtinPlacements?: typeof Placements;
|
|
27
|
+
openClassName?: string;
|
|
28
|
+
arrowPointAtCenter?: boolean;
|
|
29
|
+
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
30
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare type RenderFunction = () => React.ReactNode;
|
|
34
|
+
export interface TooltipPropsWithOverlay extends AbstractTooltipProps {
|
|
35
|
+
title?: React.ReactNode | RenderFunction;
|
|
36
|
+
overlay?: React.ReactNode | RenderFunction;
|
|
37
|
+
}
|
|
38
|
+
export interface TooltipPropsWithTitle extends AbstractTooltipProps {
|
|
39
|
+
title: React.ReactNode | RenderFunction;
|
|
40
|
+
overlay?: React.ReactNode | RenderFunction;
|
|
41
|
+
}
|
|
42
|
+
export declare type TooltipProps = TooltipPropsWithTitle | TooltipPropsWithOverlay;
|
|
43
|
+
declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
2
44
|
export default Tooltip;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EllipsisProps {
|
|
3
|
+
enabledMeasure?: boolean;
|
|
4
|
+
text?: React.ReactNode;
|
|
5
|
+
width: number;
|
|
6
|
+
rows: number;
|
|
7
|
+
children: (cutChildren: React.ReactNode[], needEllipsis: boolean) => React.ReactNode;
|
|
8
|
+
onEllipsis: (isEllipsis: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Ellipsis: {
|
|
11
|
+
({ enabledMeasure, children, text, width, rows, onEllipsis }: EllipsisProps): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default Ellipsis;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TooltipProps } from '../../Tooltip';
|
|
3
|
+
export interface EllipsisTooltipProps {
|
|
4
|
+
tooltipProps?: TooltipProps;
|
|
5
|
+
enabledEllipsis: boolean;
|
|
6
|
+
isEllipsis?: boolean;
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
declare const EllipsisTooltip: {
|
|
10
|
+
({ enabledEllipsis, isEllipsis, children, tooltipProps, }: EllipsisTooltipProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default EllipsisTooltip;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { TooltipProps } from '../../Tooltip';
|
|
4
|
+
import type { TypographyProps } from '../Typography';
|
|
5
|
+
export declare type BaseType = 'secondary' | 'success' | 'warning' | 'danger';
|
|
6
|
+
interface CopyConfig {
|
|
7
|
+
text?: string;
|
|
8
|
+
onCopy?: (event?: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
tooltips?: boolean | React.ReactNode;
|
|
11
|
+
format?: 'text/plain' | 'text/html';
|
|
12
|
+
}
|
|
13
|
+
interface EditConfig {
|
|
14
|
+
editing?: boolean;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
tooltip?: boolean | React.ReactNode;
|
|
17
|
+
onStart?: () => void;
|
|
18
|
+
onChange?: (value: string) => void;
|
|
19
|
+
onCancel?: () => void;
|
|
20
|
+
onEnd?: () => void;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
autoSize?: boolean | AutoSizeType;
|
|
23
|
+
triggerType?: ('icon' | 'text')[];
|
|
24
|
+
enterIcon?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export interface EllipsisConfig {
|
|
27
|
+
rows?: number;
|
|
28
|
+
expandable?: boolean;
|
|
29
|
+
suffix?: string;
|
|
30
|
+
symbol?: React.ReactNode;
|
|
31
|
+
onExpand?: React.MouseEventHandler<HTMLElement>;
|
|
32
|
+
onEllipsis?: (ellipsis: boolean) => void;
|
|
33
|
+
tooltip?: React.ReactNode | TooltipProps;
|
|
34
|
+
}
|
|
35
|
+
export interface BlockProps extends TypographyProps {
|
|
36
|
+
title?: string;
|
|
37
|
+
editable?: boolean | EditConfig;
|
|
38
|
+
copyable?: boolean | CopyConfig;
|
|
39
|
+
type?: BaseType;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
ellipsis?: boolean | EllipsisConfig;
|
|
42
|
+
code?: boolean;
|
|
43
|
+
mark?: boolean;
|
|
44
|
+
underline?: boolean;
|
|
45
|
+
delete?: boolean;
|
|
46
|
+
strong?: boolean;
|
|
47
|
+
keyboard?: boolean;
|
|
48
|
+
italic?: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface InternalBlockProps extends BlockProps {
|
|
51
|
+
component: string;
|
|
52
|
+
}
|
|
53
|
+
declare const Base: React.ForwardRefExoticComponent<InternalBlockProps & React.RefAttributes<unknown>>;
|
|
54
|
+
export default Base;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { DirectionType } from 'antd/es/config-provider';
|
|
4
|
+
interface EditableProps {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
['aria-label']?: string;
|
|
8
|
+
onSave: (value: string) => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
onEnd?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
direction?: DirectionType;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
autoSize?: boolean | AutoSizeType;
|
|
16
|
+
enterIcon?: React.ReactNode;
|
|
17
|
+
component?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const Editable: React.FC<EditableProps>;
|
|
20
|
+
export default Editable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BlockProps } from './Base';
|
|
3
|
+
export interface LinkProps extends BlockProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'type'> {
|
|
4
|
+
ellipsis?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
export default _default;
|