@positive-map/ui-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@positive-map/ui-components

Positive UI 基于 React 18 + Antd 5 的业务组件库

特性

  • 基于 React 18 + Antd 5
  • 按需加载
  • 支持 TypeScript

安装

$ npm install @positive-map/ui-components --save-dev

使用

// 业务代码
import { NumericKeyboard } from '@positive-map/ui-components';

按需加载

方式一:精确加载

import NumericKeyboard from '@positive-map/ui-components/lib/NumericKeyboard';

方式二:babel-plugin-import

// babel.config.js
module.exports = {
  plugins: [
    [
      'import',
      {
        libraryName: '@positive-map/ui-components',
        libraryDirectory: 'lib',
        camel2DashComponentName: false,
      },
    ],
  ],
};

Package Sidebar

Install

npm i @positive-map/ui-components

Weekly Downloads

3

Version

1.0.3

License

none

Unpacked Size

1.09 MB

Total Files

35

Last publish

Collaborators

  • positive-2023