Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
jml0128
/
xrk-bi
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aaa71de4
authored
May 23, 2022
by
web
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
3c08803f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
.eslintignore
package.json
src/main.js
src/packages/bi/src/components/photo-wall/images.vue
src/packages/bi/src/components/photo-wall/waterfall.vue
.eslintignore
View file @
aaa71de
/dist
/dist
\ No newline at end of file
/src/packages/bi/src/components/photo-wall/waterfall.vue
\ No newline at end of file
package.json
View file @
aaa71de
{
{
"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"
:
{
...
...
src/main.js
View file @
aaa71de
...
@@ -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
({
...
...
src/packages/bi/src/components/photo-wall/images.vue
View file @
aaa71de
...
@@ -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
,
...
...
src/packages/bi/src/components/photo-wall/waterfall.vue
0 → 100644
View file @
aaa71de
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment