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

比较差异,不合并 #572

Closed
wants to merge 199 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
873c7d1
fix: 解决转换时日志写入报错,各模块函数新增写入日志
caoyang818 Dec 1, 2023
14104c9
Merge pull request #452 from caoyang818/release-3.6.8-app
Vector-Hope Dec 4, 2023
92fa808
feat: mpharmony应用以及页面的前后台切换触发显示和隐藏生命函数
guoenxuan Nov 15, 2023
6dce2ae
feat: 新增功能订阅消息
wangzhenhuiOne Dec 1, 2023
57ca80b
Merge pull request #450 from guoenxuan/fix-page-life
szzwk Dec 4, 2023
a7dae4e
Merge pull request #451 from wangzhenhuiOne/release-3.6.8-app
szzwk Dec 4, 2023
13d9462
fix: 修复setTabBarBadge可显示的中文字符最多两个
guoenxuan Dec 4, 2023
51f93cd
fix: 补充on/offAppShow和on/offAppHide测试样例
guoenxuan Dec 4, 2023
1c18df5
fix: 修复自定义图层的非法值透明度问题
StarJacky Dec 4, 2023
ef4934a
Merge pull request #455 from guoenxuan/fix-tab-badge
tangcq-code Dec 4, 2023
7fe3dbe
Merge pull request #458 from guoenxuan/fix-page-life-ex
tangcq-code Dec 4, 2023
07dc2fe
Merge pull request #459 from StarJacky/release-3.6.8-app
tangcq-code Dec 4, 2023
2af0e0e
fix: 修复map组件中心经纬度负数异常和scale非法值异常
licunhao1 Nov 30, 2023
6b30afc
fix: 修复H5接口报错问题
tangcq-code Dec 5, 2023
c0ee6bf
fix: 修复耗时未打印在控制台问题,修复request监听函数undefined问题,format历史代码
Vector-Hope Dec 5, 2023
a62e584
Merge pull request #461 from Vector-Hope/release-3.6.8-app
tangcq-code Dec 5, 2023
bdbf706
Merge pull request #460 from tangcq-code/release-3.6.8-app
qican777 Dec 5, 2023
0fc1d5c
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
licunhao1 Dec 5, 2023
e9cf89b
Merge pull request #446 from licunhao1/release-3.6.8-app
tangcq-code Dec 5, 2023
1134163
feat: 新增export from语法支持及测试用例
fahasikei Dec 5, 2023
8f6de88
Merge pull request #465 from fahasikei/release-3.6.8-app
Vector-Hope Dec 5, 2023
75921ea
feat: 新增支持scanCode一维码二维码扫码能力
xiaoyan428820 Dec 5, 2023
cf78f87
fix: 修复导航栏重叠问题
xiaoyan428820 Dec 5, 2023
8f08756
Merge branch 'release-3.6.8-app' of github.com:handsomeliuyang/taro i…
xiaoyan428820 Dec 5, 2023
4940383
feat: taroize补充plugin路径转换的测试用例,以及对script.test.ts测试的优化
yintyuan Dec 6, 2023
62b4136
Merge pull request #468 from yintyuan/release-3.6.8-app
Vector-Hope Dec 6, 2023
701e12c
fix: 修复控制台打印回调异常,format map代码格式
Vector-Hope Dec 7, 2023
0e4fafb
Merge pull request #470 from Vector-Hope/release-3.6.8-app
tangcq-code Dec 7, 2023
1e985b4
fix: 修复异常id处理
StarJacky Dec 7, 2023
e5e971f
Merge pull request #472 from StarJacky/release-3.6.8-app
tangcq-code Dec 7, 2023
1f9a47f
fix: 添加全屏事件监听,补齐mode样例
wangzhenhuiOne Dec 7, 2023
e3b7712
fix: 修复getRotate和getSkew非法值问题
StarJacky Dec 7, 2023
03e6366
fix: 转换后子组件内部分标签未导入及测试用例
yusjie Dec 7, 2023
107cbe1
Merge pull request #474 from yusjie/release-3.6.8-app
Vector-Hope Dec 7, 2023
912631b
Merge pull request #473 from wangzhenhuiOne/release-3.6.8-app
tangcq-code Dec 7, 2023
fc3940f
Merge pull request #475 from StarJacky/release-3.6.8-app
tangcq-code Dec 8, 2023
7db4d5b
Merge pull request #466 from xiaoyan428820/release-3.6.8-app
tangcq-code Dec 8, 2023
7494a69
fix: 修复marker图标高度设置异常、偏移异常、旋转异常
licunhao1 Dec 8, 2023
79d5d79
Merge pull request #476 from licunhao1/release-3.6.8-app
tangcq-code Dec 8, 2023
b7bf385
feat: swiper组件支持currentItemId属性
Vector-Hope Dec 8, 2023
3fc2d43
fix: 修复getSystemInfo返回的系统信息
guoenxuan Dec 9, 2023
7d75fe1
fix: 修改currentItemId注释
Vector-Hope Dec 11, 2023
baff26d
Merge pull request #481 from Vector-Hope/release-3.6.8-app
tangcq-code Dec 11, 2023
f9a03cd
Merge pull request #479 from guoenxuan/fix-system-info
tangcq-code Dec 11, 2023
ef31c13
fix: 修改导航栏样式设置方式
guoenxuan Dec 9, 2023
f1f011d
Merge pull request #480 from guoenxuan/fix-navi-top-style
tangcq-code Dec 11, 2023
f20680d
fix: 修复中心坐标定位不精确
licunhao1 Dec 11, 2023
4986f58
Merge pull request #483 from licunhao1/release-3.6.8-app
tangcq-code Dec 11, 2023
9f5b30c
fix: 修复图标旋转角度异常
StarJacky Dec 12, 2023
a62f3f3
Merge pull request #484 from StarJacky/release-3.6.8-app
tangcq-code Dec 12, 2023
fd8ccb3
fix: 内联style属性中绝对值小于1px/rpx转为rem
fahasikei Dec 12, 2023
1421adc
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
fahasikei Dec 12, 2023
e168447
Merge pull request #485 from fahasikei/release-3.6.8-app
Vector-Hope Dec 13, 2023
e051655
fix: canIuse中request接口支持情况修改
Pzx-00100 Dec 13, 2023
25b3417
Merge pull request #486 from zxdsax/release-3.6.8-app
tangcq-code Dec 13, 2023
a1c3a3a
fix: 补充转换后子组件内部分标签未导入及测试用例
yusjie Dec 13, 2023
c3fa991
Merge pull request #487 from yusjie/release-3.6.8-app
Vector-Hope Dec 14, 2023
8e1e8c2
fix: wxss样式转换时为保证在h5显示比例相同需要乘以2倍
fahasikei Dec 14, 2023
ef41b18
fix: canIUse注释修改
secondone21 Dec 14, 2023
71b4288
Merge pull request #488 from fahasikei/release-3.6.8-app
Vector-Hope Dec 14, 2023
1af061e
Merge pull request #489 from secondone21/release-3.6.8-app
tangcq-code Dec 14, 2023
42bb390
fix: 修复map组件卡顿和刷新,inlcudePoints超出最小缩放异常
licunhao1 Dec 15, 2023
df7a311
fix: 修复login startTest标记位
Vector-Hope Dec 15, 2023
f2fc190
Merge pull request #491 from Vector-Hope/release-3.6.8-app
tangcq-code Dec 15, 2023
f04eb34
Merge pull request #490 from licunhao1/release-3.6.8-app
tangcq-code Dec 16, 2023
502e0b6
fix: 提供直播流,修改缓冲区测试问题
wangzhenhuiOne Dec 18, 2023
f4dbd29
fix: 修复callout中的样式异常和movealong功能异常
StarJacky Dec 18, 2023
98e09ab
Merge pull request #492 from wangzhenhuiOne/release-3.6.8-app
tangcq-code Dec 18, 2023
a2e2000
Merge pull request #493 from StarJacky/release-3.6.8-app
tangcq-code Dec 18, 2023
b794246
fix: 优化日志写入过程、格式、内容、位置等,新增hdc mall问题测试用例
caoyang818 Dec 19, 2023
af86b53
feat: 补充taro-cli-convertor部分测试用例,增量添加mock的fs、path模块
yintyuan Dec 20, 2023
4d311a4
fix: 修改chooseImage的测试样例
tangcq-code Dec 20, 2023
3f98da2
Merge pull request #499 from tangcq-code/release-3.6.8-app
qican777 Dec 20, 2023
6b72b7c
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
yintyuan Dec 20, 2023
c7af30d
Merge pull request #498 from yintyuan/release-3.6.8-app
qican777 Dec 20, 2023
5dfa518
feat: 修复convert-lab转换样式问题,postcss-unit-transform包添加单元测试,补充使用工具函数初始化pa…
fahasikei Dec 21, 2023
944df1a
fix: 更改downloadFile接口实现方式
guoenxuan Dec 21, 2023
2807b8f
Merge pull request #505 from guoenxuan/fix-downloadfile
tangcq-code Dec 22, 2023
b47aec2
fix: 修复video/live-player进入全屏时导航栏未隐藏的问题
guoenxuan Dec 22, 2023
fd586eb
Merge pull request #506 from guoenxuan/fix-full-screen-1
tangcq-code Dec 22, 2023
364d1df
fix: 修复live-player全屏退出导航栏显示滞后问题
wangzhenhuiOne Dec 22, 2023
a00adfc
fix: 修复previewImage不显示索引值
Pzx-00100 Dec 22, 2023
ac95f86
Merge pull request #508 from zxdsax/release-3.6.8-app
tangcq-code Dec 25, 2023
c58f2f0
Merge pull request #507 from wangzhenhuiOne/release-3.6.8-app
tangcq-code Dec 25, 2023
67dd8bd
fix: 修改chooseMedia和chooseImage使用native函数chooseMediaAssets
guoenxuan Dec 19, 2023
97627f8
Merge pull request #497 from caoyang818/release-3.6.8-app
Vector-Hope Dec 25, 2023
587676e
fix: 修复translatemaker移动异常和setboundary限制异常问题
StarJacky Dec 25, 2023
eadad01
Merge pull request #504 from fahasikei/release-3.6.8-app
Vector-Hope Dec 25, 2023
3c06089
fix: 增强convertor转换报告功能
Hunly520 Dec 26, 2023
83d4296
Merge pull request #509 from guoenxuan/fix-choosemedia
tangcq-code Dec 26, 2023
624975a
Merge pull request #510 from StarJacky/release-3.6.8-app
tangcq-code Dec 26, 2023
3365e56
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
Hunly520 Dec 26, 2023
477ec89
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
Hunly520 Dec 26, 2023
1afad92
fix: 修复convetor单元测试报错问题
Hunly520 Dec 26, 2023
7a30d8b
fix: 修复api突出全屏导航栏不生效问题
wangzhenhuiOne Dec 26, 2023
2c2d539
Merge pull request #514 from wangzhenhuiOne/release-3.6.8-app
tangcq-code Dec 26, 2023
67ee181
fix: 修复回调内容同时含有成功和失败的回调
Vector-Hope Dec 26, 2023
42beeed
Merge pull request #515 from Vector-Hope/release-3.6.8-app
tangcq-code Dec 26, 2023
083defe
fix: convertor转换报告代码优化
Hunly520 Dec 27, 2023
0aa32fb
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
Hunly520 Dec 27, 2023
0e6ca6c
fix: 修复previewImage中保存图片失败
Pzx-00100 Dec 28, 2023
91dd234
Merge pull request #518 from zxdsax/release-3.6.8-app
tangcq-code Dec 28, 2023
907734a
fix: 转换报告模版增加noData场景
Hunly520 Dec 28, 2023
ef09825
Merge pull request #519 from Hyunly/release-3.6.8-app
Vector-Hope Dec 28, 2023
c6de8f3
feat: 补充taro-cli-convertor的测试用例,增量添加、修改fs模拟方法
yintyuan Dec 28, 2023
69af929
Merge branch 'release-3.6.8-app' of https://github.com/handsomeliuyan…
yintyuan Dec 28, 2023
409cc75
Merge pull request #520 from yintyuan/release-3.6.8-app
Vector-Hope Jan 2, 2024
a79e2c4
feat: 新增使用 resolveAlias 配置项用来自定义模块路径的映射规则
fahasikei Jan 4, 2024
84acc20
Merge pull request #523 from fahasikei/release-3.6.8-app
Vector-Hope Jan 4, 2024
5899192
feat: window挂载方法base64ToArrayBuffer
guoenxuan Jan 4, 2024
31ebfc8
Merge pull request #524 from guoenxuan/fix-read-file
tangcq-code Jan 4, 2024
2857849
fix: 修改视频码率的计算
tangcq-code Jan 5, 2024
d1520ec
Merge pull request #526 from tangcq-code/release-3.6.8-app
qican777 Jan 5, 2024
9674638
fix: 修改chooseVideo代码和getVedioInfo测试样例传入参数
Pzx-00100 Jan 6, 2024
259a286
性能压测:完成入口
58liuyang Jan 2, 2024
999dde5
补全jsbridge的压测Case
58liuyang Jan 8, 2024
b79fb30
Merge pull request #527 from zxdsax/release-3.6.8-app
tangcq-code Jan 8, 2024
7619dac
fix: 修复live-player缓冲区显示问题
wangzhenhuiOne Jan 8, 2024
ddf658a
fix: 修改chooseVideo代码和getVedioInfo测试样例传入参数
Pzx-00100 Jan 6, 2024
415f793
补全jsbridge的压测Case
58liuyang Jan 9, 2024
c6e50cc
补全jsbridge的压测Case
58liuyang Jan 9, 2024
d7fcf20
补全jsbridge的压测Case
58liuyang Jan 9, 2024
5c0a3ae
Merge pull request #528 from handsomeliuyang/release-3.6.8-app-liuyang
handsomeliuyang Jan 9, 2024
7f5ff23
fix: 修复moveAlong和translate错误日志打印
StarJacky Jan 9, 2024
5ac6b03
Merge pull request #529 from wangzhenhuiOne/release-3.6.8-app
tangcq-code Jan 9, 2024
f496e5b
Merge pull request #530 from StarJacky/release-3.6.8-app
tangcq-code Jan 9, 2024
bc4cb82
feat: 补充taro-cli-convertor日志、转换报告等相关测试用例,增量添加修改mock的fs操作
yintyuan Jan 10, 2024
92b3071
Merge pull request #531 from yintyuan/release-3.6.8-app
Vector-Hope Jan 10, 2024
f75816f
feat: taro-transformer-wx中wxs.ts文件的测试用例
yintyuan Jan 11, 2024
6f3c4eb
Merge pull request #532 from yintyuan/release-3.6.8-app
Vector-Hope Jan 11, 2024
77daf7a
fix: 修复updateGroundOverlay经纬度坐标与id非法值异常
StarJacky Jan 12, 2024
6028c25
Merge pull request #533 from StarJacky/release-3.6.8-app
tangcq-code Jan 12, 2024
0a53880
feat: taroize的部分日志测试用例补充
yusjie Jan 15, 2024
33e4feb
Merge pull request #534 from yusjie/release-3.6.8-app
Vector-Hope Jan 17, 2024
c0bf140
feat: taro-cli-convertor部分日志测试用例
yusjie Jan 18, 2024
07a6d4c
Merge pull request #535 from yusjie/release-3.6.8-app
Vector-Hope Jan 18, 2024
7f70190
fix: 修复taro-with-weapp的测试用例
yintyuan Jan 19, 2024
8f767ec
Merge pull request #536 from yintyuan/release-3.6.8-app
Vector-Hope Jan 19, 2024
ed53456
feat: 补充convertor转换报告能力
yintyuan Jan 19, 2024
bb6b791
Merge pull request #537 from yintyuan/release-3.6.8-app
Vector-Hope Jan 19, 2024
d9af6c1
fix: 修复地图全屏样式限制
StarJacky Jan 30, 2024
acaaa51
Merge pull request #541 from StarJacky/release-3.6.8-app
tangcq-code Jan 30, 2024
2f34e96
fix: 修复downloadTask中回调注册多次导致无法一次取消问题
chenai02 Feb 4, 2024
cb18fbd
Merge pull request #544 from chenai02/release-3.6.8-app
guoenxuan Feb 4, 2024
ab6c6a8
feat: 通信通道优化重构mpharmony中应用到壳工程的函数
chenai02 Jan 11, 2024
ebd01db
feat: 完善native对象调用方式,增加mode对象注册方式
chenai02 Jan 22, 2024
47c7cc5
优化jsbridge通信
58liuyang Jan 8, 2024
03be023
feat: 完善native对象调用方式,增加对象方法多种参数适配问题
chenai02 Jan 23, 2024
4328135
feat: 完善innerAudioContext适配
chenai02 Jan 25, 2024
ea49071
fix: 新通道增加readFile(Sync)实现
guoenxuan Jan 24, 2024
d7d4bb4
feat: 优化通信通道,改变了部分监听函数的注册方式
chenai02 Jan 27, 2024
eff2041
feat: 修改getFileManager注册方式,适配批量注册。修改部分类的属性,与壳工程对应
chenai02 Jan 27, 2024
e496449
feat: 适配取消屏幕截图监听函数接口
chenai02 Jan 29, 2024
0b08afb
feat: 将装饰器内容转移并优化native方法注册方式
chenai02 Jan 30, 2024
923acbd
fix: 修复媒体中部分调用原生方法的方式
chenai02 Feb 18, 2024
498738e
兼容实际屏幕宽度为小数的情况
58liuyang Feb 19, 2024
c6ef865
Merge pull request #546 from handsomeliuyang/release-3.6.8-app-liuyang
qican777 Feb 19, 2024
d1b1d68
feat: 适配getUpdateManager对象
chenai02 Feb 19, 2024
5944a78
Merge pull request #545 from chenai02/release-3.6.8-app
qican777 Feb 19, 2024
78c6447
feat: 增加对屏幕、联系人、罗盘等设备类接口的适配
Feb 21, 2024
24eb50a
Merge pull request #547 from handsomeliuyang/device_fix
guoenxuan Feb 21, 2024
701ca3a
bug修复:pageNo===0时,即打开第1个页面时,在鸿蒙平台动画不能真正的停止
58liuyang Feb 22, 2024
c1ff46f
bug修复:pageNo===0时,即打开第1个页面时,在鸿蒙平台动画不能真正的停止
58liuyang Feb 22, 2024
c2c8611
Merge pull request #548 from handsomeliuyang/release-3.6.8-app-liuyang
qican777 Feb 22, 2024
5fb8842
feat: 桥接setNavigationStyle接口
chenai02 Feb 23, 2024
0d21d0c
Merge pull request #552 from chenai02/release-3.6.8-app
handsomeliuyang Feb 23, 2024
2c0f0dc
feat: 桥接requestSubscribeMessage接口
Feb 26, 2024
bcdec23
Merge pull request #554 from handsomeliuyang/subscribe_message
guoenxuan Feb 26, 2024
2d0b894
feat: 桥接部分蓝牙模块功能
chenai02 Mar 5, 2024
a611df1
Merge pull request #555 from chenai02/release-3.6.8-app
guoenxuan Mar 5, 2024
80a329b
fix: 修复getSetting和openSetting桥接错误问题以及修复nativeApi中桥接字段isAsync错误问题
chenai02 Mar 9, 2024
79a8271
Merge pull request #557 from chenai02/release-3.6.8-app
guoenxuan Mar 11, 2024
dc3cf54
支持多容器
58liuyang Mar 13, 2024
1dce847
支持多容器
58liuyang Mar 14, 2024
b08ab06
Merge pull request #559 from handsomeliuyang/release-3.6.8-app-liuyang
qican777 Mar 14, 2024
765fced
fix: 修复lint
shan8545 Mar 14, 2024
f05f918
feat: 数据共享,桥接storage模块到native数据库
shan8545 Mar 14, 2024
4d3c63b
Merge pull request #560 from handsomeliuyang/datashare
qican777 Mar 14, 2024
0b3542a
fix: mpharmony平台路由api不要tree-shaking处理
guoenxuan Mar 19, 2024
cc1251d
Merge pull request #561 from guoenxuan/fix-hook-route-api
handsomeliuyang Mar 20, 2024
da163b7
fix: 修复mini-program-example下运行run dev:mpharmony时的jsBridgeMode报错问题
qcjxs Mar 20, 2024
0f44b71
feat: 部分api支持osChannelApi
shan8545 Mar 21, 2024
6f28be1
fix: 解决返回时上一个页面瞬间白屏的问题
Mar 22, 2024
c5cb7e9
fix: 解决返回时上一个页面瞬间白屏的问题
Mar 22, 2024
8ef8948
Merge pull request #562 from handsomeliuyang/fix-jsb
qican777 Mar 23, 2024
77d6882
Merge pull request #564 from handsomeliuyang/f-release-3.6.8-app-back…
kongxiaojun Mar 25, 2024
98cf50a
Merge pull request #563 from handsomeliuyang/osChannel
qican777 Mar 25, 2024
c8c8b32
fix: 修复数据共享数据取出是对象的问题
shan8545 Mar 26, 2024
874aa87
fix: 修复数据共享数据取出是对象的问题
shan8545 Mar 26, 2024
0737c1d
Merge pull request #567 from handsomeliuyang/fix-getStorageSync
guoenxuan Mar 26, 2024
2703784
Merge remote-tracking branch 'origin/release-3.6.8-app' into test-osC…
shan8545 Mar 27, 2024
4f6b846
fix: osChannel集成到taro-mpharmony
shan8545 Mar 27, 2024
33dc045
fix: request接口纯js实现
Pzx-00100 Mar 27, 2024
03e47f4
Merge pull request #569 from handsomeliuyang/test-osChannel
qican777 Mar 27, 2024
c67fbae
Merge pull request #568 from zxdsax/release-3.6.8-app
qican777 Mar 27, 2024
2b78af6
fix: taro js侧日志打印改造
Pzx-00100 Mar 28, 2024
a8ac56e
Merge pull request #570 from zxdsax/release-3.6.8-app
guoenxuan Mar 28, 2024
6201c25
fix: request接口jsb和纯js实现转换
Pzx-00100 Mar 29, 2024
17c7843
Merge pull request #571 from zxdsax/release-3.6.8-app
qican777 Mar 29, 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
4 changes: 2 additions & 2 deletions examples/mini-program-example/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
828: 1.81 / 2
},
sourceRoot: 'src',
outputRoot: `dist/${process.env.TARO_ENV}`,
outputRoot: `dist/spa/main`,
plugins: [],
alias: {
'@/util': path.resolve(__dirname, '..', 'src/util'),
Expand Down Expand Up @@ -58,7 +58,7 @@ const config = {
}
},
h5: {
publicPath: '/',
publicPath: '/spa/main/',
staticDirectory: 'static',
postcss: {
autoprefixer: {
Expand Down
35 changes: 18 additions & 17 deletions examples/mini-program-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,36 @@
"author": "",
"dependencies": {
"@babel/runtime": "^7.14.5",
"@tarojs/components": "3.6.15",
"@tarojs/helper": "3.6.15",
"@tarojs/plugin-platform-weapp": "3.6.15",
"@tarojs/plugin-platform-alipay": "3.6.15",
"@tarojs/plugin-platform-tt": "3.6.15",
"@tarojs/plugin-platform-swan": "3.6.15",
"@tarojs/plugin-platform-jd": "3.6.15",
"@tarojs/plugin-platform-qq": "3.6.15",
"@tarojs/plugin-platform-h5": "3.6.15",
"@tarojs/components": "workspace:*",
"@tarojs/helper": "workspace:*",
"@tarojs/plugin-platform-weapp": "workspace:*",
"@tarojs/plugin-platform-alipay": "workspace:*",
"@tarojs/plugin-platform-tt": "workspace:*",
"@tarojs/plugin-platform-swan": "workspace:*",
"@tarojs/plugin-platform-jd": "workspace:*",
"@tarojs/plugin-platform-qq": "workspace:*",
"@tarojs/plugin-platform-h5": "workspace:*",
"@tarojs/plugin-platform-mpharmony": "workspace:*",
"@tarojs/plugin-platform-mpandroid": "workspace:*",
"@tarojs/components-mpharmony": "workspace:*",
"@tarojs/runtime": "3.6.15",
"@tarojs/shared": "3.6.15",
"@tarojs/taro": "3.6.15",
"@tarojs/taro-mpharmony": "workspace:*",
"@tarojs/runtime": "workspace:*",
"@tarojs/shared": "workspace:*",
"@tarojs/taro": "workspace:*",
"@tarojs/plugin-framework-react": "workspace:*",
"@tarojs/react": "3.6.15",
"@tarojs/react": "workspace:*",
"react-dom": "^18.2.0",
"react": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@tarojs/cli": "3.6.15",
"@tarojs/cli": "workspace:*",
"@types/webpack-env": "^1.13.6",
"@types/react": "^18.2.0",
"webpack": "5.78.0",
"@tarojs/webpack5-runner": "3.6.15",
"babel-preset-taro": "3.6.15",
"eslint-config-taro": "3.6.15",
"@tarojs/webpack5-runner": "workspace:*",
"babel-preset-taro": "workspace:*",
"eslint-config-taro": "workspace:*",
"eslint": "^8.12.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
"react-refresh": "^0.11.0",
Expand Down
1 change: 1 addition & 0 deletions examples/mini-program-example/src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export default defineAppConfig({
'pages/api/thirdParty/index',
'pages/api/worker/index',
'pages/api/wxml/index',
'pages/performance/index/index'
],
tabBar: {
color: '#7A7E83',
Expand Down
8 changes: 8 additions & 0 deletions examples/mini-program-example/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ class App extends React.Component {
})
}

componentDidShow(res) {
TestConsole.consoleNormal('App componentDidShow', res)
}

componentDidHide() {
TestConsole.consoleNormal('App componentDidHide')
}

render() {
// this.props.children 是将要会渲染的页面
return this.props.children
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export default class Index extends React.Component {
'字面量示例3:live-pusher.audio-reverb-type.4----',
Taro.canIUse('live-pusher.audio-reverb-type.4')
)
TestConsole.consoleDebug('字面量示例4:checkbox-group----', Taro.canIUse("checkbox-group"))
TestConsole.consoleDebug('字面量示例5:button----', Taro.canIUse("button"))
TestConsole.consoleDebug('字面量示例6:button.size----', Taro.canIUse("button.size"))
TestConsole.consoleDebug('字面量示例7:button.size.mini----', Taro.canIUse("button.size.mini"))
TestConsole.consoleDebug('字面量示例4:checkbox-group----', Taro.canIUse('checkbox-group'))
TestConsole.consoleDebug('字面量示例5:button----', Taro.canIUse('button'))
TestConsole.consoleDebug('字面量示例6:button.size----', Taro.canIUse('button.size'))
TestConsole.consoleDebug('字面量示例7:button.size.mini----', Taro.canIUse('button.size.mini'))

const apiName1 = 'share-element.rect-tween-type.cubic-bezier(x1,'
const apiName2 = 'live-pusher.aspect.9:16'
const apiName3 = 'live-pusher.audio-reverb-type.4'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import { View } from '@tarojs/components'
import { TestConsole } from '@/util/util'
import ButtonList from '@/components/buttonList'

Expand Down Expand Up @@ -84,20 +84,30 @@ export default class Index extends React.Component {
},
{
id: 'onAppShow',
func: (apiIndex) => {
func: () => {
TestConsole.consoleTest('Taro.onAppShow')
Taro.onAppShow((res) => {
TestConsole.consoleOnCallback.call(this, res, 'onAppShow', apiIndex)
})
Taro.onAppShow(this.appShow)
},
},
{
id: 'onAppShow1',
func: () => {
TestConsole.consoleTest('Taro.onAppShow1')
Taro.onAppShow(this.appShow1)
},
},
{
id: 'onAppHide',
func: (apiIndex) => {
func: () => {
TestConsole.consoleTest('Taro.onAppHide')
Taro.onAppHide((res) => {
TestConsole.consoleOnCallback.call(this, res, 'onAppHide', apiIndex)
})
Taro.onAppHide(this.appHide)
},
},
{
id: 'onAppHide1',
func: () => {
TestConsole.consoleTest('Taro.onAppHide1')
Taro.onAppHide(this.appHide1)
},
},
{
Expand Down Expand Up @@ -150,25 +160,51 @@ export default class Index extends React.Component {
},
{
id: 'offAppShow',
func: (apiIndex) => {
func: () => {
TestConsole.consoleTest('Taro.offAppShow')
Taro.offAppShow((res) => {
TestConsole.consoleOnCallback.call(this, res, 'offAppShow', apiIndex)
})
Taro.offAppShow(this.appShow)
},
},
{
id: 'offAppShow1',
func: () => {
TestConsole.consoleTest('Taro.offAppShow1')
Taro.offAppShow(this.appShow1)
},
},
{
id: 'offAppHide',
func: (apiIndex) => {
func: () => {
TestConsole.consoleTest('Taro.offAppHide')
Taro.offAppHide((res) => {
TestConsole.consoleOnCallback.call(this, res, 'offAppHide', apiIndex)
})
Taro.offAppHide(this.appHide)
},
},
{
id: 'offAppHide1',
func: () => {
TestConsole.consoleTest('Taro.offAppHide1')
Taro.offAppHide(this.appHide1)
},
},
],
}

appShow = (res) => {
TestConsole.consoleOnCallback.call(this, res, 'onAppShow', 6)
}

appShow1 = (res) => {
TestConsole.consoleOnCallback.call(this, res, 'onAppShow1', 7)
}

appHide = (res) => {
TestConsole.consoleOnCallback.call(this, res, 'onAppHide', 8)
}

appHide1 = (res) => {
TestConsole.consoleOnCallback.call(this, res, 'onAppHide1', 9)
}

render() {
const { list } = this.state
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Index extends React.Component {
const currentTime = Date.now()
const res = Taro.getSystemSetting()
const took = Date.now() - currentTime
console.log("getSystemSetting took: ", took)
console.log('getSystemSetting took: ', took)
TestConsole.consoleSuccess.call(this, res, apiIndex)
},
},
Expand Down
10 changes: 4 additions & 6 deletions examples/mini-program-example/src/pages/api/canvas/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
color: #f5f5f5;
background-color: $color-success;
}
.api-page{
padding-top:650px;
}
.canvas {
width: 305px;
height: 280px;
background-color: #f7f7f7;
}
.canvas-main{
.canvas-main {
position: fixed;
top: 0;
padding-left:20px;
display: flex;
justify-content: center;
left:0;
width: 100%;
background: #fff;
z-index: 100;
margin-bottom: 20px;
}
.hide{
display: none;
Expand Down
12 changes: 5 additions & 7 deletions examples/mini-program-example/src/pages/api/canvas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,7 @@ export default class Index extends React.Component {
success: (res) => {
this.initCanvas(apiIndex, async () => {
context.beginPath()
context.drawImage(
res.path,
...Object.values(data)
)
context.drawImage(res.path, ...Object.values(data))
await context.draw()
TestConsole.consoleNormal('CanvasContext-drawImage success ', context)
})
Expand Down Expand Up @@ -388,7 +385,7 @@ export default class Index extends React.Component {
* await context.draw()
* TestConsole.consoleNormal('CanvasContext-drawImage success ', context)
* })
*/
*/
},
},
{
Expand Down Expand Up @@ -887,8 +884,8 @@ export default class Index extends React.Component {
render() {
const { list, canvasId, src } = this.state
return (
<View className='api-page'>
<View className='canvas-main'>
<View>
<View className='canvas-main' style={{ top: '79px' }}>
<Canvas
canvasId={canvasId}
className='canvas'
Expand All @@ -897,6 +894,7 @@ export default class Index extends React.Component {
style='width: 305px; height: 280px;'
></Canvas>
</View>
<View style={{ height: '300px' }}></View>
<View className={`${!src ? 'hide' : 'show'}`}>
<View>Taro.canvasToTempFilePath图片 </View>
<Image className='image-show' src={src}></Image>
Expand Down
53 changes: 49 additions & 4 deletions examples/mini-program-example/src/pages/api/device/scan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import ButtonList from '@/components/buttonList'
import { TestConsole } from '@/util/util'
import './index.scss'

/**
Expand All @@ -14,14 +15,58 @@ export default class Index extends React.Component {
list: [
{
id: 'scanCode',
func: null,
inputData: {
onlyFromCamera: false,
scanType: ['qrCode']
},
func: (apiIndex, data) => {
TestConsole.consoleTest('Taro.scanCode')
Taro.scanCode({
...data,
success: (res) => {
TestConsole.consoleSuccess.call(this, res, apiIndex)
this.setState({
scanResult: res
})
},
fail: (res) => {
TestConsole.consoleFail.call(this, res, apiIndex)
},
complete: (res) => {
TestConsole.consoleComplete.call(this, res, apiIndex)
},
}).then((res) => {
TestConsole.consoleResult.call(this, res, apiIndex)
}).catch((err) => {
TestConsole.consoleDebug('scanCode', err)
})
},
},
],
scanResult: {}
}
render() {
const { list } = this.state
render () {
const { list, scanResult } = this.state
return (
<View className='api-page'>
<View>
<View>
<Text>扫码结果</Text>
{Object.keys(scanResult).length === 0 && (
<View>
<Text>未扫描到内容</Text>
</View>
)}
{Object.keys(scanResult).length !== 0 && (
<View>
<View>
<Text>{'扫码的字符集: ' + scanResult?.charSet}</Text><br />
<Text>{'编码原始数据: ' + scanResult?.rawData}</Text><br />
<Text>{'所扫码的内容: ' + scanResult?.result}</Text><br />
<Text>{'所扫码的类型: ' + scanResult?.scanType}</Text><br />
</View>
</View>
)}
</View>
<ButtonList buttonList={list} />
</View>
)
Expand Down
Loading
Loading