Merge branch 'master' into antd-3.0

This commit is contained in:
afc163 2017-11-21 15:59:48 +08:00
commit a8e5690805
4 changed files with 2 additions and 11 deletions

View File

@ -9,6 +9,7 @@ export interface InputNumberProps {
value?: number;
step?: number | string;
defaultValue?: number;
onKeyDown?: React.FormEventHandler<any>;
onChange?: (value: number | string | undefined) => void;
disabled?: boolean;
size?: 'large' | 'small' | 'default';

View File

@ -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',
});
}
if (isDev) {

View File

@ -126,6 +126,7 @@
position: absolute;
left: 0;
top: 0;
height: 16px;
}
.code-expand-icon-show {

View File

@ -111,12 +111,6 @@
<div id="react-content">
{{ content | safe }}
</div>
{% if not usePreact %}
{% if not isDev %}
<script src="https://gw.alipayobjects.com/as/g/component/react/16.0.0/react.production.min.js"></script>
<script src="https://gw.alipayobjects.com/as/g/component/react/16.0.0/react-dom.production.min.js"></script>
{% endif %}
{% endif %}
<script src="{{ root }}common.js"></script>
<script src="{{ root }}index.js"></script>
</body>