Commit a12b9888 by 匡雅琴

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents 759f63c2 a8702988
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"dev": "npm run serve" "dev": "npm run serve"
}, },
"dependencies": { "dependencies": {
"TagCloud": "^2.4.0",
"autoprefixer": "^8.0.0", "autoprefixer": "^8.0.0",
"core-js": "^3.6.4", "core-js": "^3.6.4",
"dayjs": "^1.10.5", "dayjs": "^1.10.5",
......
<template>
<div>
<di class="tagcloud"></di>
</div>
</template>
<script>
const texts = ['3D', 'TagCloud', 'JavaScript', 'CSS3', 'Animation', 'Interactive', 'Mouse', 'Rolling', 'Sphere', '6KB', 'v2.x']
import TagCloud from 'TagCloud'
export default {
name: 'HotWords',
data() {
return {}
},
mounted() {
TagCloud('.tagcloud', texts)
}
}
</script>
<style lang="scss">
.tagcloud {
width: 16vw;
height: 16vw;
background-image: url(../../assets/images/hot-words-bg.png);
background-size: 100%;
span {
color: #5894FF;
background-image: -webkit-linear-gradient(left, #0185F9, #53FAFF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!