From fff40943c5e91b62b75817a67a03b91843850a0a Mon Sep 17 00:00:00 2001 From: shylinux Date: Tue, 21 Jul 2020 10:59:46 +0800 Subject: [PATCH] opt lark --- frame.js | 1 + plugin/story/spide.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frame.js b/frame.js index d1c95add..f19a798a 100644 --- a/frame.js +++ b/frame.js @@ -539,6 +539,7 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met }, }, [], function(can) {}) Volcanos("onlayout", { _init: function(can, meta, list, cb, target) { + if (can.user.Search(can, "share")) { return typeof cb == "function" && cb() } var width = can._width, height = can._height can.page.Select(can, target, "fieldset.head", function(field) { diff --git a/plugin/story/spide.js b/plugin/story/spide.js index 097c31ef..973606c3 100644 --- a/plugin/story/spide.js +++ b/plugin/story/spide.js @@ -17,7 +17,7 @@ Volcanos("onimport", {help: "导入数据", list: [], can.page.Modify(can, sub._status, {style: {display: "none"}}) sub.run = function(event, cmds, cb, silent) { typeof cb == "function" && cb(can.request(event)) - can.Timer(100, function() { + can.Timer(1000, function() { can.sub = sub._outputs[0] can.msg = msg, can.data = msg.Table() can.Action("height", "400")