forked from x/volcanos
opt some
This commit is contained in:
parent
0311ae5478
commit
a74b6f84c0
@ -146,7 +146,7 @@ Volcanos("page", {help: "网页模块", ClassList: {
|
||||
|
||||
if (type == "input") {
|
||||
data.type == "button" && (data.value = can.user.trans(can, data.value))
|
||||
if (data.type == "text" || !data.type) { data.autocomplete = data.autocomplete||"off"
|
||||
if (data.type == "text" || data.type == "password" || !data.type) { data.autocomplete = data.autocomplete||"off"
|
||||
data.placeholder = can.user.trans(can, (data.placeholder||data.name||"").split(".").pop())
|
||||
data.title = can.user.trans(can, data.title||data.placeholder)
|
||||
}
|
||||
|
@ -106,6 +106,11 @@ input[type=text] {
|
||||
background-color:cyan; color:black;
|
||||
padding: 0 4px;
|
||||
}
|
||||
input[type=password] {
|
||||
box-shadow: 4px 4px 10px 1px #626bd0;
|
||||
background-color:cyan; color:black;
|
||||
padding: 0 4px;
|
||||
}
|
||||
input[type=text]:hover {
|
||||
background-color:white;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg, list, cb, target) {
|
||||
can.base.isFunc(cb) && cb(msg)
|
||||
},
|
||||
onmain: function(can, msg) {
|
||||
onlogin: function(can, msg) {
|
||||
can.run({}, [], function(msg) { can.onimport._init(can, msg, [], null, can._output) })
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user