1
0
forked from x/volcanos
This commit is contained in:
shylinux 2021-05-26 01:04:49 +08:00
parent 0311ae5478
commit a74b6f84c0
3 changed files with 7 additions and 2 deletions

View File

@ -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)
}

View File

@ -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;
}

View File

@ -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) })
},
})