Commit b515c00b authored by zhangwenshuai's avatar zhangwenshuai

修改评分样式

parent ce24a1ce
......@@ -235,6 +235,9 @@ const Cell = (props: CellProps) => {
} else {
detailConfig = config[String(columnType)] || config['1'];
}
if(Number(columnType)===8){
empty = false;
}
const DetailComp: any = detailConfig.detailComp;
const newProps = {
......
import React from 'react';
import { Rate } from 'antd';
import { Icon, Rate } from 'antd';
import { RateProps } from '../detailInterface';
import { isNumber } from '../../../../utils/utils';
......@@ -11,5 +11,5 @@ export const ApolloRateDetail = (props: RateProps) => {
if (!isNumber(formatValue)) {
return null;
}
return <Rate disabled value={formatValue} />;
return <Rate disabled value={formatValue} character={<Icon type="like" theme="filled" />} />;
};
import React from 'react';
import { Rate } from 'antd';
import { Icon, Rate } from 'antd';
import { antiAssign } from '../../../../utils/utils';
import s from './index.less';
import { ApolloRateProps } from '../editInterface';
......@@ -26,5 +26,12 @@ export const ApolloRate = (props: ApolloRateProps) => {
onChange(value);
}
};
return <Rate className={s.rate} {...selfProps} onChange={changeValue} />;
return (
<Rate
className={s.rate}
{...selfProps}
character={<Icon type="like" theme="filled" />}
onChange={changeValue}
/>
);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment