mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add name
This commit is contained in:
parent
4420a9910d
commit
987ee1bde2
@ -75,6 +75,7 @@ Volcanos("page", {help: "网页模块",
|
||||
|
||||
} else if (item.button) {var list = can.core.List(item.button);
|
||||
type = "button", name = name || list[0];
|
||||
data.value = data.value || name;
|
||||
data.innerText = list[0], data.onclick = function(event) {
|
||||
typeof list[1] == "function" && list[1](event, name);
|
||||
}
|
||||
|
@ -21,6 +21,8 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
||||
item.value = value || item.value || "";
|
||||
item.autocomplete = "off";
|
||||
break
|
||||
case "button":
|
||||
item.value = item.value || item.name;
|
||||
}
|
||||
can.page.ClassList.add(can, item, item.view);
|
||||
can.core.List((item.clist||"").split(" "), function(value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user