diff --git a/package.json b/package.json index ee258559..67b87646 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "landing", - "version": "3.0.0", + "version": "3.0.1", "title": "Landing Pages", "description": "site of Landing Pages", "homepage": "http://landing.ant.design/", diff --git a/site/edit/en-US.js b/site/edit/en-US.js index 005f1cab..16857fa0 100644 --- a/site/edit/en-US.js +++ b/site/edit/en-US.js @@ -123,7 +123,7 @@ module.exports = { 'app.login.title': 'This page is locked. Please enter your password.', 'app.login.noPassword': 'If you don\'t know the password, please delete current page or create a new page', 'app.login.new': 'New Page', - 'app.layout.notification.title': '3.0 Release Notes', - 'app.layout.notification.content': '3.0 has been officially released. As we have made some adjustments to some templates, if your previously edited templates can not be displayed, please re-edit the new page.', + 'app.layout.notification.title': 'Editor update description', + 'app.layout.notification.content': 'In order to improve the performance and experience of editing, the style editing is currently triggered by pressing enter or leaving the input box.', }, }; diff --git a/site/edit/template/components/ListComponents/EditorComp.jsx b/site/edit/template/components/ListComponents/EditorComp.jsx index f99cd215..c205ca22 100644 --- a/site/edit/template/components/ListComponents/EditorComp.jsx +++ b/site/edit/template/components/ListComponents/EditorComp.jsx @@ -20,7 +20,7 @@ let funcData = {}; const { ClassName, State, Layout, Font, BackGround, Border, Interface, Margin, Shadow, Transition } = EditorList; class EditorComp extends React.Component { onChange = (cb) => { - const { cssName, currentEditCssString } = cb; + const { cssName, currentEditCssString, isDrag } = cb; const { currentEditData, dispatch, templateData } = this.props; const { id } = currentEditData; const ids = id.split('-'); @@ -43,6 +43,7 @@ class EditorComp extends React.Component { }; newTemplateData.data.style = (newTemplateData.data.style || []).filter(c => c.id !== cb.id); newTemplateData.data.style.push(data); + newTemplateData.noHistory = isDrag; dispatch(actions.setTemplateData(newTemplateData)); } diff --git a/site/edit/template/components/NavController/HistoryButton.jsx b/site/edit/template/components/NavController/HistoryButton.jsx index b39e9da1..0e427f54 100644 --- a/site/edit/template/components/NavController/HistoryButton.jsx +++ b/site/edit/template/components/NavController/HistoryButton.jsx @@ -64,7 +64,6 @@ class HistoryButton extends React.Component { const redoClassName = classnames('redo', { disabled: !currentHistory, }); - console.log(this.props); return (