linkmore-design 1.1.13-alpha.4 → 1.1.13-alpha.6

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.
Files changed (118) hide show
  1. package/dist/Button/demos/ghost.d.ts +2 -0
  2. package/dist/Descriptions/Cell.d.ts +1 -0
  3. package/dist/Descriptions/Item.d.ts +1 -0
  4. package/dist/LmDrag/LmDrag.d.ts +4 -0
  5. package/dist/LmDrag/components/DndContainer.d.ts +3 -0
  6. package/dist/LmDrag/components/sortableBox.d.ts +5 -0
  7. package/dist/LmDrag/components/sortableItem.d.ts +7 -0
  8. package/dist/LmDrag/demos/basic.d.ts +2 -0
  9. package/dist/LmDrag/index.d.ts +10 -0
  10. package/dist/LmDrag/style/index.d.ts +1 -0
  11. package/dist/LmDrag/style/variables.d.ts +1 -0
  12. package/dist/LmDrag/wrapper/Root.d.ts +3 -0
  13. package/dist/LmEditTable/EditTable.d.ts +15 -3
  14. package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  15. package/dist/LmUpload/fns/index.d.ts +1 -0
  16. package/dist/QuickMenu/index.d.ts +2 -1
  17. package/dist/Select/index.d.ts +3 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.umd.js +804 -119
  20. package/dist/index.umd.min.js +9 -9
  21. package/dist/variables.css +67 -25
  22. package/es/Button/index.js +4 -3
  23. package/es/Button/style/index.css +28 -25
  24. package/es/Button/style/variables.css +28 -25
  25. package/es/Descriptions/Cell.d.ts +1 -0
  26. package/es/Descriptions/Cell.js +5 -2
  27. package/es/Descriptions/Item.d.ts +1 -0
  28. package/es/Descriptions/Row.js +6 -1
  29. package/es/InputNumber/index.js +7 -9
  30. package/es/LmDrag/LmDrag.d.ts +4 -0
  31. package/es/LmDrag/LmDrag.js +30 -0
  32. package/es/LmDrag/components/DndContainer.d.ts +3 -0
  33. package/es/LmDrag/components/DndContainer.js +121 -0
  34. package/es/LmDrag/components/sortableBox.d.ts +5 -0
  35. package/es/LmDrag/components/sortableBox.js +23 -0
  36. package/es/LmDrag/components/sortableItem.d.ts +7 -0
  37. package/es/LmDrag/components/sortableItem.js +41 -0
  38. package/es/LmDrag/index.d.ts +10 -0
  39. package/es/LmDrag/index.js +3 -0
  40. package/es/LmDrag/style/index.css +0 -0
  41. package/es/LmDrag/style/index.d.ts +1 -0
  42. package/es/LmDrag/style/index.js +1 -0
  43. package/es/LmDrag/style/variables.css +0 -0
  44. package/es/LmDrag/style/variables.d.ts +1 -0
  45. package/es/LmDrag/style/variables.js +1 -0
  46. package/es/LmDrag/wrapper/Root.d.ts +3 -0
  47. package/es/LmDrag/wrapper/Root.js +12 -0
  48. package/es/LmEditTable/EditTable.d.ts +15 -3
  49. package/es/LmEditTable/EditTable.js +147 -67
  50. package/es/LmEditTable/sortableItemCol.js +38 -11
  51. package/es/LmEditTable/util.js +16 -5
  52. package/es/LmFilter/components/DropdownFIlter.js +27 -6
  53. package/es/LmFilter/style/index.css +12 -0
  54. package/es/LmFilter/style/variables.css +12 -0
  55. package/es/LmUpload/LmUpload.js +2 -1
  56. package/es/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  57. package/es/LmUpload/UploadList/ItemPictureCard.js +4 -3
  58. package/es/LmUpload/UploadList/index.js +52 -2
  59. package/es/LmUpload/fns/index.d.ts +1 -0
  60. package/es/LmUpload/fns/index.js +19 -3
  61. package/es/QuickMenu/index.d.ts +2 -1
  62. package/es/QuickMenu/index.js +11 -12
  63. package/es/Select/index.d.ts +3 -0
  64. package/es/Select/index.js +28 -1
  65. package/es/Select/style/index.css +27 -0
  66. package/es/Select/style/variables.css +27 -0
  67. package/es/index.d.ts +2 -0
  68. package/es/index.js +2 -1
  69. package/es/styles/variables.css +67 -25
  70. package/lib/Button/index.js +4 -3
  71. package/lib/Button/style/index.css +28 -25
  72. package/lib/Button/style/variables.css +28 -25
  73. package/lib/Descriptions/Cell.d.ts +1 -0
  74. package/lib/Descriptions/Cell.js +5 -2
  75. package/lib/Descriptions/Item.d.ts +1 -0
  76. package/lib/Descriptions/Row.js +6 -1
  77. package/lib/InputNumber/index.js +9 -9
  78. package/lib/LmDrag/LmDrag.d.ts +4 -0
  79. package/lib/LmDrag/LmDrag.js +44 -0
  80. package/lib/LmDrag/components/DndContainer.d.ts +3 -0
  81. package/lib/LmDrag/components/DndContainer.js +138 -0
  82. package/lib/LmDrag/components/sortableBox.d.ts +5 -0
  83. package/lib/LmDrag/components/sortableBox.js +37 -0
  84. package/lib/LmDrag/components/sortableItem.d.ts +7 -0
  85. package/lib/LmDrag/components/sortableItem.js +54 -0
  86. package/lib/LmDrag/index.d.ts +10 -0
  87. package/lib/LmDrag/index.js +19 -0
  88. package/lib/LmDrag/style/index.css +0 -0
  89. package/lib/LmDrag/style/index.d.ts +1 -0
  90. package/lib/LmDrag/style/index.js +3 -0
  91. package/lib/LmDrag/style/variables.css +0 -0
  92. package/lib/LmDrag/style/variables.d.ts +1 -0
  93. package/lib/LmDrag/style/variables.js +3 -0
  94. package/lib/LmDrag/wrapper/Root.d.ts +3 -0
  95. package/lib/LmDrag/wrapper/Root.js +26 -0
  96. package/lib/LmEditTable/EditTable.d.ts +15 -3
  97. package/lib/LmEditTable/EditTable.js +146 -66
  98. package/lib/LmEditTable/sortableItemCol.js +34 -8
  99. package/lib/LmEditTable/util.js +15 -4
  100. package/lib/LmFilter/components/DropdownFIlter.js +27 -6
  101. package/lib/LmFilter/style/index.css +12 -0
  102. package/lib/LmFilter/style/variables.css +12 -0
  103. package/lib/LmUpload/LmUpload.js +2 -1
  104. package/lib/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  105. package/lib/LmUpload/UploadList/ItemPictureCard.js +4 -3
  106. package/lib/LmUpload/UploadList/index.js +53 -2
  107. package/lib/LmUpload/fns/index.d.ts +1 -0
  108. package/lib/LmUpload/fns/index.js +19 -3
  109. package/lib/QuickMenu/index.d.ts +2 -1
  110. package/lib/QuickMenu/index.js +11 -12
  111. package/lib/Select/index.d.ts +3 -0
  112. package/lib/Select/index.js +29 -1
  113. package/lib/Select/style/index.css +27 -0
  114. package/lib/Select/style/variables.css +27 -0
  115. package/lib/index.d.ts +2 -0
  116. package/lib/index.js +15 -1
  117. package/lib/styles/variables.css +67 -25
  118. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  export interface CellProps {
3
3
  itemPrefixCls: string;
4
4
  span: number;
5
+ rowSpan: number;
5
6
  className?: string;
6
7
  component: string;
7
8
  style?: React.CSSProperties;
@@ -8,6 +8,7 @@ export interface DescriptionsItemProps {
8
8
  contentStyle?: React.CSSProperties;
9
9
  children: React.ReactNode;
10
10
  span?: number;
11
+ rowSpan?: number;
11
12
  }
12
13
  declare const DescriptionsItem: React.FC<DescriptionsItemProps>;
13
14
  export default DescriptionsItem;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LmDragProps } from '..';
