|
@@ -169,7 +169,7 @@ export default class SldTableRowTwo extends PureComponent {
|
|
fontWeight: this.props.r_fontw != undefined ? this.props.r_fontw : '500',
|
|
fontWeight: this.props.r_fontw != undefined ? this.props.r_fontw : '500',
|
|
lineHeight: '16px',
|
|
lineHeight: '16px',
|
|
}}>
|
|
}}>
|
|
- {val.text.length > 62
|
|
|
|
|
|
+ {val.text?.length > 62
|
|
? <Tooltip placement="bottomRight" title={val.text}>
|
|
? <Tooltip placement="bottomRight" title={val.text}>
|
|
<span className={styles.word_break}>{val.text.substring(0, 61)}...</span>
|
|
<span className={styles.word_break}>{val.text.substring(0, 61)}...</span>
|
|
</Tooltip>
|
|
</Tooltip>
|
|
@@ -190,7 +190,7 @@ export default class SldTableRowTwo extends PureComponent {
|
|
fontWeight: this.props.r_fontw != undefined ? this.props.r_fontw : '500',
|
|
fontWeight: this.props.r_fontw != undefined ? this.props.r_fontw : '500',
|
|
lineHeight: '16px',
|
|
lineHeight: '16px',
|
|
}}>
|
|
}}>
|
|
- {val.text.length > 62
|
|
|
|
|
|
+ {val.text?.length > 62
|
|
? <Tooltip placement="bottomRight" title={val.text}>
|
|
? <Tooltip placement="bottomRight" title={val.text}>
|
|
<div>
|
|
<div>
|
|
<span className={styles.word_break}>{val.text.substring(0, 61)}...</span>
|
|
<span className={styles.word_break}>{val.text.substring(0, 61)}...</span>
|
|
@@ -268,7 +268,7 @@ export default class SldTableRowTwo extends PureComponent {
|
|
color: this.props.r_color != undefined ? this.props.r_color : '#999',
|
|
color: this.props.r_color != undefined ? this.props.r_color : '#999',
|
|
fontWeight: this.props.r_fontw != undefined ? this.props.r_fontw : '500',
|
|
fontWeight: this.props.r_fontw != undefined ? this.props.r_fontw : '500',
|
|
lineHeight: '16px',
|
|
lineHeight: '16px',
|
|
- }} title={val.text}>{val.text.length > 30 ? val.text.substring(0, 30) + '...' : val.text}</div>
|
|
|
|
|
|
+ }} title={val.text}>{val.text?.length > 30 ? val.text.substring(0, 30) + '...' : val.text}</div>
|
|
</FormItem>
|
|
</FormItem>
|
|
);
|
|
);
|
|
} else if (val.type == 'show_goods_img_more') {
|
|
} else if (val.type == 'show_goods_img_more') {
|
|
@@ -279,7 +279,7 @@ export default class SldTableRowTwo extends PureComponent {
|
|
style={{ width: '100%' }}
|
|
style={{ width: '100%' }}
|
|
>
|
|
>
|
|
<div className={`${global.flex_row_start_center}`}>
|
|
<div className={`${global.flex_row_start_center}`}>
|
|
- {val.data.length > 0 ? val.data.map((item, index) => {
|
|
|
|
|
|
+ {val.data?.length > 0 ? val.data.map((item, index) => {
|
|
return <div key={index} className={global.flex_row_center_center} onClick={() => this.sldShowImgPre(val, item.imageUrl)} style={{
|
|
return <div key={index} className={global.flex_row_center_center} onClick={() => this.sldShowImgPre(val, item.imageUrl)} style={{
|
|
overFlow: 'hidden',
|
|
overFlow: 'hidden',
|
|
width: 100,
|
|
width: 100,
|