@import '~antd/es/style/themes/default.less'; @parse-form-prefix-cls: ~'@{ant-prefix}-parse-form'; .@{parse-form-prefix-cls} { .formUpload { width: 100%; .@{ant-prefix}-upload-list-item { float: left; width: 49%; max-width: 300px; // 增加了最大宽度,防止样式失效导致布局错误的问题 margin-right: 1%; } } .@{ant-prefix}-animate { } .formUploadVideoOrRecording { width: 100%; .@{ant-prefix}-upload-list-item { float: left; width: 99%; margin-right: 1%; } } }