@bit-sun/business-component 2.4.31 → 2.4.33-yt-alpha.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/.umirc.ts CHANGED
@@ -71,4 +71,14 @@ export default defineConfig({
71
71
  },
72
72
  },
73
73
  // more config: https://d.umijs.org/config
74
+ // 添加 webpack 配置
75
+ chainWebpack: (config) => {
76
+ // 处理 SWR 模块的导入问题
77
+ config.module
78
+ .rule('mjs-rule')
79
+ .test(/\.mjs$/)
80
+ .include.add(/node_modules/)
81
+ .end()
82
+ .type('javascript/auto');
83
+ }
74
84
  });
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { FormInstance } from 'antd/es/form';
3
3
  import './index.less';
4
4
  declare class rightTree extends React.Component<any> {
5
- formRef: React.RefObject<FormInstance<any>>;
5
+ formRef: React.RefObject<FormInstance<any> | null>;
6
6
  constructor(props: any);
7
7
  state: {
8
8
  expandedKeys: string[];
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
2
+ declare const _default: React.NamedExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;