3
+ declare const _default: React.ForwardRefExoticComponent<LmDragProps & React.RefAttributes<unknown>>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { LmDragProps } from '..';
2
+ declare const DndContainer: ({ options, rowKey, children, move }: LmDragProps) => JSX.Element;
3
+ export default DndContainer;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ instance }: {
3
+ instance: any;
4
+ }) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ index, item, instance }: {
3
+ index: any;
4
+ item: any;
5
+ instance: any;
6
+ }) => JSX.Element>;
7
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React, { ReactNode } from 'react';
2
+ import LmDrag from './LmDrag';
3
+ export default LmDrag;
4
+ export { LmDrag };
5
+ export interface LmDragProps {
6
+ options?: Array<any>;
7
+ rowKey: string;
8
+ move?: (activeId: string, overId: string, fileList: Array<any>) => void;
9
+ children?: ReactNode | React.FC | null;
10
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './variables.less';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -23,6 +23,18 @@ interface ILmEditTable extends TableProps<any> {
23
23
  };
24
24
  /** 是否为强制更新 */
25
25
  shouldUpdate?: boolean;
26
+ rowSelection?: TableProps<any>['rowSelection'] & {
27
+ selectedRows?: Record<string, any>;
28
+ };
29
+ }
30
+ export interface CountdownHandle {
31
+ setRow: (data: any) => void;
32
+ getCheckboxRecords: () => any[];
33
+ clearSelect: () => void;
34
+ customSetCheckboxRecords: (data: any[]) => void;
35
+ deleteRowData: (record: string | Record<string, any>) => void;
36
+ addRowData: (record: string | Record<string, any>, defaultValue?: Record<string, any> | Record<string, any>[], addInChild?: boolean) => void;
37
+ valid: () => void;
26
38
  }
