8000 The type of `minute` in props `disabledDateTime` of `DatePicker` should be `number`, not a `ComputedRef` . · Issue #6231 · vueComponent/ant-design-vue · GitHub
[go: up one dir, main page]

Skip to content
The type of minute in props disabledDateTime of DatePicker should be number, not a ComputedRef . #6231
Closed
@baohangxing

Description

@baohangxing
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.14

Environment

"vue": "^3.2.36"

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. select date
  2. see log in Console

What is expected?

The type of minute in porps disabledDateTime of DatePicker should be number

What is actually happening?

The type of minute in porps disabledDateTime of DatePicker is a ComputedRef.


in file ant-design-vue/es/vc-picker/interface.d.ts

The type of minute in porps disabledDateTime of DatePicker declared as number

export declare type DisabledTimes = {
    disabledHours?: () => number[];
    disabledMinutes?: (hour: number) => number[];
    disabledSeconds?: (hour: number, minute: number) => number[];
};

:)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0