@peng_kai/kit 0.3.0-beta.5 → 0.3.0-beta.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.
- package/antd/hooks/useAntdModal.ts +12 -2
- package/libs/bignumber.ts +1 -1
- package/package.json +1 -1
|
@@ -78,8 +78,18 @@ export function useAntdModal<Comp extends Component>(
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
Object.assign(_modalProps, newAntdModalProps);
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
|
|
82
|
+
// eslint-disable-next-line no-lone-blocks
|
|
83
|
+
{
|
|
84
|
+
if (!(comp as any).props) {
|
|
85
|
+
Object.keys(compProps).forEach((key) => {
|
|
86
|
+
if (!['ref', 'onClose', 'onConfirm'].includes(key))
|
|
87
|
+
delete compProps[key];
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
Object.assign(compProps, newCompProps);
|
|
92
|
+
}
|
|
83
93
|
|
|
84
94
|
promiseResolvers = Promise.withResolvers();
|
|
85
95
|
_modalProps.open = true;
|
package/libs/bignumber.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from 'bignumber.js';
|
|
2
|
-
export { BigNumber } from 'bignumber.js';
|
|
2
|
+
export { type BigNumber } from 'bignumber.js';
|