依託強大無遠開發平臺,能夠快速實現帶各類酷炫聯動效果的數字化大屏。css
DEMO 地址:https://previewer.wuyuan.io/p...前端
配置地址:https://workbench.wuyuan.io/p...segmentfault
點擊城市後,會觸發各個圖表的聯動,本身腦補效果:
效果圖 1echarts
效果圖 2佈局
使用一個主窗口做爲背景,層號設置爲 0。其餘窗口設置層號爲 1,而且窗體背景選擇無,頭部背景設置爲透明。url
讓其依賴主窗口或其餘窗口提供的@變量@,系統會自動造成聯動效果。本例中使用的組件是 enhancer-echarts 和 enhancer-numbers 組件。spa
本例中添加了以下CSS內容爲每一個窗口增長相框, 你能夠根據實際狀況,設置樣式加載的時機,好比幀初始化時。code
#page頁面編號 .zwindow { box-shadow:none; overflow:visible; } #page頁面編號 .zwindow-header { box-shadow: none; } #page頁面編號 .zwindow-body { box-shadow: none; border-top: none; overflow:visible !important; } #page頁面編號 .zwindow-header:before { content: ''; position:absolute; z-index: 33; top: -3px; left:-6px; height: 12px; width: 18px; border-left: solid 2px #666; border-top: solid 2px #666; } #page頁面編號 .zwindow-header:after { content: ''; position:absolute; z-index: 33; top: -3px; right:-6px; height: 12px; width: 18px; border-right: solid 2px #666; border-top: solid 2px #666; } #page頁面編號 .zwindow-body:before { content: ''; position:absolute; z-index: 33; bottom: -3px; left:-6px; height: 12px; width: 18px; border-left: solid 2px #666; border-bottom: solid 2px #666; } #page頁面編號 .zwindow-body:after { content: ''; position:absolute; z-index: 33; bottom: -3px; right:-6px; height: 12px; width: 18px; border-right: solid 2px #666; border-bottom: solid 2px #666; }
本例中背景主窗口使用了自定義窗口,包含百度地圖對echarts 的擴展實現。地圖依賴的 echarts.js 需在全局配置-前端-中提早引入:開發