style: fix words spelling problem
This commit is contained in:
parent
cbecbdb8cf
commit
0de2508143
|
@ -17,7 +17,6 @@ export interface DTCImageSchema extends DripTableComponentSchema {
|
|||
noDataUrl?: string;
|
||||
popover?: boolean;
|
||||
previewImg?: boolean;
|
||||
// fullScreen?: boolean;
|
||||
imgWidth?: number;
|
||||
imgHeight?: number;
|
||||
}
|
||||
|
|
|
@ -13,8 +13,6 @@ import { DripTableComponentProps, DripTableComponentSchema } from '../component'
|
|||
|
||||
export interface DTCTagSchema extends DripTableComponentSchema {
|
||||
'ui:type': 'tag';
|
||||
/** 模式 */
|
||||
// mode?: 'single' | 'multi';
|
||||
/** 字体颜色 */
|
||||
color?: string;
|
||||
/** 边框颜色 */
|
||||
|
@ -26,7 +24,7 @@ export interface DTCTagSchema extends DripTableComponentSchema {
|
|||
/** 前缀 */
|
||||
prefix?: string;
|
||||
/** 后缀 */
|
||||
subfix?: string;
|
||||
suffix?: string;
|
||||
/** 静态文案 */
|
||||
content?: string;
|
||||
/** 枚举 */
|
||||
|
@ -62,7 +60,7 @@ export default class DTCTag<RecordType> extends React.PureComponent<DTCTagProps<
|
|||
>
|
||||
{ schema.content || schema.tagOptions?.find(item => item.value === value)?.label || value }
|
||||
</Tag>
|
||||
{ schema.subfix || '' }
|
||||
{ schema.suffix || '' }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ export interface DTCTextSchema extends DripTableComponentSchema {
|
|||
/** 前缀文案 */
|
||||
prefix?: string;
|
||||
/** 后缀文案 */
|
||||
subfix?: string;
|
||||
suffix?: string;
|
||||
enumValue?: string[];
|
||||
enumLabel?: string[];
|
||||
tooltip?: boolean | string;
|
||||
|
@ -38,7 +38,7 @@ export interface DTCTextSchema extends DripTableComponentSchema {
|
|||
/** 前缀文案 */
|
||||
prefix?: string;
|
||||
/** 后缀文案 */
|
||||
subfix?: string;
|
||||
suffix?: string;
|
||||
enumValue?: string[];
|
||||
enumLabel?: string[];
|
||||
tooltip?: boolean | string;
|
||||
|
@ -117,7 +117,7 @@ export default class DTCText<RecordType> extends React.PureComponent<DTCTextProp
|
|||
noDataValue,
|
||||
format,
|
||||
prefix,
|
||||
subfix,
|
||||
suffix,
|
||||
params,
|
||||
enumValue,
|
||||
enumLabel,
|
||||
|
@ -151,7 +151,7 @@ export default class DTCText<RecordType> extends React.PureComponent<DTCTextProp
|
|||
const index = enumValue.indexOf(value);
|
||||
value = enumLabel[index];
|
||||
}
|
||||
const contentStr = `${prefix || ''} ${value || noDataStr} ${subfix || ''}`;
|
||||
const contentStr = `${prefix || ''} ${value || noDataStr} ${suffix || ''}`;
|
||||
const Tooltip = this.props.driver.components.Tooltip;
|
||||
return (
|
||||
<div style={this.styles} className={this.classNames}>
|
||||
|
@ -176,7 +176,7 @@ export default class DTCText<RecordType> extends React.PureComponent<DTCTextProp
|
|||
const index = enumValue.indexOf(value);
|
||||
value = enumLabel[index];
|
||||
}
|
||||
const contentStr = `${config.prefix || ''} ${value || noDataStr} ${config.subfix || ''}`;
|
||||
const contentStr = `${config.prefix || ''} ${value || noDataStr} ${config.suffix || ''}`;
|
||||
return (
|
||||
<div key={i}>
|
||||
{ tooltip
|
||||
|
|
Loading…
Reference in New Issue