@mi-avalon/libs 0.0.32 → 1.0.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/README.md +2 -2
- package/dist/components/MSearch/index.d.ts +1 -1
- package/dist/components/MTable/index.js +2 -2
- package/dist/components/MiModal/index.js +1 -1
- package/dist/components/ThemeContext/index.js +3 -1
- package/dist/index.es.js +28349 -2500
- package/dist/index.umd.js +258 -77
- package/package.json +13 -14
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# @mi-avalon/libs 组件库
|
|
1
|
+
# @mi-avalon/libs 组件库 v1
|
|
2
2
|
|
|
3
|
-
基于 react
|
|
3
|
+
基于 react 19, antd 6 封装的组件/工具类库
|
|
4
4
|
|
|
5
5
|
[组件使用地址](https://mi-avalon.github.io/mi-avalon-libraries/2.%E7%BB%84%E4%BB%B6%E5%B7%A5%E5%85%B7%E7%B1%BB%E5%BA%93/1.%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8/)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* 表格
|
|
4
4
|
*/
|
|
@@ -6,5 +6,5 @@ import { Table } from 'antd';
|
|
|
6
6
|
import { CompThemeProvider } from '../ThemeContext';
|
|
7
7
|
export function MTable(props) {
|
|
8
8
|
const columns = props.columns?.map(e => ({ ...e, dataIndex: e.key })) ?? [];
|
|
9
|
-
return (
|
|
9
|
+
return (_jsx(CompThemeProvider, { children: _jsx(Table, { rowKey: e => e.id, ...props, columns: columns }) }));
|
|
10
10
|
}
|
|
@@ -65,6 +65,6 @@ export class MiModal extends Component {
|
|
|
65
65
|
this.props.onClosed?.({ ok: true });
|
|
66
66
|
};
|
|
67
67
|
render() {
|
|
68
|
-
return (_jsx(ConfigProvider, { theme: this.getTheme(), componentSize: 'middle',
|
|
68
|
+
return (_jsx(ConfigProvider, { theme: this.getTheme(), componentSize: 'middle', children: _jsx(AntModal, { maskClosable: false, open: this.props.open, onCancel: this.handleCancel, onOk: this.handleOk, okText: '\u786E\u5B9A', cancelText: '\u53D6\u6D88', ...this.props, children: this.props.children }) }));
|
|
69
69
|
}
|
|
70
70
|
}
|