import { View } from "@tarojs/components"; import Taro from "@tarojs/taro"; import { IProps } from "../../../@types/divider"; import { TEXT_COLOR_LIST, SIZE } from "../../lib/model"; import ClLayout from "../layout"; import { classNames } from "../../lib"; export default function ClDivider(props: IProps) { const { color, size } = props; const colorClassName = TEXT_COLOR_LIST[color || "grey"]; const sizeClassName = `text-${SIZE[size || "normal"]}`; return ( {this.props.children} ); } ClDivider.options = { addGlobalClass: true }; ClDivider.defaultProps = { color: "grey", size: "normal" } as IProps;