Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[小程序][Picker] 动态增删列表项时,会导致当前选项错位 #2219

Closed
eiinu opened this issue Apr 5, 2023 · 1 comment · Fixed by #2824
Closed

[小程序][Picker] 动态增删列表项时,会导致当前选项错位 #2219

eiinu opened this issue Apr 5, 2023 · 1 comment · Fixed by #2824
Labels
bug upstream 需要上游修复的,例如 Taro、各小程序平台等

Comments

@eiinu
Copy link
Member

eiinu commented Apr 5, 2023

NutUI scenes(nutui 场景)

小程序(@nutui/nutui-taro)

NutUI-vue version(nutui-vue 版本)

4.0.4

Vue version(vue 版本)

3.2.47

Operating environment(运行环境)

dev:weapp

Citation method(引用方式)

npm

Node version(node 版本)

16

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

Chrome

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

MacOS

Taro environmental information(taro 环境信息)

Taro 3.6.2

Reproduction link(重现链接)

nutui.jd.com/taro/vue/4x/

Steps to reproduce(重现步骤)

<template>
  <div class="demo">
    <nut-date-picker
      v-model="currentDate"
      :min-date="minDate"
      :max-date="maxDate"
      :is-show-chinese="true"
      @confirm="confirm"
      @change="change"
    ></nut-date-picker>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const minDate = new Date()
const maxDate = new Date(2025, 10, 1)
const currentDate = new Date()
const confirm = ({ selectedValue, selectedOptions }) => {
  desc.value = selectedOptions.map((option) => option.text).join('')
}
const change = (val) => {
  console.log('change', val)
}
</script>

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

正常切换

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

在切换月份的时候,可能会导致日的错误更新。

@eiinu eiinu added this to the v4.0.6 milestone Apr 6, 2023
@eiinu eiinu modified the milestones: v4.0.6, v4.0.7 Apr 20, 2023
@eiinu eiinu modified the milestones: v4.0.7, v4.1.0 May 8, 2023
@Zeppo241
Copy link

Zeppo241 commented Aug 4, 2023

为何最新版4.1.2都没解决这个问题?

@eiinu eiinu removed the bug 3.0 label Aug 6, 2023
@eiinu eiinu added the upstream 需要上游修复的,例如 Taro、各小程序平台等 label Jan 8, 2024
@eiinu eiinu removed this from the v4.1.0 milestone Jan 8, 2024
@eiinu eiinu linked a pull request Jan 10, 2024 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug upstream 需要上游修复的,例如 Taro、各小程序平台等
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants