wargerm 0.7.7 → 0.7.8

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 (82) hide show
  1. package/dist/components/AutoScroll/index.d.ts +1 -1
  2. package/dist/components/Calendar/example/demo1.d.ts +0 -1
  3. package/dist/components/Calendar/example/demo2.d.ts +0 -1
  4. package/dist/components/Calendar/index.d.ts +1 -1
  5. package/dist/components/Card/example/demo1.d.ts +0 -1
  6. package/dist/components/Card/example/demo2.d.ts +0 -1
  7. package/dist/components/Card/example/demo3.d.ts +0 -1
  8. package/dist/components/Card/index.d.ts +1 -1
  9. package/dist/components/Cascader/index.d.ts +3 -3
  10. package/dist/components/Checkbox/index.d.ts +1 -1
  11. package/dist/components/DatePicker/index.d.ts +2 -2
  12. package/dist/components/DhPlayer/example/demo1.d.ts +0 -1
  13. package/dist/components/DhPlayer/example/demo2.d.ts +0 -1
  14. package/dist/components/DhPlayer/index.d.ts +1 -1
  15. package/dist/components/DragBox/index.d.ts +1 -1
  16. package/dist/components/Input/index.d.ts +1 -1
  17. package/dist/components/Modal/dialog.d.ts +2 -2
  18. package/dist/components/Modal/index.d.ts +2 -2
  19. package/dist/components/ModalForm/index.d.ts +1 -1
  20. package/dist/components/ModalTips/dialog.d.ts +2 -2
  21. package/dist/components/ModalTips/index.d.ts +2 -2
  22. package/dist/components/NtTable/FrameBox/index.d.ts +1 -1
  23. package/dist/components/NtTable/index.d.ts +1 -1
  24. package/dist/components/NumericInput/index.d.ts +1 -1
  25. package/dist/components/Radio/index.d.ts +1 -1
  26. package/dist/components/ReactECharts/RAF.d.ts +2 -2
  27. package/dist/components/ReactECharts/index.d.ts +1 -1
  28. package/dist/components/RequestRenderDom/example/demo1.d.ts +0 -1
  29. package/dist/components/RequestRenderDom/index.d.ts +1 -1
  30. package/dist/components/Select/index.d.ts +1 -1
  31. package/dist/components/TabelCard/example/InputGroup.d.ts +0 -1
  32. package/dist/components/TabelCard/example/demo1.d.ts +0 -1
  33. package/dist/components/TabelCard/example/demo2.d.ts +0 -1
  34. package/dist/components/TabelCard/example/demo3.d.ts +0 -1
  35. package/dist/components/TabelCard/index.d.ts +1 -1
  36. package/dist/components/Table/FrameBox/index.d.ts +1 -1
  37. package/dist/components/Table/example/demo1.d.ts +0 -1
  38. package/dist/components/Table/example/demo2.d.ts +0 -1
  39. package/dist/components/Table/example/demo3.d.ts +0 -1
  40. package/dist/components/Table/example/demo4.d.ts +0 -1
  41. package/dist/components/Table/example/demo5.d.ts +0 -1
  42. package/dist/components/Table/index.d.ts +1 -1
  43. package/dist/components/TreeSelect/index.d.ts +1 -1
  44. package/dist/components/Upload/example/demo1.d.ts +0 -1
  45. package/dist/components/Upload/example/demo2.d.ts +0 -1
  46. package/dist/components/Upload/index.d.ts +1 -1
  47. package/dist/components/Video/example/VideoDemo/demo1.d.ts +0 -1
  48. package/dist/components/Video/example/VideoDemo/demo2.d.ts +0 -1
  49. package/dist/components/Video/example/VideoDemo/demo3.d.ts +0 -1
  50. package/dist/components/Video/example/VideoDemo/demo4.d.ts +0 -1
  51. package/dist/components/Video/example/VideoDemo/demo5.d.ts +0 -1
  52. package/dist/components/Video/example/VideoDemo/demo6.d.ts +0 -1
  53. package/dist/components/Video/example/VideoDemo/demo7.d.ts +0 -1
  54. package/dist/components/Video/example/VideoDemo/demo8.d.ts +0 -1
  55. package/dist/components/Video/example/VideoDemo/demo9.d.ts +0 -1
  56. package/dist/components/VideoPlayer/example/demo1.d.ts +0 -1
  57. package/dist/components/VideoPlayer/example/demo2.d.ts +0 -1
  58. package/dist/components/VideoPlayer/index.d.ts +1 -1
  59. package/dist/components/VideoPlayer/xgplayer.d.ts +1 -1
  60. package/dist/components/WDatePicker/index.d.ts +1 -1
  61. package/dist/components/WForm/example/demo1.d.ts +0 -1
  62. package/dist/components/WForm/example/demo2.d.ts +0 -1
  63. package/dist/components/WForm/example/demo3.d.ts +0 -1
  64. package/dist/components/WForm/index.d.ts +3 -3
  65. package/dist/components/Wcharts/LineEcharts/index.d.ts +1 -2
  66. package/dist/components/Wcharts/WaterLevelCharts/index.d.ts +1 -2
  67. package/dist/components/useEventEmitter/example/demo1.d.ts +0 -1
  68. package/dist/components/useStateWithCall/example/demo1.d.ts +0 -1
  69. package/dist/components/wTracing/example/demo1.d.ts +0 -1
  70. package/dist/components/whox/example/demo1.d.ts +0 -1
  71. package/dist/components/wmox/example/demo1.d.ts +0 -1
  72. package/dist/hooks/whox.d.ts +3 -3
  73. package/dist/hooks/wmox.d.ts +2 -2
  74. package/dist/index.css +35 -131
  75. package/dist/index.esm.css +35 -131
  76. package/dist/index.esm.js +2072 -3230
  77. package/dist/index.js +2081 -3239
  78. package/dist/utils/event.d.ts +3 -3
  79. package/dist/utils/useModelPlugin/Provider.d.ts +0 -1
  80. package/dist/utils/useModelPlugin/composeRootApp.d.ts +1 -1
  81. package/dist/utils/useModelPlugin/helpers/executor.d.ts +0 -1
  82. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, FC, CSSProperties } from 'react';
