1.0.0-alpha.16 • Published 9 months ago

@gingkoo/pandora-ui v1.0.0-alpha.16

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

快速上手

跟随以下的步骤,快速上手组件库的使用。

安装

需要同时安装 react >= 16.8 和 react-dom >= 16.8。

// npm
npm i @gingkoo/pandora-ui

// yarn 
yarn add @gingkoo/pandora-ui

基础使用

以 Button 组件为例。

import React from "react";
import ReactDOM from "react-dom";
import { Button } from "@gingkoo/pandora-ui";
import "@gingkoo/pandora-ui/lib/umd/index.min.css";

ReactDOM.render(
  <Button type="primary">Hello Arco</Button>,
  document.querySelector("#root")
);

按需加载

@gingkoo/pandora-ui 的组件默认支持 tree shaking, 使用 import { Button } from '@gingkoo/pandora-ui'; 方式引入即可按需加载。

使用 babel-plugin-import

  • 安装
npm i babel-plugin-import -D
  • 添加配置 组件和样式的按需加载

在 babel 配置中加入:

plugins: [
  [
    'babel-plugin-import',
    {
      libraryName: '@gingkoo/pandora-ui',
      libraryDirectory: 'lib/es/components',
      camel2DashComponentName: false,
      style: true, // 样式按需加载
    },
  ],
];

vitevite.config.js 配置中加入:

import usePluginImport from 'vite-plugin-importer';

plugins: [
  usePluginImport({
    libraryName: '@gingkoo/pandora-ui',
    libraryDirectory: 'lib/es/components',
    style: true, // 样式按需加载
  })
]
1.0.0-alpha.16

9 months ago

1.0.0-alpha.15

9 months ago

1.0.0-alpha.14

12 months ago

1.0.0-alpha.13

1 year ago

1.0.0-alpha.12

1 year ago

1.0.0-alpha.10

1 year ago

1.0.0-alpha.11

1 year ago

1.0.0-alpha.9

1 year ago

1.0.0-alpha.8

1 year ago

1.0.0-alpha.7

1 year ago

1.0.0-alpha.6

1 year ago

1.0.0-alpha.5

1 year ago

1.0.0-alpha.4

1 year ago

1.0.0-alpha.3

1 year ago

1.0.0-alpha.2

1 year ago

1.0.0-alpha.1

1 year ago

1.0.0-alpha.0

1 year ago

0.0.69-rc.2

1 year ago

0.0.69-rc.1

1 year ago

0.0.67-rc.33

1 year ago

0.0.68

1 year ago

0.0.67-rc.32

1 year ago

0.0.67-rc.31

1 year ago

0.0.66-rc.16

2 years ago

0.0.66-rc.15

2 years ago

0.0.66-rc.18

2 years ago

0.0.66-rc.17

2 years ago

0.0.66-rc.19

2 years ago

0.0.66-rc.10

2 years ago

0.0.66-rc.12

2 years ago

0.0.66-rc.11

2 years ago

0.0.66-rc.14

2 years ago

0.0.66-rc.13

2 years ago

0.0.67-rc.17

2 years ago

0.0.67-rc.16

2 years ago

0.0.67-rc.15

2 years ago

0.0.67-rc.14

2 years ago

0.0.67-rc.19

2 years ago

0.0.67-rc.18

2 years ago

0.0.67-rc.13

2 years ago

0.0.67-rc.12

2 years ago

0.0.67-rc.11

2 years ago

0.0.67-rc.10

2 years ago

0.0.62

2 years ago

0.0.59-rc.3

2 years ago

0.0.63

2 years ago

0.0.59-rc.2

2 years ago

0.0.64

2 years ago

0.0.59-rc.1

2 years ago

0.0.65

2 years ago

0.0.66

2 years ago

0.0.67

2 years ago

0.0.60

2 years ago

0.0.61

2 years ago

0.0.59

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.55

2 years ago

0.0.56

2 years ago

0.0.57

2 years ago

0.0.58

2 years ago

0.0.50

2 years ago

0.0.66-rc.21

2 years ago

0.0.66-rc.20

2 years ago

0.0.66-rc.23

2 years ago

0.0.66-rc.22

2 years ago

0.0.49

2 years ago

0.0.63-rc.10

2 years ago

0.0.63-rc.11

2 years ago

