Skip to content

支付宝小程序使用DatePicker日期选择器,无法选择/无法设定默认值 #2292

Open
@dadademo

Description

@dadademo

NutUI scenes(nutui 场景)

小程序(@nutui/nutui-taro)

NutUI-vue version(nutui-vue 版本)

4.0.4

Vue version(vue 版本)

3.2.40

Operating environment(运行环境)

dev:alipay

Citation method(引用方式)

npm

Node version(node 版本)

v16.20.0

Browser and its version(浏览器及其版本)

支付宝小程序开发者工具

System and its version(系统及其版本)

win11/win10

Taro environmental information(taro 环境信息)

Taro CLI 3.6.6 environment info:   
    System:     
      OS: Windows 10 10.0.18363    
    Binaries:  
      Node: 16.20.0 - ~\scoop\apps\nvm\current\nodejs\nodejs\node.EXE     
      npm: 8.19.4 - ~\scoop\apps\nvm\current\nodejs\nodejs\npm.CMD     
    npmPackages:    
      @tarojs/cli: 3.6.6 => 3.6.6    
      @tarojs/components: 3.6.6 => 3.6.6    
      @tarojs/helper: 3.6.6 => 3.6.6    
      @tarojs/plugin-framework-vue3: 3.6.6 => 3.6.6  
      @tarojs/plugin-html: 3.6.6 => 3.6.6  
      @tarojs/plugin-platform-alipay: 3.6.6 => 3.6.6  
      @tarojs/plugin-platform-h5: 3.6.6 => 3.6.6   
      @tarojs/plugin-platform-jd: 3.6.6 => 3.6.6   
      @tarojs/plugin-platform-qq: 3.6.6 => 3.6.6   
      @tarojs/plugin-platform-swan: 3.6.6 => 3.6.6 
      @tarojs/plugin-platform-tt: 3.6.6 => 3.6.6  
      @tarojs/plugin-platform-weapp: 3.6.6 => 3.6.6    
      @tarojs/runtime: 3.6.6 => 3.6.6    
      @tarojs/shared: 3.6.6 => 3.6.6  
      @tarojs/taro: 3.6.6 => 3.6.6   
      @tarojs/webpack5-runner: 3.6.6 => 3.6.6    
      babel-preset-taro: 3.6.6 => 3.6.6    
      eslint-config-taro: 3.6.6 => 3.6.6      

Reproduction link(重现链接)

github.com

Steps to reproduce(重现步骤)

pnpm install
npm run dev:alipay

支付宝小程序开发者工具打开项目

  1. 点击选择日期

What is expected?(期望的结果是什么?)

点击选择日期后DatePicker应展示默认时间,并可以选择

What is actually happening?(实际的结果是什么?)

第一次点击选择日期后DatePicker可选项为空白,默认时间也为空白
第二次点击选择日期,可看到选择项,但选择后任意时间后关闭,再次打开,默认时间不正确

Remarks(补充说明)

使用脚手架 Vue3 + NutUI4.0 模板
pnpm 包管理工具
pages/index/index的代码也是从 https://nutui.jd.com/taro/vue/4x/#/zh-CN/component/datepicker (搭配 Popup 使用) 复制下来的

Metadata

Metadata

Assignees

No one assigned

    Labels

    alipayreproducible提供了可复现代码,或者已验证可复现upstream需要上游修复的,例如 Taro、各小程序平台等

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions