From 33f1a41fc3e26b14dd131c266e125080a14d064a Mon Sep 17 00:00:00 2001 From: shaoying Date: Tue, 2 Jul 2019 22:46:07 +0800 Subject: [PATCH] mod email.size --- src/contexts/cli/version.go | 2 +- src/contexts/ssh/ssh.go | 2 +- usr/librarys/example.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contexts/cli/version.go b/src/contexts/cli/version.go index c120d22b..7b8c180e 100644 --- a/src/contexts/cli/version.go +++ b/src/contexts/cli/version.go @@ -4,5 +4,5 @@ var version = struct { host string self int }{ - "2019-07-02 21:24:03", "ZYB-20190522USI", 90, + "2019-07-02 22:32:30", "ZYB-20190522USI", 91, } diff --git a/src/contexts/ssh/ssh.go b/src/contexts/ssh/ssh.go index 871f64da..c46616f5 100644 --- a/src/contexts/ssh/ssh.go +++ b/src/contexts/ssh/ssh.go @@ -210,7 +210,7 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心", "componet_tmpl": "componet", "componet_view": "Context", "componet_init": "", "componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "email", "componet_args": []interface{}{}, "inputs": []interface{}{ - map[string]interface{}{"label": "收件人", "type": "text", "name": "to", "view": "long"}, + map[string]interface{}{"label": "收件人", "type": "text", "name": "to", "value": "shylinux@163.com","view": "long"}, map[string]interface{}{"label": "主题", "type": "text", "name": "title", "view": "long"}, map[string]interface{}{"type": "button", "value": "发送", "view": "clear"}, map[string]interface{}{"type": "textarea", "name": "content", "view": "clear"}, diff --git a/usr/librarys/example.js b/usr/librarys/example.js index 584f3345..92185284 100644 --- a/usr/librarys/example.js +++ b/usr/librarys/example.js @@ -593,7 +593,7 @@ function Plugin(page, pane, field) { event.preventDefault() return true }) - event.key == "Enter" && plugin.Check(action) + item.type != "textarea" && event.key == "Enter" && plugin.Check(action) } var input = {type: "input", name: name, data: item} @@ -615,7 +615,7 @@ function Plugin(page, pane, field) { case "textarea": if (item.type == "textarea") { input.type = "textarea" - item.style = "width:600px;height:300px" + item.style = "height:300px;"+"width:"+(option.clientWidth-20)+"px" } default: