1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00

action opt text some

This commit is contained in:
shaoying 2020-08-14 21:27:40 +08:00
parent 7644c96ecd
commit 6c510422df
2 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
}) })
}, },
}) })
Volcanos("onexport", {help: "导出数据", list: ["River", "Footer", "pack"], _init: function(can, msg, list, cb, target) { Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg, list, cb, target) {
can.run(msg._event, [], function(msg) { can._output.innerHTML = "" can.run(msg._event, [], function(msg) { can._output.innerHTML = ""
can.Conf("username", msg.Option("user.nick")||msg.Option("user.name")) can.Conf("username", msg.Option("user.nick")||msg.Option("user.name"))
if (can.Conf("username").length > 10) { if (can.Conf("username").length > 10) {
@ -92,7 +92,7 @@ Volcanos("onexport", {help: "导出数据", list: ["River", "Footer", "pack"], _
}, }], }]).input) }, }], }]).input)
var height = document.body.offsetHeight var height = document.body.offsetHeight
var ui = can.page.Append(can, can._output, can.core.List(can.onexport.list, function(item) { var ui = can.page.Append(can, can._output, can.core.List(["River", "Footer", "pack"], function(item) {
return {view: "item", list: [{type: "input", data: {name: item, type: "button", value: item.toLowerCase()}, return {view: "item", list: [{type: "input", data: {name: item, type: "button", value: item.toLowerCase()},
onclick: function(event) { onclick: function(event) {
var cb = can.onaction[item]; if (typeof cb == "function") { var cb = can.onaction[item]; if (typeof cb == "function") {

View File

@ -52,6 +52,7 @@ fieldset.editor>div.output div.content {
font-size:16px; font-family:monospace; font-size:16px; font-family:monospace;
border-left:solid 2px red; border-left:solid 2px red;
min-height:20px; min-height:20px;
min-width:800px;
max-width:1000px; max-width:1000px;
overflow:auto; overflow:auto;
float:left; float:left;