1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2021-05-13 15:25:18 +08:00
parent 8a14f0dc33
commit e7ed0ce3e6
4 changed files with 7 additions and 4 deletions

View File

@ -126,7 +126,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
{name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]},
]},
"redis": {name: "缓存 redis", action: [
{name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/main.shy"]},
{name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/src/main.shy"]},
]},
"mysql": {name: "数据 mysql", action: [
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},

View File

@ -1,3 +1,6 @@
a {
color:yellow;
}
body.mobile.landscape fieldset.Header.head {
position:unset;
}
@ -194,7 +197,6 @@ div.code {
text-align:left; white-space:pre;
overflow:auto;
clear:both;
max-height:400px;
}
div.story {
text-align:left;

View File

@ -65,9 +65,9 @@ Volcanos("onaction", {help: "交互操作", list: ["保存参数", "清空参数
},
"保存参数": function(event, can) { var meta = can.Conf()
var msg = can.request(event, {river: can.Conf("river"), storm: can.Conf("storm"), id: meta.id})
can.run(event, ["action", "modify", "arg", JSON.stringify(can.Pack([], true))], function(msg) {
can.run(event, ["search", "River.ondetail.保存参数"], function(msg) {
can.user.toast(can, "保存成功")
})
}, true)
},
"清空参数": function(event, can) {
can.page.Select(can, can._option, '.args', function(item) { return item.value = "" })

View File

@ -115,6 +115,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
},
_grow: function(can, str) {
if (can.page.Select(can, can._output, "div.code", function(div) {
can.page.Modify(can, div, {style: {"max-height": 400}})
can.page.Append(can, div, [{text: [str]}])
div.scrollBy(0, 10000)
return true