7528c134
杜志良
feat(cas): 售后公共组件...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import React from 'react';
import type { CSSProperties } from 'react';
import { Row } from '@feewee/h5app-common';
import './style.less';
interface ComponentProps {
title: string;
content: string | number;
rowStyle?: CSSProperties;
titleStyle?: CSSProperties;
contentStyle?: CSSProperties;
}
export default function RowText({ title, content, rowStyle, titleStyle, contentStyle }: ComponentProps) {
return (
<Row className="row-wrapper" style={rowStyle}>
<span className="label" style={titleStyle}>
{title}:
</span>
<span className="content" style={contentStyle}>
{content}
</span>
</Row>
);
}
|