1.0.13 • Published 2 years ago

@positive-map/rc-components v1.0.13

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@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,
      },
    ],
  ],
};