From ab16093710b03fbec18e97ad66f722bfc419de2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E9=B2=AB=E9=9B=AA=E7=8B=90?= <139336664+ArcticFoxPro@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20TIM=20=E7=8C=9C=E7=89=88?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E8=85=BE=E8=AE=AF=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=AE=9D=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96=20(#12)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 优化TIM猜版功能并调整组件属性顺序 修改了TIM猜版页面的布局,添加了主版本号和小版本号输入框,以便用户输入TIM的版本信息。同时,调整了部分组件的属性顺序以保持代码规范性,并在index.json中启用了页面滚动禁止与新增了所需组件。 * 更新版本号至1.1.4并优化TIM版本列表处理 修改了关于页面中的版本号显示为1.1.4,同时在JavaScript代码中添加条件判断以优化TIM版本列表处理,避免首个为空修正项的情况。 * 上游更新 * 上游更新 * 新增提取URL功能模块及实验性功能页面 - 添加了extract-urls模块,用于识别字符串中的URL并提供转换功能。 - 更新index页面,加入实验性功能按钮及弹窗,包含腾讯应用宝更新获取等实验选项。 - 实现获取不同应用下载直链的功能,并处理相关异步请求逻辑。 - 调整按钮样式和布局,优化界面显示。 * refactor(index): 优化腾讯应用宝更新获取流程 重构了app.wxss和index.js中的代码,以改善腾讯应用宝更新获取的UI和UX。在index.wxml中添加了新的弹出窗口,用于显示腾讯应用宝返回的内容,并优化了相关功能的实现逻辑。此外,调整了导航栏组件的代码结构。 - 重构腾讯应用宝更新获取的逻辑,简化了多次代码重复,提高了代码的可维护性。 - 新增了处理腾讯应用宝返回内容的弹出窗口,使用户能够查看和复制返回的链接和JSON数据。 - 优化了获取更新链接的函数,通过switch-case语句提高了代码的清晰度和可扩展性。- 对app.wxss中的样式进行了微调,以修复文字断行的问题,并提升了页面的整洁度。- 在index.wxml中,更新了按钮的样式和行为,以支持新的弹出窗口操作。 - 确保了所有修改都遵循了现有的代码模式,并且优化了部分代码的可读性和性能。 * 在首页的TIM猜版和腾讯应用宝更新获取功能区域,增加了警告提示的NoticeBar组件,以提醒用户注意潜在的稳定性风险。 * 文档更新和实验性功能披露更新了QQ版本列表Lite用户协议和README文档,以反映新的实验性功能和支持。用户协议现在包含关于AndroidQQ和AndroidTIM版本列表查看的说明,以及通过腾讯服务器获取下载链接的枚举法猜测。此外,增强了未成年人个人信息保护条款,并披露了实验性功能的风险。同时,对实验性功能做了详细描述,包括如何访问和使用腾讯应用宝更新获取功能,以及相关稳定性风险的警告。这些改动旨在确保用户明确了解新功能及其潜在风险。 另外,调整了应用的域名白名单,以支持新的下载链接格式。 此次更新需注意,用户需同意新的用户协议版本以继续使用应用。 * 更新README中商标声明以反映新提及的商标 增加了对“腾讯 TIM”“Weixin”“腾讯微信”“企业微信”“WeCom”“应用宝”和“腾讯应用宝”等商标的引用,以确保所有相关商标都得到适当的承认和法律保护。此更改旨在明确和扩大商标使用透明度,保持与腾讯知识产权政策的合规性。 * 更新商标声明,增加TDesign提及 --- .gitignore | 1 + README.md | 39 ++- UserAgreement.md | 69 +++-- source/app.js | 2 +- source/app.wxss | 2 - source/miniprogram_npm/dayjs/index.js | 4 +- source/miniprogram_npm/extract-urls/index.js | 34 +++ .../miniprogram_npm/extract-urls/index.js.map | 1 + source/miniprogram_npm/semver/index.js | 172 ++++++------ .../action-sheet/action-sheet.d.ts | 3 + .../tdesign-miniprogram/action-sheet/props.js | 9 +- .../action-sheet/type.d.ts | 3 + .../avatar-group/avatar-group.d.ts | 2 +- .../avatar-group/avatar-group.js | 13 +- .../avatar-group/avatar-group.json | 2 +- .../avatar-group/avatar-group.wxml | 3 +- .../avatar-group/avatar-group.wxss | 245 ++++++++++------ .../tdesign-miniprogram/avatar-group/props.js | 8 +- .../avatar-group/type.d.ts | 13 +- .../avatar/README.en-US.md | 67 +++-- .../tdesign-miniprogram/avatar/README.md | 72 +++-- .../tdesign-miniprogram/avatar/avatar.d.ts | 2 - .../tdesign-miniprogram/avatar/avatar.js | 10 +- .../tdesign-miniprogram/avatar/avatar.json | 2 +- .../tdesign-miniprogram/avatar/avatar.wxml | 4 +- .../tdesign-miniprogram/avatar/avatar.wxs | 6 +- .../tdesign-miniprogram/avatar/avatar.wxss | 12 +- .../tdesign-miniprogram/avatar/props.js | 6 +- .../tdesign-miniprogram/avatar/type.d.ts | 13 +- .../back-top/README.en-US.md | 20 +- .../tdesign-miniprogram/back-top/README.md | 23 +- .../tdesign-miniprogram/back-top/props.js | 23 +- .../tdesign-miniprogram/back-top/type.d.ts | 30 +- .../tdesign-miniprogram/badge/README.en-US.md | 17 +- .../tdesign-miniprogram/badge/README.md | 23 +- .../tdesign-miniprogram/badge/badge.d.ts | 2 - .../tdesign-miniprogram/badge/badge.js | 19 +- .../tdesign-miniprogram/badge/badge.wxml | 4 +- .../tdesign-miniprogram/badge/badge.wxss | 25 +- .../button/README.en-US.md | 83 +++--- .../tdesign-miniprogram/button/README.md | 79 +++--- .../tdesign-miniprogram/button/props.js | 86 +++--- .../tdesign-miniprogram/button/type.d.ts | 91 +++--- .../cascader/README.en-US.md | 7 +- .../tdesign-miniprogram/cascader/README.md | 9 +- .../tdesign-miniprogram/cascader/cascader.js | 8 +- .../tdesign-miniprogram/cell/README.en-US.md | 41 ++- .../tdesign-miniprogram/cell/README.md | 50 ++-- .../tdesign-miniprogram/cell/props.js | 3 - .../tdesign-miniprogram/cell/type.d.ts | 17 -- .../tdesign-miniprogram/check-tag/props.js | 3 - .../tdesign-miniprogram/check-tag/type.d.ts | 4 - .../checkbox/README.en-US.md | 26 +- .../tdesign-miniprogram/checkbox/README.md | 30 +- .../tdesign-miniprogram/col/README.en-US.md | 6 + .../tdesign-miniprogram/col/README.md | 10 +- .../collapse-panel/collapse-panel.d.ts | 3 + .../collapse-panel/collapse-panel.js | 7 +- .../collapse-panel/props.js | 4 +- .../collapse/README.en-US.md | 30 +- .../tdesign-miniprogram/collapse/README.md | 31 ++- .../tdesign-miniprogram/common/common.d.ts | 1 + .../common/style/theme/_font.wxss | 33 ++- .../common/style/theme/_index.wxss | 33 ++- .../tdesign-miniprogram/common/wechat.js | 3 +- .../count-down/README.en-US.md | 21 +- .../tdesign-miniprogram/count-down/README.md | 26 +- .../tdesign-miniprogram/count-down/props.js | 2 + .../tdesign-miniprogram/count-down/type.d.ts | 5 +- .../date-time-picker/props.js | 2 +- .../divider/README.en-US.md | 18 +- .../tdesign-miniprogram/divider/README.md | 18 +- .../tdesign-miniprogram/divider/props.js | 7 - .../tdesign-miniprogram/divider/type.d.ts | 8 - .../dropdown-item/dropdown-item.d.ts | 8 - .../dropdown-item/props.js | 4 - .../dropdown-item/type.d.ts | 8 - .../dropdown-menu/README.en-US.md | 34 ++- .../dropdown-menu/README.md | 38 +-- .../dropdown-menu/props.js | 3 - .../dropdown-menu/type.d.ts | 4 - .../tdesign-miniprogram/empty/README.en-US.md | 20 +- .../tdesign-miniprogram/empty/README.md | 22 +- .../tdesign-miniprogram/empty/type.d.ts | 4 - .../tdesign-miniprogram/fab/README.en-US.md | 5 +- .../tdesign-miniprogram/fab/README.md | 5 +- .../fab/draggable/draggable.js | 6 +- .../tdesign-miniprogram/fab/fab.d.ts | 2 +- .../tdesign-miniprogram/fab/fab.js | 16 +- .../tdesign-miniprogram/fab/props.js | 10 +- .../tdesign-miniprogram/fab/type.d.ts | 10 +- .../tdesign-miniprogram/footer/README.md | 2 +- .../tdesign-miniprogram/footer/props.js | 4 - .../tdesign-miniprogram/footer/type.d.ts | 4 - .../tdesign-miniprogram/grid-item/props.js | 3 - .../tdesign-miniprogram/grid-item/type.d.ts | 11 +- .../tdesign-miniprogram/grid/README.en-US.md | 46 ++- .../tdesign-miniprogram/grid/README.md | 37 +-- .../tdesign-miniprogram/grid/props.js | 3 - .../tdesign-miniprogram/grid/type.d.ts | 8 - .../tdesign-miniprogram/guide/README.en-US.md | 4 +- .../tdesign-miniprogram/guide/README.md | 4 +- .../tdesign-miniprogram/icon/README.en-US.md | 26 ++ .../tdesign-miniprogram/icon/README.md | 36 ++- .../tdesign-miniprogram/icon/props.js | 7 +- .../tdesign-miniprogram/icon/type.d.ts | 16 +- .../image-viewer/README.en-US.md | 17 +- .../image-viewer/README.md | 15 +- .../image-viewer/image-viewer.d.ts | 2 +- .../image-viewer/image-viewer.js | 10 +- .../image-viewer/image-viewer.wxml | 1 + .../tdesign-miniprogram/image/README.en-US.md | 29 +- .../tdesign-miniprogram/image/README.md | 25 +- .../tdesign-miniprogram/image/image.js | 4 +- .../tdesign-miniprogram/image/image.wxml | 98 +++---- .../tdesign-miniprogram/image/image.wxss | 9 +- .../tdesign-miniprogram/image/props.js | 11 +- .../tdesign-miniprogram/image/type.d.ts | 16 +- .../indexes-anchor/props.js | 3 - .../indexes-anchor/type.d.ts | 8 - .../indexes/README.en-US.md | 16 +- .../tdesign-miniprogram/indexes/README.md | 23 +- .../tdesign-miniprogram/indexes/props.js | 4 - .../tdesign-miniprogram/indexes/type.d.ts | 16 -- .../tdesign-miniprogram/input/README.en-US.md | 88 +++--- .../tdesign-miniprogram/input/README.md | 82 +++--- .../tdesign-miniprogram/input/props.js | 161 +++++------ .../tdesign-miniprogram/input/type.d.ts | 166 +++++------ .../tdesign-miniprogram/link/README.en-US.md | 30 +- .../tdesign-miniprogram/link/README.md | 31 ++- .../tdesign-miniprogram/link/props.js | 19 +- .../tdesign-miniprogram/link/type.d.ts | 20 +- .../loading/README.en-US.md | 17 +- .../tdesign-miniprogram/loading/README.md | 18 +- .../message/README.en-US.md | 38 ++- .../tdesign-miniprogram/message/README.md | 37 +-- .../tdesign-miniprogram/message/props.js | 26 +- .../tdesign-miniprogram/message/type.d.ts | 42 +-- .../notice-bar/README.en-US.md | 35 ++- .../tdesign-miniprogram/notice-bar/README.md | 34 ++- .../tdesign-miniprogram/notice-bar/props.js | 10 +- .../tdesign-miniprogram/notice-bar/type.d.ts | 29 +- .../overlay/README.en-US.md | 31 +-- .../tdesign-miniprogram/overlay/overlay.d.ts | 5 +- .../tdesign-miniprogram/overlay/props.js | 8 - .../tdesign-miniprogram/overlay/type.d.ts | 8 - .../picker-item/picker-item.d.ts | 3 +- .../picker-item/picker-item.js | 3 + .../picker-item/picker-item.wxml | 1 + .../tdesign-miniprogram/popup/README.en-US.md | 5 +- .../tdesign-miniprogram/popup/README.md | 7 +- .../tdesign-miniprogram/popup/props.js | 5 +- .../tdesign-miniprogram/popup/type.d.ts | 5 +- .../progress/README.en-US.md | 7 +- .../tdesign-miniprogram/progress/README.md | 7 +- .../progress/progress.d.ts | 4 - .../tdesign-miniprogram/progress/progress.js | 20 +- .../progress/progress.wxml | 2 +- .../tdesign-miniprogram/progress/type.d.ts | 8 +- .../pull-down-refresh/README.en-US.md | 1 - .../pull-down-refresh/README.md | 5 +- .../tdesign-miniprogram/radio-group/props.js | 12 +- .../radio-group/radio-group.d.ts | 2 +- .../radio-group/radio-group.wxml | 4 +- .../tdesign-miniprogram/radio-group/type.d.ts | 16 +- .../tdesign-miniprogram/radio/README.en-US.md | 48 ++-- .../tdesign-miniprogram/radio/README.md | 50 ++-- .../tdesign-miniprogram/radio/props.js | 21 +- .../tdesign-miniprogram/radio/radio.d.ts | 26 +- .../tdesign-miniprogram/radio/radio.js | 6 +- .../tdesign-miniprogram/radio/radio.wxss | 12 +- .../tdesign-miniprogram/radio/type.d.ts | 26 +- .../tdesign-miniprogram/rate/README.md | 2 +- .../result/README.en-US.md | 2 +- .../tdesign-miniprogram/result/README.md | 2 +- .../tdesign-miniprogram/result/result.wxss | 2 +- .../tdesign-miniprogram/search/README.md | 3 +- .../tdesign-miniprogram/search/props.js | 2 + .../tdesign-miniprogram/search/type.d.ts | 2 + .../side-bar-item/type.d.ts | 4 +- .../side-bar/README.en-US.md | 14 +- .../tdesign-miniprogram/side-bar/README.md | 18 +- .../skeleton/README.en-US.md | 4 +- .../tdesign-miniprogram/skeleton/README.md | 4 +- .../tdesign-miniprogram/skeleton/type.d.ts | 2 +- .../slider/README.en-US.md | 30 +- .../tdesign-miniprogram/slider/README.md | 27 +- .../tdesign-miniprogram/slider/props.js | 7 +- .../tdesign-miniprogram/slider/slider.js | 2 +- .../tdesign-miniprogram/slider/type.d.ts | 8 - .../tdesign-miniprogram/step-item/props.js | 7 - .../tdesign-miniprogram/step-item/type.d.ts | 12 - .../tdesign-miniprogram/stepper/stepper.d.ts | 2 +- .../tdesign-miniprogram/steps/README.en-US.md | 34 ++- .../tdesign-miniprogram/steps/README.md | 29 +- .../tdesign-miniprogram/steps/props.js | 7 - .../tdesign-miniprogram/steps/type.d.ts | 8 - .../sticky/README.en-US.md | 11 +- .../tdesign-miniprogram/sticky/README.md | 13 +- .../tdesign-miniprogram/sticky/props.js | 5 +- .../tdesign-miniprogram/sticky/type.d.ts | 12 +- .../swipe-cell/swipe-cell.wxss | 2 +- .../swiper/README.en-US.md | 33 ++- .../tdesign-miniprogram/swiper/README.md | 29 +- .../switch/README.en-US.md | 18 +- .../tdesign-miniprogram/switch/README.md | 19 +- .../tdesign-miniprogram/switch/props.js | 4 +- .../tdesign-miniprogram/switch/switch.d.ts | 2 +- .../tdesign-miniprogram/switch/type.d.ts | 6 +- .../tab-bar-item/type.d.ts | 8 +- .../tab-bar/README.en-US.md | 24 +- .../tdesign-miniprogram/tab-bar/README.md | 24 +- .../tdesign-miniprogram/tab-bar/props.js | 1 - .../tdesign-miniprogram/tab-bar/type.d.ts | 4 - .../tdesign-miniprogram/tab-panel/props.js | 5 - .../tdesign-miniprogram/tab-panel/type.d.ts | 4 - .../tdesign-miniprogram/tabs/README.en-US.md | 30 +- .../tdesign-miniprogram/tabs/README.md | 28 +- .../tdesign-miniprogram/tabs/tabs.js | 5 + .../tdesign-miniprogram/tag/README.en-US.md | 6 +- .../tdesign-miniprogram/tag/README.md | 10 +- .../textarea/README.en-US.md | 38 ++- .../tdesign-miniprogram/textarea/README.md | 49 ++-- .../tdesign-miniprogram/textarea/props.js | 72 ++--- .../tdesign-miniprogram/textarea/type.d.ts | 76 ++--- .../tdesign-miniprogram/toast/README.en-US.md | 4 +- .../tdesign-miniprogram/toast/README.md | 6 +- .../tdesign-miniprogram/toast/props.js | 5 +- .../tdesign-miniprogram/toast/type.d.ts | 2 +- .../transition/README.en-US.md | 15 + .../tdesign-miniprogram/transition/README.md | 29 +- .../tdesign-miniprogram/transition/props.js | 10 +- .../tdesign-miniprogram/transition/type.d.ts | 12 +- .../tdesign-miniprogram/transition/type.js | 1 - .../tree-select/README.en-US.md | 11 +- .../tdesign-miniprogram/tree-select/README.md | 15 +- .../tdesign-miniprogram/tree-select/type.d.ts | 4 - .../upload/README.en-US.md | 35 +-- .../tdesign-miniprogram/upload/README.md | 31 ++- .../tdesign-miniprogram/upload/props.js | 10 +- .../tdesign-miniprogram/upload/type.d.ts | 28 +- source/node_modules/.yarn-integrity | 10 +- .../tdesign-miniprogram/CHANGELOG.md | 21 ++ .../action-sheet/action-sheet.d.ts | 3 + .../miniprogram_dist/action-sheet/props.js | 9 +- .../miniprogram_dist/action-sheet/type.d.ts | 3 + .../avatar-group/avatar-group.d.ts | 2 +- .../avatar-group/avatar-group.js | 13 +- .../avatar-group/avatar-group.json | 2 +- .../avatar-group/avatar-group.wxml | 3 +- .../avatar-group/avatar-group.wxss | 245 ++++++++++------ .../miniprogram_dist/avatar-group/props.js | 8 +- .../miniprogram_dist/avatar-group/type.d.ts | 13 +- .../miniprogram_dist/avatar/README.en-US.md | 67 +++-- .../miniprogram_dist/avatar/README.md | 72 +++-- .../miniprogram_dist/avatar/avatar.d.ts | 2 - .../miniprogram_dist/avatar/avatar.js | 10 +- .../miniprogram_dist/avatar/avatar.json | 2 +- .../miniprogram_dist/avatar/avatar.wxml | 4 +- .../miniprogram_dist/avatar/avatar.wxs | 6 +- .../miniprogram_dist/avatar/avatar.wxss | 12 +- .../miniprogram_dist/avatar/props.js | 6 +- .../miniprogram_dist/avatar/type.d.ts | 13 +- .../miniprogram_dist/back-top/README.en-US.md | 20 +- .../miniprogram_dist/back-top/README.md | 23 +- .../miniprogram_dist/back-top/props.js | 23 +- .../miniprogram_dist/back-top/type.d.ts | 30 +- .../miniprogram_dist/badge/README.en-US.md | 17 +- .../miniprogram_dist/badge/README.md | 23 +- .../miniprogram_dist/badge/badge.d.ts | 2 - .../miniprogram_dist/badge/badge.js | 19 +- .../miniprogram_dist/badge/badge.wxml | 4 +- .../miniprogram_dist/badge/badge.wxss | 25 +- .../miniprogram_dist/button/README.en-US.md | 83 +++--- .../miniprogram_dist/button/README.md | 79 +++--- .../miniprogram_dist/button/props.js | 86 +++--- .../miniprogram_dist/button/type.d.ts | 91 +++--- .../miniprogram_dist/cascader/README.en-US.md | 7 +- .../miniprogram_dist/cascader/README.md | 9 +- .../miniprogram_dist/cascader/cascader.js | 8 +- .../miniprogram_dist/cell/README.en-US.md | 41 ++- .../miniprogram_dist/cell/README.md | 50 ++-- .../miniprogram_dist/cell/props.js | 3 - .../miniprogram_dist/cell/type.d.ts | 17 -- .../miniprogram_dist/check-tag/props.js | 3 - .../miniprogram_dist/check-tag/type.d.ts | 4 - .../miniprogram_dist/checkbox/README.en-US.md | 26 +- .../miniprogram_dist/checkbox/README.md | 30 +- .../miniprogram_dist/col/README.en-US.md | 6 + .../miniprogram_dist/col/README.md | 10 +- .../collapse-panel/collapse-panel.d.ts | 3 + .../collapse-panel/collapse-panel.js | 7 +- .../miniprogram_dist/collapse-panel/props.js | 4 +- .../miniprogram_dist/collapse/README.en-US.md | 30 +- .../miniprogram_dist/collapse/README.md | 31 ++- .../miniprogram_dist/common/common.d.ts | 1 + .../common/style/theme/_font.wxss | 33 ++- .../common/style/theme/_index.wxss | 33 ++- .../miniprogram_dist/common/wechat.js | 3 +- .../count-down/README.en-US.md | 21 +- .../miniprogram_dist/count-down/README.md | 26 +- .../miniprogram_dist/count-down/props.js | 2 + .../miniprogram_dist/count-down/type.d.ts | 5 +- .../date-time-picker/props.js | 2 +- .../miniprogram_dist/divider/README.en-US.md | 18 +- .../miniprogram_dist/divider/README.md | 18 +- .../miniprogram_dist/divider/props.js | 7 - .../miniprogram_dist/divider/type.d.ts | 8 - .../dropdown-item/dropdown-item.d.ts | 8 - .../miniprogram_dist/dropdown-item/props.js | 4 - .../miniprogram_dist/dropdown-item/type.d.ts | 8 - .../dropdown-menu/README.en-US.md | 34 ++- .../miniprogram_dist/dropdown-menu/README.md | 38 +-- .../miniprogram_dist/dropdown-menu/props.js | 3 - .../miniprogram_dist/dropdown-menu/type.d.ts | 4 - .../miniprogram_dist/empty/README.en-US.md | 20 +- .../miniprogram_dist/empty/README.md | 22 +- .../miniprogram_dist/empty/type.d.ts | 4 - .../miniprogram_dist/fab/README.en-US.md | 5 +- .../miniprogram_dist/fab/README.md | 5 +- .../fab/draggable/draggable.js | 6 +- .../miniprogram_dist/fab/fab.d.ts | 2 +- .../miniprogram_dist/fab/fab.js | 16 +- .../miniprogram_dist/fab/props.js | 10 +- .../miniprogram_dist/fab/type.d.ts | 10 +- .../miniprogram_dist/footer/README.md | 2 +- .../miniprogram_dist/footer/props.js | 4 - .../miniprogram_dist/footer/type.d.ts | 4 - .../miniprogram_dist/grid-item/props.js | 3 - .../miniprogram_dist/grid-item/type.d.ts | 11 +- .../miniprogram_dist/grid/README.en-US.md | 46 ++- .../miniprogram_dist/grid/README.md | 37 +-- .../miniprogram_dist/grid/props.js | 3 - .../miniprogram_dist/grid/type.d.ts | 8 - .../miniprogram_dist/guide/README.en-US.md | 4 +- .../miniprogram_dist/guide/README.md | 4 +- .../miniprogram_dist/icon/README.md | 36 ++- .../miniprogram_dist/icon/props.js | 7 +- .../miniprogram_dist/icon/type.d.ts | 16 +- .../image-viewer/README.en-US.md | 17 +- .../miniprogram_dist/image-viewer/README.md | 15 +- .../image-viewer/image-viewer.d.ts | 2 +- .../image-viewer/image-viewer.js | 10 +- .../image-viewer/image-viewer.wxml | 1 + .../miniprogram_dist/image/README.en-US.md | 29 +- .../miniprogram_dist/image/README.md | 25 +- .../miniprogram_dist/image/image.js | 4 +- .../miniprogram_dist/image/image.wxml | 98 +++---- .../miniprogram_dist/image/image.wxss | 9 +- .../miniprogram_dist/image/props.js | 11 +- .../miniprogram_dist/image/type.d.ts | 16 +- .../miniprogram_dist/indexes-anchor/props.js | 3 - .../miniprogram_dist/indexes-anchor/type.d.ts | 8 - .../miniprogram_dist/indexes/README.en-US.md | 16 +- .../miniprogram_dist/indexes/README.md | 23 +- .../miniprogram_dist/indexes/props.js | 4 - .../miniprogram_dist/indexes/type.d.ts | 16 -- .../miniprogram_dist/input/README.en-US.md | 88 +++--- .../miniprogram_dist/input/README.md | 82 +++--- .../miniprogram_dist/input/props.js | 161 +++++------ .../miniprogram_dist/input/type.d.ts | 166 +++++------ .../miniprogram_dist/link/README.en-US.md | 30 +- .../miniprogram_dist/link/README.md | 31 ++- .../miniprogram_dist/link/props.js | 19 +- .../miniprogram_dist/link/type.d.ts | 20 +- .../miniprogram_dist/loading/README.en-US.md | 17 +- .../miniprogram_dist/loading/README.md | 18 +- .../miniprogram_dist/message/README.en-US.md | 38 ++- .../miniprogram_dist/message/README.md | 37 +-- .../miniprogram_dist/message/props.js | 26 +- .../miniprogram_dist/message/type.d.ts | 42 +-- .../notice-bar/README.en-US.md | 35 ++- .../miniprogram_dist/notice-bar/README.md | 34 ++- .../miniprogram_dist/notice-bar/props.js | 10 +- .../miniprogram_dist/notice-bar/type.d.ts | 29 +- .../miniprogram_dist/overlay/README.en-US.md | 31 +-- .../miniprogram_dist/overlay/overlay.d.ts | 5 +- .../miniprogram_dist/overlay/props.js | 8 - .../miniprogram_dist/overlay/type.d.ts | 8 - .../picker-item/picker-item.d.ts | 3 +- .../picker-item/picker-item.js | 3 + .../picker-item/picker-item.wxml | 1 + .../miniprogram_dist/popup/README.en-US.md | 5 +- .../miniprogram_dist/popup/README.md | 7 +- .../miniprogram_dist/popup/props.js | 5 +- .../miniprogram_dist/popup/type.d.ts | 5 +- .../miniprogram_dist/progress/README.en-US.md | 7 +- .../miniprogram_dist/progress/README.md | 7 +- .../miniprogram_dist/progress/progress.d.ts | 4 - .../miniprogram_dist/progress/progress.js | 20 +- .../miniprogram_dist/progress/progress.wxml | 2 +- .../miniprogram_dist/progress/type.d.ts | 8 +- .../pull-down-refresh/README.en-US.md | 1 - .../pull-down-refresh/README.md | 5 +- .../miniprogram_dist/radio-group/props.js | 12 +- .../radio-group/radio-group.d.ts | 2 +- .../radio-group/radio-group.wxml | 4 +- .../miniprogram_dist/radio-group/type.d.ts | 16 +- .../miniprogram_dist/radio/README.en-US.md | 48 ++-- .../miniprogram_dist/radio/README.md | 50 ++-- .../miniprogram_dist/radio/props.js | 21 +- .../miniprogram_dist/radio/radio.d.ts | 26 +- .../miniprogram_dist/radio/radio.js | 6 +- .../miniprogram_dist/radio/radio.wxss | 12 +- .../miniprogram_dist/radio/type.d.ts | 26 +- .../miniprogram_dist/rate/README.md | 2 +- .../miniprogram_dist/result/README.en-US.md | 2 +- .../miniprogram_dist/result/README.md | 2 +- .../miniprogram_dist/result/result.wxss | 2 +- .../miniprogram_dist/search/README.md | 3 +- .../miniprogram_dist/search/props.js | 2 + .../miniprogram_dist/search/type.d.ts | 2 + .../miniprogram_dist/side-bar-item/type.d.ts | 4 +- .../miniprogram_dist/side-bar/README.en-US.md | 14 +- .../miniprogram_dist/side-bar/README.md | 18 +- .../miniprogram_dist/skeleton/README.en-US.md | 4 +- .../miniprogram_dist/skeleton/README.md | 4 +- .../miniprogram_dist/skeleton/type.d.ts | 2 +- .../miniprogram_dist/slider/README.en-US.md | 30 +- .../miniprogram_dist/slider/README.md | 27 +- .../miniprogram_dist/slider/props.js | 7 +- .../miniprogram_dist/slider/slider.js | 2 +- .../miniprogram_dist/slider/type.d.ts | 8 - .../miniprogram_dist/step-item/props.js | 7 - .../miniprogram_dist/step-item/type.d.ts | 12 - .../miniprogram_dist/stepper/stepper.d.ts | 2 +- .../miniprogram_dist/steps/README.en-US.md | 34 ++- .../miniprogram_dist/steps/README.md | 29 +- .../miniprogram_dist/steps/props.js | 7 - .../miniprogram_dist/steps/type.d.ts | 8 - .../miniprogram_dist/sticky/README.en-US.md | 11 +- .../miniprogram_dist/sticky/README.md | 13 +- .../miniprogram_dist/sticky/props.js | 5 +- .../miniprogram_dist/sticky/type.d.ts | 12 +- .../swipe-cell/swipe-cell.wxss | 2 +- .../miniprogram_dist/swiper/README.en-US.md | 33 ++- .../miniprogram_dist/swiper/README.md | 29 +- .../miniprogram_dist/switch/README.en-US.md | 18 +- .../miniprogram_dist/switch/README.md | 19 +- .../miniprogram_dist/switch/props.js | 4 +- .../miniprogram_dist/switch/switch.d.ts | 2 +- .../miniprogram_dist/switch/type.d.ts | 6 +- .../miniprogram_dist/tab-bar-item/type.d.ts | 8 +- .../miniprogram_dist/tab-bar/README.en-US.md | 24 +- .../miniprogram_dist/tab-bar/README.md | 24 +- .../miniprogram_dist/tab-bar/props.js | 1 - .../miniprogram_dist/tab-bar/type.d.ts | 4 - .../miniprogram_dist/tab-panel/props.js | 5 - .../miniprogram_dist/tab-panel/type.d.ts | 4 - .../miniprogram_dist/tabs/README.en-US.md | 30 +- .../miniprogram_dist/tabs/README.md | 28 +- .../miniprogram_dist/tabs/tabs.js | 5 + .../miniprogram_dist/tag/README.en-US.md | 6 +- .../miniprogram_dist/tag/README.md | 10 +- .../miniprogram_dist/textarea/README.en-US.md | 38 ++- .../miniprogram_dist/textarea/README.md | 49 ++-- .../miniprogram_dist/textarea/props.js | 72 ++--- .../miniprogram_dist/textarea/type.d.ts | 76 ++--- .../miniprogram_dist/toast/README.en-US.md | 4 +- .../miniprogram_dist/toast/README.md | 6 +- .../miniprogram_dist/toast/props.js | 5 +- .../miniprogram_dist/toast/type.d.ts | 2 +- .../miniprogram_dist/transition/README.md | 29 +- .../miniprogram_dist/transition/props.js | 10 +- .../miniprogram_dist/transition/type.d.ts | 12 +- .../miniprogram_dist/transition/type.js | 1 - .../tree-select/README.en-US.md | 11 +- .../miniprogram_dist/tree-select/README.md | 15 +- .../miniprogram_dist/tree-select/type.d.ts | 4 - .../miniprogram_dist/upload/README.en-US.md | 35 +-- .../miniprogram_dist/upload/README.md | 31 ++- .../miniprogram_dist/upload/props.js | 10 +- .../miniprogram_dist/upload/type.d.ts | 28 +- .../tdesign-miniprogram/package.json | 2 +- source/package.json | 1 + source/pages/index/index.js | 263 ++++++++++++++++-- source/pages/index/index.json | 26 +- source/pages/index/index.wxml | 173 ++++++++++-- source/pages/index/index.wxss | 2 +- source/utils/util.js | 11 +- source/yarn.lock | 9 +- 481 files changed, 5391 insertions(+), 4278 deletions(-) create mode 100644 source/miniprogram_npm/extract-urls/index.js create mode 100644 source/miniprogram_npm/extract-urls/index.js.map create mode 100644 source/miniprogram_npm/tdesign-miniprogram/icon/README.en-US.md create mode 100644 source/miniprogram_npm/tdesign-miniprogram/transition/README.en-US.md diff --git a/.gitignore b/.gitignore index 0aff694..efdeec6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ source/project.miniapp.json /source/.idea .DS_Store /source/.vscode +/source/node_modules diff --git a/README.md b/README.md index 342b8c5..a9106dd 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ QQ 版本列表 Lite for WeChat MiniProgram 是一个使用 TDesign 组件库构 2. 下载仓库源代码,并解压到本地。 3. [前往微信公众平台注册微信小程序开发者账号](https://mp.weixin.qq.com/cgi-bin/wx),取得 `AppID`(小程序需配置域名白名单,测试号无法实现这一点)。 4. 在 [微信公众平台](https://mp.weixin.qq.com/)-开发管理-服务器域名 中,将以下域名导入微信小程序 request 合法域名: - ``` - https://dldir1.qq.com;https://download.z.weixin.qq.com;https://downv6.qq.com;https://im.qq.com;https://static.tdesign.tencent.com;https://tcb-api.tencentcloudapi.com; - ``` + ``` + https://csydown.ll.tcdnos.com;https://dldir1.qq.com;https://download.z.weixin.qq.com;https://downv6.qq.com;https://im.qq.com;https://imtt.dd.qq.com;https://static.tdesign.tencent.com;https://tcb-api.tencentcloudapi.com;https://upage.html5.qq.com; + ``` 5. 下载[微信小程序开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html),登录后点击“小程序”-“导入”,填入上一步取得的 `AppID`,将 `<仓库源代码解压目录>/source` 目录选中后导入。 6. 点击微信小程序开发者工具上方“预览”按钮并使用手机扫码,即可使用 QQ 版本列表 Lite for WeChat MiniProgram。 @@ -114,6 +114,8 @@ QQ 版本列表 Lite for WeChat MiniProgram 是一个使用 TDesign 组件库构 若当次访问未果,默认情况下将按照设置逻辑自动递增小版本号后再次尝试访问,直到访问成功为止。 +访问成功后,软件会弹出成功对话框,对话框下方提供了一系列动作按钮,分别是“仅停止”、“跳过以继续”和“复制并停止”。 + > [!TIP] > QQ 版本列表 Lite 自 1.1.0 版本起实验性支持了 Android 微信和 Android 微信输入法的猜版。 > @@ -128,11 +130,31 @@ QQ 版本列表 Lite for WeChat MiniProgram 是一个使用 TDesign 组件库构 > `https://download.z.weixin.qq.com/app/android/<主版本号>/wxkb_<直链版本号>_32.apk` > > 填入相应输入框内容后,小程序将尝试访问上述链接。若当次访问未果,默认情况下将自动递增直链版本号后再次尝试访问,直到访问成功为止。 + +> [!TIP] +> QQ 版本列表 Lite 自 1.1.4 版本起实验性支持了 Android TIM 的猜版。 +> +> 若选择 TIM 猜版,对应的直链为: > -> 访问成功后,软件会弹出成功对话框,对话框下方提供了一系列动作按钮,分别是“仅停止”、“跳过以继续”和“复制并停止”。 +> `https://downv6.qq.com/qqweb/QQ_1/android_apk/TIM_<主版本号>.<小版本号><自定义后缀>.apk` +> +> 填入相应输入框内容后,软件将尝试访问上述链接。若当次访问未果,默认情况下将自动递增小版本号后再次尝试访问,直到访问成功为止。 > [!WARNING] -> 微信猜版功能和微信输入法猜版功能为 QQ 版本列表 Lite 附带的实验性功能,可能存在不可预知的稳定性问题。请明确并确保自身具备足够的风险识别和承受能力。 +> 微信猜版功能、微信输入法猜版功能和 TIM 猜版功能为 QQ 版本列表 Lite 附带的实验性功能,可能存在不可预知的稳定性问题。请明确并确保自身具备足够的风险识别和承受能力。 + +### 实验性功能 + +> [!IMPORTANT] +> QQ 版本列表 Lite 可能以软件实验形式提供一些尚不稳定的服务,此类服务会明确标注“实验性”(或其的其它语言形式)。您使用此类服务即代表您已明确并确保自身具备足够的风险识别和承受能力。因使用此类实验性服务而可能产生的任何直接或间接损失、损害以及其它不利后果,QQ 版本列表 Lite 不承担责任。 + +在 QQ 版本列表 Lite 界面,点击底部锥形瓶按钮即可进入实验性功能对话框。 + +#### 腾讯应用宝更新获取(实验性) + +QQ、TIM、微信、企业微信、微信输入法使用腾讯应用宝([腾讯应用开放平台](https://app.open.qq.com/))分发软件最新安装包。可使用 QQ 版本列表 Lite 提供的腾讯应用宝更新获取(实验性)获取 QQ、TIM、微信、企业微信、微信输入法最新腾讯应用宝上架版本安装包下载直链。 + +在 QQ 版本列表 Lite 界面,点击底部三角旗按钮即可看到“腾讯应用宝更新获取(实验性)”选项,点击即可进入“腾讯应用宝更新获取(实验性)”对话框。之后按提示进行操作即可。 ## 常见问题 @@ -158,7 +180,7 @@ QQ 版本列表 Lite for WeChat MiniProgram 仅供学习交流使用,不提供 > QQ 版本列表 Lite 始终坚守法律底线,秉持尊重与保护所有用户及第三方合法权益的原则。我们深切认识到任何可能存在的权益侵犯行为都会对权益方造成潜在影响,对此,我们表示由衷歉意,并承诺,一旦接到权益方的权益受到侵犯的通知,我们将立即依法启动核查程序,并在确认侵权事实后,迅速采取有效措施,以最大程度地消除不良影响,恢复并保障权益方的合法权益。敬请相关权益方在发现 QQ 版本列表 Lite 存在任何侵权内容时,及时与我们取得联系,我们将竭诚为权益方提供必要的协助与支持。 > [!NOTE] -> “腾讯”“QQ”“腾讯 QQ”“微信”“WeChat”“微信输入法”“WeType”“TDesign”是深圳市腾讯计算机系统有限公司和/或其关联公司的商标。本应用对“腾讯”“QQ”“腾讯 QQ”“微信”“WeChat”“微信输入法”“WeType”“TDesign”的使用旨在注明和指向对应主体,并非表示对“腾讯”“QQ”“腾讯 QQ”“微信”“WeChat”“微信输入法”“WeType”“TDesign”商标的注册和拥有。 +> “腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“TDesign”等是深圳市腾讯计算机系统有限公司和/或其关联公司的商标。本项目对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“TDesign”等的使用旨在注明和指向对应主体,并非表示对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“TDesign”等商标的注册和拥有。 > [!NOTE] > Android™ 是 Google LLC 的商标。 @@ -179,6 +201,11 @@ QQ 版本列表 Lite 的诞生离不开以下开源项目,感谢以下开源 - [TDesign Icons(Tencent)](https://github.com/Tencent/tdesign-icons),Licensed under [MIT License](https://github.com/Tencent/tdesign-icons/blob/develop/LICENSE) - [Node.js®(OpenJS Foundation)](https://nodejs.org/),Licensed under [MIT License](https://github.com/nodejs/node/blob/main/LICENSE) - [Semver(npm)](https://github.com/npm/node-semver),Licensed under [ISC License](https://github.com/npm/node-semver/blob/main/LICENSE) +- [extract-urls(Max Ranauro)](https://github.com/huckbit/extract-urls),Licensed under [MIT License](https://github.com/huckbit/extract-urls/blob/master/license) + +## 星标趋势 + +[![星标趋势](https://starchart.cc/ArcticFoxPro/QQVersionListTool-WeChatMiniProgram.svg?variant=adaptive)](https://starchart.cc/ArcticFoxPro/QQVersionListTool-WeChatMiniProgram) ## 星标趋势 diff --git a/UserAgreement.md b/UserAgreement.md index 0ba8047..f5d8fa9 100644 --- a/UserAgreement.md +++ b/UserAgreement.md @@ -1,32 +1,32 @@ # QQ 版本列表 Lite 用户协议 -> 此用户协议于 2024 年 3 月 23 日修订,并于 2024 年 3 月 24 日实施。 +> 此用户协议于 2024 年 9 月 29 日修订,并于 2024 年 10 月 1 日实施。 ## 导言 欢迎您使用 QQ 版本列表 Lite。 -QQ 版本列表 Lite 提供的服务是指提供 QQ 版本列表的查看。QQ 版本列表 Lite 用户可以通过本应用及时获取到 QQ 版本更新的最新信息。 - 为使用 QQ 版本列表 Lite 及服务,您应当阅读并遵守《QQ 版本列表 Lite 用户协议》(以下简称“本协议”)。请您务必审慎阅读,充分理解各条款内容,特别是免除或者限制责任的条款,以及开通或使用某项服务的单独协议,并选择接受或不接受。限制、免责条款可能以加粗形式提示您注意。 -除非您已阅读并接受本协议所有条款,否则您无权获取和使用 QQ 版本列表 Lite 及相关服务。您的任何使用本应用行为即视为您已阅读并同意上述协议的约束。如果您未满 18 周岁,请在法定监护人的陪同下阅读本协议及其他上述协议,并特别注意未成年人使用条款。 +除非您已阅读并接受本协议所有条款,否则您无权获取和使用 QQ 版本列表 Lite 及相关服务。您的任何使用本应用行为即视为您已阅读并同意上述协议的约束。如果您未满 18 周岁,请在法定监护人的陪同下阅读本协议及其它上述协议,并特别注意未成年人使用条款。 ## 一、协议的范围 -本协议是您与 QQ 版本列表 Lite 之间关于您下载,安装,使用,复制 QQ 版本列表 Lite ,以及使用 QQ 版本列表 Lite 相关服务所订立的协议。 +本协议是您与 QQ 版本列表 Lite 之间关于您下载,安装,使用,复制 QQ 版本列表 Lite,以及使用 QQ 版本列表 Lite 相关服务所订立的协议。 ## 二、关于 QQ 版本列表 Lite 提供的服务 -QQ 版本列表 Lite 提供的服务是指提供 QQ 版本列表的查看。QQ 版本列表 Lite 用户可以通过本应用及时获取到 QQ 版本更新的最新信息。 +QQ 版本列表 Lite 提供的服务是指提供 Android QQ 和 Android TIM 版本列表的查看和对腾讯服务器提供的 Android QQ 及其它可能存在的腾讯软件产品的下载链接的枚举法猜测。QQ 版本列表 Lite 用户可以通过本应用及时获取到 Android QQ 及其它可能存在的腾讯软件产品的版本更新的最新信息。 + +此外,QQ 版本列表 Lite 可能以软件实验形式提供一些尚不稳定的服务,您在使用此类服务时,必须明确并确保自身具备足够的风险识别和承受能力。 ## 三、软件的获取 -您可以直接从 GitHub 获取 QQ 版本列表 Lite 本体及其源代码。 +您可以直接从 GitHub 平台获取 QQ 版本列表 Lite 本体及其附带开源许可和知识产权相关文本的源代码。获取应用后,您需要按照该应用提示的步骤正确使用。 -如果您从未经 GitHub 或相关官方平台获取本应用,QQ 版本列表 Lite 无法保证该应用能够正常使用,并对因此给您造成的损失不予负责。获取应用后,您需要按照该应用提示的步骤正确使用。 +如果您从未经 GitHub 或相关官方平台获取本应用,QQ 版本列表 Lite 无法保证该应用能够正常使用,并对因此给您造成的损失不予负责。 -如果您不再需要使用 QQ 版本列表 Lite ,可以不再打开应用使用或卸载应用。 +如果您不再需要使用 QQ 版本列表 Lite,可以不再打开应用使用或卸载应用。 ## 四、软件的更新 @@ -38,32 +38,36 @@ QQ 版本列表 Lite 新版本发布后,旧版本的软件可能无法使用 ## 五、用户个人信息保护 -保护用户个人信息是 QQ 版本列表 Lite 的一项基本原则,QQ 版本列表 Lite 本身不会主动收集您的个人信息。 +保护用户个人信息是 QQ 版本列表 Lite 的一项基本原则,QQ 版本列表 Lite 本身不会主动获取和存储您的个人信息。 + +但在您使用过程中,可能会因网络通信的必要性而被软件本体或腾讯服务器自动获取您的 IP 地址等网络相关信息,我们将严格遵守法律法规的规定,并采取适当措施保护您的网络信息安全。 -但在您使用过程中,可能会因网络通信的必要性自动获取您的 IP 地址等网络相关信息,我们将严格遵守法律法规的规定,并采取适当措施保护您的网络信息安全。 +QQ 版本列表 Lite 可能以软件实验形式提供一些尚不稳定的服务,用户在使用此类实验性服务时可能需要用户手动填写个人信息。QQ 版本列表 Lite 承诺不会获取和存储您填写的任何个人信息。 -QQ 版本列表 Lite 非常重视对未成年人个人信息的保护。若您是 18 周岁以下的未成年人,在使用 QQ 版本列表 Lite 的服务前,应事先取得您家长或法定监护人的书面同意。 +QQ 版本列表 Lite 非常重视对未成年人个人信息的保护。若您是 18 周岁(不含)以下的未成年人,在使用 QQ 版本列表 Lite 的服务前,应事先取得您的法定监护人的书面同意。 ## 六、主权力义务条款 -用户注意事项:您的理解并同意,为了向您提供有效的服务,您在此许可 QQ 版本列表 Lite 利用您移动通讯终端设备的处理器和宽带等资源。QQ 版本列表 Lite 使用过程中可能产生的数据流量的费用,您需自行向运营商了解相关资费信息。 +您理解并同意,为了向您提供有效的服务,您在此许可 QQ 版本列表 Lite 利用您移动通讯终端设备的处理器和宽带等资源。QQ 版本列表 Lite 使用过程中可能产生的数据流量的费用,您需自行向运营商了解相关资费信息。 + +QQ 版本列表 Lite 可能以软件实验形式提供一些尚不稳定的服务,此类服务会明确标注“实验性”(或其的其它语言形式)。您使用此类服务即代表您已明确并确保自身具备足够的风险识别和承受能力。 ## 七、用户行为规范 -您充分了解并同意使用本应用服务时须遵守法律法规,不得利用 QQ 版本列表 Lite 从事违法违规行为,包括但不限: +您充分了解并同意使用本应用服务时须遵守法律法规,不得利用 QQ 版本列表 Lite 从事违法违规行为,包括但不限于: 1. 发布、传送、传播、储存危害国家安全统一、破坏社会稳定、违反公序良俗、侮辱、诽谤、淫秽、暴力以及任何违反国家法律法规的内容; 2. 发布、传送、传播、储存侵害他人知识产权、商业秘密等合法权利的内容; 3. 恶意虚构事实、隐瞒真相以误导、欺骗他人; 4. 发布、传送、传播广告信息及垃圾信息; 5. 将 QQ 版本列表 Lite 用于任何未经许可的商业目的,包括但不限于以营利为目的推广、销售产品或服务; -6. 其他法律法规禁止的行为。 +6. 其它法律法规禁止的行为。 -如果用户违反了本条约定,相关国家机关、机构、公司或个人等实体可能会对用户提起诉讼、罚款或采取其他制裁措施,并要求 QQ 版本列表 Lite 给予协助。造成损害的,用户应依法予以赔偿,QQ 版本列表 Lite 不承担任何责任。 +如果用户违反了本条约定,相关国家机关、机构、公司或个人等实体可能会对用户提起诉讼、罚款或采取其它制裁措施,并要求 QQ 版本列表 Lite 给予协助。造成损害的,用户应依法予以赔偿,QQ 版本列表 Lite 不承担任何责任。 如果 QQ 版本列表 Lite 发现或收到他人举报您发布的信息违反本条约定,QQ 版本列表 Lite 有权进行独立判断并采取技术手段予以删除、屏蔽或断开链接。同时,QQ 版本列表 Lite 有权视用户行为性质采取包括但不限于暂停或终止服务,限制、冻结或终止 QQ 版本列表 Lite 使用,追究法律责任等措施。 -用户违反本条约定,导致任何第三方损害的,用户应当独立承担责任; QQ 版本列表 Lite 因此遭受损失的,用户也应当一并赔偿。 +用户违反本条约定,导致任何第三方损害的,用户应当独立承担责任;QQ 版本列表 Lite 因此遭受损失的,用户也应当一并赔偿。 ## 八、软件使用规范 @@ -73,41 +77,48 @@ QQ 版本列表 Lite 非常重视对未成年人个人信息的保护。若您 您充分了解并同意: -QQ 版本列表 Lite 仅为用户提供 QQ 版本信息展示服务,所有版本信息均来源于腾讯官方服务器。对于信息的有效性、可用性以及由此产生的任何问题,QQ 版本列表 Lite 不承担责任。 +QQ 版本列表 Lite 仅为用户提供 Android QQ 和 Android TIM 版本信息展示和上述产品及其它可能存在的腾讯软件产品的官方版本获取服务,所有下载链接均来源于腾讯官方服务器。对于链接的有效性、可用性以及任何由腾讯官方服务器产生或导致的任何问题,QQ 版本列表 Lite 不承担责任。 + +鉴于 QQ、TIM 和其它任意腾讯软件产品的测试版本可能存在不可预知的稳定性问题,您在下载及使用任何腾讯软件产品的任何测试版本即代表您已明确并确保自身具备足够的风险识别和承受能力。您明确并同意其使用任何腾讯软件产品的任何测试版本所存在的风险将完全由其本人和/或其法定责任主体承担,QQ 版本列表 Lite 对此不承担任何责任。 -除 QQ 版本列表 Lite 注明之用户协议外,其它因不当使用本应用而导致的任何意外、疏忽、合约毁坏、诽谤、版权或其他知识产权侵犯及其所造成的任何损失,本应用概不负责,亦不承担任何法律责任。 +QQ 版本列表 Lite 可能以软件实验形式提供一些尚不稳定的服务,此类服务会明确标注“实验性”(或其的其它语言形式)。您使用此类服务即代表您已明确并确保自身具备足够的风险识别和承受能力。因使用此类实验性服务而可能产生的任何直接或间接损失、损害以及其它不利后果,QQ 版本列表 Lite 不承担责任。 -对于因不可抗力或因黑客攻击、通讯线路中断等 QQ 版本列表 Lite 不能控制的原因造成的网络服务中断或其他缺陷,导致用户不能正常使用本应用,QQ 版本列表 Lite 不承担任何责任,但将尽力减少因此给用户造成的损失或影响。 +除 QQ 版本列表 Lite 注明之用户协议外,其它因不当使用本应用而导致的任何意外、疏忽、合约毁坏、诽谤、版权或其它知识产权侵犯及其所造成的任何损失,QQ 版本列表 Lite 概不负责,亦不承担任何法律责任。 -本协议未涉及的问题请参见国家有关法律法规,当本协议与国家有关法律法规冲突时,以国家法律法规为准。本条所述之免责条款并不影响用户根据适用法律享有的法定权利。 +对于因不可抗力或因黑客攻击、通讯线路中断等 QQ 版本列表 Lite 不能控制的原因造成的网络服务中断或其它缺陷,导致用户不能正常使用本应用,QQ 版本列表 Lite 不承担任何责任,但将尽力减少因此给用户造成的损失或影响。 -## 十、其他 +本协议未涉及的问题请参见中华人民共和国相关适用法律法规,当本协议与中华人民共和国相关适用法律法规冲突时,以中华人民共和国相关适用法律法规为准。本条所述之免责条款并不影响用户根据适用法律享有的法定权利。 -您使用 QQ 版本列表 Lite 即视为您已阅读并同意接受 QQ 版本列表 Lite 协议的约束。QQ 版本列表 Lite 有权在必要时修改本协议条款。如果您不接受修改后的条款,应当停止使用 QQ 版本列表 Lite 。 +## 十、其它 -QQ 版本列表 Lite 有权随时修改本协议,并将在应用内显著位置或通过电子邮件等方式通知用户。修订后的协议自公布之日起在一定期限后生效,请用户定期查看相关公告,继续使用本应用即视为同意接受修订后的协议。 +您使用 QQ 版本列表 Lite 即视为您已阅读并同意接受 QQ 版本列表 Lite 协议的约束。QQ 版本列表 Lite 有权在必要时修改本协议条款。如果您不接受修改后的条款,应当停止使用 QQ 版本列表 Lite。 + +QQ 版本列表 Lite 有权随时修改本协议,并将在应用内显著位置弹窗通知用户。修订后的协议自公布之日起在一定期限后生效,请用户定期查看相关公告,继续使用本应用即视为同意接受修订后的协议。 QQ 版本列表 Lite 基于 木兰公共许可证, 第2版 许可证开放源代码。 本应用与深圳市腾讯计算机系统有限公司和/或其关联公司无关。 -“QQ”“腾讯 QQ”“腾讯”“微信”“WeChat”是深圳市腾讯计算机系统有限公司和/或其关联公司的商标。本应用对“QQ”“腾讯 QQ”“腾讯”“微信”“WeChat”的使用旨在注明和指向对应主体,并非表示对“QQ”、“腾讯 QQ”、“腾讯”、“微信”、“WeChat”商标的注册和拥有。 +“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“TDesign”等是深圳市腾讯计算机系统有限公司和/或其关联公司的商标。本项目对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“TDesign”等的使用旨在注明和指向对应主体,并非表示对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“TDesign”等商标的注册和拥有。 Android™ 是 Google LLC 的商标。 +GITHUB® 是 GitHub, Inc. 在美国和其他国家或地区的商标或注册商标。 + 本协议的签订地是中华人民共和国上海市。 -本协议适用中华人民共和国法律,如果双方发生纠纷,应友好协商解决;如协商不成,您同意将纠纷提交给签订地具有管辖权的法院提起诉讼。 +本协议适用中华人民共和国相关适用法律法规。如果双方发生纠纷,应友好协商解决;如协商不成,您同意将纠纷提交给签订地具有管辖权的法院提起诉讼。 -本协议中的某些条款因故无法适用,则本协议的其他条款继续适用且无法适用的条款将会被修改,以便其能够依法适用。 +本协议中的某些条款因故无法适用,则本协议的其它条款继续适用且无法适用的条款将会被修改,以便其能够依法适用。 本协议是您和 QQ 版本列表 Lite 之间关于本产品相关事项的最终的、完整的、排他的协议,且取代和合并之前当事人关于此类事项(包括任何形式的最终用户许可、开放源代码许可、服务条款和隐私政策)的讨论和协议。 每部分的标题只为阅读之便而无任何法律或合同义务。 +本协议可能存在多种语言版本。各语言版本之间如有不一致之处,以中文版本为准。 + 除非我们书面同意,您不得转让本协议所规定的权利义务。任何违反上述规定企图转让的行为均无效。在法律许可的范围内,QQ 版本列表 Lite 对本协议享有最终解释权。 QQ 版本列表 Lite -2024 年 3 月 23 日 - +2024 年 9 月 29 日 diff --git a/source/app.js b/source/app.js index 172dd46..ac66acf 100644 --- a/source/app.js +++ b/source/app.js @@ -15,6 +15,6 @@ App({ onLaunch() { }, globalData: { - EARLIEST_ACCESSIBILITY_VERSION: false, EARLIEST_QQNT_FRAMEWORK_VERSION_STABLE: "8.9.63" + UA_VERSION: 2, EARLIEST_ACCESSIBILITY_VERSION: false, EARLIEST_QQNT_FRAMEWORK_VERSION_STABLE: "8.9.63" } }) \ No newline at end of file diff --git a/source/app.wxss b/source/app.wxss index ea19650..e3c81d9 100644 --- a/source/app.wxss +++ b/source/app.wxss @@ -50,8 +50,6 @@ content: '\e92c'; } - - .t-result__description { word-break: break-word; } diff --git a/source/miniprogram_npm/dayjs/index.js b/source/miniprogram_npm/dayjs/index.js index a9220d4..a354ffc 100644 --- a/source/miniprogram_npm/dayjs/index.js +++ b/source/miniprogram_npm/dayjs/index.js @@ -4,10 +4,10 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; -__DEFINE__(1724471559022, function(require, module, exports) { +__DEFINE__(1727076815118, function(require, module, exports) { !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) { + const regexp = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()'@:%_\+.~#?!&//=]*)/gi; + const bracketsRegexp = /[()]|\.$/g; + + if (typeof str !== 'string') { + throw new TypeError(`The str argument should be a string, got ${typeof str}`); + } + + if (str) { + let urls = str.match(regexp); + if (urls) { + return lower ? urls.map((item) => item.toLowerCase().replace(bracketsRegexp, '')) : urls.map((item) => item.replace(bracketsRegexp, '')); + } else { + undefined; + } + } else { + undefined; + } +}; + +}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); }) +return __REQUIRE__(1727076815119); +})() +//miniprogram-npm-outsideDeps=[] +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/source/miniprogram_npm/extract-urls/index.js.map b/source/miniprogram_npm/extract-urls/index.js.map new file mode 100644 index 0000000..4ae4577 --- /dev/null +++ b/source/miniprogram_npm/extract-urls/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.js","sourcesContent":["\n\nmodule.exports = (str, lower = false) => {\n const regexp = /https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,63}\\b([-a-zA-Z0-9()'@:%_\\+.~#?!&//=]*)/gi;\n const bracketsRegexp = /[()]|\\.$/g;\n\n if (typeof str !== 'string') {\n throw new TypeError(`The str argument should be a string, got ${typeof str}`);\n }\n\n if (str) {\n let urls = str.match(regexp);\n if (urls) {\n return lower ? urls.map((item) => item.toLowerCase().replace(bracketsRegexp, '')) : urls.map((item) => item.replace(bracketsRegexp, ''));\n } else {\n undefined;\n }\n } else {\n undefined;\n }\n};\n"]} \ No newline at end of file diff --git a/source/miniprogram_npm/semver/index.js b/source/miniprogram_npm/semver/index.js index 400c0e4..fdd0522 100644 --- a/source/miniprogram_npm/semver/index.js +++ b/source/miniprogram_npm/semver/index.js @@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; -__DEFINE__(1724471559023, function(require, module, exports) { +__DEFINE__(1727076815120, function(require, module, exports) { // just pre-load all the stuff that index.js lazily exports const internalRe = require('./internal/re') const constants = require('./internal/constants') @@ -95,8 +95,8 @@ module.exports = { rcompareIdentifiers: identifiers.rcompareIdentifiers, } -}, function(modId) {var map = {"./internal/re":1724471559024,"./internal/constants":1724471559025,"./classes/semver":1724471559027,"./internal/identifiers":1724471559029,"./functions/parse":1724471559030,"./functions/valid":1724471559031,"./functions/clean":1724471559032,"./functions/inc":1724471559033,"./functions/diff":1724471559034,"./functions/major":1724471559035,"./functions/minor":1724471559036,"./functions/patch":1724471559037,"./functions/prerelease":1724471559038,"./functions/compare":1724471559039,"./functions/rcompare":1724471559040,"./functions/compare-loose":1724471559041,"./functions/compare-build":1724471559042,"./functions/sort":1724471559043,"./functions/rsort":1724471559044,"./functions/gt":1724471559045,"./functions/lt":1724471559046,"./functions/eq":1724471559047,"./functions/neq":1724471559048,"./functions/gte":1724471559049,"./functions/lte":1724471559050,"./functions/cmp":1724471559051,"./functions/coerce":1724471559052,"./classes/comparator":1724471559053,"./classes/range":1724471559054,"./functions/satisfies":1724471559056,"./ranges/to-comparators":1724471559057,"./ranges/max-satisfying":1724471559058,"./ranges/min-satisfying":1724471559059,"./ranges/min-version":1724471559060,"./ranges/valid":1724471559061,"./ranges/outside":1724471559062,"./ranges/gtr":1724471559063,"./ranges/ltr":1724471559064,"./ranges/intersects":1724471559065,"./ranges/simplify":1724471559066,"./ranges/subset":1724471559067}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559024, function(require, module, exports) { +}, function(modId) {var map = {"./internal/re":1727076815121,"./internal/constants":1727076815122,"./classes/semver":1727076815124,"./internal/identifiers":1727076815126,"./functions/parse":1727076815127,"./functions/valid":1727076815128,"./functions/clean":1727076815129,"./functions/inc":1727076815130,"./functions/diff":1727076815131,"./functions/major":1727076815132,"./functions/minor":1727076815133,"./functions/patch":1727076815134,"./functions/prerelease":1727076815135,"./functions/compare":1727076815136,"./functions/rcompare":1727076815137,"./functions/compare-loose":1727076815138,"./functions/compare-build":1727076815139,"./functions/sort":1727076815140,"./functions/rsort":1727076815141,"./functions/gt":1727076815142,"./functions/lt":1727076815143,"./functions/eq":1727076815144,"./functions/neq":1727076815145,"./functions/gte":1727076815146,"./functions/lte":1727076815147,"./functions/cmp":1727076815148,"./functions/coerce":1727076815149,"./classes/comparator":1727076815150,"./classes/range":1727076815151,"./functions/satisfies":1727076815153,"./ranges/to-comparators":1727076815154,"./ranges/max-satisfying":1727076815155,"./ranges/min-satisfying":1727076815156,"./ranges/min-version":1727076815157,"./ranges/valid":1727076815158,"./ranges/outside":1727076815159,"./ranges/gtr":1727076815160,"./ranges/ltr":1727076815161,"./ranges/intersects":1727076815162,"./ranges/simplify":1727076815163,"./ranges/subset":1727076815164}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815121, function(require, module, exports) { const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, @@ -315,8 +315,8 @@ createToken('STAR', '(<|>)?=?\\s*\\*') createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$') createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$') -}, function(modId) { var map = {"./constants":1724471559025,"./debug":1724471559026}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559025, function(require, module, exports) { +}, function(modId) { var map = {"./constants":1727076815122,"./debug":1727076815123}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815122, function(require, module, exports) { // Note: this is the semver.org version of the spec that it implements // Not necessarily the package version of this code. const SEMVER_SPEC_VERSION = '2.0.0' @@ -354,7 +354,7 @@ module.exports = { } }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559026, function(require, module, exports) { +__DEFINE__(1727076815123, function(require, module, exports) { const debug = ( typeof process === 'object' && process.env && @@ -366,7 +366,7 @@ const debug = ( module.exports = debug }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559027, function(require, module, exports) { +__DEFINE__(1727076815124, function(require, module, exports) { const debug = require('../internal/debug') const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants') const { safeRe: re, t } = require('../internal/re') @@ -670,8 +670,8 @@ class SemVer { module.exports = SemVer -}, function(modId) { var map = {"../internal/debug":1724471559026,"../internal/constants":1724471559025,"../internal/re":1724471559024,"../internal/parse-options":1724471559028,"../internal/identifiers":1724471559029}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559028, function(require, module, exports) { +}, function(modId) { var map = {"../internal/debug":1727076815123,"../internal/constants":1727076815122,"../internal/re":1727076815121,"../internal/parse-options":1727076815125,"../internal/identifiers":1727076815126}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815125, function(require, module, exports) { // parse out just the options we care about const looseOption = Object.freeze({ loose: true }) const emptyOpts = Object.freeze({ }) @@ -689,7 +689,7 @@ const parseOptions = options => { module.exports = parseOptions }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559029, function(require, module, exports) { +__DEFINE__(1727076815126, function(require, module, exports) { const numeric = /^[0-9]+$/ const compareIdentifiers = (a, b) => { const anum = numeric.test(a) @@ -715,7 +715,7 @@ module.exports = { } }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559030, function(require, module, exports) { +__DEFINE__(1727076815127, function(require, module, exports) { const SemVer = require('../classes/semver') const parse = (version, options, throwErrors = false) => { if (version instanceof SemVer) { @@ -733,8 +733,8 @@ const parse = (version, options, throwErrors = false) => { module.exports = parse -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559031, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815128, function(require, module, exports) { const parse = require('./parse') const valid = (version, options) => { const v = parse(version, options) @@ -742,8 +742,8 @@ const valid = (version, options) => { } module.exports = valid -}, function(modId) { var map = {"./parse":1724471559030}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559032, function(require, module, exports) { +}, function(modId) { var map = {"./parse":1727076815127}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815129, function(require, module, exports) { const parse = require('./parse') const clean = (version, options) => { const s = parse(version.trim().replace(/^[=v]+/, ''), options) @@ -751,8 +751,8 @@ const clean = (version, options) => { } module.exports = clean -}, function(modId) { var map = {"./parse":1724471559030}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559033, function(require, module, exports) { +}, function(modId) { var map = {"./parse":1727076815127}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815130, function(require, module, exports) { const SemVer = require('../classes/semver') const inc = (version, release, options, identifier, identifierBase) => { @@ -773,8 +773,8 @@ const inc = (version, release, options, identifier, identifierBase) => { } module.exports = inc -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559034, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815131, function(require, module, exports) { const parse = require('./parse.js') const diff = (version1, version2) => { @@ -841,26 +841,26 @@ const diff = (version1, version2) => { module.exports = diff -}, function(modId) { var map = {"./parse.js":1724471559030}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559035, function(require, module, exports) { +}, function(modId) { var map = {"./parse.js":1727076815127}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815132, function(require, module, exports) { const SemVer = require('../classes/semver') const major = (a, loose) => new SemVer(a, loose).major module.exports = major -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559036, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815133, function(require, module, exports) { const SemVer = require('../classes/semver') const minor = (a, loose) => new SemVer(a, loose).minor module.exports = minor -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559037, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815134, function(require, module, exports) { const SemVer = require('../classes/semver') const patch = (a, loose) => new SemVer(a, loose).patch module.exports = patch -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559038, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815135, function(require, module, exports) { const parse = require('./parse') const prerelease = (version, options) => { const parsed = parse(version, options) @@ -868,28 +868,28 @@ const prerelease = (version, options) => { } module.exports = prerelease -}, function(modId) { var map = {"./parse":1724471559030}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559039, function(require, module, exports) { +}, function(modId) { var map = {"./parse":1727076815127}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815136, function(require, module, exports) { const SemVer = require('../classes/semver') const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose)) module.exports = compare -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559040, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815137, function(require, module, exports) { const compare = require('./compare') const rcompare = (a, b, loose) => compare(b, a, loose) module.exports = rcompare -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559041, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815138, function(require, module, exports) { const compare = require('./compare') const compareLoose = (a, b) => compare(a, b, true) module.exports = compareLoose -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559042, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815139, function(require, module, exports) { const SemVer = require('../classes/semver') const compareBuild = (a, b, loose) => { const versionA = new SemVer(a, loose) @@ -898,56 +898,56 @@ const compareBuild = (a, b, loose) => { } module.exports = compareBuild -}, function(modId) { var map = {"../classes/semver":1724471559027}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559043, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815140, function(require, module, exports) { const compareBuild = require('./compare-build') const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) module.exports = sort -}, function(modId) { var map = {"./compare-build":1724471559042}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559044, function(require, module, exports) { +}, function(modId) { var map = {"./compare-build":1727076815139}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815141, function(require, module, exports) { const compareBuild = require('./compare-build') const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) module.exports = rsort -}, function(modId) { var map = {"./compare-build":1724471559042}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559045, function(require, module, exports) { +}, function(modId) { var map = {"./compare-build":1727076815139}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815142, function(require, module, exports) { const compare = require('./compare') const gt = (a, b, loose) => compare(a, b, loose) > 0 module.exports = gt -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559046, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815143, function(require, module, exports) { const compare = require('./compare') const lt = (a, b, loose) => compare(a, b, loose) < 0 module.exports = lt -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559047, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815144, function(require, module, exports) { const compare = require('./compare') const eq = (a, b, loose) => compare(a, b, loose) === 0 module.exports = eq -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559048, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815145, function(require, module, exports) { const compare = require('./compare') const neq = (a, b, loose) => compare(a, b, loose) !== 0 module.exports = neq -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559049, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815146, function(require, module, exports) { const compare = require('./compare') const gte = (a, b, loose) => compare(a, b, loose) >= 0 module.exports = gte -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559050, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815147, function(require, module, exports) { const compare = require('./compare') const lte = (a, b, loose) => compare(a, b, loose) <= 0 module.exports = lte -}, function(modId) { var map = {"./compare":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559051, function(require, module, exports) { +}, function(modId) { var map = {"./compare":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815148, function(require, module, exports) { const eq = require('./eq') const neq = require('./neq') const gt = require('./gt') @@ -1001,8 +1001,8 @@ const cmp = (a, op, b, loose) => { } module.exports = cmp -}, function(modId) { var map = {"./eq":1724471559047,"./neq":1724471559048,"./gt":1724471559045,"./gte":1724471559049,"./lt":1724471559046,"./lte":1724471559050}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559052, function(require, module, exports) { +}, function(modId) { var map = {"./eq":1727076815144,"./neq":1727076815145,"./gt":1727076815142,"./gte":1727076815146,"./lt":1727076815143,"./lte":1727076815147}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815149, function(require, module, exports) { const SemVer = require('../classes/semver') const parse = require('./parse') const { safeRe: re, t } = require('../internal/re') @@ -1064,8 +1064,8 @@ const coerce = (version, options) => { } module.exports = coerce -}, function(modId) { var map = {"../classes/semver":1724471559027,"./parse":1724471559030,"../internal/re":1724471559024}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559053, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124,"./parse":1727076815127,"../internal/re":1727076815121}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815150, function(require, module, exports) { const ANY = Symbol('SemVer ANY') // hoisted class for cyclic dependency class Comparator { @@ -1208,8 +1208,8 @@ const debug = require('../internal/debug') const SemVer = require('./semver') const Range = require('./range') -}, function(modId) { var map = {"../internal/parse-options":1724471559028,"../internal/re":1724471559024,"../functions/cmp":1724471559051,"../internal/debug":1724471559026,"./semver":1724471559027,"./range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559054, function(require, module, exports) { +}, function(modId) { var map = {"../internal/parse-options":1727076815125,"../internal/re":1727076815121,"../functions/cmp":1727076815148,"../internal/debug":1727076815123,"./semver":1727076815124,"./range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815151, function(require, module, exports) { const SPACE_CHARACTERS = /\s+/g // hoisted class for cyclic dependency @@ -1765,8 +1765,8 @@ const testSet = (set, version, options) => { return true } -}, function(modId) { var map = {"../internal/lrucache":1724471559055,"../internal/parse-options":1724471559028,"./comparator":1724471559053,"../internal/debug":1724471559026,"./semver":1724471559027,"../internal/re":1724471559024,"../internal/constants":1724471559025}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559055, function(require, module, exports) { +}, function(modId) { var map = {"../internal/lrucache":1727076815152,"../internal/parse-options":1727076815125,"./comparator":1727076815150,"../internal/debug":1727076815123,"./semver":1727076815124,"../internal/re":1727076815121,"../internal/constants":1727076815122}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815152, function(require, module, exports) { class LRUCache { constructor () { this.max = 1000 @@ -1809,7 +1809,7 @@ class LRUCache { module.exports = LRUCache }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559056, function(require, module, exports) { +__DEFINE__(1727076815153, function(require, module, exports) { const Range = require('../classes/range') const satisfies = (version, range, options) => { try { @@ -1821,8 +1821,8 @@ const satisfies = (version, range, options) => { } module.exports = satisfies -}, function(modId) { var map = {"../classes/range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559057, function(require, module, exports) { +}, function(modId) { var map = {"../classes/range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815154, function(require, module, exports) { const Range = require('../classes/range') // Mostly just for testing and legacy API reasons @@ -1832,8 +1832,8 @@ const toComparators = (range, options) => module.exports = toComparators -}, function(modId) { var map = {"../classes/range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559058, function(require, module, exports) { +}, function(modId) { var map = {"../classes/range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815155, function(require, module, exports) { const SemVer = require('../classes/semver') const Range = require('../classes/range') @@ -1860,8 +1860,8 @@ const maxSatisfying = (versions, range, options) => { } module.exports = maxSatisfying -}, function(modId) { var map = {"../classes/semver":1724471559027,"../classes/range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559059, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124,"../classes/range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815156, function(require, module, exports) { const SemVer = require('../classes/semver') const Range = require('../classes/range') const minSatisfying = (versions, range, options) => { @@ -1887,8 +1887,8 @@ const minSatisfying = (versions, range, options) => { } module.exports = minSatisfying -}, function(modId) { var map = {"../classes/semver":1724471559027,"../classes/range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559060, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124,"../classes/range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815157, function(require, module, exports) { const SemVer = require('../classes/semver') const Range = require('../classes/range') const gt = require('../functions/gt') @@ -1951,8 +1951,8 @@ const minVersion = (range, loose) => { } module.exports = minVersion -}, function(modId) { var map = {"../classes/semver":1724471559027,"../classes/range":1724471559054,"../functions/gt":1724471559045}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559061, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124,"../classes/range":1727076815151,"../functions/gt":1727076815142}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815158, function(require, module, exports) { const Range = require('../classes/range') const validRange = (range, options) => { try { @@ -1965,8 +1965,8 @@ const validRange = (range, options) => { } module.exports = validRange -}, function(modId) { var map = {"../classes/range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559062, function(require, module, exports) { +}, function(modId) { var map = {"../classes/range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815159, function(require, module, exports) { const SemVer = require('../classes/semver') const Comparator = require('../classes/comparator') const { ANY } = Comparator @@ -2048,22 +2048,22 @@ const outside = (version, range, hilo, options) => { module.exports = outside -}, function(modId) { var map = {"../classes/semver":1724471559027,"../classes/comparator":1724471559053,"../classes/range":1724471559054,"../functions/satisfies":1724471559056,"../functions/gt":1724471559045,"../functions/lt":1724471559046,"../functions/lte":1724471559050,"../functions/gte":1724471559049}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559063, function(require, module, exports) { +}, function(modId) { var map = {"../classes/semver":1727076815124,"../classes/comparator":1727076815150,"../classes/range":1727076815151,"../functions/satisfies":1727076815153,"../functions/gt":1727076815142,"../functions/lt":1727076815143,"../functions/lte":1727076815147,"../functions/gte":1727076815146}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815160, function(require, module, exports) { // Determine if version is greater than all the versions possible in the range. const outside = require('./outside') const gtr = (version, range, options) => outside(version, range, '>', options) module.exports = gtr -}, function(modId) { var map = {"./outside":1724471559062}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559064, function(require, module, exports) { +}, function(modId) { var map = {"./outside":1727076815159}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815161, function(require, module, exports) { const outside = require('./outside') // Determine if version is less than all the versions possible in the range const ltr = (version, range, options) => outside(version, range, '<', options) module.exports = ltr -}, function(modId) { var map = {"./outside":1724471559062}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559065, function(require, module, exports) { +}, function(modId) { var map = {"./outside":1727076815159}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815162, function(require, module, exports) { const Range = require('../classes/range') const intersects = (r1, r2, options) => { r1 = new Range(r1, options) @@ -2072,8 +2072,8 @@ const intersects = (r1, r2, options) => { } module.exports = intersects -}, function(modId) { var map = {"../classes/range":1724471559054}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559066, function(require, module, exports) { +}, function(modId) { var map = {"../classes/range":1727076815151}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815163, function(require, module, exports) { // given a set of versions and a range, create a "simplified" range // that includes the same versions that the original range does // If the original range is shorter than the simplified one, return that. @@ -2122,8 +2122,8 @@ module.exports = (versions, range, options) => { return simplified.length < original.length ? simplified : range } -}, function(modId) { var map = {"../functions/satisfies.js":1724471559056,"../functions/compare.js":1724471559039}; return __REQUIRE__(map[modId], modId); }) -__DEFINE__(1724471559067, function(require, module, exports) { +}, function(modId) { var map = {"../functions/satisfies.js":1727076815153,"../functions/compare.js":1727076815136}; return __REQUIRE__(map[modId], modId); }) +__DEFINE__(1727076815164, function(require, module, exports) { const Range = require('../classes/range.js') const Comparator = require('../classes/comparator.js') const { ANY } = Comparator @@ -2372,8 +2372,8 @@ const lowerLT = (a, b, options) => { module.exports = subset -}, function(modId) { var map = {"../classes/range.js":1724471559054,"../classes/comparator.js":1724471559053,"../functions/satisfies.js":1724471559056,"../functions/compare.js":1724471559039}; return __REQUIRE__(map[modId], modId); }) -return __REQUIRE__(1724471559023); +}, function(modId) { var map = {"../classes/range.js":1727076815151,"../classes/comparator.js":1727076815150,"../functions/satisfies.js":1727076815153,"../functions/compare.js":1727076815136}; return __REQUIRE__(map[modId], modId); }) +return __REQUIRE__(1727076815120); })() //miniprogram-npm-outsideDeps=[] //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/source/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.d.ts b/source/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.d.ts index 25cd440..924dfe5 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.d.ts +++ b/source/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.d.ts @@ -23,6 +23,7 @@ export default class ActionSheet extends SuperComponent { items: { type: ArrayConstructor; value?: (string | import("./type").ActionSheetItem)[]; + required?: boolean; }; popupProps?: { type: ObjectConstructor; @@ -47,10 +48,12 @@ export default class ActionSheet extends SuperComponent { visible: { type: BooleanConstructor; value?: boolean; + required?: boolean; }; defaultVisible: { type: BooleanConstructor; value?: boolean; + required?: boolean; }; }; data: { diff --git a/source/miniprogram_npm/tdesign-miniprogram/action-sheet/props.js b/source/miniprogram_npm/tdesign-miniprogram/action-sheet/props.js index e16b792..5a86e41 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/action-sheet/props.js +++ b/source/miniprogram_npm/tdesign-miniprogram/action-sheet/props.js @@ -5,7 +5,7 @@ const props = { }, cancelText: { type: String, - value: '取消', + value: '', }, count: { type: Number, @@ -17,6 +17,7 @@ const props = { }, items: { type: Array, + required: true, }, popupProps: { type: Object, @@ -34,13 +35,19 @@ const props = { type: String, value: 'list', }, + usingCustomNavbar: { + type: Boolean, + value: false, + }, visible: { type: Boolean, value: null, + required: true, }, defaultVisible: { type: Boolean, value: false, + required: true, }, }; export default props; diff --git a/source/miniprogram_npm/tdesign-miniprogram/action-sheet/type.d.ts b/source/miniprogram_npm/tdesign-miniprogram/action-sheet/type.d.ts index b373508..3fb8bdc 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/action-sheet/type.d.ts +++ b/source/miniprogram_npm/tdesign-miniprogram/action-sheet/type.d.ts @@ -19,6 +19,7 @@ export interface TdActionSheetProps { items: { type: ArrayConstructor; value?: Array; + required?: boolean; }; popupProps?: { type: ObjectConstructor; @@ -43,10 +44,12 @@ export interface TdActionSheetProps { visible: { type: BooleanConstructor; value?: boolean; + required?: boolean; }; defaultVisible: { type: BooleanConstructor; value?: boolean; + required?: boolean; }; } export interface ActionSheetItem { diff --git a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.d.ts b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.d.ts index c9f9ba6..e131442 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.d.ts +++ b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.d.ts @@ -23,6 +23,6 @@ export default class AvatarGroup extends SuperComponent { methods: { setClass(): void; handleMax(): void; - handleChildCascading(): void; + onCollapsedItemClick(e: WechatMiniprogram.CustomEvent): void; }; } diff --git a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.js b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.js index b1d4563..f85c574 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.js +++ b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.js @@ -38,7 +38,6 @@ let AvatarGroup = class AvatarGroup extends SuperComponent { length: this.$children.length, }); this.handleMax(); - this.handleChildCascading(); }, }; this.observers = { @@ -53,7 +52,8 @@ let AvatarGroup = class AvatarGroup extends SuperComponent { const classList = [ name, `${prefix}-class`, - `${name}-offset-${direction}-${size.indexOf('px') > -1 ? 'medium' : size}`, + `${name}-offset-${direction}`, + `${name}-offset-${direction}-${size.indexOf('px') > -1 ? 'medium' : size || 'medium'}`, ]; this.setData({ className: classList.join(' '), @@ -69,13 +69,8 @@ let AvatarGroup = class AvatarGroup extends SuperComponent { child.hide(); }); }, - handleChildCascading() { - if (this.properties.cascading === 'right-up') - return; - const defaultZIndex = 100; - this.$children.forEach((child, index) => { - child.updateCascading(defaultZIndex - index * 10); - }); + onCollapsedItemClick(e) { + this.triggerEvent('collapsed-item-click', e.detail); }, }; } diff --git a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.json b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.json index e41eed4..9b5763d 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.json +++ b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.json @@ -1,6 +1,6 @@ { "component": true, - "styleIsolation": "apply-shared", + "styleIsolation": "shared", "usingComponents": { "t-avatar": "../avatar/avatar" } diff --git a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.wxml b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.wxml index 26929f2..1e2f6cd 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.wxml +++ b/source/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.wxml @@ -7,11 +7,12 @@ - + {{collapseAvatar}} ` | N -shape | String | circle | options:circle/square/bubble/ribbon | N +shape | String | circle | options: circle/square/bubble/ribbon | N show-zero | Boolean | false | \- | N -size | String | medium | options:medium/large | N +size | String | medium | options: medium/large | N +### Badge External Classes +className | Description +-- | -- +t-class | \- +t-class-content | \- +t-class-count | \- ### CSS Variables + The component provides the following CSS variables, which can be used to customize styles. Name | Default Value | Description -- | -- | -- @@ -33,4 +42,4 @@ Name | Default Value | Description --td-badge-large-font-size | @font-size-s | - --td-badge-large-height | 40rpx | - --td-badge-large-padding | 10rpx | - ---td-badge-text-color | @font-white-1 | - +--td-badge-text-color | @font-white-1 | - \ No newline at end of file diff --git a/source/miniprogram_npm/tdesign-miniprogram/badge/README.md b/source/miniprogram_npm/tdesign-miniprogram/badge/README.md index 7d111c6..a253b93 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/badge/README.md +++ b/source/miniprogram_npm/tdesign-miniprogram/badge/README.md @@ -36,11 +36,19 @@ isComponent: true {{ size }} +## FAQ + +### 如何处理由 ribbon 徽标溢出导致页面出现横向滚动? +角标溢出问题建议从父容器组件处理。如 #3063 ,可以给父容器 `cell` 组件添加 `overflow: hidden`,处理溢出造成页面出现横向滚动的问题。 + ## API + ### Badge Props -名称 | 类型 | 默认值 | 说明 | 必传 +名称 | 类型 | 默认值 | 描述 | 必传 -- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N color | String | - | 颜色 | N content | String | - | 徽标内容,示例:`content='自定义内容'`。也可以使用默认插槽定义 | N count | String / Number / Slot | 0 | 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N @@ -50,15 +58,16 @@ offset | Array | - | 设置状态点的位置偏移,示例:[-10, 20] 或 ['1 shape | String | circle | 形状。可选项:circle/square/bubble/ribbon | N show-zero | Boolean | false | 当数值为 0 时,是否展示徽标 | N size | String | medium | 尺寸。可选项:medium/large | N +### Badge External Classes -### Badge 外部样式类 -类名 | 说明 --- | -- +类名 | 描述 +-- | -- t-class | 根节点样式类 -t-class-count | 计数样式类 t-class-content | 内容样式类 +t-class-count | 计数样式类 + +### CSS Variables -### CSS 变量 组件提供了下列 CSS 变量,可用于自定义样式。 名称 | 默认值 | 描述 -- | -- | -- @@ -74,4 +83,4 @@ t-class-content | 内容样式类 --td-badge-large-font-size | @font-size-s | - --td-badge-large-height | 40rpx | - --td-badge-large-padding | 10rpx | - ---td-badge-text-color | @font-white-1 | - +--td-badge-text-color | @font-white-1 | - \ No newline at end of file diff --git a/source/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts b/source/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts index 92db9aa..2680a17 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts +++ b/source/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts @@ -14,8 +14,6 @@ export default class Badge extends SuperComponent { value: string; labelID: string; descriptionID: string; - ribbonStyle: string; - ribbonOuterStyle: string; }; lifetimes: { ready(): void; diff --git a/source/miniprogram_npm/tdesign-miniprogram/badge/badge.js b/source/miniprogram_npm/tdesign-miniprogram/badge/badge.js index 06c2c5f..370a57e 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/badge/badge.js +++ b/source/miniprogram_npm/tdesign-miniprogram/badge/badge.js @@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; -import { getRect, uniqueFactory } from '../common/utils'; +import { uniqueFactory } from '../common/utils'; const { prefix } = config; const name = `${prefix}-badge`; const getUniqueID = uniqueFactory('badge'); @@ -25,27 +25,10 @@ let Badge = class Badge extends SuperComponent { value: '', labelID: '', descriptionID: '', - ribbonStyle: '', - ribbonOuterStyle: '', }; this.lifetimes = { ready() { const uniqueID = getUniqueID(); - if (this.properties.shape === 'ribbon') { - getRect(this, `.${prefix}-badge--ribbon`).then((rect) => { - const outerBoundingRect = rect.width / Math.SQRT2 + rect.height * Math.SQRT2; - const translateX = rect.width - rect.width / Math.SQRT2 + outerBoundingRect - rect.width; - const ribbonHeightHypotenuse = rect.height * Math.SQRT2; - const ribbonWidthCatheti = rect.width / Math.SQRT2; - this.setData({ - ribbonStyle: `transform: translateX(${translateX}px) rotate(45deg);`, - ribbonOuterStyle: `width: ${outerBoundingRect}px; height: ${outerBoundingRect}px; - clip-path: polygon(0 0, ${ribbonHeightHypotenuse}px 0, - ${outerBoundingRect}px ${ribbonWidthCatheti}px, - ${outerBoundingRect}px ${ribbonWidthCatheti + ribbonHeightHypotenuse}px);`, - }); - }); - } this.setData({ labelID: `${uniqueID}_label`, descriptionID: `${uniqueID}_description`, diff --git a/source/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml b/source/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml index fbf265b..abc57b7 100644 --- a/source/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml +++ b/source/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml @@ -8,7 +8,7 @@ -->