Skip to content

Commit

Permalink
日常提交
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Jun 6, 2023
1 parent 69319ab commit e860c8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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: {},
Expand Down
12 changes: 6 additions & 6 deletions packages/runtime/demo/9e688c58a5487b8eaf69c9e1005ad0bf.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand All @@ -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"));
}
};

0 comments on commit e860c8b

Please sign in to comment.