This commit is contained in:
feiyangqingyun
2021-01-16 12:38:59 +08:00
parent a056894da7
commit 9cf0de0f8d
13 changed files with 1913 additions and 0 deletions

18
miniblink/file/demo.html Normal file
View File

@@ -0,0 +1,18 @@
<html>
<head>
<script>
function onClicked() {
//alert('hello');
document.getElementById('label').innerHTML = '确实不错哦';
objName_receiveData('type','data');
}
</script>
</head>
<body>
<h1>Hello World</h1>
<p>Hello World</p>
<label id='label'>今天天气真棒</label>
<input type="button" value="发送数据给Qt" onclick="onClicked()" />
</body>
</html>

32
miniblink/file/echarts.min.js vendored Normal file

File diff suppressed because one or more lines are too long

38
miniblink/file/gauge.html Normal file
View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ECharts</title>
<script src="echarts.min.js"></script>
</head>
<body>
<div id="main" style="height:500px;"></div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
function setGaugeValue(value){
var option = {
tooltip : {
formatter: "{a} <br/>{b} : {c}%"
},
toolbox: {
feature: {
restore: {},
saveAsImage: {}
}
},
series: [
{
name: '业务指标',
type: 'gauge',
detail: {formatter:'{value}%'},
data: [{value: value, name: '完成率'}]
}
]
};
myChart.setOption(option);
}
window.onresize = myChart.resize;
setGaugeValue(68);
</script>
</body>
</html>