@momo-kits/stepper 0.157.1-beta.3 → 0.157.2-test.1
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/index.tsx +3 -1
- package/package.json +1 -1
package/index.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import StepperButton from './StepperButton';
|
|
|
11
11
|
import {DisabledStatus, StepperProps} from './types';
|
|
12
12
|
import styles from './styles';
|
|
13
13
|
import NumberView from './NumberView';
|
|
14
|
-
import {MiniAppContext, ScreenContext} from '@momo-kits/foundation';
|
|
14
|
+
import {MiniAppContext, ScreenContext, useScreenRegistry} from '@momo-kits/foundation';
|
|
15
15
|
|
|
16
16
|
const Stepper = forwardRef(
|
|
17
17
|
(
|
|
@@ -28,6 +28,7 @@ const Stepper = forwardRef(
|
|
|
28
28
|
}: StepperProps,
|
|
29
29
|
ref
|
|
30
30
|
) => {
|
|
31
|
+
useScreenRegistry('Stepper');
|
|
31
32
|
const [value, setValue] = useState(defaultValue);
|
|
32
33
|
|
|
33
34
|
const app = useContext<any>(MiniAppContext);
|
|
@@ -135,5 +136,6 @@ const Stepper = forwardRef(
|
|
|
135
136
|
}
|
|
136
137
|
);
|
|
137
138
|
|
|
139
|
+
Stepper.displayName = 'Stepper';
|
|
138
140
|
export {Stepper};
|
|
139
141
|
export type {StepperProps};
|