当我部署到aws时,内联css正在被注入(我认为)。
在我的本地计算机上,以下代码:
<Col xs={36} sm={12}>
<FormItem label={showLabel('Date and Time ', this.props.deviceSize)}>
{(<DatePicker
placeholder="Date and Time"
size="large"
showTime={{ format: 'HH:mm:ss' }}
format="YYYY-MM-DD HH:mm:ss"
onChange={(_, val) => {
this.setState({ date: val });
}}
/>)}
</FormItem>
</Col>
生产:
<div class="ant-form-item-control-wrapper">
<div class="ant-form-item-control">
<span class="ant-form-item-children">
<span class="ant-calendar-picker ant-calendar-picker-large">
...
</span>
</span>
</div>
</div>
但一旦我部署到aws,它会产生以下结果:
<div class="ant-form-item-control-wrapper">
<div class="ant-form-item-control">
<span class="ant-form-item-children">
<span class="ant-calendar-picker ant-calendar-picker-large" style="width: 195px;">
<div>
...
</div>
</span>
</span>
</div>
</div>
style="width: 195px;"
我该如何着手解决这个问题?
showTime
和
format
style=“宽度:195px;”
更新2
所以这个
注射似乎很奇怪,所以我找了一下
ant-design/ant-design
1)
components/date-picker/
tests
/
snapshots
/demo.test.js.snap
2)
site/theme/template/Home/BannerImage.jsx
3)
components/form/
tests
/
snapshots
/demo.test.js.snap