@jiaozhiye/qm-design-react 1.7.29 → 1.7.31
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/lib/guide-tracker/src/Panel.d.ts +2 -2
- package/lib/guide-tracker/src/guideTracker.d.ts +2 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.js +5 -5
- package/lib/locale/lang/zh-cn.js +5 -5
- package/lib/style/index.less +39 -39
- package/lib/tour/src/Mask.d.ts +1 -1
- package/lib/tour/src/Tour.d.ts +2 -1
- package/lib/tour/src/hooks/useTarget.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type
|
|
2
|
+
type PanelProps = {
|
|
3
3
|
action: string;
|
|
4
4
|
onConfirm?: () => void;
|
|
5
5
|
onCancel?: () => void;
|
|
6
6
|
onFinish?: () => void;
|
|
7
7
|
};
|
|
8
|
-
declare const Panel: React.FC<
|
|
8
|
+
declare const Panel: React.FC<PanelProps>;
|
|
9
9
|
export default Panel;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { PlacementType } from '../../tour/src/placements';
|
|
2
3
|
type StepProps = {
|
|
3
4
|
id: string;
|
|
4
5
|
nodePath: string;
|
|
@@ -15,6 +16,7 @@ type IProps = {
|
|
|
15
16
|
steps?: StepProps[];
|
|
16
17
|
overlayClassName?: string;
|
|
17
18
|
overlayStyle?: React.CSSProperties;
|
|
19
|
+
placement?: PlacementType;
|
|
18
20
|
control?: boolean;
|
|
19
21
|
destroyOnHide?: boolean;
|
|
20
22
|
onChange?: (items: StepProps[], current: number) => void;
|