linkmore-design 1.0.87 → 1.0.89

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 (51) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/AutoComplete/index.d.ts +1 -2
  3. package/dist/CardTable/hooks/usePagination.d.ts +1 -1
  4. package/dist/CardTable/utils.d.ts +1 -1
  5. package/dist/FullScreen/demos/basic.d.ts +2 -0
  6. package/dist/FullScreen/demos/useInModal.d.ts +2 -0
  7. package/dist/FullScreen/index.d.ts +10 -0
  8. package/dist/FullScreen/style/index.d.ts +1 -0
  9. package/dist/IconFont/index.d.ts +2 -1
  10. package/dist/LmEditTable/EditTable.d.ts +1 -0
  11. package/dist/LmFilter/components/CascaderFilter.d.ts +1 -1
  12. package/dist/LmFilter/components/CheckboxFilter.d.ts +1 -1
  13. package/dist/LmFilter/components/DateFilter.d.ts +1 -1
  14. package/dist/LmFilter/components/SelectFilter.d.ts +1 -1
  15. package/dist/LmSelect/useCheckboxOptions.d.ts +1 -1
  16. package/dist/_util/placements.d.ts +1 -0
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.umd.css +67982 -4472
  19. package/dist/index.umd.js +147751 -122041
  20. package/dist/index.umd.min.css +2 -2
  21. package/dist/index.umd.min.js +20 -20
  22. package/es/AutoComplete/index.d.ts +1 -2
  23. package/es/FullScreen/index.d.ts +10 -0
  24. package/es/FullScreen/index.js +26 -0
  25. package/es/FullScreen/style/index.css +521 -0
  26. package/es/FullScreen/style/index.d.ts +1 -0
  27. package/es/FullScreen/style/index.js +1 -0
  28. package/es/IconFont/index.d.ts +3 -0
  29. package/es/IconFont/index.js +3 -12
  30. package/es/LmEditTable/EditTable.d.ts +1 -0
  31. package/es/LmEditTable/EditTable.js +19 -10
  32. package/es/LmEditTable/style/index.css +1 -0
  33. package/es/LmSelect/useCheckboxOptions.d.ts +1 -1
  34. package/es/_util/placements.d.ts +1 -0
  35. package/es/index.d.ts +2 -0
  36. package/es/index.js +2 -1
  37. package/lib/AutoComplete/index.d.ts +1 -2
  38. package/lib/FullScreen/index.d.ts +10 -0
  39. package/lib/FullScreen/index.js +39 -0
  40. package/lib/FullScreen/style/index.css +521 -0
  41. package/lib/FullScreen/style/index.d.ts +1 -0
  42. package/lib/FullScreen/style/index.js +3 -0
  43. package/lib/IconFont/index.d.ts +3 -0
  44. package/lib/LmEditTable/EditTable.d.ts +1 -0
  45. package/lib/LmEditTable/EditTable.js +18 -10
  46. package/lib/LmEditTable/style/index.css +1 -0
  47. package/lib/LmSelect/useCheckboxOptions.d.ts +1 -1
  48. package/lib/_util/placements.d.ts +1 -0
  49. package/lib/index.d.ts +2 -0
  50. package/lib/index.js +9 -1
  51. package/package.json +1 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ #
2
+ ## V2.0.0
3
+ `2020-12-12`
4
+
5
+ * 升级项目中全部依赖库版本,主要包括:react17、antd4、webpack5...
6
+ * 增加 commitlint 规范git提交;
7
+ * 增加 husky + lint-staged + Prettier 规范代码提交校验
8
+ * 优化 eslint + prettier 规范项目代码风格
9
+
10
+
11
+ ## V1.0.0
12
+ 第一版
@@ -10,7 +10,6 @@ import * as React from 'react';
10
10
  import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from 'antd/es/select';
11
11
  import type { InputStatus } from '../_util/statusUtils';
12
12
  import { AutoComplete as AntdAutoComplete } from 'antd';
13
- declare const Option: import("rc-select/lib/Option").OptionFC;
14
13
  export interface DataSourceItemObject {
15
14
  value: string;
16
15
  text: string;
@@ -25,7 +24,7 @@ declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionT
25
24
  } & {
26
25
  ref?: React.Ref<BaseSelectRef>;
27
26
  }) => React.ReactElement) & {
28
- Option: typeof Option;
27
+ Option: import("rc-select/lib/Option").OptionFC;
29
28
  AntdAutoComplete: typeof AntdAutoComplete;
30
29
  };
31
30
  export default RefAutoComplete;
@@ -1,6 +1,6 @@
1
1
  export default usePagination;
2
2
  declare function usePagination(service: any, options?: {}): {
3
- refetch: ({ current, pageSize }: {
3
+ refetch: ({ current: c, pageSize: p }: {
4
4
  current?: any;
5
5
  pageSize?: any;
6
6
  }) => Promise<void>;
@@ -1,3 +1,3 @@
1
- export function getResizeColumnCount({ width }: {
1
+ export function getResizeColumnCount({ width: totalWidth }: {
2
2
  width: any;
3
3
  }, colWidth: any): 2 | 3 | 5 | 4 | 6 | 7;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface IFullScreenProps {
3
+ className?: string;
4
+ status?: boolean;
5
+ style?: React.CSSProperties;
6
+ children: any;
7
+ onClose: () => void;
8
+ }
9
+ declare const FullScreen: (props: IFullScreenProps) => any;
10
+ export default FullScreen;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -1,2 +1,3 @@
1
- export default IconFont;
1
+ /// <reference types="react" />
2
2
  declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
3
+ export default IconFont;
@@ -18,6 +18,7 @@ interface ILmEditTable extends TableProps<any> {
18
18
  creatorButtonText?: string;
19
19
  style?: Record<string, any>;
20
20
  initData?: Record<string, any> | (() => Record<string, any>);
21
+ customAddClick?: () => void;
21
22
  };
22
23
  /** 是否为强制更新 */
23
24
  shouldUpdate?: boolean;
@@ -1,5 +1,5 @@
1
1
  export default CascaderFilter;
2
- declare function CascaderFilter({ instance, item }: {
2
+ declare function CascaderFilter({ instance, item: itemProps }: {
3
3
  instance: any;
4
4
  item: any;
5
5
  }): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export default CheckboxFilter;
2
- declare function CheckboxFilter({ instance, item }: {
2
+ declare function CheckboxFilter({ instance, item: itemProps }: {
3
3
  instance: any;
4
4
  item: any;
5
5
  }): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export default DatePickerFilter;
2
- declare function DatePickerFilter({ instance, item }: {
2
+ declare function DatePickerFilter({ instance, item: itemProps }: {
3
3
  instance: any;
4
4
  item: any;
5
5
  }): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export default SelectFilter;
2
- declare function SelectFilter({ instance, item }: {
2
+ declare function SelectFilter({ instance, item: itemProps }: {
3
3
  instance: any;
4
4
  item: any;
5
5
  }): JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const useCheckboxOptions: (options: any, { value, onChange }: {
1
+ export declare const useCheckboxOptions: (options: any, { value, onChange: onCheckChange }: {
2
2
  value?: any[];
3
3
  onChange: any;
4
4
  }, filter?: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ import type { BuildInPlacements } from 'rc-trigger';
1
2
  export interface AdjustOverflow {
2
3
  adjustX?: 0 | 1;
3
4
  adjustY?: 0 | 1;
package/dist/index.d.ts CHANGED
@@ -119,3 +119,5 @@ export { default as Descriptions } from './Descriptions';
119
119
  export type { DescriptionsProps } from './Descriptions';
120
120
  export { default as InputRange } from './InputRange';
121
121
  export type { InputRangeProps } from './InputRange';
122
+ export { default as FullScreen } from './FullScreen';
123
+ export type { IFullScreenProps } from './FullScreen';