1234567891011121314 |
- import React, { Component } from 'react';
- import './index.less';
- import { Icon } from 'antd-mobile';
- export default class Checkbox extends Component {
- render() {
- const { className = '', checked, onClick } = this.props;
- return (
- <div className={`g-checkbox-wrapper ${className}`} onClick={() => onClick && onClick()}>
- <Icon type="check-circle" color={checked ? '#41A6F3' : '#ECEDEE'} />
- </div>
- );
- }
- }
|