remove image-comparison

This commit is contained in:
chuzhixin 2021-01-09 00:03:41 +08:00
parent 37de8c9e90
commit 716fdef793
5 changed files with 0 additions and 69 deletions

View File

@ -212,12 +212,6 @@ const data = [
component: '@/views/vab/lodash/index',
meta: { title: 'lodash', permissions: ['admin'] },
},
{
path: 'imgComparison',
name: 'ImgComparison',
component: '@/views/vab/imgComparison/index',
meta: { title: '图像拖拽比对', permissions: ['admin'] },
},
{
path: 'smallComponents',
name: 'SmallComponents',

View File

@ -59,7 +59,6 @@
"vue-echarts": "^5.0.0-beta.0",
"vue-router": "^3.4.9",
"vuex": "^3.6.0",
"zx-comparison": "^1.0.3",
"zx-count": "^0.3.7",
"zx-layouts": "^0.6.24",
"zx-magnifie": "^0.4.0",

View File

@ -1,3 +0,0 @@
import VabComparison from 'zx-comparison'
export default VabComparison

View File

@ -248,12 +248,6 @@ export const asyncRoutes = [
component: () => import('@/views/vab/lodash/index'),
meta: { title: 'lodash', permissions: ['admin'] },
},
{
path: 'imgComparison',
name: 'ImgComparison',
component: () => import('@/views/vab/imgComparison/index'),
meta: { title: '图像拖拽比对', permissions: ['admin'] },
},
{
path: 'smallComponents',
name: 'SmallComponents',

View File

@ -1,53 +0,0 @@
<template>
<div class="image-comparison-container">
<el-row :gutter="20">
<el-col
v-for="(item, index) in 24"
:key="index"
:xs="24"
:sm="24"
:md="12"
:lg="8"
:xl="8"
>
<vab-comparison
:id="'silder-' + index"
style="margin-bottom: 12px"
:width="comparison.width"
:height="comparison.height"
:src1="comparison.src1"
:src2="comparison.src2"
:start="random(20, 80)"
></vab-comparison>
</el-col>
</el-row>
</div>
</template>
<script>
import VabComparison from '@/plugins/vabComparison'
import { random } from '@/utils'
export default {
name: 'ImgComparison',
components: { VabComparison },
data() {
return {
comparison: {
width: '100%',
height: 'auto',
src1: require('@/assets/comparison/left.jpg'),
src2: require('@/assets/comparison/right.jpg'),
start: random(0, 100),
},
}
},
created() {},
mounted() {},
methods: {
random(m, n) {
return random(m, n).toString()
},
},
}
</script>