UNPKG

mp-colorui

Version:

MP ColorUI 是一款基于 Taro 框架并且联合 Color-UI CSS 库开发的多端 UI 组件库(支持小程序端和H5端)

33 lines (31 loc) 791 B
import Taro from "@tarojs/taro-h5"; import Nerv from "nervjs"; import { View } from "@tarojs/components"; import { isH5, isWeApp } from "../../lib/index"; import Calendar_h5 from "./h5/index"; import Calendar_weapp from "./weapp/index"; export default class ClCalendar extends Taro.Component { render() { const props = this.props; return <View> {isWeApp ? <Calendar_weapp {...props} /> : ""} {isH5 ? <Calendar_h5 {...props} /> : ""} </View>; } } ClCalendar.defaultProps = { calendarType: "month", showType: "card", activeColor: "blue", tipDay: [], backToToday: true, onClick: () => {}, onChange: () => {}, badge: [], highlightWeekend: false, highlightWeekendColor: "blue", specialDay: [] }; ClCalendar.options = { addGlobalClass: true };