2
- declare type IProps = {
2
+ type IProps = {
3
3
  list: Array<Record<string, any>>;
4
4
  partSize?: number;
5
5
  style?: CSSProperties;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function Tab4(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function Tab4(): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import 'dayjs/locale/zh-cn';
3
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
4
4
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -11,7 +11,7 @@ interface IsliderTabs {
11
11
  components?: Array<ReactNode>;
12
12
  onChange?: (event: any) => void;
13
13
  }
14
- declare type Props = {
14
+ type Props = {
15
15
  title: ReactNode;
16
16
  className: string;
17
17
  headerTail?: ReactNode;
@@ -1,9 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { CascaderProps } from 'antd';
3
- export declare type ICascader = CascaderProps<any> & {
3
+ export type ICascader = {
4
4
  request?: () => Promise<any>;
5
- onLoad?: (options: Record<string, any>[]) => void;
5
+ onLoad?: (options?: Record<string, any>[]) => void;
6
6
  params?: Record<string, any>;
7
- };
7
+ } & CascaderProps<any>;
8
8
  declare const WCascader: FC<ICascader>;
9
9
  export default WCascader;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CheckboxProps, CheckboxGroupProps } from 'antd/lib/Checkbox';
3
3
  export interface ICheckbox extends CheckboxProps {
4
4
  }
5
- export declare type IndexComponent = React.FC<ICheckbox> & {
5
+ export type IndexComponent = React.FC<ICheckbox> & {
6
6
  Group: React.FC<CheckboxGroupProps>;
7
7
  };
8
8
  declare const Index: IndexComponent;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
3
3
  import 'dayjs/locale/zh-cn';
4
- export declare type IRangePickerProps = RangePickerProps & {
4
+ export type IRangePickerProps = RangePickerProps & {
5
5
  getRangePickerValue?: (value: any) => void;
6
6
  panelType?: string;
7
7
  };
8
- export declare type IndexComponent = React.FC<DatePickerProps> & {
8
+ export type IndexComponent = React.FC<DatePickerProps> & {
9
9
  RangePicker: React.FC<IRangePickerProps>;
10
10
  };
11
11
  declare const Index: IndexComponent;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import './videoPlayer.js';
3
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  title?: string | ReactNode;
4
4
  children?: string | ReactNode;
5
5
  closeIcon?: ReactNode;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { InputProps, TextAreaProps } from 'antd/lib/input';
3
3
  export interface IInputProps extends InputProps {
4
4
  }
5
- export declare type IndexComponent = React.FC<IInputProps> & {
5
+ export type IndexComponent = React.FC<IInputProps> & {
6
6
  TextArea: React.FC<TextAreaProps>;
7
7
  Button: React.FC<any>;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  title?: string | ReactNode;
4
4
  onOk?: (e: any) => void;
5
5
  onCancel?: (e: any) => void;
@@ -19,5 +19,5 @@ declare type Props = {
19
19
  children?: ReactNode;
20
20
  ref?: any;
21
21
  };
22
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "open" | "destroyOnClose" | "closeCb" | "onClose" | "hiddenMask" | "isResize" | "className" | "style" | "title" | "onOk" | "onCancel" | "footer" | "content" | "okText" | "cancelText" | "children"> & React.RefAttributes<unknown>>;
22
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<unknown>>;
23
23
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  title?: string | ReactNode;
4
4
  onOk?: (e: any) => void;
5
5
  onCancel?: (e: any) => void;
@@ -34,7 +34,7 @@ declare class Modal extends React.PureComponent<Props> {
34
34
  titleRef: React.RefObject<any>;
35
35
  renderTop: () => JSX.Element;
36
36
  componentDidMount(): void;
37
- renderContent: () => {} | null;
37
+ renderContent: () => any;
38
38
  render(): JSX.Element;
39
39
  }
40
40
  export default Modal;
@@ -5,5 +5,5 @@ export interface IFormInstance extends MutableRefObject<FormInstance> {
5
5
  resetFields?: () => void;
6
6
  setFieldsValue?: (record: Record<string, any>) => void;
7
7
  }
8
- declare const _default: React.ForwardRefExoticComponent<Pick<Record<string, any>, string> & React.RefAttributes<unknown>>;
8
+ declare const _default: React.ForwardRefExoticComponent<Omit<Record<string, any>, "ref"> & React.RefAttributes<unknown>>;
9
9
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  title?: string | ReactNode;
4
4
  onOk?: (e: any) => void;
5
5
  onCancel?: (e: any) => void;
@@ -15,5 +15,5 @@ declare type Props = {
15
15
  style?: React.CSSProperties;
16
16
  children?: ReactNode;
17
17
  };
18
- export default function DialogModel(props: Props): React.ReactPortal;
18
+ export default function DialogModel(props: Props): any;
19
19
  export {};
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  title?: string | ReactNode;
4
4
  onOk?: (e: any) => void;
5
5
  onCancel?: (e: any) => void;
@@ -26,7 +26,7 @@ declare class Modal extends React.PureComponent<Props> {
26
26
  static hidden: () => void;
27
27
  renderFooter: () => JSX.Element | null;
28
28
  renderTop: () => JSX.Element;
29
- renderContent: () => {} | null;
29
+ renderContent: () => any;
30
30
  render(): JSX.Element;
31
31
  }
32
32
  export default Modal;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import './index.less';
3
- declare type Props = {
3
+ type Props = {
4
4
  className?: string;
5
5
  frameStyle?: Record<string, any>;
6
6
  style?: Record<string, any>;
@@ -58,7 +58,7 @@ interface Iscroll {
58
58
  */
59
59
  y?: string | number;
60
60
  }
61
- declare type Props = {
61
+ type Props = {
62
62
  className?: string;
63
63
  rowClassName?: (record: Record<string, any>, index: number) => string;
64
64
  style?: React.CSSProperties;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  onChange?: (value: string) => void;
4
4
  onBlur?: () => void;
5
5
  disabled?: boolean;
@@ -3,7 +3,7 @@ import { RadioProps, RadioGroupProps } from 'antd/lib/Radio';
3
3
  export interface IRadio extends RadioProps {
4
4
  sideButtonStyle?: string;
5
5
  }
6
- export declare type IndexComponent = React.FC<IRadio> & {
6
+ export type IndexComponent = React.FC<IRadio> & {
7
7
  Group: React.FC<RadioGroupProps>;
8
8
  Button: React.FC<any>;
9
9
  };
@@ -1,5 +1,5 @@
1
- declare type RAFType = 'interval' | 'timeout';
2
- declare type RAFCallback = (...args: any[]) => void;
1
+ type RAFType = 'interval' | 'timeout';
2
+ type RAFCallback = (...args: any[]) => void;
3
3
  export default class RAF {
4
4
  private _timerIdMap;
5
5
  constructor();
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  option: Record<string, any>;
4
4
  style?: Record<string, any>;
5
5
  onChartReady?: (echarts: any, option: any) => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
@@ -9,7 +9,7 @@ export interface ISelect extends SelectProps<any> {
9
9
  onLoad?: (options: Record<string, any>[]) => void;
10
10
  children?: ReactNode;
11
11
  }
12
- export declare type IWSelectComponent = React.FC<ISelect> & {
12
+ export type IWSelectComponent = React.FC<ISelect> & {
13
13
  Option?: React.FC<IOptionProps>;
14
14
  };
15
15
  declare let Index: IWSelectComponent;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function InputGroup({ value, onChange, onClick, ...props }: any): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<Record<string, any>, string> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<Record<string, any>, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import './index.less';
3
- declare type Props = {
3
+ type Props = {
4
4
  className?: string;
5
5
  frameStyle?: Record<string, any>;
6
6
  style?: Record<string, any>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -58,7 +58,7 @@ interface Iscroll {
58
58
  */
59
59
  y?: string | number;
60
60
  }
61
- declare type Props = {
61
+ type Props = {
62
62
  className?: string;
63
63
  rowClassName?: (record: Record<string, any>, index: number) => string;
64
64
  style?: React.CSSProperties;
@@ -10,7 +10,7 @@ interface TreeSelectProps<T> extends Props<T> {
10
10
  params?: Record<string, any>;
11
11
  children?: ReactNode;
12
12
  }
13
- export declare type IndexComponent = React.FC<TreeSelectProps<any>> & {
13
+ export type IndexComponent = React.FC<TreeSelectProps<any>> & {
14
14
  TreeNode?: React.FC<any>;
15
15
  };
16
16
  declare let Index: IndexComponent;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type propsType = {
2
+ type propsType = {
3
3
  footer?: boolean;
4
4
  style?: {
5
5
  height: number | string;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
3
3
  import 'dayjs/locale/zh-cn';
4
- export declare type IndexComponent = React.FC<DatePickerProps> & {
4
+ export type IndexComponent = React.FC<DatePickerProps> & {
5
5
  RangePicker: React.FC<RangePickerProps>;
6
6
  showTime: Object | boolean;
7
7
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -26,7 +26,7 @@ export interface ColumnProps {
26
26
  render?: (text: string, record: Record<string, any>, index: number) => ReactNode;
27
27
  renderFormItem?: (item: any, { formItemProps, fieldProps, ...rest }: any, form: any) => ReactNode;
28
28
  }
29
- declare type defaultColConfig = {
29
+ type defaultColConfig = {
30
30
  xs: 24;
31
31
  sm: 24;
32
32
  md: 12;
@@ -34,7 +34,7 @@ declare type defaultColConfig = {
34
34
  xl: 8;
35
35
  xxl: 6;
36
36
  };
37
- export interface Isearch {
37
+ export type Isearch = {
38
38
  labelWidth?: number | 'auto';
39
39
  span?: number | defaultColConfig;
40
40
  filterType?: 'query' | 'light';
@@ -48,7 +48,7 @@ export interface Isearch {
48
48
  transform?: (value: any) => any;
49
49
  optionDomReverse?: boolean;
50
50
  optionRender?: ((searchConfig: any, formProps: any, dom: any) => ReactNode[]) | false;
51
- }
51
+ } | false;
52
52
  export interface WFormProps extends FormProps {
53
53
  className?: string;
54
54
  style?: React.CSSProperties;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- declare type config = {
1
+ type config = {
3
2
  config: {
4
3
  list: [
5
4
  {
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- declare type IConfig = {
1
+ type IConfig = {
3
2
  maxHeight?: number;
4
3
  markline: number[];
5
4
  imgWidth?: number;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function demo1(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function demo1(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function demo1(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function demo1(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function demo1(): JSX.Element;
@@ -1,10 +1,10 @@
1
1
  declare let run: (fn: () => void) => void;
2
- declare type State = Record<string, any>;
3
- declare type GetSetStore<T> = {
2
+ type State = Record<string, any>;
3
+ type GetSetStore<T> = {
4
4
  (): T;
5
5
  (s: Partial<T> | ((state: T) => Partial<T>)): void;
6
6
  };
7
- declare type InitStore<T> = (getSetStore: GetSetStore<T>) => T;
7
+ type InitStore<T> = (getSetStore: GetSetStore<T>) => T;
8
8
  declare const create: {
9
9
  <T extends State>(initStore: InitStore<T>): () => T;
10
10
  config({ batch }: {
@@ -1,5 +1,5 @@
1
- declare type Callback = () => void;
2
- declare type State = Record<string, unknown>;
1
+ type Callback = () => void;
2
+ type State = Record<string, unknown>;
3
3
  declare let run: (fn: Callback) => void;
4
4
  declare const wmox: {
5
5
  <T extends State>(state: T): T;