From 6db2630e904e5f6f40b36ecfeb7aefceae3f937a Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 21 Nov 2017 11:12:20 +0800 Subject: [PATCH 1/3] site: fix code demo box style in IE11 --- site/theme/static/demo.less | 1 + 1 file changed, 1 insertion(+) diff --git a/site/theme/static/demo.less b/site/theme/static/demo.less index c631e8148e..341daf087a 100644 --- a/site/theme/static/demo.less +++ b/site/theme/static/demo.less @@ -127,6 +127,7 @@ position: absolute; left: 0; top: 0; + height: 16px; } .code-expand-icon-show { From 08d27b92ee30c3c59702eb3f312f4ac56133941c Mon Sep 17 00:00:00 2001 From: Nokecy Date: Tue, 21 Nov 2017 11:15:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?inputNumber=20=E6=B7=BB=E5=8A=A0onKeyDown?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=A3=B0=E6=98=8E=20(#8253)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/input-number/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/input-number/index.tsx b/components/input-number/index.tsx index 94d99814dd..7c4be222da 100644 --- a/components/input-number/index.tsx +++ b/components/input-number/index.tsx @@ -9,6 +9,7 @@ export interface InputNumberProps { value?: number; step?: number | string; defaultValue?: number; + onKeyDown?: React.FormEventHandler; onChange?: (value: number | string | undefined) => void; disabled?: boolean; size?: 'large' | 'small' | 'default'; From 1e1baf01f63b6ea913bbc6ac8cc10bf93fc40c72 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 21 Nov 2017 15:49:17 +0800 Subject: [PATCH 3/3] remove react extenals --- site/bisheng.config.js | 5 ----- site/theme/static/template.html | 7 ------- 2 files changed, 12 deletions(-) diff --git a/site/bisheng.config.js b/site/bisheng.config.js index 9fef7cba94..294bc6bf3b 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -74,11 +74,6 @@ module.exports = { 'create-react-class': 'preact-compat/lib/create-react-class', 'react-router': 'react-router', }); - } else if (isDev) { - config.externals = Object.assign({}, config.externals, { - react: 'React', - 'react-dom': 'ReactDOM', - }); } config.babel.plugins.push([ diff --git a/site/theme/static/template.html b/site/theme/static/template.html index db2815ce02..6202ddafd2 100644 --- a/site/theme/static/template.html +++ b/site/theme/static/template.html @@ -111,13 +111,6 @@
{{ content | safe }}
- {% if not usePreact %} - {% if isDev %} - - {% else %} - - {% endif %} - {% endif %}