@tarojsx/ui
Version:
We reinvents the UI for Taro3+
14 lines • 878 B
JavaScript
import React from 'react';
import classNames from 'classnames';
import { View, Text } from '@tarojs/components';
import '../style/Statistic.scss';
export const Statistic = props => {
const { className, title, value, valueStyle = {}, prefix, suffix } = props;
return (React.createElement(View, { className: classNames('at-statistic', className) },
React.createElement(View, { className: "at-statistic__title" }, title),
React.createElement(View, { className: "at-statistic__content" },
!!prefix && React.createElement(View, { className: "at-statistic__content__prefix" }, prefix),
React.createElement(Text, { className: "at-statistic__content__value", style: valueStyle }, value),
!!suffix && React.createElement(View, { className: "at-statistic__content__suffix" }, suffix))));
};
//# sourceMappingURL=Statistic.js.map