0.3.7 • Published 3 years ago

web-widget v0.3.7

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
3 years ago

web-widget

前端UI组件库

NPM JavaScript Style Guide

使用npm安装

npm install --save web-widget

使用yarn安装

yarn add web-widget

发包

npm publish

示例

import React from 'react'
import ReactDOM from 'react-dom'

import { Button } from 'web-widget'

const Example: React.FC = () => {
  return (
    <Button type="primary">我是按钮</Button>
  )
}

ReactDOM.render(<Example />, document.getElementById('root'))

按需加载

[
  'import',
  {
    libraryName: 'web-widget',
    transformToDefaultImport: false,
    camel2DashComponentName: false,
    customName: (name) => {
      const widget = name === 'them'
        ? name
        : name.endsWith('Icon') ? 'icons' : 'components' + `/${name}/${name}`
      return `web-widget/dist/es/${widget}`
    }
  },
  'web-widget'
]

License

Apache-2.0 © Ellite

0.3.7

3 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.7

5 years ago

0.2.8

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago