mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt core
This commit is contained in:
parent
f5ed18f30a
commit
cfa4f3a459
2
frame.js
2
frame.js
@ -127,8 +127,8 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
|
||||
"office": {name: "办公 office", index: [
|
||||
"web.wiki.feel",
|
||||
"web.wiki.draw",
|
||||
"web.team.plan",
|
||||
"web.wiki.data",
|
||||
"web.team.plan",
|
||||
"web.wiki.word",
|
||||
]},
|
||||
"english": {name: "英汉 english", action: [
|
||||
|
@ -558,9 +558,9 @@ Volcanos("onaction", {help: "组件菜单", list: [
|
||||
{text: [" s:", "div", "item"]}, ["shape", "block", "rect", "text", "line", "path", "circle", "ellipse", "heart"],
|
||||
],
|
||||
"编辑": function(event, can, key) { can.Action("go", "auto") },
|
||||
"保存": function(event, can, key) {
|
||||
"save": function(event, can, key) {
|
||||
var msg = can.request(event); msg.Option("content", can.onexport.content(can, can.svg))
|
||||
can.run(event, ["action", key, can.Option("path"), can.Option("file")], function() {
|
||||
can.run(event, ["action", "save", can.Option("path"), can.Option("file")], function() {
|
||||
can.user.toast(can, "保存成功")
|
||||
}, true)
|
||||
},
|
||||
|
@ -84,7 +84,7 @@ Volcanos("onaction", {help: "组件菜单", list: [
|
||||
["高度", 100, 200, 400, 600, 800],
|
||||
["倍速", 0.1, 0.2, 0.5, 1, 2, 3, 5, 10],
|
||||
],
|
||||
"上传": function(event, can) { can.user.upload(event, can) },
|
||||
upload: function(event, can) { can.user.upload(event, can) },
|
||||
"上一页": function(event, can, key, value) {
|
||||
can.begin > 0 && (can.begin -= can.limit, can.onimport._page(can, can.list, can.begin, can.limit))
|
||||
},
|
||||
|
@ -118,7 +118,18 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
}
|
||||
}, ondblclick: function(event) {
|
||||
can.onmotion[value.indexOf("\n") >= 0 || event.ctrlKey? "modifys": "modify"](can, event.target, function(event, value, old) {
|
||||
var msg = can.sup.request(event); msg.Option(can.Option()), msg.Option(line)
|
||||
var msg = can.sup.request(event); msg.Option(can.Option())
|
||||
if (can._msg.Option("modify.hold") == "true") {
|
||||
if (can._msg.append.length == 2 && can._msg.append[0] == "key" && can._msg.append[1] == "value") {
|
||||
can.core.List(can._msg.key, function(key, index) {
|
||||
msg.Option(key, can._msg.value[index])
|
||||
})
|
||||
}
|
||||
can.run(event, ["action", "modify"])
|
||||
return
|
||||
}
|
||||
|
||||
msg.Option(line)
|
||||
if (key == "value") { key = line.key }
|
||||
can.run(event, ["action", "modify", key, value], function(msg) { can.run({}) }, true)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user