0
点赞
收藏
分享

微信扫一扫

React18原理: React核心对象之ReactElement对象和Fiber对象

可到插件市场下载尝试: 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>
举报

相关推荐

0 条评论