@topthink/components 1.0.57 → 1.0.59

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 (96) hide show
  1. package/es/editor-widget-CQ3zv-Xu.js +355 -0
  2. package/es/{image-zoom-912e2b3b.js → image-zoom-OrIPGqh0.js} +0 -1
  3. package/es/index-PGfJO0Bp.js +39 -0
  4. package/es/index-PvFKqXZL.js +1 -0
  5. package/es/{index-6ae8237d.js → index-XkUorbN_.js} +13 -14
  6. package/es/index.js +1 -2
  7. package/es/{steps-afba29a7.js → steps-b_BcYIwk.js} +1 -2
  8. package/package.json +20 -18
  9. package/types/components/button.d.ts +9 -9
  10. package/types/components/card.d.ts +7 -7
  11. package/types/components/dimmer.d.ts +7 -7
  12. package/types/components/error.d.ts +5 -5
  13. package/types/components/form.d.ts +4 -4
  14. package/types/components/image-zoom.d.ts +4 -4
  15. package/types/components/lazy/{form.d.ts → form/index.d.ts} +19 -19
  16. package/types/components/lazy/form/widgets/editor-widget.d.ts +6 -0
  17. package/types/components/lazy/image-zoom.d.ts +3 -3
  18. package/types/components/lazy/steps.d.ts +9 -9
  19. package/types/components/lazy/table/context.d.ts +2 -2
  20. package/types/components/lazy/table/index.d.ts +45 -45
  21. package/types/components/lazy/table/search.d.ts +23 -23
  22. package/types/components/lazy/table/use-selection.d.ts +3 -3
  23. package/types/components/loader.d.ts +9 -9
  24. package/types/components/loading-button.d.ts +7 -7
  25. package/types/components/modal/confirm.d.ts +8 -8
  26. package/types/components/modal/index.d.ts +32 -32
  27. package/types/components/modal/message.d.ts +26 -26
  28. package/types/components/modal/show.d.ts +3 -3
  29. package/types/components/modal-button.d.ts +17 -17
  30. package/types/components/modal-form.d.ts +10 -10
  31. package/types/components/number-format.d.ts +10 -10
  32. package/types/components/pagination.d.ts +11 -11
  33. package/types/components/request-button.d.ts +13 -13
  34. package/types/components/result.d.ts +15 -15
  35. package/types/components/space.d.ts +9 -9
  36. package/types/components/statistic.d.ts +7 -7
  37. package/types/components/steps.d.ts +10 -10
  38. package/types/components/table.d.ts +4 -4
  39. package/types/components/tooltip.d.ts +9 -9
  40. package/types/hooks/use-callback-ref.d.ts +2 -2
  41. package/types/hooks/use-controllable-state.d.ts +8 -8
  42. package/types/hooks/use-debounce.d.ts +2 -2
  43. package/types/hooks/use-overlay-state.d.ts +16 -16
  44. package/types/hooks/use-request.d.ts +21 -21
  45. package/types/hooks/use-safe-state.d.ts +4 -4
  46. package/types/hooks/use-state-with-callback.d.ts +2 -2
  47. package/types/hooks/use-unmounted-ref.d.ts +3 -3
  48. package/types/index.d.ts +33 -33
  49. package/types/request.d.ts +32 -32
  50. package/types/utils/is-record.d.ts +1 -1
  51. package/types/utils/message.d.ts +11 -11
  52. package/types/utils/toast.d.ts +11 -11
  53. package/types/utils/types.d.ts +7 -7
  54. package/types/utils/wait-pay-complete.d.ts +11 -11
  55. package/es/form-01bf45e9.js +0 -233
  56. package/es/form-01bf45e9.js.map +0 -1
  57. package/es/form-0a372a24.js +0 -2
  58. package/es/form-0a372a24.js.map +0 -1
  59. package/es/form-1791ea39.js +0 -236
  60. package/es/form-1791ea39.js.map +0 -1
  61. package/es/form-74ef0417.js +0 -2
  62. package/es/form-74ef0417.js.map +0 -1
  63. package/es/form-8925a750.js +0 -231
  64. package/es/form-8925a750.js.map +0 -1
  65. package/es/form-95db7eac.js +0 -2
  66. package/es/form-95db7eac.js.map +0 -1
  67. package/es/form-9c0e638a.js +0 -231
  68. package/es/form-9c0e638a.js.map +0 -1
  69. package/es/image-zoom-912e2b3b.js.map +0 -1
  70. package/es/index-1930b692.js +0 -67
  71. package/es/index-1930b692.js.map +0 -1
  72. package/es/index-1d379f3a.js +0 -562
  73. package/es/index-1d379f3a.js.map +0 -1
  74. package/es/index-303e1845.js +0 -560
  75. package/es/index-303e1845.js.map +0 -1
  76. package/es/index-4f51cece.js +0 -1352
  77. package/es/index-4f51cece.js.map +0 -1
  78. package/es/index-5142110c.js +0 -67
  79. package/es/index-5142110c.js.map +0 -1
  80. package/es/index-6ae8237d.js.map +0 -1
  81. package/es/index-7a7c06a9.js +0 -40
  82. package/es/index-7a7c06a9.js.map +0 -1
  83. package/es/index-9869b1c6.js +0 -1350
  84. package/es/index-9869b1c6.js.map +0 -1
  85. package/es/index-a48179db.js +0 -1382
  86. package/es/index-a48179db.js.map +0 -1
  87. package/es/index-b34ecf90.js +0 -40
  88. package/es/index-b34ecf90.js.map +0 -1
  89. package/es/index-d964165a.js +0 -560
  90. package/es/index-d964165a.js.map +0 -1
  91. package/es/index-e17dc6f0.js +0 -40
  92. package/es/index-e17dc6f0.js.map +0 -1
  93. package/es/index.js.map +0 -1
  94. package/es/steps-afba29a7.js.map +0 -1
  95. package/es/steps-c27a3885.js +0 -34
  96. package/es/steps-c27a3885.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
