1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2023-01-14 08:44:47 +08:00
parent 92c7ad316c
commit 260dc069a5

View File

@ -1,18 +1,15 @@
Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg) { Volcanos(chat.ONIMPORT, {_init: function(can, msg) {
can.page.Append(can, can._output, [{view: "img", style: { function appends(list) { can.core.Item(list, function(size, value) { can.page.Append(can, can._output, [{view: html.IMG, style: {
"background": "url(/publish/icon/full.jpg)", "background-size": "320px", width: 16, height: 16, "background": "url(/publish/icon/full.jpg)", "background-size": size*20+"px", height:size, width: size,
"background-repeat": "no-repeat", "background-position-x": "-82px", "background-position-y": "-158px", "background-repeat": "no-repeat", "background-position-x": -value[0]+"px", "background-position-y": -value[1]+"px",
}}]) }}]) }) }
can.page.Append(can, can._output, [{view: "img", style: { // close
"background": "url(/publish/icon/full.jpg)", "background-size": "360px", width: 18, height: 18, appends({16: [82, 158], 18: [93, 177], 20: [103, 197], 24: [123, 236]})
"background-repeat": "no-repeat", "background-position-x": "-93px", "background-position-y": "-177px", // refresh
}}]) appends({16: [194, 241], 18: [218, 271], 20: [242, 301], 24: [291, 362]})
can.page.Append(can, can._output, [{view: "img", style: { // back
"background": "url(/publish/icon/full.jpg)", "background-size": "480px", width: 24, height:24, appends({16: [27, 185], 18: [30, 208], 20: [33, 232], 24: [40, 278]})
"background-repeat": "no-repeat", "background-position-x": "-123px", "background-position-y": "-236px", appends({16: [82, 185], 18: [92, 208], 20: [102, 232], 24: [123, 278]})
}}]) can.page.Append(can, can._output, [{view: html.IMG, style: {"background": "url(/publish/icon/full.jpg)", "background-size": "480px", height: 1290, width: 480}}])
can.page.Append(can, can._output, [{view: "img", style: {
"background": "url(/publish/icon/full.jpg)", "background-size": "480px", width: 480, height:1290,
}}])
can.sup.onimport.size(can.sup, can.ConfHeight()+html.ACTION_HEIGHT, can.sup.ConfWidth(480)), can.sup.onaction._output(can.sup, msg) can.sup.onimport.size(can.sup, can.ConfHeight()+html.ACTION_HEIGHT, can.sup.ConfWidth(480)), can.sup.onaction._output(can.sup, msg)
}}) }})