From 2a64c31512b5192d2f37832facacfa158a49cc7d Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 11 May 2021 21:31:21 +0800 Subject: [PATCH] opt some --- frame.js | 2 +- lib/base.js | 2 +- plugin/story/spide.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frame.js b/frame.js index 19cd01ec..3ffd82bb 100644 --- a/frame.js +++ b/frame.js @@ -126,7 +126,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta, {name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]}, ]}, "redis": {name: "缓存 redis", action: [ - {name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/src/main.shy"]}, + {name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/main.shy"]}, ]}, "mysql": {name: "数据 mysql", action: [ {name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]}, diff --git a/lib/base.js b/lib/base.js index 40c0c057..f04e0c84 100644 --- a/lib/base.js +++ b/lib/base.js @@ -38,7 +38,7 @@ Volcanos("base", {help: "数据类型", Ext: function(file) { return (file.split("/").pop().split(".").pop()).toLowerCase() }, Path: function() { var res = "" for (var i = 0; i < arguments.length; i++) { - res += (arguments[i].indexOf("/") == 0 || res.indexOf("/")==res.length-1? "": "/") + arguments[i].trim() + res += (arguments[i][0]=="/" || res=="" || res[res.length-1]=="/"? "": "/") + arguments[i].trim() } return res }, diff --git a/plugin/story/spide.js b/plugin/story/spide.js index e078c66d..582500fa 100644 --- a/plugin/story/spide.js +++ b/plugin/story/spide.js @@ -146,7 +146,7 @@ Volcanos("ondetail", {help: "用户交互", list: [], can.onlayout.figure(event, sub, sub._target) can.search(["Action.onexport.size"], function(msg, left, top, width, height) { left = left||0 - can.page.Modify(can, sub._target, {style: {position: "fixed", left: left}}) + can.page.Modify(can, sub._target, {style: {position: "fixed", left: left, top: 120}}) can.page.Modify(can, sub._output, {style: {"max-width": width}}) }) }