...
|
...
|
@@ -20,7 +20,7 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {first} from 'lodash';
|
|
|
import {first, round} from 'lodash';
|
|
|
import {Slide} from 'cube-ui';
|
|
|
import ArticleItemSlideImage from './article-item-slide-image';
|
|
|
import {mapState, createNamespacedHelpers} from 'vuex';
|
...
|
...
|
@@ -57,8 +57,8 @@ export default { |
|
|
|
|
|
if (width && height) {
|
|
|
return {
|
|
|
width: `${width}rem`,
|
|
|
height: `${height}rem`,
|
|
|
width: `${round(width, 2)}rem`,
|
|
|
height: `${round(height, 2)}rem`,
|
|
|
};
|
|
|
}
|
|
|
},
|
...
|
...
|
|