Commit 3ba70d77 authored by 陈帅's avatar 陈帅

support dart

parent 0c000b3f
.timelineChart { .timelineChart {
background: #fff; background: @component-background;
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
height: 56px; height: 56px;
padding: 0 24px; padding: 0 24px;
line-height: 56px; line-height: 56px;
background: #fff; background: @component-background;
border-top: 1px solid @border-color-split; border-top: 1px solid @border-color-split;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03); box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.extra { .extra {
padding: 24px 40px; padding: 24px 40px;
text-align: left; text-align: left;
background: #fafafa; background: @component-background;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
@media screen and (max-width: @screen-xs) { @media screen and (max-width: @screen-xs) {
......
...@@ -96,7 +96,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -96,7 +96,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
grid={{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }} grid={{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }}
dataSource={[nullData, ...list]} dataSource={[nullData, ...list]}
renderItem={item => renderItem={item =>
item ? ( item && item.id ? (
<List.Item key={item.id}> <List.Item key={item.id}>
<Card <Card
hoverable hoverable
......
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
color: @heading-color; color: @heading-color;
} }
} }
.ant-card-actions {
background: #f7f9fa;
}
.ant-card-body:hover { .ant-card-body:hover {
.ant-card-meta-title > a { .ant-card-meta-title > a {
color: @primary-color; color: @primary-color;
...@@ -48,7 +45,7 @@ ...@@ -48,7 +45,7 @@
width: 100%; width: 100%;
height: 188px; height: 188px;
color: @text-color-secondary; color: @text-color-secondary;
background-color: #fff; background-color: @component-background;
border-color: @border-color-base; border-color: @border-color-base;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
} }
......
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
.ant-card-meta-avatar { .ant-card-meta-avatar {
font-size: 0; font-size: 0;
} }
.ant-card-actions {
background: #f7f9fa;
}
.ant-list .ant-list-item-content-single { .ant-list .ant-list-item-content-single {
max-width: 100%; max-width: 100%;
} }
......
@import '~antd/lib/style/themes/default.less';
.error_icon {
color: @highlight-color;
}
...@@ -3,6 +3,7 @@ import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; ...@@ -3,6 +3,7 @@ import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import { Button, Icon, Card } from 'antd'; import { Button, Icon, Card } from 'antd';
import Result from './Result'; import Result from './Result';
import { GridContent } from '@ant-design/pro-layout'; import { GridContent } from '@ant-design/pro-layout';
import styles from './index.less';
const extra = ( const extra = (
<Fragment> <Fragment>
...@@ -20,7 +21,7 @@ const extra = ( ...@@ -20,7 +21,7 @@ const extra = (
/> />
</div> </div>
<div style={{ marginBottom: 16 }}> <div style={{ marginBottom: 16 }}>
<Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle-o" /> <Icon style={{ marginRight: 8 }} className={styles.error_icon} type="close-circle-o" />
<FormattedMessage <FormattedMessage
id="BLOCK_NAME.error.hint-text1" id="BLOCK_NAME.error.hint-text1"
defaultMessage="Your account has been frozen" defaultMessage="Your account has been frozen"
...@@ -31,7 +32,11 @@ const extra = ( ...@@ -31,7 +32,11 @@ const extra = (
</a> </a>
</div> </div>
<div> <div>
<Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle-o" /> <Icon
style={{ color: '#f5222d', marginRight: 8 }}
className={styles.error_icon}
type="close-circle-o"
/>
<FormattedMessage <FormattedMessage
id="BLOCK_NAME.error.hint-text2" id="BLOCK_NAME.error.hint-text2"
defaultMessage="Your account is not yet eligible to apply" defaultMessage="Your account is not yet eligible to apply"
......
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "cross-env PAGES_PATH='AccountSettings/src' umi dev", "dev": "cross-env PAGES_PATH='ListCardList/src' umi dev",
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
......
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