linkmore-design 1.0.84 → 1.0.87
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/dist/ConfigProvider/demos/componentSize.d.ts +2 -0
- package/dist/ConfigProvider/demos/style.d.ts +2 -0
- package/dist/ConfigProvider/index.d.ts +2 -2
- package/dist/Form/demos/responsive.d.ts +1 -0
- package/dist/Form/demos/responsiveAll.d.ts +3 -0
- package/dist/Form/util.d.ts +1 -0
- package/dist/ImageViewer/fns/index.d.ts +1 -0
- package/dist/Input/index.d.ts +1 -1
- package/dist/InputRange/demos/basic.d.ts +2 -0
- package/dist/InputRange/index.d.ts +8 -0
- package/dist/InputRange/style/index.d.ts +1 -0
- package/dist/LmEditTable/EditTable.d.ts +2 -0
- package/dist/LmTable/util.d.ts +7 -0
- package/dist/LmTable/virTual/VirtualTable.d.ts +2 -2
- package/dist/LmUpload/LmUpload.d.ts +1 -0
- package/dist/LmUpload/demos/formCard.d.ts +2 -0
- package/dist/LmUpload/fns/index.d.ts +1 -0
- package/dist/LmUpload/utils.d.ts +1 -0
- package/dist/LmUpload/wrapper/UploadWrapper.d.ts +4 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.umd.js +483 -218
- package/dist/index.umd.min.js +5 -5
- package/es/Button/index.js +4 -2
- package/es/ConfigProvider/cssVariables.js +1 -1
- package/es/ConfigProvider/index.d.ts +2 -2
- package/es/ConfigProvider/index.js +2 -1
- package/es/DatePicker/generatePicker/generateSinglePicker.js +3 -3
- package/es/Form/container.js +2 -16
- package/es/Form/style/index.css +8 -2
- package/es/Form/util.d.ts +1 -0
- package/es/Form/util.js +22 -0
- package/es/ImageViewer/components/Carousel.js +20 -2
- package/es/ImageViewer/components/Thumb.js +24 -5
- package/es/ImageViewer/fns/index.d.ts +1 -0
- package/es/ImageViewer/fns/index.js +19 -2
- package/es/ImageViewer/style/index.css +26 -15
- package/es/Input/index.d.ts +1 -1
- package/es/Input/index.js +6 -2
- package/es/Input/style/index.css +9 -0
- package/es/InputRange/index.d.ts +8 -0
- package/es/InputRange/index.js +67 -0
- package/es/InputRange/style/index.css +511 -0
- package/es/InputRange/style/index.d.ts +1 -0
- package/es/InputRange/style/index.js +1 -0
- package/es/LmEditTable/EditTable.d.ts +2 -0
- package/es/LmEditTable/EditTable.js +19 -5
- package/es/LmFilter/style/index.css +159 -0
- package/es/LmTable/Table.js +50 -64
- package/es/LmTable/components/sheelTableCell.js +2 -2
- package/es/LmTable/style/index.css +1 -0
- package/es/LmTable/util.js +73 -16
- package/es/LmTable/virTual/VirtualTable.d.ts +2 -2
- package/es/LmTable/virTual/VirtualTable.js +6 -4
- package/es/LmUpload/LmUpload.d.ts +1 -0
- package/es/LmUpload/LmUpload.js +46 -26
- package/es/LmUpload/UploadList/ItemPicture.js +5 -4
- package/es/LmUpload/UploadList/ItemPictureCard.js +26 -12
- package/es/LmUpload/UploadList/ItemText.js +4 -3
- package/es/LmUpload/body/UploadCore.js +1 -1
- package/es/LmUpload/fns/index.d.ts +1 -0
- package/es/LmUpload/fns/index.js +91 -46
- package/es/LmUpload/style/index.css +42 -35
- package/es/LmUpload/utils.d.ts +1 -0
- package/es/LmUpload/utils.js +12 -0
- package/es/LmUpload/wrapper/UploadRoot.js +7 -13
- package/es/LmUpload/wrapper/UploadWrapper.d.ts +4 -3
- package/es/LmUpload/wrapper/UploadWrapper.js +1 -1
- package/es/Select/index.js +3 -2
- package/es/Tabs/index.js +3 -2
- package/es/index.d.ts +3 -0
- package/es/index.js +2 -1
- package/lib/Button/index.js +5 -2
- package/lib/ConfigProvider/cssVariables.js +1 -1
- package/lib/ConfigProvider/index.d.ts +2 -2
- package/lib/ConfigProvider/index.js +2 -1
- package/lib/DatePicker/generatePicker/generateSinglePicker.js +7 -7
- package/lib/Form/container.js +3 -16
- package/lib/Form/style/index.css +8 -2
- package/lib/Form/util.d.ts +1 -0
- package/lib/Form/util.js +24 -0
- package/lib/ImageViewer/components/Carousel.js +20 -2
- package/lib/ImageViewer/components/Thumb.js +25 -5
- package/lib/ImageViewer/fns/index.d.ts +1 -0
- package/lib/ImageViewer/fns/index.js +18 -1
- package/lib/ImageViewer/style/index.css +26 -15
- package/lib/Input/index.d.ts +1 -1
- package/lib/Input/index.js +7 -2
- package/lib/Input/style/index.css +9 -0
- package/lib/InputRange/index.d.ts +8 -0
- package/lib/InputRange/index.js +79 -0
- package/lib/InputRange/style/index.css +511 -0
- package/lib/InputRange/style/index.d.ts +1 -0
- package/lib/InputRange/style/index.js +3 -0
- package/lib/LmEditTable/EditTable.d.ts +2 -0
- package/lib/LmEditTable/EditTable.js +19 -4
- package/lib/LmFilter/style/index.css +159 -0
- package/lib/LmTable/Table.js +50 -64
- package/lib/LmTable/components/sheelTableCell.js +2 -2
- package/lib/LmTable/style/index.css +1 -0
- package/lib/LmTable/util.js +73 -16
- package/lib/LmTable/virTual/VirtualTable.d.ts +2 -2
- package/lib/LmTable/virTual/VirtualTable.js +6 -4
- package/lib/LmUpload/LmUpload.d.ts +1 -0
- package/lib/LmUpload/LmUpload.js +46 -26
- package/lib/LmUpload/UploadList/ItemPicture.js +5 -4
- package/lib/LmUpload/UploadList/ItemPictureCard.js +26 -12
- package/lib/LmUpload/UploadList/ItemText.js +4 -3
- package/lib/LmUpload/body/UploadCore.js +1 -1
- package/lib/LmUpload/fns/index.d.ts +1 -0
- package/lib/LmUpload/fns/index.js +89 -45
- package/lib/LmUpload/style/index.css +42 -35
- package/lib/LmUpload/utils.d.ts +1 -0
- package/lib/LmUpload/utils.js +17 -1
- package/lib/LmUpload/wrapper/UploadRoot.js +7 -13
- package/lib/LmUpload/wrapper/UploadWrapper.d.ts +4 -3
- package/lib/LmUpload/wrapper/UploadWrapper.js +2 -1
- package/lib/Select/index.js +4 -2
- package/lib/Tabs/index.js +4 -2
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import type { CSPConfig, DirectionType, ConfigConsumerProps } from './context';
|
|
|
8
8
|
import type { RenderEmptyHandler } from './defaultRenderEmpty';
|
|
9
9
|
import type { SizeType } from './SizeContext';
|
|
10
10
|
import SizeContext from './SizeContext';
|
|
11
|
-
export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps, };
|
|
11
|
+
export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps, SizeType };
|
|
12
12
|
export declare const configConsumerProps: string[];
|
|
13
13
|
export interface ConfigProviderProps {
|
|
14
14
|
getTargetContainer?: () => HTMLElement;
|
|
@@ -43,7 +43,7 @@ export interface ConfigProviderProps {
|
|
|
43
43
|
virtual?: boolean;
|
|
44
44
|
dropdownMatchSelectWidth?: boolean;
|
|
45
45
|
}
|
|
46
|
-
export declare const defaultPrefixCls = "
|
|
46
|
+
export declare const defaultPrefixCls = "";
|
|
47
47
|
export declare const defaultIconPrefixCls = "anticon";
|
|
48
48
|
declare function getGlobalIconPrefixCls(): string;
|
|
49
49
|
declare const setGlobalConfig: ({ prefixCls, iconPrefixCls, theme, }: Pick<ConfigProviderProps, "iconPrefixCls" | "prefixCls"> & {
|
package/dist/Form/util.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { InternalNamePath } from './interface';
|
|
2
2
|
export declare function toArray<T>(candidate?: T | T[] | false): T[];
|
|
3
3
|
export declare function getFieldId(namePath: InternalNamePath, formName?: string): string | undefined;
|
|
4
|
+
export declare function updateFormResponsiveClass(dom: HTMLElement): void;
|
|
@@ -6,6 +6,7 @@ declare const useCoreOptions: ({ state, dispatch, props, previewRef }: {
|
|
|
6
6
|
}) => {
|
|
7
7
|
CoreMethods: {
|
|
8
8
|
getVisible: () => any;
|
|
9
|
+
getIsVideo: (url: any) => boolean;
|
|
9
10
|
onClose: () => void;
|
|
10
11
|
setTransform: (type: any) => void;
|
|
11
12
|
afterChange: (currentIndex: any) => void;
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Input } from 'antd';
|
|
2
2
|
import type { InputProps, InputRef } from 'antd';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
interface ILmInput extends React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> {
|
|
4
|
+
export interface ILmInput extends React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> {
|
|
5
5
|
Group: typeof Input.Group;
|
|
6
6
|
Search: typeof Input.Search;
|
|
7
7
|
TextArea: typeof Input.TextArea;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
3
|
+
export interface InputRangeProps extends InputProps {
|
|
4
|
+
range: [string, string] | [number, number];
|
|
5
|
+
rangeChange?: (range: any) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const InputRange: React.FC<InputRangeProps>;
|
|
8
|
+
export default InputRange;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -19,6 +19,8 @@ interface ILmEditTable extends TableProps<any> {
|
|
|
19
19
|
style?: Record<string, any>;
|
|
20
20
|
initData?: Record<string, any> | (() => Record<string, any>);
|
|
21
21
|
};
|
|
22
|
+
/** 是否为强制更新 */
|
|
23
|
+
shouldUpdate?: boolean;
|
|
22
24
|
}
|
|
23
25
|
interface ILmColumns extends TableColumnType<any> {
|
|
24
26
|
editable?: 'input' | 'number' | 'inputRange' | 'date' | 'select' | 'multiple' | 'checkbox' | 'radio' | 'switch' | 'upload' | 'operate' | 'lm_edit_opetate' | 'render';
|
package/dist/LmTable/util.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ export function transformWithColGroup(columns: any, dataSource: any, columnKeys:
|
|
|
9
9
|
columns: any;
|
|
10
10
|
dataSource: any;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* 行分组
|
|
14
|
+
* @param {Array} dataSource 数据源
|
|
15
|
+
* @param {Array} groupInfo 行分组的keys
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
export function transformWithRowGroup(dataSource: any[], groupInfo: any[]): any;
|
|
12
19
|
export function checkIsSelectd(i: any, j: any, start?: {}, end?: {}): boolean;
|
|
13
20
|
export function checkStatus(i: any, j: any, commiting: any): {
|
|
14
21
|
/** 是否有效拉伸 */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const VirtualTable: React.
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
declare const VirtualTable: React.MemoExoticComponent<(tableProps: PropsWithChildren<any>) => JSX.Element>;
|
|
3
3
|
export default VirtualTable;
|
|
@@ -5,6 +5,7 @@ declare const useCoreOptions: ({ state, dispatch, props }: {
|
|
|
5
5
|
}) => {
|
|
6
6
|
CoreMethods: {
|
|
7
7
|
getIsMaxCount: () => boolean;
|
|
8
|
+
getFileFields: (fileParams: any) => {};
|
|
8
9
|
beforeUpload: (e: any) => false | import("../../message").MessageType;
|
|
9
10
|
getUploadStatus: () => {
|
|
10
11
|
uploading: boolean;
|
package/dist/LmUpload/utils.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export declare function isClassComponent(component: any): any;
|
|
|
3
3
|
export declare function isExoticComponent(component: any): boolean;
|
|
4
4
|
export declare function isReactComponent(component: any): any;
|
|
5
5
|
export declare const render: (Comp: any, props: any) => any;
|
|
6
|
+
export declare const getBase64: (img: any, callback: any) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ instance }: {
|
|
2
3
|
instance: any;
|
|
3
|
-
}) => JSX.Element
|
|
4
|
-
export default
|
|
4
|
+
}) => JSX.Element>;
|
|
5
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as ConfigProvider } from './ConfigProvider';
|
|
2
|
+
export type { SizeType } from './ConfigProvider';
|
|
2
3
|
export { default as Button } from './Button';
|
|
3
4
|
export type { ILmButtonProps } from './Button';
|
|
4
5
|
export { default as ButtonTags } from './ButtonTags';
|
|
@@ -116,3 +117,5 @@ export { default as Skeleton } from './Skeleton';
|
|
|
116
117
|
export type { ISkeletonProps } from './Skeleton';
|
|
117
118
|
export { default as Descriptions } from './Descriptions';
|
|
118
119
|
export type { DescriptionsProps } from './Descriptions';
|
|
120
|
+
export { default as InputRange } from './InputRange';
|
|
121
|
+
export type { InputRangeProps } from './InputRange';
|