@positive-map/rc-components
v1.0.13
Published
Positive Map 基于 React 18 + Antd 5 的业务组件库
Downloads
6
Maintainers
Readme
@positive-map/rc-components
Positive Map 基于 React 18 + Antd 5 的业务组件库
特性
- 基于 React 18 + Antd 5
- 按需加载
- 支持 TypeScript
安装
$ npm install @positive-map/rc-components --save-dev
使用
// 业务代码
import { NumericKeyboard } from '@positive-map/rc-components';
按需加载
方式一:精确加载
import NumericKeyboard from '@positive-map/rc-components/lib/NumericKeyboard';
方式二:babel-plugin-import
// babel.config.js
module.exports = {
plugins: [
[
'import',
{
libraryName: '@positive-map/rc-components',
libraryDirectory: 'lib',
camel2DashComponentName: false,
},
],
],
};