linkmore-design 1.0.34 → 1.0.37
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/CardTable/utils.d.ts +1 -1
- package/dist/Cascader/demos/basic.d.ts +2 -0
- package/dist/Cascader/index.d.ts +4 -0
- package/dist/Cascader/style/index.d.ts +1 -0
- package/dist/Form/demos/basic.d.ts +2 -0
- package/dist/Form/demos/drawer1152-triple.d.ts +3 -0
- package/dist/Form/demos/drawer440-double.d.ts +3 -0
- package/dist/Form/demos/drawer440.d.ts +3 -0
- package/dist/Form/demos/drawer720-double.d.ts +3 -0
- package/dist/Form/demos/modal416.d.ts +3 -0
- package/dist/Form/demos/modal552-double.d.ts +3 -0
- package/dist/Form/index.d.ts +24 -0
- package/dist/Form/style/index.d.ts +1 -0
- package/dist/IconFont/font/iconfont.d.ts +0 -0
- package/dist/IconFont/index.d.ts +1 -1
- package/dist/Input/demos/after.d.ts +1 -1
- package/dist/Input/demos/base.d.ts +1 -1
- package/dist/Input/demos/basic.d.ts +1 -1
- package/dist/Input/demos/color.d.ts +1 -1
- package/dist/Input/demos/combination.d.ts +1 -1
- package/dist/Input/demos/import.d.ts +1 -1
- package/dist/Input/demos/line.d.ts +1 -1
- package/dist/Input/demos/password.d.ts +1 -1
- package/dist/Input/demos/size.d.ts +1 -1
- package/dist/Input/index.d.ts +10 -2
- package/dist/LmSelect/GhostSelect.d.ts +2 -0
- package/dist/LmSelect/NormalSelect.d.ts +11 -0
- package/dist/LmSelect/demos/basic.d.ts +2 -0
- package/dist/LmSelect/demos/checkbox.d.ts +2 -0
- package/dist/LmSelect/demos/ghost.d.ts +2 -0
- package/dist/LmSelect/index.d.ts +14 -0
- package/dist/LmSelect/style/index.d.ts +1 -0
- package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/dist/LmSelect/utils.d.ts +10 -0
- package/dist/LmTable/demos/getData.d.ts +2 -0
- package/dist/Tooltip/demos/basic.d.ts +2 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/style/index.d.ts +1 -0
- package/dist/Upload/demos/picture-card.d.ts +3 -0
- package/dist/Upload/demos/picture-style.d.ts +4 -0
- package/dist/Upload/index.d.ts +4 -0
- package/dist/VirtualList/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useEvent/index.d.ts +2 -0
- package/dist/hooks/useFullscreen/demos/basic.d.ts +2 -0
- package/dist/hooks/useFullscreen/index.d.ts +15 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.umd.js +1385 -278
- package/dist/index.umd.min.js +7 -7
- package/es/Cascader/index.d.ts +4 -0
- package/es/Cascader/index.js +37 -0
- package/es/Cascader/style/index.css +520 -0
- package/es/Cascader/style/index.d.ts +1 -0
- package/es/Cascader/style/index.js +1 -0
- package/es/CustomTableOption/columnsSort.js +42 -11
- package/es/CustomTableOption/filterSort.js +34 -4
- package/es/CustomTableOption/index.js +25 -8
- package/es/CustomTableOption/style/index.css +29 -0
- package/es/Dropdown/index.js +11 -1
- package/es/Dropdown/style/index.css +6 -0
- package/es/EditTable/EditTable.js +27 -4
- package/es/Form/index.d.ts +24 -0
- package/es/Form/index.js +56 -0
- package/es/Form/style/index.css +531 -0
- package/es/Form/style/index.d.ts +1 -0
- package/es/Form/style/index.js +1 -0
- package/es/IconFont/font/iconfont.css +1715 -0
- package/es/IconFont/font/iconfont.js +48 -0
- package/es/IconFont/font/iconfont.ttf +0 -0
- package/es/IconFont/font/iconfont.woff +0 -0
- package/es/IconFont/font/iconfont.woff2 +0 -0
- package/es/IconFont/index.js +2 -2
- package/es/Input/index.d.ts +11 -0
- package/es/Input/index.js +31 -37
- package/es/LmSelect/GhostSelect.d.ts +2 -0
- package/es/LmSelect/GhostSelect.js +523 -0
- package/es/LmSelect/NormalSelect.d.ts +11 -0
- package/es/LmSelect/NormalSelect.js +97 -0
- package/es/LmSelect/icon_placeholder.png +0 -0
- package/es/LmSelect/index.d.ts +14 -0
- package/es/LmSelect/index.js +34 -0
- package/es/LmSelect/style/index.css +751 -0
- package/es/LmSelect/style/index.d.ts +1 -0
- package/es/LmSelect/style/index.js +1 -0
- package/es/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/es/LmSelect/useCheckboxOptions.js +120 -0
- package/es/LmSelect/utils.d.ts +10 -0
- package/es/LmSelect/utils.js +66 -0
- package/es/LmTable/Table.js +29 -26
- package/es/Radio/index.js +3 -2
- package/es/Radio/style/style.css +4 -0
- package/es/Tooltip/index.d.ts +2 -0
- package/es/Tooltip/index.js +3 -0
- package/es/Tooltip/style/index.css +505 -0
- package/es/Tooltip/style/index.d.ts +1 -0
- package/es/Tooltip/style/index.js +1 -0
- package/es/Upload/index.d.ts +4 -0
- package/es/Upload/index.js +6 -3
- package/es/VirtualList/index.js +2 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/useEvent/index.d.ts +2 -0
- package/es/hooks/useEvent/index.js +16 -0
- package/es/hooks/useFullscreen/index.d.ts +15 -0
- package/es/hooks/useFullscreen/index.js +99 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +5 -1
- package/lib/Cascader/index.d.ts +4 -0
- package/lib/Cascader/index.js +50 -0
- package/lib/Cascader/style/index.css +520 -0
- package/lib/Cascader/style/index.d.ts +1 -0
- package/lib/Cascader/style/index.js +3 -0
- package/lib/CustomTableOption/columnsSort.js +42 -10
- package/lib/CustomTableOption/filterSort.js +33 -3
- package/lib/CustomTableOption/index.js +24 -7
- package/lib/CustomTableOption/style/index.css +29 -0
- package/lib/Dropdown/index.js +12 -1
- package/lib/Dropdown/style/index.css +6 -0
- package/lib/EditTable/EditTable.js +27 -4
- package/lib/Form/index.d.ts +24 -0
- package/lib/Form/index.js +75 -0
- package/lib/Form/style/index.css +531 -0
- package/lib/Form/style/index.d.ts +1 -0
- package/lib/Form/style/index.js +3 -0
- package/lib/IconFont/font/iconfont.css +1715 -0
- package/lib/IconFont/font/iconfont.js +48 -0
- package/lib/IconFont/font/iconfont.ttf +0 -0
- package/lib/IconFont/font/iconfont.woff +0 -0
- package/lib/IconFont/font/iconfont.woff2 +0 -0
- package/lib/IconFont/index.js +2 -2
- package/lib/Input/index.d.ts +11 -0
- package/lib/Input/index.js +24 -15
- package/lib/LmSelect/GhostSelect.d.ts +2 -0
- package/lib/LmSelect/GhostSelect.js +545 -0
- package/lib/LmSelect/NormalSelect.d.ts +11 -0
- package/lib/LmSelect/NormalSelect.js +116 -0
- package/lib/LmSelect/icon_placeholder.png +0 -0
- package/lib/LmSelect/index.d.ts +14 -0
- package/lib/LmSelect/index.js +50 -0
- package/lib/LmSelect/style/index.css +751 -0
- package/lib/LmSelect/style/index.d.ts +1 -0
- package/lib/LmSelect/style/index.js +3 -0
- package/lib/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/lib/LmSelect/useCheckboxOptions.js +139 -0
- package/lib/LmSelect/utils.d.ts +10 -0
- package/lib/LmSelect/utils.js +103 -0
- package/lib/LmTable/Table.js +29 -26
- package/lib/Radio/index.js +3 -2
- package/lib/Radio/style/style.css +4 -0
- package/lib/Tooltip/index.d.ts +2 -0
- package/lib/Tooltip/index.js +15 -0
- package/lib/Tooltip/style/index.css +505 -0
- package/lib/Tooltip/style/index.d.ts +1 -0
- package/lib/Tooltip/style/index.js +3 -0
- package/lib/Upload/index.d.ts +4 -0
- package/lib/Upload/index.js +6 -3
- package/lib/VirtualList/index.js +2 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +23 -0
- package/lib/hooks/useEvent/index.d.ts +2 -0
- package/lib/hooks/useEvent/index.js +25 -0
- package/lib/hooks/useFullscreen/index.d.ts +15 -0
- package/lib/hooks/useFullscreen/index.js +113 -0
- package/lib/index.d.ts +5 -1
- package/lib/index.js +33 -1
- package/package.json +5 -4
- package/typings/index.d.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Form as AntdForm, FormInstance, FormProps, List } from 'antd';
|
|
3
|
+
import useFormInstance from 'antd/lib/form/hooks/useFormInstance';
|
|
4
|
+
import { FormProvider } from 'antd/lib/form/context';
|
|
5
|
+
import { useForm, useWatch } from 'antd/lib/form/Form';
|
|
6
|
+
declare const Reform: <Values = any>(props: FormProps<Values> & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
} & {
|
|
9
|
+
ref?: React.Ref<FormInstance<Values>>;
|
|
10
|
+
}) => React.ReactElement;
|
|
11
|
+
declare type InternalFormType = typeof Reform;
|
|
12
|
+
interface FormInterface extends InternalFormType {
|
|
13
|
+
useForm: typeof useForm;
|
|
14
|
+
useFormInstance: typeof useFormInstance;
|
|
15
|
+
useWatch: typeof useWatch;
|
|
16
|
+
Item: typeof AntdForm.Item;
|
|
17
|
+
List: typeof List;
|
|
18
|
+
ErrorList: typeof AntdForm.ErrorList;
|
|
19
|
+
Provider: typeof FormProvider;
|
|
20
|
+
/** @deprecated Only for warning usage. Do not use. */
|
|
21
|
+
create: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const Form: FormInterface;
|
|
24
|
+
export default Form;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
File without changes
|
package/dist/IconFont/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default IconFont;
|
|
2
|
-
declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
|
|
2
|
+
declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont.js").IconFontProps<string>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: () => JSX.Element;
|
|
2
2
|
export default _default;
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import { Input } from 'antd';
|
|
2
|
+
import type { InputProps, InputRef } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
interface ILmInput extends React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> {
|
|
5
|
+
Group: typeof Input.Group;
|
|
6
|
+
Search: typeof Input.Search;
|
|
7
|
+
TextArea: typeof Input.TextArea;
|
|
8
|
+
Password: typeof Input.Password;
|
|
9
|
+
}
|
|
10
|
+
declare const LmInput: ILmInput;
|
|
1
11
|
export default LmInput;
|
|
2
|
-
declare const LmInput: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
-
import React from "react";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Select, SelectProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import GhostSelect from './GhostSelect';
|
|
4
|
+
export interface ISelectProps extends SelectProps {
|
|
5
|
+
type?: 'select' | 'checkbox' | 'cascader';
|
|
6
|
+
Option?: typeof Select.Option;
|
|
7
|
+
OptGroup?: typeof Select.OptGroup;
|
|
8
|
+
GhostSelect?: typeof GhostSelect;
|
|
9
|
+
}
|
|
10
|
+
declare const NormalSelect: React.FC<ISelectProps>;
|
|
11
|
+
export default NormalSelect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Select, SelectProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import GhostSelect from './GhostSelect';
|
|
4
|
+
export interface ISelectProps extends SelectProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
ghost?: boolean;
|
|
7
|
+
type?: 'select' | 'checkbox' | 'cascader';
|
|
8
|
+
}
|
|
9
|
+
declare const LMSelect: React.FC<ISelectProps> & {
|
|
10
|
+
Option?: typeof Select.Option;
|
|
11
|
+
OptGroup?: typeof Select.OptGroup;
|
|
12
|
+
GhostSelect?: typeof GhostSelect;
|
|
13
|
+
};
|
|
14
|
+
export default LMSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useCheckboxOptions: (options: any, controllable: any, filter?: string) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getArray(val: any): any[];
|
|
2
|
+
export declare const isOptions: (key: any) => boolean;
|
|
3
|
+
export declare const onStringSearch: (key?: string, str?: string) => boolean;
|
|
4
|
+
export declare function getOptions(children: any): any[];
|
|
5
|
+
export declare function getIsHas(val: any): boolean;
|
|
6
|
+
export declare function isClassComponent(component: any): any;
|
|
7
|
+
export declare function isExoticComponent(component: any): boolean;
|
|
8
|
+
export declare function isReactComponent(component: any): any;
|
|
9
|
+
export declare const render: (Comp: any, props?: {}) => any;
|
|
10
|
+
export declare const useSearch: (showSearch: any, renderOptions: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Upload/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { UploadProps as AntdUploadProps } from 'antd';
|
|
3
|
+
import type { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
|
|
4
|
+
import type { RcFile as AntdRcFile } from 'antd/es/upload';
|
|
3
5
|
export declare type UploadProps = AntdUploadProps;
|
|
6
|
+
export declare type UploadFile = AntdUploadFile;
|
|
7
|
+
export declare type RcFile = AntdRcFile;
|
|
4
8
|
declare const LMUpload: React.FC<UploadProps>;
|
|
5
9
|
export default LMUpload;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
declare type TargetValue<T> = T | undefined | null;
|
|
3
|
+
declare type TargetType = HTMLElement | Element | Window | Document;
|
|
4
|
+
declare type BasicTarget<T extends TargetType = Element> = (() => TargetValue<T>) | TargetValue<T> | MutableRefObject<TargetValue<T>>;
|
|
5
|
+
interface Options {
|
|
6
|
+
onExit?: () => void;
|
|
7
|
+
onEnter?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const useFullscreen: (target: BasicTarget, options?: Options) => {
|
|
10
|
+
isFullscreen: boolean;
|
|
11
|
+
enterFullscreen: () => void;
|
|
12
|
+
exitFullscreen: () => void;
|
|
13
|
+
toggleFullscreen: () => void;
|
|
14
|
+
};
|
|
15
|
+
export default useFullscreen;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as Button } from './Button';
|
|
2
2
|
export { default as ButtonTags } from './ButtonTags';
|
|
3
3
|
export { default as Card } from './Card';
|
|
4
|
+
export { default as Cascader } from './Cascader';
|
|
4
5
|
export { default as Checkbox } from './Checkbox';
|
|
5
6
|
export { default as CkFilter } from './CkFilter';
|
|
6
7
|
export { default as CustomerService } from './CustomerService';
|
|
@@ -17,6 +18,7 @@ export { default as Input } from './Input';
|
|
|
17
18
|
export { default as InputNumber } from './InputNumber';
|
|
18
19
|
export { default as LeftTable } from './LeftTable';
|
|
19
20
|
export { default as LmTable } from './LmTable';
|
|
21
|
+
export { default as LmSelect } from './LmSelect';
|
|
20
22
|
export { default as LoadingPage } from './LoadingPage';
|
|
21
23
|
export { default as Menu } from './Menu';
|
|
22
24
|
export { default as Modal } from './Modal';
|
|
@@ -40,4 +42,6 @@ export { default as Switch } from './Switch';
|
|
|
40
42
|
export { default as Image } from './Image';
|
|
41
43
|
export { default as CustomTableOption } from './CustomTableOption';
|
|
42
44
|
export { default as Upload } from './Upload';
|
|
43
|
-
export type { UploadProps } from './Upload';
|
|
45
|
+
export type { UploadProps, UploadFile, RcFile } from './Upload';
|
|
46
|
+
export { default as Tooltip } from './Tooltip';
|
|
47
|
+
export { default as Form } from './Form';
|