betanet-mini-ui

为 Taro 而设计的 UI Library

Usage no npm install needed!

<script type="module">
  import betanetMiniUi from 'https://cdn.skypack.dev/betanet-mini-ui';
</script>

README

betanet mini ui logo

Betanet-Mini-UI

简介

Taro而设计的UI Library.

文档

vercel

特性

  • 多端适配.
  • 组件丰富.
  • 按需加载.

taro init

确保当前node>=12.x. 可使用npx taro init projectname选择betanet-mini-ui模板进行初始化项目.

安装

$ npm i betanet-mini-ui --save
或
$ yarn add betanet-mini-ui

使用

import { Input } from 'betanet-mini-ui';

注: betanet-mini-uijs代码默认支持基于ES modulestree shaking. 但你依然可以显式的使用babel-plugin-import去设置按需加载, 设置方式如下:

// babel.config.js
module.exports = {
  plugins: [
    [
      'import',
      {
        libraryName: 'betanet-mini-ui',
        camel2DashComponentName: false,
      },
      'betanet-mini-ui',
    ],
  ],
};

License

[MIT]