2
- interface SpaceProps {
3
- children: ReactNode;
4
- size?: 'small' | 'middle' | 'large' | number;
5
- direction?: 'vertical' | 'horizontal';
6
- className?: string;
7
- }
8
- export default function Space({ children, className, size, direction }: SpaceProps): JSX.Element;
9
- export {};
1
+ import { ReactNode } from 'react';
2
+ interface SpaceProps {
3
+ children: ReactNode;
4
+ size?: 'small' | 'middle' | 'large' | number;
5
+ direction?: 'vertical' | 'horizontal';
6
+ className?: string;
7
+ }
8
+ export default function Space({ children, className, size, direction }: SpaceProps): JSX.Element;
9
+ export {};
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
2
- export interface StatisticProps {
3
- title: ReactNode;
4
- content: ReactNode;
5
- footer?: ReactNode;
6
- }
7
- export default function Statistic({ title, content, footer }: StatisticProps): JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ export interface StatisticProps {
3
+ title: ReactNode;
4
+ content: ReactNode;
5
+ footer?: ReactNode;
6
+ }
7
+ export default function Statistic({ title, content, footer }: StatisticProps): JSX.Element;
@@ -1,10 +1,10 @@
1
- import { ComponentProps } from 'react';
2
- declare const LazySteps: import("react").LazyExoticComponent<typeof import("./lazy/steps").default>;
3
- declare const LazyStep: import("react").LazyExoticComponent<typeof import("rc-steps/lib/Step").default>;
4
- declare function Steps(props: ComponentProps<typeof LazySteps>): JSX.Element;
5
- declare namespace Steps {
6
- var Step: (props: import("rc-steps/lib/Step").StepProps & import("react").RefAttributes<import("rc-steps/lib/Step").default>) => JSX.Element;
7
- }
8
- export default Steps;
9
- declare const Step: (props: ComponentProps<typeof LazyStep>) => JSX.Element;
10
- export { Step };
1
+ import { ComponentProps } from 'react';
2
+ declare const LazySteps: import("react").LazyExoticComponent<typeof import("./lazy/steps").default>;
3
+ declare const LazyStep: import("react").LazyExoticComponent<typeof import("rc-steps/lib/Step").default>;
4
+ declare function Steps(props: ComponentProps<typeof LazySteps>): JSX.Element;
5
+ declare namespace Steps {
6
+ var Step: (props: import("rc-steps/lib/Step").StepProps & import("react").RefAttributes<import("rc-steps/lib/Step").default>) => JSX.Element;
7
+ }
8
+ export default Steps;
9
+ declare const Step: (props: ComponentProps<typeof LazyStep>) => JSX.Element;
10
+ export { Step };
@@ -1,4 +1,4 @@
1
- import type { CustomTableType } from './lazy/table';
2
- declare const Table: CustomTableType;
3
- export default Table;
4
- export type { TableProps, Columns, TableType } from './lazy/table';
1
+ import type { CustomTableType } from './lazy/table';
2
+ declare const Table: CustomTableType;
3
+ export default Table;
4
+ export type { TableProps, Columns, TableType } from './lazy/table';
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import { OverlayTriggerProps } from 'react-bootstrap';
3
- interface TooltipProps {
4
- tooltip: string;
5
- children: OverlayTriggerProps['children'];
6
- placement?: OverlayTriggerProps['placement'];
7
- }
8
- export default function Tooltip({ tooltip, children, placement }: TooltipProps): JSX.Element;
9
- export {};
1
+ /// <reference types="react" />
2
+ import { OverlayTriggerProps } from 'react-bootstrap';
3
+ interface TooltipProps {
4
+ tooltip: string;
5
+ children: OverlayTriggerProps['children'];
6
+ placement?: OverlayTriggerProps['placement'];
7
+ }
8
+ export default function Tooltip({ tooltip, children, placement }: TooltipProps): JSX.Element;
9
+ export {};
@@ -1,2 +1,2 @@
1
- import { DependencyList } from 'react';
2
- export default function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined, deps?: DependencyList): T;
1
+ import { DependencyList } from 'react';
2
+ export default function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined, deps?: DependencyList): T;
@@ -1,8 +1,8 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- export interface UseControllableStateProps<T> {
3
- value?: T;
4
- defaultValue?: T | (() => T);
5
- onChange?: (value: T) => void;
6
- shouldUpdate?: (prev: T, next: T) => boolean;
7
- }
8
- export default function useControllableState<T>(props: UseControllableStateProps<T>): [T, Dispatch<SetStateAction<T>>];
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ export interface UseControllableStateProps<T> {
3
+ value?: T;
4
+ defaultValue?: T | (() => T);
5
+ onChange?: (value: T) => void;
6
+ shouldUpdate?: (prev: T, next: T) => boolean;
7
+ }
8
+ export default function useControllableState<T>(props: UseControllableStateProps<T>): [T, Dispatch<SetStateAction<T>>];
@@ -1,2 +1,2 @@
1
- import { DebouncedFunc } from 'lodash';
2
- export default function useDebounce<T extends (...args: any) => any>(callback: T, wait: number, options?: {}): DebouncedFunc<T>;
1
+ import { DebouncedFunc } from 'lodash';
2
+ export default function useDebounce<T extends (...args: any) => any>(callback: T, wait: number, options?: {}): DebouncedFunc<T>;
@@ -1,16 +1,16 @@
1
- interface Options {
2
- onHide?: () => void;
3
- onShow?: () => void;
4
- }
5
- export default function useOverlayState({ onHide, onShow }?: Options): {
6
- visible: boolean;
7
- show: () => void;
8
- hide: () => void;
9
- state: {
10
- show: boolean;
11
- onHide: () => void;
12
- onExited: () => void;
13
- key: string;
14
- };
15
- };
16
- export {};
1
+ interface Options {
2
+ onHide?: () => void;
3
+ onShow?: () => void;
4
+ }
5
+ export default function useOverlayState({ onHide, onShow }?: Options): {
6
+ visible: boolean;
7
+ show: () => void;
8
+ hide: () => void;
9
+ state: {
10
+ show: boolean;
11
+ onHide: () => void;
12
+ onExited: () => void;
13
+ key: string;
14
+ };
15
+ };
16
+ export {};
@@ -1,21 +1,21 @@
1
- import { UseAsyncCallbackOptions } from 'react-async-hook';
2
- import { RequestConfig } from '../request';
3
- import { DependencyList } from 'react';
4
- import { AxiosRequestConfig } from 'axios';
5
- type UseRequestOptions<T> = {
6
- manual?: boolean;
7
- refreshDeps?: DependencyList;
8
- } & UseAsyncCallbackOptions<T>;
9
- export default function useRequest<T = any>(config: RequestConfig, { manual, refreshDeps, ...options }?: UseRequestOptions<T>): {
10
- status: import("react-async-hook").AsyncStateStatus;
11
- loading: boolean;
12
- result: T | undefined;
13
- set: (value: import("react-async-hook").AsyncState<T>) => void;
14
- merge: (value: Partial<import("react-async-hook").AsyncState<T>>) => void;
15
- reset: () => void;
16
- currentPromise: Promise<T> | null;
17
- refresh: () => Promise<void>;
18
- execute: (params?: AxiosRequestConfig<any> | undefined) => Promise<T>;
19
- error: Error | undefined;
20
- };
21
- export {};
1
+ import { UseAsyncCallbackOptions } from 'react-async-hook';
2
+ import { RequestConfig } from '../request';
3
+ import { DependencyList } from 'react';
4
+ import { AxiosRequestConfig } from 'axios';
5
+ type UseRequestOptions<T> = {
6
+ manual?: boolean;
7
+ refreshDeps?: DependencyList;
8
+ } & UseAsyncCallbackOptions<T>;
9
+ export default function useRequest<T = any>(config: RequestConfig, { manual, refreshDeps, ...options }?: UseRequestOptions<T>): {
10
+ status: import("react-async-hook").AsyncStateStatus;
11
+ loading: boolean;
12
+ result: T | undefined;
13
+ set: (value: import("react-async-hook").AsyncState<T>) => void;
14
+ merge: (value: Partial<import("react-async-hook").AsyncState<T>>) => void;
15
+ reset: () => void;
16
+ currentPromise: Promise<T> | null;
17
+ refresh: () => Promise<void>;
18
+ execute: (params?: AxiosRequestConfig<any> | undefined) => Promise<T>;
19
+ error: Error | undefined;
20
+ };
21
+ export {};
@@ -1,4 +1,4 @@
1
- import type { Dispatch, SetStateAction } from 'react';
2
- declare function useSafeState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
3
- declare function useSafeState<S = undefined>(): [S | undefined, Dispatch<SetStateAction<S | undefined>>];
4
- export default useSafeState;
1
+ import type { Dispatch, SetStateAction } from 'react';
2
+ declare function useSafeState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
3
+ declare function useSafeState<S = undefined>(): [S | undefined, Dispatch<SetStateAction<S | undefined>>];
4
+ export default useSafeState;
@@ -1,2 +1,2 @@
1
- import { SetStateAction } from 'react';
2
- export default function useStateWithCallback<S>(initState: S): [S, (value: SetStateAction<S>, callback: () => void) => void];
1
+ import { SetStateAction } from 'react';
2
+ export default function useStateWithCallback<S>(initState: S): [S, (value: SetStateAction<S>, callback: () => void) => void];
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const useUnmountedRef: () => import("react").MutableRefObject<boolean>;
3
- export default useUnmountedRef;
1
+ /// <reference types="react" />
2
+ declare const useUnmountedRef: () => import("react").MutableRefObject<boolean>;
3
+ export default useUnmountedRef;
package/types/index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- export { default as Message } from './utils/message';
2
- export { default as waitPayComplete } from './utils/wait-pay-complete';
3
- export { default as Toast } from './utils/toast';
4
- export { PaginationType } from './utils/types';
5
- export { default as isRecord } from './utils/is-record';
6
- export { default as Result } from './components/result';
7
- export { default as Loader } from './components/loader';
8
- export { default as Card } from './components/card';
9
- export { default as Error } from './components/error';
10
- export { default as Space } from './components/space';
11
- export { default as Steps, Step } from './components/steps';
12
- export { default as Statistic } from './components/statistic';
13
- export { default as Pagination } from './components/pagination';
14
- export { default as NumberFormat } from './components/number-format';
15
- export { default as LoadingButton } from './components/loading-button';
16
- export { default as ImageZoom } from './components/image-zoom';
17
- export { default as Button, ButtonProps } from './components/button';
18
- export { default as RequestButton } from './components/request-button';
19
- export { default as Form, FormProps, FormType } from './components/form';
20
- export { default as Table, TableProps, Columns, TableType } from './components/table';
21
- export { default as ModalForm, ModalFormProps } from './components/modal-form';
22
- export { default as ModalButton, ModalType, ModalButtonProps } from './components/modal-button';
23
- export { default as Modal, ModalProps, MessageProps } from './components/modal';
24
- export { default as Tooltip } from './components/tooltip';
25
- export { default as useRequest } from './hooks/use-request';
26
- export { default as useOverlayState } from './hooks/use-overlay-state';
27
- export { default as useControllableState } from './hooks/use-controllable-state';
28
- export { default as useDebounce } from './hooks/use-debounce';
29
- export { default as useSafeState } from './hooks/use-safe-state';
30
- export { default as request, RequestConfig, RequestInstance, isRequestError, showRequestError } from './request';
31
- export type { UiSchema as FormUiSchema, Schema as FormSchema, WidgetProps as FormWidgetProps, Widget as FormWidget, IChangeEvent as FormChangeEvent, ISubmitEvent as FormSubmitEvent } from '@topthink/json-form';
32
- export { default as styled, css, keyframes, createGlobalStyle, StyleSheetManager, ThemeProvider } from 'styled-components';
33
- export { useAsync, useAsyncCallback } from 'react-async-hook';
1
+ export { default as Message } from './utils/message';
2
+ export { default as waitPayComplete } from './utils/wait-pay-complete';
3
+ export { default as Toast } from './utils/toast';
4
+ export { PaginationType } from './utils/types';
5
+ export { default as isRecord } from './utils/is-record';
6
+ export { default as Result } from './components/result';
7
+ export { default as Loader } from './components/loader';
8
+ export { default as Card } from './components/card';
9
+ export { default as Error } from './components/error';
10
+ export { default as Space } from './components/space';
11
+ export { default as Steps, Step } from './components/steps';
12
+ export { default as Statistic } from './components/statistic';
13
+ export { default as Pagination } from './components/pagination';
14
+ export { default as NumberFormat } from './components/number-format';
15
+ export { default as LoadingButton } from './components/loading-button';
16
+ export { default as ImageZoom } from './components/image-zoom';
17
+ export { default as Button, ButtonProps } from './components/button';
18
+ export { default as RequestButton } from './components/request-button';
19
+ export { default as Form, FormProps, FormType } from './components/form';
20
+ export { default as Table, TableProps, Columns, TableType } from './components/table';
21
+ export { default as ModalForm, ModalFormProps } from './components/modal-form';
22
+ export { default as ModalButton, ModalType, ModalButtonProps } from './components/modal-button';
23
+ export { default as Modal, ModalProps, MessageProps } from './components/modal';
24
+ export { default as Tooltip } from './components/tooltip';
25
+ export { default as useRequest } from './hooks/use-request';
26
+ export { default as useOverlayState } from './hooks/use-overlay-state';
27
+ export { default as useControllableState } from './hooks/use-controllable-state';
28
+ export { default as useDebounce } from './hooks/use-debounce';
29
+ export { default as useSafeState } from './hooks/use-safe-state';
30
+ export { default as request, RequestConfig, RequestInstance, isRequestError, showRequestError } from './request';
31
+ export type { UiSchema as FormUiSchema, Schema as FormSchema, WidgetProps as FormWidgetProps, Widget as FormWidget, IChangeEvent as FormChangeEvent, ISubmitEvent as FormSubmitEvent } from '@topthink/json-form';
32
+ export { default as styled, css, keyframes, createGlobalStyle, StyleSheetManager, ThemeProvider } from 'styled-components';
33
+ export { useAsync, useAsyncCallback } from 'react-async-hook';
@@ -1,32 +1,32 @@
1
- import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
- import { RetryConfig } from 'retry-axios';
3
- export type Errors = string | {
4
- [key: string]: string;
5
- };
6
- declare module 'retry-axios' {
7
- interface RetryConfig {
8
- retryDecider?: () => boolean;
9
- }
10
- }
11
- declare module 'axios' {
12
- interface AxiosError {
13
- errors: Errors;
14
- }
15
- interface AxiosRequestConfig {
16
- raxConfig?: RetryConfig;
17
- authTokenName?: string;
18
- }
19
- }
20
- export type RequestConfig = AxiosRequestConfig | string;
21
- export type RequestInstance = AxiosInstance;
22
- export declare const isRequestError: (payload: any) => payload is import("axios").AxiosError<unknown, any>;
23
- export declare const showRequestError: (e: any) => void;
24
- declare const request: {
25
- <T = any>(config: RequestConfig): Promise<T>;
26
- defaults: import("axios").AxiosDefaults<any>;
27
- interceptors: {
28
- request: import("axios").AxiosInterceptorManager<AxiosRequestConfig<any>>;
29
- response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse<any, any>>;
30
- };
31
- };
32
- export default request;
1
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
+ import { RetryConfig } from 'retry-axios';
3
+ export type Errors = string | {
4
+ [key: string]: string;
5
+ };
6
+ declare module 'retry-axios' {
7
+ interface RetryConfig {
8
+ retryDecider?: () => boolean;
9
+ }
10
+ }
11
+ declare module 'axios' {
12
+ interface AxiosError {
13
+ errors: Errors;
14
+ }
15
+ interface AxiosRequestConfig {
16
+ raxConfig?: RetryConfig;
17
+ authTokenName?: string;
18
+ }
19
+ }
20
+ export type RequestConfig = AxiosRequestConfig | string;
21
+ export type RequestInstance = AxiosInstance;
22
+ export declare const isRequestError: (payload: any) => payload is import("axios").AxiosError<unknown, any>;
23
+ export declare const showRequestError: (e: any) => void;
24
+ declare const request: {
25
+ <T = any>(config: RequestConfig): Promise<T>;
26
+ defaults: import("axios").AxiosDefaults<any>;
27
+ interceptors: {
28
+ request: import("axios").AxiosInterceptorManager<AxiosRequestConfig<any>>;
29
+ response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse<any, any>>;
30
+ };
31
+ };
32
+ export default request;
@@ -1 +1 @@
1
- export default function isRecord(data: any): data is Record<string, string>;
1
+ export default function isRecord(data: any): data is Record<string, string>;
@@ -1,11 +1,11 @@
1
- import { SweetAlertOptions, SweetAlertResult } from 'sweetalert2';
2
- interface MessageOptions<T = any> extends SweetAlertOptions<T> {
3
- }
4
- declare const Message: {
5
- confirm: <T = any>(options: MessageOptions<T>) => Promise<boolean>;
6
- success: (options: MessageOptions) => void;
7
- error: (options: MessageOptions) => void;
8
- close: (result?: SweetAlertResult) => void;
9
- defaults: MessageOptions<any>;
10
- };
11
- export default Message;
1
+ import { SweetAlertOptions, SweetAlertResult } from 'sweetalert2';
2
+ interface MessageOptions<T = any> extends SweetAlertOptions<T> {
3
+ }
4
+ declare const Message: {
5
+ confirm: <T = any>(options: MessageOptions<T>) => Promise<boolean>;
6
+ success: (options: MessageOptions) => void;
7
+ error: (options: MessageOptions) => void;
8
+ close: (result?: SweetAlertResult) => void;
9
+ defaults: MessageOptions<any>;
10
+ };
11
+ export default Message;
@@ -1,11 +1,11 @@
1
- import { NoticeContent } from 'rc-notification/lib/Notification';
2
- import { NotificationProps } from 'rc-notification/es/Notification';
3
- declare const defaultOptions: NotificationProps & {
4
- getContainer?: () => HTMLElement;
5
- };
6
- declare const types: readonly ["error", "success", "info"];
7
- type ToastType = Record<typeof types[number], (content: string, options?: NoticeContent) => void> & {
8
- defaults: typeof defaultOptions;
9
- };
10
- declare const _default: ToastType;
11
- export default _default;
1
+ import { NoticeContent } from 'rc-notification/lib/Notification';
2
+ import { NotificationProps } from 'rc-notification/es/Notification';
3
+ declare const defaultOptions: NotificationProps & {
4
+ getContainer?: () => HTMLElement;
5
+ };
6
+ declare const types: readonly ["error", "success", "info"];
7
+ type ToastType = Record<typeof types[number], (content: string, options?: NoticeContent) => void> & {
8
+ defaults: typeof defaultOptions;
9
+ };
10
+ declare const _default: ToastType;
11
+ export default _default;
@@ -1,7 +1,7 @@
1
- export interface PaginationType<T = any> {
2
- total: number;
3
- current_page: number;
4
- per_page: number;
5
- last_page: number;
6
- data: T[];
7
- }
1
+ export interface PaginationType<T = any> {
2
+ total: number;
3
+ current_page: number;
4
+ per_page: number;
5
+ last_page: number;
6
+ data: T[];
7
+ }
@@ -1,11 +1,11 @@
1
- interface PayResult {
2
- pay_url: string;
3
- order_no: string;
4
- }
5
- interface Options {
6
- result: PayResult;
7
- checkUrl: string;
8
- onComplete?: () => void;
9
- }
10
- export default function waitPayComplete(options: Options): void;
11
- export {};
1
+ interface PayResult {
2
+ pay_url: string;
3
+ order_no: string;
4
+ }
5
+ interface Options {
6
+ result: PayResult;
7
+ checkUrl: string;
8
+ onComplete?: () => void;
9
+ }
10
+ export default function waitPayComplete(options: Options): void;
11
+ export {};