- 博客(3)
- 收藏
- 关注
原创 饼状图,图表使用已经封装好的Echarts-For-React。用饼图表示人员的抢红包结果,并且实现按钮事件,每次点击展示本次抢红包的分配结果。
import { Component } from 'react';import { Button } from 'antd';import ReactCharts from 'echarts-for-react';type AppProps = {};class Pie extends Component { constructor(props: AppProps) { super(props); //与render函数的onClick绑定,必须绑定,不然js找不到这两个函数.
2022-01-12 11:33:22
263
原创 React中用Echarts-For-React实现柱状图,每隔200ms实现增长一次
import React from "react";import EChartsReact from "echarts-for-react"; class bars extends React.Component{ state={data : [ {name: '猴子', value: 0,}, {name: '韩信',value: 0,}, {name: '李白',value: 0,}, { name: '娜可露露',.
2022-01-05 15:53:15
515
原创 Vue鼠标移入移出更改图片。
<style>.main { height: 300px; width: 100px;}.imgs { height: 100%;}.a { background-color: brown; width: 200px; height: 100px;}</style> <div> <div> <img class="imgs" :src="picture" /> </.
2022-01-05 15:05:17
1928
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人