11 2021 档案

摘要:js表单验证我们一般这么写 this.$refs.表单名称.validate((valid) => { if(valid) {} }) 使用ts时,这么写表单验证会报错,改成下面这种就可以 let ref: any = this.$refs.表单名称 ref.validate((valid) => 阅读全文
posted @ 2021-11-29 13:43 我的世界蹦擦擦 阅读(438) 评论(0) 推荐(0)
摘要:word-wrap: break-word; word-break: break-all; 阅读全文
posted @ 2021-11-29 13:38 我的世界蹦擦擦 阅读(297) 评论(0) 推荐(0)
摘要:tooltip: { trigger: 'item', axisPointer: { type: "shadow", }, textStyle: { fontSize: 30, color: "#fff", }, // 自定义弹窗样式 padding: 0, backgroundColor: "tr 阅读全文
posted @ 2021-11-19 09:32 我的世界蹦擦擦 阅读(1453) 评论(0) 推荐(0)
摘要:设置渐变色 color1 = new ECharts.graphic.LinearGradient(0,1,0,0,[{ offset: 0, color: "rgba(100,160,255,0.5)" }, { offset: 1, color: "#0AC8FF" }],false) colo 阅读全文
posted @ 2021-11-19 09:30 我的世界蹦擦擦 阅读(4076) 评论(0) 推荐(0)
摘要:series: [ { type: 'line', areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(125,72,255,0.5)' }, { 阅读全文
posted @ 2021-11-19 09:20 我的世界蹦擦擦 阅读(2167) 评论(0) 推荐(0)