Commit aaa71de4 by web

fix

1 parent 3c08803f
/dist /dist
\ No newline at end of file /src/packages/bi/src/components/photo-wall/waterfall.vue
\ No newline at end of file
{ {
"name": "xrk-bi", "name": "xrk-bi",
"version": "0.3.0-beta.23", "version": "0.4.01-beta.1",
"description": "xrk-bi", "description": "xrk-bi",
"author": "xrk", "author": "xrk",
"main": "dist/bundler.js", "main": "dist/bundler.js",
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
"vue": "^2.5.11", "vue": "^2.5.11",
"vue-awesome-swiper": "^4.1.1", "vue-awesome-swiper": "^4.1.1",
"vue-echarts": "^6.0.0-rc.5", "vue-echarts": "^6.0.0-rc.5",
"vue-waterfall2": "^1.10.1",
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -2,14 +2,12 @@ ...@@ -2,14 +2,12 @@
* @Description: * @Description:
* @Date: 2021-01-28 23:29:19 * @Date: 2021-01-28 23:29:19
*/ */
// import 'babel-polyfill'; import 'babel-polyfill';
import Vue from 'vue'; import Vue from 'vue';
import App from './App'; import App from './App';
import Xrk from './lib/index.js'; import Xrk from './lib/index.js';
import waterfall from 'vue-waterfall2';
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(Xrk); Vue.use(Xrk);
Vue.use(waterfall);
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({ new Vue({
......
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
</ul> --> </ul> -->
<waterfall :col="columnCount" :data="taskImageInfo.imageUrls"> <waterfall :col="columnCount" :data="taskImageInfo.imageUrls">
<template> <template>
<div v-for="(item, index) in taskImageInfo.imageUrls" :key="index"> <div
v-for="(item, index) in taskImageInfo.imageUrls"
:key="index"
style="margin-bottom:25px"
>
<img <img
:style="{ width: widthPx, height: heightPx }" :style="{ width: widthPx, height: heightPx }"
:src="setUrl(item.imageUrl)" :src="setUrl(item.imageUrl)"
...@@ -17,6 +21,7 @@ ...@@ -17,6 +21,7 @@
</template> </template>
<script> <script>
import waterfall from './waterfall.vue';
const IMG_MAPPING = { const IMG_MAPPING = {
1: { 1: {
column: 2, column: 2,
...@@ -33,6 +38,9 @@ const IMG_MAPPING = { ...@@ -33,6 +38,9 @@ const IMG_MAPPING = {
}; };
export default { export default {
name: 'bi-photo-wall-images', name: 'bi-photo-wall-images',
components: {
waterfall
},
props: { props: {
taskImageInfo: { taskImageInfo: {
type: Object, type: Object,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!