From e860c8b03ee9e2539422096d5cb4f96fde2cfd84 Mon Sep 17 00:00:00 2001 From: unknown <1533540012@qq.com> Date: Tue, 6 Jun 2023 13:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=B8=B8=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.js | 6 +++--- .../demo/9e688c58a5487b8eaf69c9e1005ad0bf.jsx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.js b/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.js index f0c90f3..fa7ec09 100644 --- a/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.js +++ b/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.js @@ -265,7 +265,7 @@ Page({ // demo/pages/item/index.js -Component.id = "10"; +Component.id = "7"; Component.pid = "2"; Component.tag = "use-item"; var app = getApp(); @@ -296,8 +296,8 @@ Component({ // demo/pages/kid/index.js -Component.id = "14"; -Component.pid = "10"; +Component.id = "16"; +Component.pid = "7"; Component.tag = "child-child"; Component({ properties: {}, diff --git a/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.jsx b/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.jsx index 7638e71..a1edb4c 100644 --- a/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.jsx +++ b/packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.jsx @@ -38,7 +38,7 @@ var stdin_default = (props) => { comp.UseItem = (props) => { const [state, setState] = fre.useState({}); useEffect(() => { - setStates[10] = setState; + setStates[7] = setState; }, []); with ({ ...props, ...state }) { return /* @__PURE__ */ fre.h(fre.Fragment, null, /* @__PURE__ */ fre.h(comp.View, { @@ -47,27 +47,27 @@ comp.UseItem = (props) => { slot: `aaa` }, /* @__PURE__ */ fre.h(comp.Icon, { type: `${iitem.completed ? "success" : "circle"}`, - onClick: $handleEvent("clickIco", "10", "bind:tap"), + onClick: $handleEvent("clickIco", "7", "bind:tap"), "data-id": `${iitem.id}` })), /* @__PURE__ */ fre.h(comp.Input, { class: `aaa ${iitem.completed ? "completed" : ""}`, - onKeyDown: $handleEvent("edittodo", "10", "bindconfirm"), + onKeyDown: $handleEvent("edittodo", "7", "bindconfirm"), "data-id": `${iitem.id}`, value: `${iitem.name}` }), /* @__PURE__ */ fre.h(comp.Icon, { type: `clear`, - onClick: $handleEvent("clear", "10", "bind:tap") + onClick: $handleEvent("clear", "7", "bind:tap") }))); } }; comp.ChildChild = (props) => { const [state, setState] = fre.useState({}); useEffect(() => { - setStates[14] = setState; + setStates[16] = setState; }, []); with ({ ...props, ...state }) { return /* @__PURE__ */ fre.h(fre.Fragment, null, /* @__PURE__ */ fre.h(comp.Text, { - onClick: $handleEvent("emmm", "14", "bindtap") + onClick: $handleEvent("emmm", "16", "bindtap") }, "pages/kid/index.wxml")); } };