27
39
  interface ILmColumns extends TableColumnType<any> {
28
40
  editable?: 'input' | 'number' | 'inputRange' | 'date' | 'select' | 'multiple' | 'checkbox' | 'radio' | 'switch' | 'upload' | 'operate' | 'lm_edit_opetate' | 'render';
@@ -37,11 +49,11 @@ interface ILmColumns extends TableColumnType<any> {
37
49
  export declare type TLmEditTable = {
38
50
  onChange?: (data: any[]) => void;
39
51
  columns: ILmColumns[];
40
- virtual: boolean;
52
+ virtual?: boolean;
41
53
  } & ILmEditTable;
42
54
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
43
55
  onChange?: (data: any[]) => void;
44
56
  columns: ILmColumns[];
45
- virtual: boolean;
46
- } & ILmEditTable & React.RefAttributes<unknown>>>;
57
+ virtual?: boolean;
58
+ } & ILmEditTable & React.RefAttributes<CountdownHandle>>>;
47
59
  export default _default;
@@ -1,6 +1,7 @@
1
- declare const PictureItem: ({ file, index, instance }: {
1
+ declare const PictureItem: ({ file, index, instance, listeners }: {
2
2
  file: any;
3
3
  index: any;
4
4
  instance: any;
5
+ listeners: any;
5
6
  }) => JSX.Element;
6
7
  export default PictureItem;
@@ -15,6 +15,7 @@ declare const useCoreOptions: ({ state, dispatch, props }: {
15
15
  remove: (file: any) => Promise<void>;
16
16
  preview: (file: any) => void;
17
17
  download: (file: any) => void;
18
+ move: (active: any, over: any, fileList: any) => void;
18
19
  };
19
20
  RefMethods: {
20
21
  getState: () => any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface IMenuData {
2
+ export interface IMenuData {
3
3
  menuId: string;
4
4
  title: string | React.ReactNode;
5
5
  hidden?: boolean;
@@ -10,6 +10,7 @@ export interface IQuickMenuProps {
10
10
  top?: number;
11
11
  menuData: IMenuData[];
12
12
  warpElement: any;
13
+ root?: IntersectionObserver['root'] | undefined;
13
14
  }
14
15
  declare const LMQuickMenu: React.FC<IQuickMenuProps>;
15
16
  export default LMQuickMenu;
@@ -6,6 +6,9 @@ export interface ISelectProps extends SelectProps {
6
6
  Option?: typeof Select.Option;
7
7
  OptGroup?: typeof Select.OptGroup;
8
8
  defaultLabel?: string;
9
+ suffix?: React.ReactNode;
10
+ icon?: React.ReactNode;
11
+ iconClick?: () => void;
9
12
  }
10
13
  declare type SelectType = typeof Select & typeof Select.Option & typeof Select.OptGroup;
11
14
  declare const LMSelect: SelectType;
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export type { TooltipProps } from './Tooltip';
51
51
  export { default as Form } from './Form';
52
52
  export { default as Spin } from './Spin';
53
53
  export { default as LmEditTable } from './LmEditTable';
54
+ export type { TLmEditTable, CountdownHandle } from './LmEditTable/EditTable';
54
55
  export { default as List } from './List';
55
56
  export { default as LMQuickMenu } from './QuickMenu';
56
57
  export { default as DatePicker } from './DatePicker';
@@ -125,3 +126,4 @@ export { default as CropImg } from './CropImg';
125
126
  export type { CropImgProps } from './CropImg';
126
127
  export { default as ImageViewer } from './ImageViewer';
127
128
  export type { ImageViewerProps } from './ImageViewer';
129
+ export * from './LmDrag';