@rc-component/trigger 3.6.13 → 3.6.14
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.
|
@@ -5,5 +5,5 @@ export interface UniqueProviderProps {
|
|
|
5
5
|
/** Additional handle options data to do the customize info */
|
|
6
6
|
postTriggerProps?: (options: UniqueShowOptions) => UniqueShowOptions;
|
|
7
7
|
}
|
|
8
|
-
declare const UniqueProvider: ({ children, postTriggerProps }: UniqueProviderProps) => React.JSX.Element;
|
|
8
|
+
declare const UniqueProvider: ({ children, postTriggerProps, }: UniqueProviderProps) => React.JSX.Element;
|
|
9
9
|
export default UniqueProvider;
|
|
@@ -89,6 +89,11 @@ const UniqueProvider = ({
|
|
|
89
89
|
hide
|
|
90
90
|
}), []);
|
|
91
91
|
|
|
92
|
+
// =========================== Align ============================
|
|
93
|
+
React.useEffect(() => {
|
|
94
|
+
onAlign();
|
|
95
|
+
}, [mergedOptions?.target]);
|
|
96
|
+
|
|
92
97
|
// =========================== Motion ===========================
|
|
93
98
|
const onPrepare = useEvent(() => {
|
|
94
99
|
onAlign();
|
|
@@ -5,5 +5,5 @@ export interface UniqueProviderProps {
|
|
|
5
5
|
/** Additional handle options data to do the customize info */
|
|
6
6
|
postTriggerProps?: (options: UniqueShowOptions) => UniqueShowOptions;
|
|
7
7
|
}
|
|
8
|
-
declare const UniqueProvider: ({ children, postTriggerProps }: UniqueProviderProps) => React.JSX.Element;
|
|
8
|
+
declare const UniqueProvider: ({ children, postTriggerProps, }: UniqueProviderProps) => React.JSX.Element;
|
|
9
9
|
export default UniqueProvider;
|
|
@@ -98,6 +98,11 @@ const UniqueProvider = ({
|
|
|
98
98
|
hide
|
|
99
99
|
}), []);
|
|
100
100
|
|
|
101
|
+
// =========================== Align ============================
|
|
102
|
+
React.useEffect(() => {
|
|
103
|
+
onAlign();
|
|
104
|
+
}, [mergedOptions?.target]);
|
|
105
|
+
|
|
101
106
|
// =========================== Motion ===========================
|
|
102
107
|
const onPrepare = (0, _util.useEvent)(() => {
|
|
103
108
|
onAlign();
|