1.0.0-alpha.1 • Published 5 years ago

@xcandy/ui-taro v1.0.0-alpha.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

XCandy UI Taro

Npm Ci

A UI framework for taro.js

View

https://xxxcandy.github.io/xcandy-ui-taro

Usage

Install

npm install @xcandy/ui-taro

Use in your Taro component

import Taro, { Component } from '@tarojs/taro'
import { View } from '@tarojs/components'
import { XcCalendar } from '@xcandy/ui-taro'

class Demo extends Component {
  render() {
    return (
      <View>
        <XcCalendar />
      </View>
    )
  }
}

export default Demo

Dont forget add esnextModules: ['@xcandy/ui-taro'] on config if you want to build h5.

See: https://nervjs.github.io/taro/docs/config-detail.html#h5esnextmodules

Development

Build UI component

npm run ui:build

Dev command

# h5
npm run dev:h5

# weapp
npm run dev:weapp

License

MIT