/* * @Author: your name * @Date: 2021-12-17 17:02:34 * @Description: * @FilePath: \zl-business\src\components\Unit\titleLine\index.tsx */ import React from 'react'; import '../g.scss'; function LabelTitleLine(props: ITitleLine) { const { label = 'label', labels = '', wrapStyle = { padding: '6px 20px 6px 20px' } } = props; return (
{label ? label : ''} {labels ? {labels} : <>}
); } export default LabelTitleLine; export interface ITitleLine { label: string; labels?: string; wrapStyle?: React.CSSProperties; }