Commit 5e21fefd authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

Merge branch 'master' into v2

parents d590c157 285f7a5f
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -28,7 +28,7 @@ jsconfig.json
*.log
functions/mock
.temp
.temp/**
# umi
.umi
......
const path = require('path');
export default {
entry: 'src/index.js',
extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]],
env: {
development: {
extraBabelPlugins: ['dva-hmr'],
},
},
externals: {
'@antv/data-set': 'DataSet',
},
alias: {
components: path.resolve(__dirname, 'src/components/'),
},
ignoreMomentLocale: true,
theme: './src/theme.js',
html: {
template: './src/index.ejs',
},
lessLoaderOptions: {
javascriptEnabled: true,
},
disableDynamicImport: true,
publicPath: '/',
hash: true,
};
......@@ -36,7 +36,7 @@ UI-Ρ€Π΅ΡˆΠ΅Π½ΠΈΠ΅ "ΠΈΠ· ΠΊΠΎΡ€ΠΎΠ±ΠΊΠΈ" для ΠΊΠΎΡ€ΠΏΠΎΡ€Π°Ρ‚ΠΈΠ²Π½Ρ‹Ρ… ΠΏΡ€ΠΈ
- :art: **ВСмизация**: Π’ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ измСнСния Ρ‚Π΅ΠΌΡ‹ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ
- :globe_with_meridians: **ΠœΡƒΠ»ΡŒΡ‚ΠΈΡΠ·Ρ‹Ρ‡Π½ΠΎΡΡ‚ΡŒ**: ВстроСнноС i18n Ρ€Π΅ΡˆΠ΅Π½ΠΈΠ΅
- :gear: **Π›ΡƒΡ‡ΡˆΠΈΠ΅ ΠΏΡ€Π°ΠΊΡ‚ΠΈΠΊΠΈ**: НадСТныС процСссы для Ρ…ΠΎΡ€ΠΎΡˆΠ΅Π³ΠΎ ΠΊΠΎΠ΄Π°
- :1234: **Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΠΎ ΡˆΠΈΠ±Π»ΠΎΠ½Ρƒ**: ΠŸΡ€ΠΎΡΡ‚ΠΎΠ΅ Π² использовании Ρ€Π΅ΡˆΠ΅Π½ΠΈΠ΅ для Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ
- :1234: **Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΠΎ ΡˆΠ°Π±Π»ΠΎΠ½Ρƒ**: ΠŸΡ€ΠΎΡΡ‚ΠΎΠ΅ Π² использовании Ρ€Π΅ΡˆΠ΅Π½ΠΈΠ΅ для Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ
- :white_check_mark: **UI тСсты**: Π Π°Π·Ρ€Π°Π±Π°Ρ‚Ρ‹Π²Π°ΠΉΡ‚Π΅ бСзопасно с ΡŽΠ½ΠΈΡ‚ ΠΈ e2e тСстами
## Π¨Π°Π±Π»ΠΎΠ½Ρ‹
......
{
"name": "ant-design-pro",
"version": "2.0.0-beta.4",
"version": "2.0.0",
"description": "An out-of-box UI solution for enterprise applications",
"private": true,
"scripts": {
......
......@@ -2,6 +2,7 @@ import * as React from 'react';
export interface IPieProps {
animate?: boolean;
color?: string;
colors?: string[];
height: number;
hasLegend?: boolean;
padding?: [number, number, number, number];
......
......@@ -53,7 +53,7 @@ export default class HeaderSearch extends PureComponent {
const { onChange } = this.props;
this.setState({ value });
if (onChange) {
onChange();
onChange(value);
}
};
......
......@@ -94,6 +94,9 @@ export default class PageHeader extends PureComponent {
// Loop data mosaic routing
const extraBreadcrumbItems = pathSnippets.map((url, index) => {
const currentBreadcrumb = getBreadcrumb(breadcrumbNameMap, url);
if (currentBreadcrumb.inherited) {
return null;
}
const isLinkable = index !== pathSnippets.length - 1 && currentBreadcrumb.component;
const name = itemRender ? itemRender(currentBreadcrumb) : currentBreadcrumb.name;
return currentBreadcrumb.name && !currentBreadcrumb.hideInBreadcrumb ? (
......
......@@ -107,10 +107,10 @@ export default class TableForm extends PureComponent {
});
return;
}
const { data } = this.state;
const { onChange } = this.props;
delete target.isNew;
this.toggleEditable(e, key);
const { data } = this.state;
const { onChange } = this.props;
onChange(data);
this.setState({
loading: false,
......@@ -126,9 +126,9 @@ export default class TableForm extends PureComponent {
const target = this.getRowByKey(key, newData);
if (this.cacheOriginData[key]) {
Object.assign(target, this.cacheOriginData[key]);
target.editable = false;
delete this.cacheOriginData[key];
}
target.editable = false;
this.setState({ data: newData });
this.clickedCancel = false;
}
......
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