1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-30 18:49:23 +08:00
volcanos/plugin/input/province.js
2022-10-28 22:42:47 +08:00

10 lines
525 B
JavaScript

Volcanos(chat.ONFIGURE, {province: {
onclick: function(event, can, meta, cbs, target) { cbs(function(can, cb) {
can.require(["/require/shylinux.com/x/echarts/echarts.js", "/require/shylinux.com/x/echarts/china.js"], function() {
var chart = echarts.init(can.page.Append(can, can._output, [{type: html.DIV, style: {width: 600, height: 400}}]).first)
chart.setOption({geo: {map: 'china'}}), chart.on(html.CLICK, function(params) { target.value = params.name, can.close() })
can.Status(mdb.TOTAL, 34)
})
}) }
}})