0.0.63-rc.9

2 years ago

0.0.66-rc.7

2 years ago

0.0.63-rc.3

2 years ago

0.0.66-rc.6

2 years ago

0.0.63-rc.4

2 years ago

0.0.66-rc.5

2 years ago

0.0.63-rc.1

2 years ago

0.0.66-rc.4

2 years ago

0.0.63-rc.2

2 years ago

0.0.63-rc.7

2 years ago

0.0.63-rc.8

2 years ago

0.0.66-rc.9

2 years ago

0.0.63-rc.5

2 years ago

0.0.66-rc.8

2 years ago

0.0.63-rc.6

2 years ago

0.0.66-rc.3

2 years ago

0.0.66-rc.2

2 years ago

0.0.66-rc.1

2 years ago

0.0.64-rc.14

2 years ago

0.0.64-rc.13

2 years ago

0.0.64-rc.16

2 years ago

0.0.64-rc.15

2 years ago

0.0.64-rc.10

2 years ago

0.0.64-rc.12

2 years ago

0.0.64-rc.11

2 years ago

0.0.64-rc.18

2 years ago

0.0.64-rc.17

2 years ago

0.0.64-rc.19

2 years ago

0.0.67-rc.28

2 years ago

0.0.67-rc.3

2 years ago

0.0.67-rc.27

2 years ago

0.0.67-rc.4

2 years ago

0.0.67-rc.26

2 years ago

0.0.67-rc.1

2 years ago

0.0.64-rc.1

2 years ago

0.0.67-rc.25

2 years ago

0.0.67-rc.2

2 years ago

0.0.67-rc.29

1 year ago

0.0.53-rc.1

2 years ago

0.0.64-rc.7

2 years ago

0.0.64-rc.6

2 years ago

0.0.67-rc.9

2 years ago

0.0.64-rc.9

2 years ago

0.0.64-rc.8

2 years ago

0.0.67-rc.7

2 years ago

0.0.64-rc.3

2 years ago

0.0.67-rc.8

2 years ago

0.0.64-rc.20

2 years ago

0.0.64-rc.2

2 years ago

0.0.67-rc.5

2 years ago

0.0.64-rc.5

2 years ago

0.0.67-rc.6

2 years ago

0.0.64-rc.4

2 years ago

0.0.67-rc.20

2 years ago

0.0.67-rc.24

2 years ago

0.0.67-rc.23

2 years ago

0.0.67-rc.22

2 years ago

0.0.67-rc.21

2 years ago

0.0.49-rc.1

2 years ago

0.0.65-rc.18

2 years ago

0.0.65-rc.17

2 years ago

0.0.65-rc.16

2 years ago

0.0.65-rc.15

2 years ago

0.0.65-rc.14

2 years ago

0.0.65-rc.13

2 years ago

0.0.65-rc.12

2 years ago

0.0.65-rc.11

2 years ago

0.0.65-rc.10

2 years ago

0.0.65-rc.1

2 years ago

0.0.65-rc.2

2 years ago

0.0.65-rc.3

2 years ago

0.0.67-rc.30

1 year ago

0.0.65-rc.4

2 years ago

0.0.65-rc.5

2 years ago

0.0.65-rc.6

2 years ago

0.0.65-rc.7

2 years ago

0.0.65-rc.8

2 years ago

0.0.65-rc.9

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46-rc.6

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.40-rc.4

2 years ago

0.0.46-rc.1

2 years ago

0.0.46-rc.2

2 years ago

0.0.46-rc.3

2 years ago

0.0.46-rc.4

2 years ago

0.0.46-rc.5

2 years ago

0.0.43-rc.1

2 years ago

0.0.43-rc.2

2 years ago

0.0.40-rc.3

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.37

2 years ago

0.0.15

2 years ago

0.0.38

2 years ago

0.0.16

2 years ago

0.0.39

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.10

2 years ago

0.0.33

2 years ago

0.0.11

2 years ago

0.0.34

2 years ago

0.0.12

2 years ago

0.0.35

2 years ago

0.0.13

2 years ago

0.0.36

2 years ago

0.0.14

2 years ago

0.0.40-rc.1

2 years ago

0.0.40-rc.2

2 years ago

0.0.26

2 years ago

0.0.9

2 years ago

0.0.27

2 years ago

0.0.8

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.4

2 years ago