Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/resolve #15605

Closed
wants to merge 1,341 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
1341 commits
Select commit Hold shift + click to select a range
e799221
feat: 鸿蒙支持多类选择器,简化style的查询/设置的路径
heiazu Mar 12, 2024
19668e3
chore(release): publish 4.0.0-beta.17 --tag=beta
heiazu Mar 12, 2024
3126d5f
fix: 修复合并错误
heiazu Mar 12, 2024
7838893
feat: 修复伪类没出来
heiazu Mar 12, 2024
efcddf1
fix(ets): native components state
ZakaryCode Mar 12, 2024
8ad0f1e
chore(release): publish 4.0.0-beta.20 --tag=beta
Mar 12, 2024
89e4d8c
fix(ets): add node comment
ZakaryCode Mar 13, 2024
d9ee639
feat: 完善模版实现
Mar 13, 2024
85b1478
feat: 更新pacse-css脚本,解决编译性能问题
heiazu Mar 13, 2024
c002a9a
fix: 修复多类选择器的bug
heiazu Mar 13, 2024
3619057
fix: 修复多类选择器没有匹配到重名的节点
heiazu Mar 13, 2024
9bffe91
chore(release): publish 4.0.0-beta.21 --tag=beta
Mar 13, 2024
4c5e4c3
Feat/canvas (#15319)
yoturg Mar 14, 2024
6bf8bfa
feat(harmony): 更新运行时开发逻辑
ZakaryCode Mar 14, 2024
9fd0e27
feat(harmony): update solid
ZakaryCode Mar 14, 2024
8c499e2
fix: computeBackgroundPosition
Mar 14, 2024
21f66c5
feat: 更新stylelint
heiazu Mar 13, 2024
94adb09
feat: 支持鸿蒙不对PX进行转换处理
heiazu Mar 14, 2024
cca3fe2
fix: eslint
heiazu Mar 14, 2024
be0dd33
feat: 调整鸿蒙 @tarojs/components 结构
Mar 14, 2024
ee78e82
chore(release): publish 4.0.0-beta.22 --tag=beta
Mar 14, 2024
00c2282
feat: 修改设置页面背景颜色的位置
Mar 15, 2024
d6334da
fix(harmony): update IntersectionObserver err callback
ZakaryCode Mar 15, 2024
e2bcc06
fix(harmony): update solid text node
ZakaryCode Mar 15, 2024
e15a6dd
feat: 优化鸿蒙运行时逻辑
Mar 15, 2024
941a3b3
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 15, 2024
397494f
fix(harmony): 抽离 copy 插件
ZakaryCode Mar 18, 2024
71d7ced
fix(ets): 优化类名格式化问题
ZakaryCode Mar 18, 2024
0d0144c
fix(ets): 优化 ratio 获取
ZakaryCode Mar 18, 2024
fec9db0
fix: 修改数字匹配的正则
Mar 18, 2024
5f3d511
fix(ets): 删除冗余代码
ZakaryCode Mar 18, 2024
04fb6c4
fix(harmony): 合并样式循环
ZakaryCode Mar 18, 2024
be43d57
fix(ets): 优化写法
ZakaryCode Mar 18, 2024
35ea444
fix(react): 同步常量设置
ZakaryCode Mar 18, 2024
efff473
feat: 支持跨组件传递样式
heiazu Mar 18, 2024
9965a1e
feat: 更新parse-css-to-stylesheet版本
heiazu Mar 18, 2024
d19d5e9
fix: 修复不能解析.5单位
heiazu Mar 18, 2024
e20954d
fix: 修复鸿蒙动画不能正常运行的问题
Mar 18, 2024
fc921c0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 18, 2024
a8a94ba
chore(release): publish 4.0.0-beta.23 --tag=beta
Mar 18, 2024
a3de5f8
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Mar 19, 2024
870be3f
feat: 完善 IntersectionObserver API 的返回内容
Mar 19, 2024
f2ac80b
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 19, 2024
a9deeba
feat: 更新parse-css-to-stylesheet插件
heiazu Mar 19, 2024
bad0a26
chore(release): publish 4.0.0-beta.24 --tag=beta
Mar 19, 2024
75a9245
fix: 修复引入大小写的问题
Mar 20, 2024
56bb275
feat: 支持 solid 编译(非完全测试版本)
ZakaryCode Mar 20, 2024
4164c0f
feat: 支持css变量
heiazu Mar 20, 2024
3862309
chore(release): publish 4.0.0-beta.25 --tag=beta
heiazu Mar 20, 2024
89c6ad7
feat: 完善鸿蒙 api 不支持提醒文案
Mar 21, 2024
b683230
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 21, 2024
594821d
feat: 在直接兜底ohpm之前加一层where查找
Mar 21, 2024
7c05351
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Mar 21, 2024
9165761
fix: 修复页面 onHidden 执行的方法错误的问题
Mar 21, 2024
617e9b2
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 21, 2024
6c750a8
feat: 给localOhpmPath加多一次判断
Mar 21, 2024
bfac5f4
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 21, 2024
4fd2ac1
chore(release): publish 4.0.0-beta.26 --tag=beta
Mar 21, 2024
1ef8295
feat: 文字完善 flex 布局时候的样式还原
Mar 22, 2024
89316e0
feat: view 的默认宽度设置,flex 时默认不撑满宽度
Mar 22, 2024
7d584a0
chore(release): publish 4.0.0-beta.27 --tag=beta
Mar 22, 2024
9687cdd
feat: solid comp & runtime
ZakaryCode Mar 22, 2024
b147620
feat: 支持组件导出形式为 export {} from 'xxxx'
Mar 25, 2024
92b78fe
chore(release): publish 4.0.0-beta.28 --tag=beta
Mar 25, 2024
fa8c097
feat: 增加css变量的提前编译处理
heiazu Mar 26, 2024
e2e1b31
fix: 修复a标签没有解析成text
heiazu Mar 26, 2024
d608815
feat: 更新解析插件版本
heiazu Mar 26, 2024
9ae31eb
feat: 完善半编译逻辑,并提供 page 模板更改的口子
Mar 26, 2024
566ebb0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 26, 2024
fc8cdb2
chore(release): publish 4.0.0-beta.29 --tag=beta
Mar 26, 2024
283518d
feat(solid): 更新 view 实现
ZakaryCode Mar 26, 2024
7bc4f9d
fix(solid): 更新支持本地 link 调试
ZakaryCode Mar 26, 2024
8b3c05f
feat: 修改滚动属性监听的方法
Mar 27, 2024
7a72709
fix(react): 同步常量设置
ZakaryCode Mar 18, 2024
bb947e8
feat: 支持 solid 编译(非完全测试版本)
ZakaryCode Mar 20, 2024
235f303
feat: solid comp & runtime
ZakaryCode Mar 22, 2024
8c043ea
Merge branch 'fix/solid' into 4.x
ZakaryCode Mar 27, 2024
099eec7
fix: harmony nativepage 模式添加 didcatch 周期
Mar 27, 2024
ff567b0
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 27, 2024
e763b9f
feat: 支持伪类first-child\last-child\nth-child
heiazu Mar 27, 2024
4315a03
feat: 更新css解析插件
heiazu Mar 27, 2024
f6b0e26
fix(solid): 优化鸿蒙 reconciler 映射
ZakaryCode Mar 27, 2024
85f6f79
feat: 完善半编译逻辑
Mar 27, 2024
d6c5718
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 27, 2024
3c96382
chore(release): publish 4.0.0-beta.30 --tag=beta
Mar 27, 2024
d5d0e91
feat: storage 添加 context 判断
Mar 28, 2024
29b220b
chore(release): publish 4.0.0-beta.31 --tag=beta
Mar 28, 2024
fa00189
feat(vite): harmony 端支持开发模式增量变更
ZakaryCode Mar 28, 2024
1ae365d
feat(vite): 支持 config 文件热更新触发
ZakaryCode Mar 28, 2024
225336a
feat: pxTransform换算,支持backgroundjiexi
heiazu Mar 28, 2024
0bfcd5b
feat: 完成transform的style支持
heiazu Mar 28, 2024
25a8012
feat: 简化 modifyPageAppear 入参
Mar 28, 2024
507e851
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 28, 2024
99b7615
chore(release): publish 4.0.0-beta.32 --tag=beta
Mar 28, 2024
dba2e3d
fix(vite): 优化 page 获取
ZakaryCode Mar 28, 2024
11526fd
fix(vite): 临时禁用开发环境文件拆分
ZakaryCode Mar 29, 2024
97a4572
fix(vite): 移除冗余插件
ZakaryCode Mar 29, 2024
46ca075
fix(vite): 避免 react-dev stack debug 方法导致的问题
ZakaryCode Mar 29, 2024
e490179
feat: 径向渐变
heiazu Mar 29, 2024
39ff0a6
feat: 优化半编译引用路径问题
Mar 29, 2024
e0e4250
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Mar 29, 2024
5a49020
chore(release): publish 4.0.0-beta.33 --tag=beta
Mar 29, 2024
a73953a
fix(vite): 修复 preserve 模式引用
ZakaryCode Mar 29, 2024
8b29d49
fix(vite): 调整 pages 获取逻辑
ZakaryCode Apr 1, 2024
80d4331
fix(vite): 调整 page 实例方法导出
ZakaryCode Apr 1, 2024
8e53fa2
fix(types): 修复 compile 类型引用
ZakaryCode Apr 1, 2024
be3e714
feat: 支持uid、修复部分样式丢失
heiazu Apr 1, 2024
826f739
feat(vite): 调整页面方法注入逻辑
ZakaryCode Apr 1, 2024
6df4810
feat(vite): harmony 新增 modifyPageMethods 支持
ZakaryCode Apr 1, 2024
66bc726
feat: 增加 shouldBindEvent api 的导出
Apr 1, 2024
cde2f71
fix(harmony): update compiler
ZakaryCode Apr 2, 2024
ff3694a
feat: 支持position: fixed
heiazu Apr 2, 2024
f864015
fix: 修复createSelectorQuery一直返回数组
heiazu Apr 2, 2024
6c47ab6
fix(taro): 修复webpack5-runner 编译错误
Chen-jj Apr 2, 2024
420204f
chore(release): publish 4.0.0-beta.34 --tag=beta
Apr 2, 2024
f9706d9
feat: 添加组件插件化修改接口
Apr 2, 2024
164ee40
chore(release): publish 4.0.0-beta.35 --tag=beta
Apr 2, 2024
bc438dc
feat: 鸿蒙兜底 DOM 节点变更为双向绑定节点
Apr 2, 2024
4c14d66
fix(runner): 修复 render 路径解析
ZakaryCode Apr 3, 2024
8938d5b
feat: 添加 TaroOtherElement 导出
Apr 3, 2024
160ad61
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 3, 2024
edad473
fix(vite): 优化插件删除机制
ZakaryCode Apr 3, 2024
8e6deb6
feat: support custom resolveRequest
zhiqingchen Mar 6, 2024
bb89131
feat(rn): revert redirect animate
zhiqingchen Mar 13, 2024
84a9311
feat:样式兼容问题以及错误提示
Mar 18, 2024
7731e32
feat:兼容harmony PanResponder事件戳
Mar 22, 2024
8eed88c
feat(rn): remove unused masked-view
zhiqingchen Mar 20, 2024
106997a
feat: getLocation's Authorization changeto @react-native-community/ge…
flyrui316 Mar 22, 2024
5f334ba
fix 调用下拉刷新不执行
Apr 2, 2024
583f906
fix: type
zhiqingchen Apr 2, 2024
c5798b1
chore: lint
zhiqingchen Apr 2, 2024
a698ea1
feat: 支持text内嵌入行内图片
heiazu Apr 3, 2024
c370f7e
feat: 补充text、image在行内的点击事件
heiazu Apr 3, 2024
c129f9f
fix: template replace ignore tgz
zhiqingchen Apr 3, 2024
d61bd0e
feat: 修改组件参数
Apr 3, 2024
7bd0f54
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 3, 2024
ced98de
chore(release): publish 4.0.0-beta.36 --tag=beta
Apr 3, 2024
b608ebb
fix: 修复textNode没有继承父元素、fixed的remove失效问题
heiazu Apr 7, 2024
0084db4
chore(release): publish 4.0.0-beta.37 --tag=beta
heiazu Apr 7, 2024
107d8d1
fix: 修复fixed层事件点击问题
heiazu Apr 7, 2024
6dba6e7
chore(release): publish 4.0.0-beta.38 --tag=beta
heiazu Apr 7, 2024
ee1e5d1
feat: 增加white-space解析
heiazu Apr 8, 2024
bd3def0
fix: 修复text下套单个text的样式丢失
heiazu Apr 8, 2024
2731ddd
feat: 优化tabbar下的fixed渲染位置
heiazu Apr 8, 2024
5eb97ad
fix(runner): 修复 wins 上 render 路径编译异常问题
ZakaryCode Apr 8, 2024
39368eb
feat: 支持flex-wrap、修复fixed问题
heiazu Apr 8, 2024
42dcff3
feat: 精简 rust 鸿蒙半编译代码
Apr 8, 2024
e4b4359
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 8, 2024
0e5fcb7
chore(release): publish 4.0.0-beta.39 --tag=beta
Apr 8, 2024
a135bb1
feat: 支持overflow:scroll
heiazu Apr 8, 2024
8269ce0
fix: 修复半编译row/columnModify的导入失败
heiazu Apr 8, 2024
8eede8a
chore(release): publish 4.0.0-beta.40 --tag=beta
Apr 8, 2024
6fe5114
fix: 修复overflow、render报错、swiper支持nextMargin、prevMargin
heiazu Apr 9, 2024
bbfaf01
fix: 修复发版中ts类型报错
heiazu Apr 9, 2024
83fefed
feat: 鸿蒙 storage api 支持大对象缓存
Apr 9, 2024
5781f80
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 9, 2024
41fdccb
fix(runner): 修复路径解析字符判断方法
ZakaryCode Apr 9, 2024
1bb6a4e
chore(release): publish 4.0.0-beta.41 --tag=beta
Apr 9, 2024
3355dcb
fix: 修复 err 取反的问题
Apr 9, 2024
ef1d281
chore(release): publish 4.0.0-beta.42 --tag=beta
Apr 9, 2024
e2ce5f7
fix: 修复文本问题、375下的标题过大问题
heiazu Apr 10, 2024
c451e03
chore(release): publish 4.0.0-beta.43 --tag=beta
heiazu Apr 10, 2024
53831ae
fix(runner): 调整 scripts 正则支持 mjs 后缀
ZakaryCode Apr 10, 2024
d8c278f
fix: 修复崩溃日志的可能报错的问题
heiazu Apr 10, 2024
9343aa5
fix(harmony): 支持 customRoutes 配置
ZakaryCode Apr 10, 2024
85eefd5
feat: 支持textDecoration
heiazu Apr 10, 2024
e5e7c75
fix(harmony): 修改 page 模板事件钩子
ZakaryCode Apr 10, 2024
351bb82
fix(harmony): 修复安全区域高度
ZakaryCode Apr 11, 2024
b5d8b1d
fix: convertNumber2VP 添加函数返回类型解决 harmony 环境下类型推断不来的问题
Apr 11, 2024
46b03f8
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Apr 11, 2024
1976017
fix(harmony): 缩小组件模式错误抛出范围
ZakaryCode Apr 11, 2024
0747560
fix(harmony): 优化组件开发模式错误
ZakaryCode Apr 11, 2024
9a016f6
chore(release): publish 4.0.0-beta.44 --tag=beta
ZakaryCode Apr 11, 2024
60a06af
fix(harmony): 排除类型代码替换
ZakaryCode Apr 11, 2024
3de6449
feat: 支持css的animation属性,@keyframes
heiazu Apr 11, 2024
6e0c0a1
fix(runner): 调整 page 模板格式
ZakaryCode Apr 12, 2024
7fb24f8
fix: 修复鸿蒙的路径冲突
heiazu Apr 12, 2024
b4ee55d
chore: 修改文件后缀
heiazu Apr 12, 2024
879c661
chore(release): publish 4.0.0-beta.45 --tag=beta
heiazu Apr 12, 2024
1dbd1b4
fix: 修复textNode继承了transofrm
heiazu Apr 12, 2024
350a904
feat: 部分场景使用flex来布局
heiazu Apr 15, 2024
7fb1eaa
fix: 兼容壳容器的fixed布局
heiazu Apr 15, 2024
bdb68cc
feat: kvstore 获取时机使用 promise 进行延迟
Apr 15, 2024
dddf82a
chore(release): publish 4.0.0-beta.46 --tag=beta
Apr 15, 2024
ea3dcdd
Fix/compile mode (#15509)
yoturg Apr 15, 2024
8eb1317
fix: 修复半编译 textDecoration 取值问题
Apr 16, 2024
8d33c88
fix(arkts): 调整注入依赖后缀判断
ZakaryCode Apr 16, 2024
cd47ed9
feat: 支持css动画,移除无用的useNesting配置
heiazu Apr 16, 2024
7582a7b
feat: 支持env解析
heiazu Apr 17, 2024
26cc5af
feat: 更新 showToast 等 api 的实现,复制到剪切板 api 添加 toast 提示
Apr 17, 2024
7460a06
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 17, 2024
e45b93d
fix: 修复 clearStorage 的提示错误的问题
Apr 17, 2024
f296670
fix: 修复style设置null/undefined把class的样式也删除的bug
heiazu Apr 17, 2024
730bdd1
fix: 修复可能的报错
heiazu Apr 17, 2024
8c22833
Fix/compile mode (#15519)
yoturg Apr 18, 2024
ca5cd5d
feat: 更新parse-css-to-stylesheet版本
heiazu Apr 18, 2024
c6b528e
chore(release): publish 4.0.0-beta.47 --tag=beta
heiazu Apr 18, 2024
ebbfa0c
fix: 修复 icon 图标显示大小错误问题
Apr 19, 2024
1f0b0a3
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 19, 2024
5d4818b
chore(release): publish 4.0.0-beta.48 --tag=beta
Apr 19, 2024
7424b40
feat: 调整一下编译模式下的配置项
Apr 20, 2024
4638e2e
chore(release): publish 4.0.0-beta.49 --tag=beta
Apr 20, 2024
0b9a485
fix: 解决鸿蒙节点频繁更新的问题
Apr 22, 2024
0204ca7
fix(lint): 更新代码格式
ZakaryCode Apr 22, 2024
4449538
feat(harmony): 新增 page-meta、navigation-bar 组件
ZakaryCode Apr 22, 2024
db211bd
fix(harmony): 调整下拉刷新层级判断
ZakaryCode Apr 22, 2024
13cbe34
fix(harmony): 优化 background API 设置
ZakaryCode Apr 22, 2024
346580e
fix(page): 优化页面模板高度设置
ZakaryCode Apr 22, 2024
c38fe4a
feat: 把forof改成for
Apr 22, 2024
a25e85c
Merge branch '4.x' of https://github.com/NervJS/taro into 4.x
Apr 22, 2024
979a54a
fix(page): 修复页面事件监听问题
ZakaryCode Apr 22, 2024
ba6d54d
feat: 支持empty选择器
heiazu Apr 18, 2024
c631084
chore(release): publish 4.0.0-beta.50 --tag=beta
Apr 22, 2024
abdcf71
feat(harmony): 支持部分组件配置属性
ZakaryCode Apr 22, 2024
76b1d8c
fix: 修复鸿蒙组件编译模式下生命周期生成错误的问题
Apr 23, 2024
cec2764
Merge branch '4.x' of github.com:NervJS/taro into 4.x
Apr 23, 2024
ae5f18f
chore(release): publish 4.0.0-beta.51 --tag=beta
Apr 23, 2024
3b0bf70
fix: 删除多余的导入
Apr 23, 2024
b667972
fix: 临时注释报错代码
Apr 23, 2024
dac822e
chore(release): publish 4.0.0-beta.52 --tag=beta
Apr 23, 2024
e32d8c3
fix(harmony): 支持 page-meta 相关属性操作
ZakaryCode Apr 23, 2024
949ee4c
fix(harmony): add FIXME
ZakaryCode Apr 23, 2024
53b364b
feat(harmony): 更新组件模式 State 判断
ZakaryCode Apr 23, 2024
bed51dd
chore(release): publish 4.0.0-beta.53 --tag=beta
Apr 23, 2024
06cb98c
feat: 更新parse-css-to-stylesheet版本
heiazu Apr 25, 2024
d458818
Feat/swiper event (#15585)
yoturg Apr 26, 2024
e5e922f
feat: 修改文本的span的属性设置
heiazu Apr 26, 2024
6bb86df
feat: 更新半编译逻辑
Apr 26, 2024
a8e7822
chore(release): publish 4.0.0-beta.54 --tag=beta
Apr 26, 2024
03f129b
feat: 完善缓存优化 taro 相关的改造
Apr 29, 2024
ce30340
fix(harmony): 移出 input 组件默认 padding 设置
ZakaryCode Apr 26, 2024
eac03a0
Feat/pure compont (#15592)
yoturg Apr 28, 2024
d7d8b5c
fix: 修复伪元素对transform不生效的问题、修复自定义组件样式传递问题、修复classname传入空的问题
heiazu Apr 28, 2024
8a2d60a
fix: 修复文本的居中问题,更新rust插件版本
heiazu Apr 28, 2024
ff59311
chore(release): publish 4.0.0-beta.55 --tag=beta
heiazu Apr 28, 2024
100b9b8
feat: showToast设置到应用之上弹出
heiazu Apr 28, 2024
c4728e3
feat: 更新rust版本
heiazu Apr 29, 2024
4664502
chore(release): publish 4.0.0-beta.56 --tag=beta
heiazu Apr 29, 2024
1fd76af
Feat/compile flexview (#15596)
yoturg Apr 29, 2024
54ae555
feat: 给flex的node添加断言
Apr 29, 2024
5cb7721
feat: 更新rust版本
heiazu Apr 29, 2024
9c7d7ee
fix: 修复style设置csstext清空不了样式
heiazu Apr 29, 2024
72ea41c
fix: 修复fixed、图片border-radius问题
heiazu Apr 29, 2024
5928b26
chore(release): publish 4.0.0-beta.57 --tag=beta
Apr 29, 2024
c314cc5
fix: 修复复杂嵌套选择器的合成错误
heiazu Apr 29, 2024
3a8cbeb
chore(release): publish 4.0.0-beta.58 --tag=beta
heiazu Apr 29, 2024
3e6fb68
fix: 修复toast问题
heiazu Apr 30, 2024
199b985
feat: 移除鸿蒙对hideToast的支持
heiazu Apr 30, 2024
ed28151
feat: 支持行内style的渐变解析
heiazu Apr 30, 2024
f04b881
feat(harmony): generate sourceRoot using path.resove
Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(harmony): 修改 page 模板事件钩子
  • Loading branch information
ZakaryCode committed Apr 10, 2024
commit e5e7c75de1c393bc2ffaf110e6a9b3e3b8aec18b
8 changes: 4 additions & 4 deletions packages/taro-vite-runner/src/harmony/template/page.ts
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ export interface TaroHarmonyPageMeta extends VitePageMeta {

modifyPageParams?: (this: Parser, paramsString: string) => string

modifyPageImport?: (this: Parser, importStr: string[]) => void
modifyPageImport?: (this: Parser, importStr: string[], page: TaroHarmonyPageMeta | TaroHarmonyPageMeta[]) => void

modifyPageAppear?: (this: Parser, appearStr: string) => string
modifyPageAppear?: (this: Parser, appearStr: string, page: TaroHarmonyPageMeta | TaroHarmonyPageMeta[]) => string

modifyPageBuild?: (this: Parser, buildStr: string) => string

@@ -238,7 +238,7 @@ export default class Parser extends BaseParser {
))}`

if (isFunction(modifyPageAppear)) {
appearStr = modifyPageAppear.call(this, appearStr)
appearStr = modifyPageAppear.call(this, appearStr, page)
}

// 生成 build 函数内容
@@ -963,7 +963,7 @@ ${this.transArr2Str(pageStr.split('\n'), 6)}

const modifyPageImport = page instanceof Array ? page[0].modifyPageImport : page.modifyPageImport
if (isFunction(modifyPageImport)) {
modifyPageImport.call(this, importList)
modifyPageImport.call(this, importList, page)
}

const code = this.transArr2Str([
Loading