Compare commits

..

3 Commits

Author SHA1 Message Date
c4b7be9265 版本升级 2024-03-29 14:58:10 +08:00
3b1a8e62bd 修改组件key 2024-03-29 14:55:43 +08:00
92443e0c30 修改包信息 2024-03-29 14:36:27 +08:00
3 changed files with 193 additions and 228 deletions

View File

@ -2,25 +2,11 @@
<div class="dv-decoration-3" :ref="ref"> <div class="dv-decoration-3" :ref="ref">
<svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`"> <svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`">
<template <template v-for="(point, i) in points" :key="i">
v-for="(point, i) in points" <rect :fill="mergedColor[0]" :x="point[0] - halfPointSideLength" :y="point[1] - halfPointSideLength"
> :width="pointSideLength" :height="pointSideLength">
<rect <animate v-if="Math.random() > 0.6" attributeName="fill" :values="`${mergedColor.join(';')}`"
:key="i" :dur="Math.random() + 1 + 's'" :begin="Math.random() * 2" repeatCount="indefinite" />
:fill="mergedColor[0]"
:x="point[0] - halfPointSideLength"
:y="point[1] - halfPointSideLength"
:width="pointSideLength"
:height="pointSideLength"
>
<animate
v-if="Math.random() > 0.6"
attributeName="fill"
:values="`${mergedColor.join(';')}`"
:dur="Math.random() + 1 + 's'"
:begin="Math.random() * 2"
repeatCount="indefinite"
/>
</rect> </rect>
</template> </template>
</svg> </svg>

View File

@ -1,37 +1,16 @@
<template> <template>
<div class="dv-decoration-6" :ref="ref"> <div class="dv-decoration-6" :ref="ref">
<svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`"> <svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`">
<template <template v-for="(point, i) in points" :key="i">
v-for="(point, i) in points" <rect :fill="mergedColor[Math.random() > 0.5 ? 0 : 1]" :x="point[0] - halfRectWidth"
> :y="point[1] - heights[i] / 2" :width="rectWidth" :height="heights[i]">
<rect <animate attributeName="y"
:key="i"
:fill="mergedColor[Math.random() > 0.5 ? 0 : 1]"
:x="point[0] - halfRectWidth"
:y="point[1] - heights[i] / 2"
:width="rectWidth"
:height="heights[i]"
>
<animate
attributeName="y"
:values="`${point[1] - minHeights[i] / 2};${point[1] - heights[i] / 2};${point[1] - minHeights[i] / 2}`" :values="`${point[1] - minHeights[i] / 2};${point[1] - heights[i] / 2};${point[1] - minHeights[i] / 2}`"
:dur="`${randoms[i]}s`" :dur="`${randoms[i]}s`" keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1"
keyTimes="0;0.5;1" begin="0s" repeatCount="indefinite" />
calcMode="spline" <animate attributeName="height" :values="`${minHeights[i]};${heights[i]};${minHeights[i]}`"
keySplines="0.42,0,0.58,1;0.42,0,0.58,1" :dur="`${randoms[i]}s`" keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1"
begin="0s" begin="0s" repeatCount="indefinite" />
repeatCount="indefinite"
/>
<animate
attributeName="height"
:values="`${minHeights[i]};${heights[i]};${minHeights[i]}`"
:dur="`${randoms[i]}s`"
keyTimes="0;0.5;1"
calcMode="spline"
keySplines="0.42,0,0.58,1;0.42,0,0.58,1"
begin="0s"
repeatCount="indefinite"
/>
</rect> </rect>
</template> </template>
</svg> </svg>

View File

@ -1,12 +1,12 @@
{ {
"name": "@jiaminghi/data-view", "name": "@ykxiao/demu-mes-data-v",
"version": "2.10.0", "version": "1.0.1",
"author": "JiaMing <743192023@qq.com>", "author": "Longlong <long@qq.com>",
"description": "Vue Large screen data display component library", "description": "Vue Large screen data display component library",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/DataV-Team/DataV.git" "url": "https://git.tool.dwoodauto.com/ykxiao/DemuMesDataV.git"
}, },
"scripts": { "scripts": {
"build": "node build/index.js", "build": "node build/index.js",