1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
harveyshao 2021-07-27 17:01:42 +08:00
parent e510c9bb79
commit d29978c582
4 changed files with 10 additions and 9 deletions

View File

@ -159,7 +159,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
sub.page.Modify(sub, sub._legend, { sub.page.Modify(sub, sub._legend, {
onmouseenter: function(event) { onmouseenter: function(event) {
sub.user.carte(event, sub, sub.onaction, sub.onaction.list.concat([["所有 ->"].concat(can.core.Item(meta.feature.trans))])) sub.user.carte(event, sub, sub.onaction, sub.onaction.list.concat([["所有 ->"].concat(can.core.Item(meta.feature._trans))]))
}, },
}) })

View File

@ -46,7 +46,7 @@ Volcanos("user", {help: "用户操作", agent: {
} }
if (typeof text == "function") { text = text.name || "" } if (typeof text == "function") { text = text.name || "" }
return can._trans&&can._trans[text] || can.Conf("trans."+text) || can.Conf("feature.trans."+text) || { return can._trans&&can._trans[text] || can.Conf("trans."+text) || can.Conf("feature._trans."+text) || {
"submit": "提交", "cancel": "取消", "submit": "提交", "cancel": "取消",
"open": "打开", "close": "关闭", "open": "打开", "close": "关闭",
"begin": "启动", "end": "结束", "begin": "启动", "end": "结束",
@ -178,7 +178,8 @@ Volcanos("user", {help: "用户操作", agent: {
var msg = can.request(event, can.Option()) var msg = can.request(event, can.Option())
var ui = can.page.Append(can, document.body, [{view: ["input"], style: {left: 0, top: 0}, list: [ var ui = can.page.Append(can, document.body, [{view: ["input"], style: {left: 0, top: 0}, list: [
{view: ["option", "table"], list: can.core.List(form, function(item) { {view: ["option", "table"], list: can.core.List(form, function(item) {
(item._input == "select"||item.values) && (item = {select: [[item.name].concat(item.values)], data: item, name: item.name, _trans: item._trans}) (item._input == "textarea") && (item = {type: "textarea", data: item, name: item.name, _trans: item._trans});
(item._input == "select"||item.values) && (item = {select: [[item.name].concat(item.values)], data: item, name: item.name, _trans: item._trans});
item = typeof item == "string"? {input: item, name: item}: item.length > 0? {select: [item], name: item[0]}: item item = typeof item == "string"? {input: item, name: item}: item.length > 0? {select: [item], name: item[0]}: item
item.type = item.type||"input", item.type == "input" && (item.data=item.data||{}, item.data.type = item.data.type||"text") item.type = item.type||"input", item.type == "input" && (item.data=item.data||{}, item.data.type = item.data.type||"text")

View File

@ -294,9 +294,10 @@ div.input {
z-index:50; z-index:50;
} }
div.input textarea { div.input textarea {
background-color:cyan; border-radius:6px;
margin:2px; padding:4px; border:2px solid #14a58e;
width:145px; height:45px; width:144px; height:60px;
padding:4px;
} }
div.input div.item { div.input div.item {
float:left; float:left;
@ -442,7 +443,7 @@ fieldset>div.status>div.item {
height:18px; height:18px;
} }
fieldset>div.status>div.item>label { fieldset>div.status>div.item>label {
font-size:10px; color:gray; font-size:10px; color:#504242e0;
} }
fieldset div.output { fieldset div.output {
@ -541,7 +542,6 @@ body.white input[type=text] {
background-color:white; color:black; background-color:white; color:black;
border-radius:6px 6px 6px 6px; border-radius:6px 6px 6px 6px;
border:2px solid #14a58e; border:2px solid #14a58e;
} }
body.white input[type=text]:hover { body.white input[type=text]:hover {
background-color:cyan; background-color:cyan;

View File

@ -23,7 +23,7 @@ Page({
} }
line.inputs.forEach(function(input) { input.action = input.action || input.value line.inputs.forEach(function(input) { input.action = input.action || input.value
input.value = kit.Value(line, "feature.trans."+input.name) || input.value input.value = kit.Value(line, "feature._trans."+input.name) || input.value
input.value == "auto" && (input.value = "") input.value == "auto" && (input.value = "")
if (input.value && input.value.indexOf("@") == 0) { if (input.value && input.value.indexOf("@") == 0) {