echarts tooltip 自定义样式-通用
formatter: (params: Array<any>) => {
const time = params[0].axisValueLabel;
let formatterString: string = time;
params.map((v: any) => {
formatterString += '<br/>' + v.marker + v.seriesName.toLowerCase() + ': ' + v.value;
});
return formatterString;
},
element ui 时间选择器-限制时间范围
例:一个月
pickerOptions: {
onPick: ({ maxDate, minDate }) => {
this.cuttentTime = minDate.getTime()
if (maxDate) {
this.cuttentTime = ''
}
},
disabledDate: (time) => {
if (this.cuttentTime != '') {
const one = 30 * 24 * 3600 * 1000
const minTime = this.cuttentTime - one
const maxTime = this.cuttentTime + one
return time.getTime() < minTime || time.getTime() > maxTime
}
}
}
css 无敌穿透-给要穿透的组件直接加
.xxx {pointer-events: auto};