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

datetimePicker选择器 format属性不支持更改格式 #627

Open
guo-zi-xin opened this issue Jan 22, 2025 · 0 comments
Open

datetimePicker选择器 format属性不支持更改格式 #627

guo-zi-xin opened this issue Jan 22, 2025 · 0 comments

Comments

@guo-zi-xin
Copy link

我在使用 DateTimePicker时候, 我手动输入了一个format格式, 但是没有达到我想要的预期的展示 默认值是 'YYYY-MM-DD HH:mm' 我想要他展示成 'DD-MM-YYYY'的格式

    <up-datetime-picker
      v-model="time"
      style="padding: 0; border: none"
      hasInput
      format="DD-MM-YYYY"
      :show="showDate"
      confirmColor="#E73131"
      mode="date"
      @confirm="confirmTime"
      @cancel="cancelTime"
    />

这种情况下我应该怎么去实现这个功能呢

  • HBuilderX:4.45
  • uview-plus:3.3.56

平台

  • 平台:安卓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant