wo-gradient-card是一款采用uniapp实现的透明辉光动画卡片

采用uniapp-vue3实现,透明辉光动画卡片,卡片内容包含标签、标题、副标题、图片
支持H5、微信小程序(其他小程序未测试过,可自行尝试)
可用于参考学习

可到插件市场下载尝试: https://ext.dcloud.net.cn/plugin?id=16729

  • 使用示例
    请添加图片描述
<template>
	<view>
		<wo-gradient-card v-model:options="state.options"></wo-gradient-card>
	</view>
</template>

<script setup lang="ts">
	import {
    reactive } from 'vue';
	const state = reactive({
   
		options: [
			{
   
				tag: '最新',
				tagStyle: {
   
					bgColor: 'rgba(43, 164, 113, 0.1)',
					color: 'rgb(43, 164, 113)'
				},
				title: '最新卡片',
				subtitle: '2024/01/22 - 2025/01/22',
				img: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
				bgColor: 'radial-gradient(50% 50% at 50% 50%,rgba(8, 188, 47, 0.1) 0,rgba(242,78,30,0) 100%)'
			},
			{
   
				tag: '最火',
				tagStyle: {
   
					bgColor: 'rgba(239, 47, 47, 0.1)',
					color: 'rgb(239, 47, 47)'
				},
				title: '最热门卡片',
				subtitle: '2024/01/22 - 2025/01/22',
				img: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
				bgColor: 'radial-gradient(50% 50% at 50% 50%,rgba(242,78,30,.1) 0,rgba(242,78,30,0) 100%)'
			},
			{
   
				tag: '',
				tagStyle: {
   
					bgColor: '',
					color: ''
				},
				title: '普通卡片',
				subtitle: '2024/01/22 - 2025/01/22',
				img: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
				bgColor: 'radial-gradient(50% 50% at 50% 50%,rgba(57,112,227,.1) 0,rgba(57,112,227,0) 100%)'
			},
			{
   
				tag: '',
				tagStyle: {
   
					bgColor: '',
					color: ''
				},
				title: '无图卡片',
				subtitle: '2024/01/22 - 2025/01/22',
				img: '',
				bgColor: 'radial-gradient(50% 50% at 50% 50%,rgba(57,112,227,.1) 0,rgba(57,112,227,0) 100%)'
			}
		]
	})
</script>

<style scoped>
</style>

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-21 20:52:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-21 20:52:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-02-21 20:52:01       87 阅读
  4. Python语言-面向对象

    2024-02-21 20:52:01       96 阅读

热门阅读

  1. 漫谈C与C++(《Effictive C++》/关于函数重载)

    2024-02-21 20:52:01       48 阅读
  2. C Primer Plus(第六版)16.18 编程练习 第5题

    2024-02-21 20:52:01       49 阅读
  3. C语言:密码强度

    2024-02-21 20:52:01       46 阅读
  4. C语言----数组

    2024-02-21 20:52:01       46 阅读
  5. Node响应Vue axios请求方法说明

    2024-02-21 20:52:01       43 阅读
  6. Git面试题整理(对比)

    2024-02-21 20:52:01       43 阅读
  7. C语言—自定义(构造)类型

    2024-02-21 20:52:01       49 阅读
  8. 【GIT学习】仓库过大的清理办法

    2024-02-21 20:52:01       47 阅读