jd-opensource / jd-opensource/taro-ui
AtCalendar 打包成钉钉小程序下点击头部的年-月弹出的picker显示有年月日时分秒
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
Taro UI 版本信息
v3.1.0-beta.4
问题描述
AtCalendar 打包成钉钉小程序,点击头部的年-月弹出的picker显示有年月日时分秒选项,在微信和支付宝模式下时正常的。
复现步骤
"dev:dd": "npm run build:dd -- --watch", 运行这个打包成钉钉的脚本
点击左右箭头中间的年月,会弹出年月日时分秒的picker选项
复现代码
import { AtCalendar } from "taro-ui"
报错信息
点击左右箭头中间的年月,会弹出年月日时分秒的picker选项
系统信息
👽 Taro v3.5.5
👽 Taro v3.5.5
Taro CLI 3.5.5 environment info:
System:
OS: macOS 12.3
Shell: 5.8 - /bin/zsh
Binaries:
Node: 18.7.0 - /opt/homebrew/bin/node
Yarn: 1.22.15 - /usr/local/bin/yarn
npm: 8.15.0 - /opt/homebrew/bin/npm
npmPackages:
@tarojs/cli: 3.4.12 => 3.4.12
@tarojs/components: 3.4.12 => 3.4.12
@tarojs/mini-runner: 3.4.12 => 3.4.12
@tarojs/plugin-framework-react: 3.4.12 => 3.4.12
@tarojs/react: 3.4.12 => 3.4.12
@tarojs/runtime: 3.4.12 => 3.4.12
@tarojs/taro: 3.4.12 => 3.4.12
@tarojs/webpack-runner: 3.4.12 => 3.4.12
babel-preset-taro: 3.4.12 => 3.4.12
eslint-config-taro: 3.4.12 => 3.4.12
react: ^17.0.2 => 17.0.2
taro-ui: ^3.1.0-beta.4 => 3.1.0-beta.4
补充信息
可能打包不一致,因为微信小程序和支付宝小程序都能很好的显示,只有年月选择项
期望行为
希望在打包成钉钉小程序的时候,点击左右箭头中间的 年-月 时,弹窗只显示年月的选项,不需要时分秒的选择,该问题在微信小程序和支付宝上时好的,可以参考看一下
Contributor guide
Research direction
Start by running the reported dev:dd build and reproducing the issue in DingTalk, then inspect the AtCalendar year-month picker entry point and compare its behavior with WeChat and Alipay. Done means clicking the header year-month shows only year and month options, without day, hour, minute, or second choices.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100