@jiaozhiye/qm-design-react 1.7.5 → 1.7.7

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.
@@ -33,6 +33,7 @@ type IExtra = {
33
33
  setResizeState: (option: ITableRef['resizeState']) => void;
34
34
  setMergeCells: (values: IMergeCell[]) => void;
35
35
  setPingRight: (value: boolean) => void;
36
+ setHandleChange: (value: boolean) => void;
36
37
  calcTableHeight: () => void;
37
38
  createSelectionKeys: (rowKeys?: IRowKey[]) => IRowKey[];
38
39
  createSelectionRows: (rowKeys: IRowKey[]) => IRecord[];
@@ -0,0 +1,3 @@
1
+ import Transition from './src/transition';
2
+ export type { QmTransitionProps } from './src/transition';
3
+ export default Transition;
@@ -0,0 +1,13 @@
1
+ import type { TransitionState } from './types';
2
+ export declare const PRE_ENTER = 0;
3
+ export declare const ENTERING = 1;
4
+ export declare const ENTERED = 2;
5
+ export declare const PRE_EXIT = 3;
6
+ export declare const EXITING = 4;
7
+ export declare const EXITED = 5;
8
+ export declare const UNMOUNTED = 6;
9
+ export declare const STATUS: string[];
10
+ export declare const getState: (status: number) => TransitionState;
11
+ export declare const startOrEnd: (unmounted: any) => 6 | 5;
12
+ export declare const getEndStatus: (status: number, unmountOnExit: any) => 2 | 6 | 5 | undefined;
13
+ export declare const getTimeout: (timeout: any) => any[];
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ type IProps = {
3
+ name: string;
4
+ in: boolean;
5
+ timeout: number;
6
+ preEnter?: boolean;
7
+ preExit?: boolean;
8
+ children: React.ReactNode;
9
+ };
10
+ export type QmTransitionProps = IProps;
11
+ declare const QmTransition: React.FC<IProps>;
12
+ export default QmTransition;
@@ -0,0 +1,25 @@
1
+ export type TransitionStatus = 'preEnter' | 'entering' | 'entered' | 'preExit' | 'exiting' | 'exited' | 'unmounted';
2
+ export type TransitionState = {
3
+ status: TransitionStatus;
4
+ isMounted: boolean;
5
+ isEnter: boolean;
6
+ isResolved: boolean;
7
+ _s: number;
8
+ };
9
+ export interface TransitionOptions {
10
+ initialEntered?: boolean;
11
+ mountOnEnter?: boolean;
12
+ unmountOnExit?: boolean;
13
+ preEnter?: boolean;
14
+ preExit?: boolean;
15
+ enter?: boolean;
16
+ exit?: boolean;
17
+ timeout?: number | {
18
+ enter?: number;
19
+ exit?: number;
20
+ };
21
+ onStateChange?: (event: {
22
+ current: TransitionState;
23
+ }) => void;
24
+ }
25
+ export type TransitionResult = [TransitionState, (toEnter?: boolean) => void, () => void];
@@ -0,0 +1,2 @@
1
+ import type { TransitionOptions, TransitionResult } from './types';
2
+ export declare const useTransition: (options?: TransitionOptions) => TransitionResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",