Skip to content

Commit

Permalink
js: remove other module to avoid import error
Browse files Browse the repository at this point in the history
  • Loading branch information
penfeizhou committed Aug 11, 2022
1 parent 6696278 commit 74f1c61
Show file tree
Hide file tree
Showing 13 changed files with 7,334 additions and 5,254 deletions.
2 changes: 1 addition & 1 deletion doric-demo/src/ComplicatedDemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MyDemo extends Panel {
}),

headerImage = image({
imageUrl: "https://img.zcool.cn/community/01e75b5da933daa801209e1ffa4649.jpg@1280w_1l_2o_100sh.jpg",
imageUrl: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.jj20.com%2Fup%2Fallimg%2F1112%2F12101P11147%2F1Q210011147-3.jpg&refer=http%3A%2F%2Fpic.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1662787633&t=99942c90360f55bbcfe00fa140d1c1df",
layoutConfig: layoutConfig().just(),
width: root.width,
height: 200,
Expand Down
6 changes: 3 additions & 3 deletions doric-demo/src/Counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ class CounterView extends ViewHolder {
text({
text: `Current language is ${Environment.localeLanguage}`,
onClick: function () {
const v = this as View
const v = this as unknown as View
group.removeChild(v)
}
}),
text({
text: `Current country is ${Environment.localeCountry}`,
onClick: function () {
const v = this as View
const v = this as unknown as View
group.removeChild(v)
}
}),
text({
text: "Click to remove",
textSize: 30,
onClick: function () {
const v = this as View
const v = this as unknown as View
group.removeChild(v)
}
}),
Expand Down
Loading

0 comments on commit 74f1c61

Please sign in to comment.