linkmore-design 1.0.36 → 1.0.39
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/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/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/tableSort.d.ts +2 -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 +4 -1
- package/dist/index.umd.js +6977 -4280
- package/dist/index.umd.min.js +6 -14
- 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/index.js +5 -6
- 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/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 +100 -25
- package/es/LmTable/style/style.css +13 -0
- package/es/Radio/style/style.css +3 -4
- 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 +4 -1
- package/es/index.js +4 -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/index.js +5 -6
- 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/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 +100 -25
- package/lib/LmTable/style/style.css +13 -0
- package/lib/Radio/style/style.css +3 -4
- 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 +4 -1
- package/lib/index.js +25 -1
- package/package.json +6 -4
|
@@ -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';
|
|
@@ -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,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,5 +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, UploadFile } from './Upload';
|
|
45
|
+
export type { UploadProps, UploadFile, RcFile } from './Upload';
|
|
44
46
|
export { default as Tooltip } from './Tooltip';
|
|
47
|
+
export { default as Form } from './Form';
|