開源中國 2020 年度開源項目評選進行中,感謝社區投票助力, Taro 排名大前端類 Top 3 ,掃碼為 Taro 貢獻者加票鼓勵~
掃碼為 Taro 加票收穫的案例—AI 體驗中心[1] 來自 yun.zhao[2] 提交
歡迎大家提交案例(名稱 + 小程序碼/二維碼),和數萬開發小夥伴分享您的成果,它將出現在 Taro 文檔「案例」頁和 「Taro 社區」公眾號的周報中。
案例提交地址:https://github.com/NervJS/taro-user-cases[3]
ISSUES—上周有 48 個新 issue, 其中 28 個 issue 已經被關閉,20 個 issue 仍然保持打開狀態。
OPEN ISSUES🙋 #7997 textarea autoHeight屬性無效[4], by mingtianyihou33[5]
🙋 #7993 按官網方式全局注入 scss 後,並不能使用用全局的scss變量[6], by mingtianyihou33[7]
🙋 #7981 scrollView scrollIntoView 失效不滾動指定位置[8], by lilingling3[9]
🙋 #7980 如何使用自定義tabBar[10], by bundlejs[11]
🙋 #7975 [支付寶小程序]循環動畫沒有效果[12], by ModyQyW[13]
🙋 #7974 h5 頁面跳轉後,新的頁面沒有滾動到頁面頂部[14], by deng-yc[15]
🙋 #7970 (node:65397) UnhandledPromiseRejectionWarning: Error: 不存在編譯平臺 quickapp[16], by iooops[17]
🙋 #7967 Textarea 組件holdKeyboard 屬性安卓手機無效,蘋果手機可以[18], by wzl153401[19]
🙋 #7965 scrollview滾動卡頓[20], by WirelessSprucetec[21]
🙋 #7962 taro2.2.15編譯babel報錯[22], by zzzimooo[23]
🙋 #7961 Component is not found in path [24], by BurnhamZhang[25]
🙋 #7957 fix(canvas-h5): canvas 同步 API canvasToTempFilePath 節點獲取問題[26], by Ininit[27]
🙋 #7956 chore(deps): bump sass-loader from 6.0.7 to 10.0.5[28], by dependabot-preview bot
🙋 #7953 希望將.npmrc中的https://r.cnpmjs.org/換為https://registry.npm.taobao.org/,國內可能會出現安裝依賴問題[29], by luvletterldl[30]
🙋 #7952 在App裡面用componentDidCatchError監聽不到頁面組件裡的錯誤[31], by laibao101[32]
🙋 #7951 關於eslint-loader沒有根據項目的.eslintrc配置來校驗[33], by xuya227939[34]
🙋 #7950 Nerv項目創建wxcloud模版中eslintrc配置項錯誤[35], by yangguo5062[36]
🙋 #7949 H5跟ant-desgin-mobile不兼容[37], by z782223468[38]
🙋 #7947 H5 React 通過setState改變頁面數據渲染,ScrollView會自動滾動到頂部[39], by SamChangi[40]
🙋 #7943 項目周報 (2020 年 10 月 24 日 - 2020 年 10 月 31 日)[41], by taro-bot2[bot][42]
CLOSED ISSUES🛠 #7996 fix(component): 修復 Swiper 相關的問題[43], by ZakaryCode[44]
🛠 #7995 百度小程序授權button標籤下getUserInfo的回調無法拿到[45], by LiZheGuang[46]
🛠 #7994 Input清除輸入值:通過事件可以清除已經輸入的值[47], by weijunfu[48]
🛠 #7992 [3.1.0-beta.0],無法使用支付寶原生開放組件[49], by persist-xyz[50]
🛠 #7991 docs(guide vuex example): complete vuex example[51], by kuigoo[52]
🛠 #7983 chore(release): publish 3.0.16[53], by Chen-jj[54]
🛠 #7982 taro vue下百度小程序中調試工具中的APPDATA 出現了些奇怪的數據[55], by LiZheGuang[56]
🛠 #7979 fix(h5): 修復 h5 ContentType 重複設置的問題,fix #7972[57], by Chen-jj[58]
🛠 #7978 taro 構建是否支持node api[59], by gsbybb[60]
🛠 #7977 Remove contextualSearch in docusaurus.config.js[61], by DsCodeStudio[62]
🛠 #7976 taro 3.0 中使用swiper時,圖片追加問題[63], by wuyingyi[64]
🛠 #7973 h5 頁面跳轉後,新的頁面沒有滾動到頁面頂部[65], by deng-yc[66]
🛠 #7972 3.0.14升級到3.0.15,h5 taro-request設置post請求設置header的content-type出現重複導致請求不成功[67], by jiangchengzzz[68]
🛠 #7971 fix(shared): 修復 Swiper 不能嵌套調用的問題,fix #7692[69], by Chen-jj[70]
🛠 #7969 taro 3.0 中使用兩層swiper嵌套內層無dom問題[71], by wuyingyi[72]
🛠 #7968 fix(runtime): 修複列表順序變化時,部分列表項點擊事件失效的問題,fix #7227[73], by Chen-jj[74]
🛠 #7966 feat(taro/types): add environment property to getSystemInfo and getSy…[75], by ZeroTo0ne[76]
🛠 #7964 fix(runtime): 修復 vue2 獲取不到 onLaunch 參數的問題[77], by Chen-jj[78]
🛠 #7963 同步小程序屬性[79], by Chen-jj[80]
🛠 #7960 Taro-object[81], by Unclebull[82]
🛠 #7959 modal彈框滾動穿透問題[83], by lunaticYoung[84]
🛠 #7958 代碼邏輯在 Taro2 與 Taro3 中表現不一致[85], by HeiLiu[86]
🛠 #7955 請問Taro如何實現h5多頁打包[87], by hudingwen1989[88]
🛠 #7954 Taro Next 添加 chooseMedia[89], by guanjp[90]
🛠 #7948 H5跟ant-desgin-mobile不兼容[91], by z782223468[92]
🛠 #7946 Taro 2.2.15 微信小程序編譯正常但開發工具打開無法運行提示報錯:TypeError: Cannot assign to read only property Symbol (Symbol.toStringTag)of object Object[93], by polichan[94]
🛠 #7945 Swiper 組件增加對支付寶小程序 onAnimationEnd 事件屬性的支持[95], by b2nil[96]
🛠 #7944 fix(runtime): [react]修復getCurrentInstance().router無法獲取onLaunch參數的問題[97], by hisanshao[98]
PULL REQUESTS—上周有 17 個 pull request 被創建、更新或 merge。
UPDATED PULL REQUEST上周有 9 個 pull request 更新:
❤️ #7935 fix(isNumber): NaN和InFinity在樣式和JSON格式化時均不是有效值[99], by SyMind[100]
❤️ #7956 chore(deps): bump sass-loader from 6.0.7 to 10.0.5, by dependabot-preview bot
❤️ #7942 chore(deps): bump typescript from 3.9.7 to 4.0.5, by dependabot-preview bot
❤️ #7912 chore(deps): bump mini-css-extract-plugin from 0.8.0 to 1.2.0, by dependabot-preview bot
❤️ #7910 chore(deps-dev): bump @types/node from 12.12.62 to 14.14.2, by dependabot-preview bot
❤️ #7850 chore(deps): bump @babel/register from 7.9.0 to 7.12.1, by dependabot-preview bot
❤️ #7706 chore(deps-dev): bump @types/autoprefixer from 9.7.0 to 9.7.2, by dependabot-preview bot
❤️ #7704 chore(deps-dev): bump @types/resolve from 1.14.0 to 1.17.1, by dependabot-preview bot
❤️ #7397 chore(deps-dev): bump @types/detect-port from 1.1.0 to 1.3.0, by dependabot-preview bot
MERGED PULL REQUEST—上周 merge 了 8 個 pull request:
💻 #7944 fix(runtime): [react]修復getCurrentInstance().router無法獲取onLaunch參數的問題[101], by hisanshao[102]
💻 #7933 fix(runtime): fix typo[103], by h-a-n-a[104]
💻 #7983 chore(release): publish 3.0.16[105], by Chen-jj[106]
💻 #7979 fix(h5): 修復 h5 ContentType 重複設置的問題,fix #7972[107], by Chen-jj[108]
💻 #7971 fix(shared): 修復 Swiper 不能嵌套調用的問題,fix #7692[109], by Chen-jj[110]
💻 #7968 fix(runtime): 修複列表順序變化時,部分列表項點擊事件失效的問題,fix #7227[111], by Chen-jj[112]
💻 #7964 fix(runtime): 修復 vue2 獲取不到 onLaunch 參數的問題[113], by Chen-jj[114]
💻 #7963 同步小程序屬性[115], by Chen-jj[116]
COMMITS—上周共有 11 個提交:
🙏 feat(taro/types): add environment property to getSystemInfo and getSystemInfoSync method[117] by no name
🙏 chore(release): publish 3.0.16 (#7983)[118] by Chen-jj[119]
🙏 fix(h5): 修復 h5 ContentType 重複設置的問題,fix #7972[120] by Chen-jj[121]
🙏 fix(shared): 修復 Swiper 不能嵌套調用的問題,fix #7692 (#7971)[122] by Chen-jj[123]
🙏 fix(runtime): 修複列表順序變化時,部分列表項點擊事件失效的問題,fix #7227[124] by Chen-jj[125]
🙏 fix(runtime): 修復 vue2 在獲取不到 onLaunch 參數的問題[126] by Chen-jj[127]
🙏 fix(shared): 同步支付寶屬性,fix #7922[128] by Chen-jj[129]
🙏 fix(api): 同步微信小程序 chooseMedia api,fix #7954[130] by Chen-jj[131]
🙏 fix(api): 同步微信小程序 performance 相關 api,fix #7931[132] by Chen-jj[133]
🙏 fix(runtime): [react]修復小程序端App componentWillMount內使用getCurrentInstance().router無法獲取onLaunch參數的問題[134] by no name
🙏 fix(runtime): fix typo[135] by h-a-n-a[136]
CONTRIBUTORS—上周共有 3 名貢獻者:
:bust_in_silhouette: Chen-jj[137] :bust_in_silhouette: h-a-n-a[138]:bust_in_silhouette: 三少
感謝你們對開源事業做出的貢獻。👍
以上就是本周的項目周報。你可以點擊 weekly-digest[139] 查看往期的項目周報。
參考資料[1]AI 體驗中心: https://github.com/NervJS/taro-user-cases/pull/99
[2]yun.zhao: https://github.com/178518
[3]https://github.com/NervJS/taro-user-cases: https://github.com/NervJS/taro-user-cases
[4]textarea autoHeight屬性無效: https://github.com/NervJS/taro/issues/7997
[5]mingtianyihou33: https://github.com/mingtianyihou33
[6]按官網方式全局注入 scss 後,並不能使用用全局的scss變量: https://github.com/NervJS/taro/issues/7993
[7]mingtianyihou33: https://github.com/mingtianyihou33
[8]scrollView scrollIntoView 失效不滾動指定位置: https://github.com/NervJS/taro/issues/7981
[9]lilingling3: https://github.com/lilingling3
[10]如何使用自定義tabBar: https://github.com/NervJS/taro/issues/7980
[11]bundlejs: https://github.com/bundlejs
[12][支付寶小程序]循環動畫沒有效果: https://github.com/NervJS/taro/issues/7975
[13]ModyQyW: https://github.com/ModyQyW
[14]h5 頁面跳轉後,新的頁面沒有滾動到頁面頂部: https://github.com/NervJS/taro/issues/7974
[15]deng-yc: https://github.com/deng-yc
[16](node:65397) UnhandledPromiseRejectionWarning: Error: 不存在編譯平臺 quickapp: https://github.com/NervJS/taro/issues/7970
[17]iooops: https://github.com/iooops
[18]Textarea 組件holdKeyboard 屬性安卓手機無效,蘋果手機可以: https://github.com/NervJS/taro/issues/7967
[19]wzl153401: https://github.com/wzl153401
[20]scrollview滾動卡頓: https://github.com/NervJS/taro/issues/7965
[21]WirelessSprucetec: https://github.com/WirelessSprucetec
[22]taro2.2.15編譯babel報錯: https://github.com/NervJS/taro/issues/7962
[23]zzzimooo: https://github.com/zzzimooo
[24]Component is not found in path : https://github.com/NervJS/taro/issues/7961
[25]BurnhamZhang: https://github.com/BurnhamZhang
[26]fix(canvas-h5): canvas 同步 API canvasToTempFilePath 節點獲取問題: https://github.com/NervJS/taro/pull/7957
[27]Ininit: https://github.com/Ininit
[28]chore(deps): bump sass-loader from 6.0.7 to 10.0.5: https://github.com/NervJS/taro/pull/7956
[29]希望將.npmrc中的https://r.cnpmjs.org/換為https://registry.npm.taobao.org/,國內可能會出現安裝依賴問題: https://github.com/NervJS/taro/issues/7953
[30]luvletterldl: https://github.com/luvletterldl
[31]在App裡面用componentDidCatchError監聽不到頁面組件裡的錯誤: https://github.com/NervJS/taro/issues/7952
[32]laibao101: https://github.com/laibao101
[33]關於eslint-loader沒有根據項目的.eslintrc配置來校驗: https://github.com/NervJS/taro/issues/7951
[34]xuya227939: https://github.com/xuya227939
[35]Nerv項目創建wxcloud模版中eslintrc配置項錯誤: https://github.com/NervJS/taro/issues/7950
[36]yangguo5062: https://github.com/yangguo5062
[37]H5跟ant-desgin-mobile不兼容: https://github.com/NervJS/taro/issues/7949
[38]z782223468: https://github.com/z782223468
[39]H5 React 通過setState改變頁面數據渲染,ScrollView會自動滾動到頂部: https://github.com/NervJS/taro/issues/7947
[40]SamChangi: https://github.com/SamChangi
[41]項目周報 (2020 年 10 月 24 日 - 2020 年 10 月 31 日): https://github.com/NervJS/taro/issues/7943
[42]taro-bot2[bot]: https://github.com/apps/taro-bot2
[43]fix(component): 修復 Swiper 相關的問題: https://github.com/NervJS/taro/pull/7996
[44]ZakaryCode: https://github.com/ZakaryCode
[45]百度小程序授權button標籤下getUserInfo的回調無法拿到: https://github.com/NervJS/taro/issues/7995
[46]LiZheGuang: https://github.com/LiZheGuang
[47]Input清除輸入值:通過事件可以清除已經輸入的值: https://github.com/NervJS/taro/issues/7994
[48]weijunfu: https://github.com/weijunfu
[49][3.1.0-beta.0],無法使用支付寶原生開放組件: https://github.com/NervJS/taro/issues/7992
[50]persist-xyz: https://github.com/persist-xyz
[51]docs(guide vuex example): complete vuex example: https://github.com/NervJS/taro/pull/7991
[52]kuigoo: https://github.com/kuigoo
[53]chore(release): publish 3.0.16: https://github.com/NervJS/taro/pull/7983
[54]Chen-jj: https://github.com/Chen-jj
[55]taro vue下百度小程序中調試工具中的APPDATA 出現了些奇怪的數據: https://github.com/NervJS/taro/issues/7982
[56]LiZheGuang: https://github.com/LiZheGuang
[57]fix(h5): 修復 h5 ContentType 重複設置的問題,fix #7972: https://github.com/NervJS/taro/pull/7979
[58]Chen-jj: https://github.com/Chen-jj
[59]taro 構建是否支持node api: https://github.com/NervJS/taro/issues/7978
[60]gsbybb: https://github.com/gsbybb
[61]Remove contextualSearch in docusaurus.config.js: https://github.com/NervJS/taro/pull/7977
[62]DsCodeStudio: https://github.com/DsCodeStudio
[63]taro 3.0 中使用swiper時,圖片追加問題: https://github.com/NervJS/taro/issues/7976
[64]wuyingyi: https://github.com/wuyingyi
[65]h5 頁面跳轉後,新的頁面沒有滾動到頁面頂部: https://github.com/NervJS/taro/issues/7973
[66]deng-yc: https://github.com/deng-yc
[67]3.0.14升級到3.0.15,h5 taro-request設置post請求設置header的content-type出現重複導致請求不成功: https://github.com/NervJS/taro/issues/7972
[68]jiangchengzzz: https://github.com/jiangchengzzz
[69]fix(shared): 修復 Swiper 不能嵌套調用的問題,fix #7692: https://github.com/NervJS/taro/pull/7971
[70]Chen-jj: https://github.com/Chen-jj
[71]taro 3.0 中使用兩層swiper嵌套內層無dom問題: https://github.com/NervJS/taro/issues/7969
[72]wuyingyi: https://github.com/wuyingyi
[73]fix(runtime): 修複列表順序變化時,部分列表項點擊事件失效的問題,fix #7227: https://github.com/NervJS/taro/pull/7968
[74]Chen-jj: https://github.com/Chen-jj
[75]feat(taro/types): add environment property to getSystemInfo and getSy…: https://github.com/NervJS/taro/pull/7966
[76]ZeroTo0ne: https://github.com/ZeroTo0ne
[77]fix(runtime): 修復 vue2 獲取不到 onLaunch 參數的問題: https://github.com/NervJS/taro/pull/7964
[78]Chen-jj: https://github.com/Chen-jj
[79]同步小程序屬性: https://github.com/NervJS/taro/pull/7963
[80]Chen-jj: https://github.com/Chen-jj
[81]Taro-object: https://github.com/NervJS/taro/issues/7960
[82]Unclebull: https://github.com/Unclebull
[83]modal彈框滾動穿透問題: https://github.com/NervJS/taro/issues/7959
[84]lunaticYoung: https://github.com/lunaticYoung
[85]代碼邏輯在 Taro2 與 Taro3 中表現不一致: https://github.com/NervJS/taro/issues/7958
[86]HeiLiu: https://github.com/HeiLiu
[87]請問Taro如何實現h5多頁打包: https://github.com/NervJS/taro/issues/7955
[88]hudingwen1989: https://github.com/hudingwen1989
[89]Taro Next 添加 chooseMedia: https://github.com/NervJS/taro/issues/7954
[90]guanjp: https://github.com/guanjp
[91]H5跟ant-desgin-mobile不兼容: https://github.com/NervJS/taro/issues/7948
[92]z782223468: https://github.com/z782223468
[93]Taro 2.2.15 微信小程序編譯正常但開發工具打開無法運行提示報錯:TypeError: Cannot assign to read only property Symbol (Symbol.toStringTag)of object Object: https://github.com/NervJS/taro/issues/7946
[94]polichan: https://github.com/polichan
[95]Swiper 組件增加對支付寶小程序 onAnimationEnd 事件屬性的支持: https://github.com/NervJS/taro/issues/7945
[96]b2nil: https://github.com/b2nil
[97]fix(runtime): [react]修復getCurrentInstance().router無法獲取onLaunch參數的問題: https://github.com/NervJS/taro/pull/7944
[98]hisanshao: https://github.com/hisanshao
[99]fix(isNumber): NaN和InFinity在樣式和JSON格式化時均不是有效值: https://github.com/NervJS/taro/pull/7935
[100]SyMind: https://github.com/SyMind
[101]fix(runtime): [react]修復getCurrentInstance().router無法獲取onLaunch參數的問題: https://github.com/NervJS/taro/pull/7944
[102]hisanshao: https://github.com/hisanshao
[103]fix(runtime): fix typo: https://github.com/NervJS/taro/pull/7933
[104]h-a-n-a: https://github.com/h-a-n-a
[105]chore(release): publish 3.0.16: https://github.com/NervJS/taro/pull/7983
[106]Chen-jj: https://github.com/Chen-jj
[107]fix(h5): 修復 h5 ContentType 重複設置的問題,fix #7972: https://github.com/NervJS/taro/pull/7979
[108]Chen-jj: https://github.com/Chen-jj
[109]fix(shared): 修復 Swiper 不能嵌套調用的問題,fix #7692: https://github.com/NervJS/taro/pull/7971
[110]Chen-jj: https://github.com/Chen-jj
[111]fix(runtime): 修複列表順序變化時,部分列表項點擊事件失效的問題,fix #7227: https://github.com/NervJS/taro/pull/7968
[112]Chen-jj: https://github.com/Chen-jj
[113]fix(runtime): 修復 vue2 獲取不到 onLaunch 參數的問題: https://github.com/NervJS/taro/pull/7964
[114]Chen-jj: https://github.com/Chen-jj
[115]同步小程序屬性: https://github.com/NervJS/taro/pull/7963
[116]Chen-jj: https://github.com/Chen-jj
[117]feat(taro/types): add environment property to getSystemInfo and getSystemInfoSync method: https://github.com/NervJS/taro/commit/29091367b99c893071eaa7ad5d4729fbb7df041d
[118]chore(release): publish 3.0.16 (#7983): https://github.com/NervJS/taro/commit/8d9d3c1e60a75b24ce7b5142c4b5dbc290c432d1
[119]Chen-jj: https://github.com/Chen-jj
[120]fix(h5): 修復 h5 ContentType 重複設置的問題,fix #7972: https://github.com/NervJS/taro/commit/3dc07ac6e0bc6e7ff285185a426c09c2740b7b16
[121]Chen-jj: https://github.com/Chen-jj
[122]fix(shared): 修復 Swiper 不能嵌套調用的問題,fix #7692 (#7971): https://github.com/NervJS/taro/commit/4f12112e2e3a97869b039b9b137ff520aa1b5a96
[123]Chen-jj: https://github.com/Chen-jj
[124]fix(runtime): 修複列表順序變化時,部分列表項點擊事件失效的問題,fix #7227: https://github.com/NervJS/taro/commit/817ac153a9d9731372cc8e981f2cc1f6676a5a7f
[125]Chen-jj: https://github.com/Chen-jj
[126]fix(runtime): 修復 vue2 在獲取不到 onLaunch 參數的問題: https://github.com/NervJS/taro/commit/b0caa0ebce27aa035c227c219bae0e30c86783da
[127]Chen-jj: https://github.com/Chen-jj
[128]fix(shared): 同步支付寶屬性,fix #7922: https://github.com/NervJS/taro/commit/4f64b7136fe34b14ecc53d8a91459f348a3c876a
[129]Chen-jj: https://github.com/Chen-jj
[130]fix(api): 同步微信小程序 chooseMedia api,fix #7954: https://github.com/NervJS/taro/commit/7d3490bb3cb62856c0a42deabae7917e077a8e42
[131]Chen-jj: https://github.com/Chen-jj
[132]fix(api): 同步微信小程序 performance 相關 api,fix #7931: https://github.com/NervJS/taro/commit/b463abffba54e847aee7b6b75dbb160768877a25
[133]Chen-jj: https://github.com/Chen-jj
[134]fix(runtime): [react]修復小程序端App componentWillMount內使用getCurrentInstance().router無法獲取onLaunch參數的問題: https://github.com/NervJS/taro/commit/d37b3c8ee9e2a54909a0acf926e75966b620f1bd
[135]fix(runtime): fix typo: https://github.com/NervJS/taro/commit/9393072731150126d7beccdac932d3333671ae17
[136]h-a-n-a: https://github.com/h-a-n-a
[137]Chen-jj: https://github.com/Chen-jj
[138]h-a-n-a: https://github.com/h-a-n-a
[139]weekly-digest: https://github.com/NervJS/taro/issues?q=is%3Aissue+label%3Aweekly-digest