mini-check
Version:
20 lines (16 loc) • 400 B
JavaScript
import Taro from "@tarojs/taro-h5";
import Nerv from "nervjs";
import { View, Text } from '@tarojs/components';
import './index.scss';
class ItemExtra extends Taro.Component {
render() {
const { text, style } = this.props;
if (!text) {
return null;
}
return <View className="item-extra" style={style}>
<Text>{text}</Text>
</View>;
}
}
export default ItemExtra;