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

[t-date-range-picker] 关于年的禁用范围不正确 #4927

Closed
ouyanghui100 opened this issue Jan 13, 2025 · 6 comments · Fixed by #5119
Closed

[t-date-range-picker] 关于年的禁用范围不正确 #4927

ouyanghui100 opened this issue Jan 13, 2025 · 6 comments · Fixed by #5119
Assignees
Labels
🐞 bug Something isn't working

Comments

@ouyanghui100
Copy link

tdesign-vue-next 版本

1.10.4

重现链接

No response

重现步骤

image
企业微信截图_17367593316361

image
企业微信截图_17367594198594
image

我估计是过了半年就会正常,没过就会把after指定的年份禁用

期望结果

应该不能禁用after对应的年,和文档描述一致

实际结果

No response

框架版本

Vue3.5

浏览器版本

No response

系统版本

windows

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @ouyanghui100,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@ouyanghui100
Copy link
Author

https://codesandbox.io/p/devbox/pc3g6s 可以看到

@msg-fobbit
Copy link
Contributor

https://codesandbox.io/p/devbox/pc3g6s 可以看到

这个链接打开无法打开,可能没有开放权限

@ouyanghui100
Copy link
Author

https://codesandbox.io/p/devbox/pc3g6s 可以看到

这个链接打开无法打开,可能没有开放权限

不好意思,忘记放开了,https://codesandbox.io/p/devbox/pc3g6s?embed=1

@uyarn uyarn added this to TDesign Feb 18, 2025
@uyarn uyarn added the 🐞 bug Something isn't working label Feb 23, 2025
@uyarn uyarn self-assigned this Feb 23, 2025
@uyarn
Copy link
Collaborator

uyarn commented Feb 23, 2025

这个是实现的问题 应该禁用after后的更符合预期

@RSS1102 RSS1102 changed the title [t-date-range-picker] 关于年的禁用不统一 [t-date-range-picker] 关于年的禁用范围不正确 Feb 27, 2025
RSS1102 added a commit to RSS1102/tdesign-vue-next that referenced this issue Feb 28, 2025
fix(date-picker): disable date range error
chore: remove unnecessary explicit type declarations

close Tencent#4927
uyarn pushed a commit that referenced this issue Mar 13, 2025
…5119)

fix(date-picker): disable date range error
chore: remove unnecessary explicit type declarations

close #4927
@github-project-automation github-project-automation bot moved this to 已发布 in TDesign Mar 13, 2025
@uyarn
Copy link
Collaborator

uyarn commented Mar 13, 2025

fixed 1.11.3

Wesley-0808 added a commit to Wesley-0808/tdesign-vue-next that referenced this issue Mar 24, 2025
commit 9662ef4
Author: liweijie0812 <[email protected]>
Date:   Sun Mar 23 22:31:11 2025 +0800

    chore: add preinstall script to skip init submodule in common repo(Tencent#5214)

    * ci: disable run pnpm:devPreinstall

    * chore: compatible windows

    * chore: rename pnpm-dev-preinstall.js

commit ff317bc
Author: betavs <[email protected]>
Date:   Sat Mar 22 18:36:24 2025 +0800

    docs(card): fix card api documentation text (Tencent#5209)

commit 43f06d7
Author: TDesign bot <[email protected]>
Date:   Sat Mar 22 18:11:41 2025 +0800

    feat(Icon): upgrade tdesign-icons-vue-next to 0.3.5 (Tencent#5213)

    * feat(Icon): upgrade tdesign-icons-vue-next to 0.3.5

    * chore: update snapshot

commit 970592a
Author: zhangpaopao <[email protected]>
Date:   Sat Mar 22 17:45:20 2025 +0800

    ci: up pnpm to 9.15.9 (Tencent#5211)

commit dd7e5ac
Author: zhangpaopao <[email protected]>
Date:   Thu Mar 20 20:17:12 2025 +0800

    refactor(bundle): builds components (Tencent#5192)

    * refactor: es

    * refactor: esm

    * refactor: lib

    * refactor: cjs

    * refactor: umd

    * refactor: umd and umdmin

    * refactor: output

    * refactor: script

    * chore: word spell

    * chore: up

    * refactor: remove esbuild tsconfig

    * refactor: use root babel.config.js

    * refactor: ignoreImport

    * refactor: deleteOutput first

    * refactor: remove rollup.config.js

    * refactor: utils paths

    * refactor: replace getworkspaceRoot to sync

    * refactor: resolve path to sync

    * refactor: remove @pnpm/find-workspace-dir

    * refactor: remove path-v2

    * refactor: sync

    * refactor: components/style use @tdesign/common-style

    * refactor: better plugin and esm

    * refactor: move postcss extract

    * refactor: move tdesign-vue-next scripts

    * revert: revert postcss extract

    * refactor: add node_env to tdesign-vue-next build

commit 1cda0bd
Author: Cal And Nong <[email protected]>
Date:   Wed Mar 19 11:35:05 2025 +0800

    fix(menu): fix missing string type of menu-item props to (Tencent#5198)

    修复menu-item的props中to定义时缺少string类型问题

commit 20d7d26
Author: 阿菜 Cai <[email protected]>
Date:   Mon Mar 17 15:53:16 2025 +0800

     chore: add default issue labels  (Tencent#5190)

    * chore: 预设 issue 分类

    * chore: update label unconfirmed icons

commit 8adfb0c
Author: wū yāng <[email protected]>
Date:   Sat Mar 15 12:04:46 2025 +0800

    chore: release tdesign-vue-next 1.11.4 (Tencent#5189)

    * release/1.11.4

    * chore: update common

    * chore: changelog's changes

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 53ae917
Author: Leo Xia <[email protected]>
Date:   Sat Mar 15 11:45:18 2025 +0800

    fix(button): add class when the shape props is rectangle (Tencent#5187)

    * fix(button): add class when the shape props is rectangle

    closed Tencent#5186

    * chore: update snapshot

    ---------

    Co-authored-by: Saraph1nes <[email protected]>
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit ae5ec91
Author: liweijie0812 <[email protected]>
Date:   Sat Mar 15 11:40:47 2025 +0800

    fix(Descriptions): fix helper (Tencent#5182)

    * fix(Descriptions): fix helper

    * chore: fix lint

    * chore: fix lint

    * chore: fix lint

    * chore: remove color-picker event

    * Remove 'align' and 'clear' attributes.

    ---------

    Co-authored-by: wū yāng <[email protected]>

commit 010efea
Author: zhangpaopao <[email protected]>
Date:   Thu Mar 13 19:37:37 2025 +0800

    chore: release tdesign-vue-next  1.11.3 (Tencent#5180)

    * chore: up tdesign-vue-next version to 1.11.3

    * chore: changelog's changes

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit fffc99b
Author: wū yāng <[email protected]>
Date:   Thu Mar 13 18:50:28 2025 +0800

    chore: fix warning and update common (Tencent#5179)

commit 07accf0
Author: 阿菜 Cai <[email protected]>
Date:   Thu Mar 13 18:44:29 2025 +0800

    fix(Select): select all error when `valueType = 'object'` (Tencent#5167)

    * fix(Select): select all error when `valueType = 'object'`

    * chore: optimize format

    ---------

    Co-authored-by: wū yāng <[email protected]>

commit 257bd90
Author: waki <[email protected]>
Date:   Thu Mar 13 18:34:34 2025 +0800

    fix(ColorPicker): colorPicker Input register onChange event (Tencent#5111)

    colorPicker Input register onChange event

    closed Tencent#5079

    Co-authored-by: wū yāng <[email protected]>

commit 3649aad
Author: 阿菜 Cai <[email protected]>
Date:   Thu Mar 13 18:17:09 2025 +0800

    refactor(DatePicker): `useDisableDate` to use common `isEnabledDate` (Tencent#5119)

    fix(date-picker): disable date range error
    chore: remove unnecessary explicit type declarations

    close Tencent#4927

commit ca2697f
Author: 阿菜 Cai <[email protected]>
Date:   Thu Mar 13 18:07:15 2025 +0800

    fix(Select): unnecessary `filterable` when `filter` (Tencent#5169)

commit 636926a
Author: zhangpaopao <[email protected]>
Date:   Thu Mar 13 15:44:53 2025 +0800

    fix: fix build vue-next types (Tencent#5174)

    * feat: builds tdesign-vue-next types

    * feat: build:vue-next-tsc script

    * chore: remove

    * refactor: remove tsconfig.components.json

    * fix: internal/builds prebuild

    * refactor: typesRoot

    * refactor: tsconfig.json include common

    * refactor: glob

commit e37511d
Author: liweijie0812 <[email protected]>
Date:   Tue Mar 11 13:37:56 2025 +0800

    chore(deps):  update deps (Tencent#5162)

    * chore(deps):  remove cypress

    * chore: update dependencies

    ---------

    Co-authored-by: wū yāng <[email protected]>

commit 3c683a7
Author: Wesley <[email protected]>
Date:   Sun Mar 9 23:24:24 2025 +0800

    fix: table drag register event (Tencent#5140)

commit ca22399
Author: 阿菜 Cai <[email protected]>
Date:   Fri Mar 7 17:30:37 2025 +0800

    fix(Dialog):  custom `cancelBtn` text retains `t-dialog__cancel` className (Tencent#5157)

    * fix(Dialog):  custom `cancelBtn` text, retains `t-dialog__cancel` className

    * chore: update snapshot

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit b900665
Author: wū yāng <[email protected]>
Date:   Wed Mar 5 17:40:09 2025 +0800

    chore: release 1.11.2 (Tencent#5154)

    * chore: release 1.11.2

    * chore: changelog's changes

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 4a79516
Author: Wesley <[email protected]>
Date:   Wed Mar 5 17:03:31 2025 +0800

    fix(Dialog): fail to update footer(Tencent#5152)

    * fix: confirmLoad update invalid

    * fix: footerContent not found

    * chore: improve dialog-card

    * fix: div

    * chore: testFile

    * chore: add utils

    * fix: lint

commit a0ce2c4
Author: zhangpaopao <[email protected]>
Date:   Wed Mar 5 13:01:41 2025 +0800

    refactor(color-picker): component optimization v2 (Tencent#5148)

    * refactor(color-picker): components

    * refactor(color-picker): format switch render to setup return

    * refactor(color-picker): inputs switch render to setup return

    * refactor(color-picker): alpha switch render to setup return

    * refactor(color-picker): hue switch render to setup return

    * refactor(color-picker): panel switch render to setup return

    * refactor(color-picker): linear-gradient switch render to setup return

    * refactor(color-picker): saturation switch render to setup return

    * refactor(color-picker): slider switch render to setup return

    * refactor(color-picker): swatches switch render to setup return

    * fix(color-picker): panel style path

    * fix(color-picker): trigger vmodel value.value

commit 4ceaf0a
Author: liweijie0812 <[email protected]>
Date:   Wed Mar 5 10:27:06 2025 +0800

    fix(webstorm): fix ts type prompt (Tencent#5136)

    * fix(webstorm): fix ts type

    * chore: test

    * chore: sync api

    * chore: sync api

commit c859d4e
Author: Wesley <[email protected]>
Date:   Tue Mar 4 16:04:23 2025 +0800

    feat(imageViewer): Custom Download Callback (Tencent#5134)

    * feat: docs & props & type

    * feat: support referrerpolicy API

    * feat: custom download callback

    * fix: lint

commit 820ce8f
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 23:39:52 2025 +0800

    refactor(select-input): component optimization (Tencent#5068)

    * refactor(select-input): component optimization

    * refactor(select-input): expose

    * chore: fix build

    ---------

    Co-authored-by: Uyarn <[email protected]>

commit c87827e
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 16:02:29 2025 +0800

    refactor(dialog): component optimization (Tencent#5138)

    * refactor(dialog): component optimization

    * chore(dialog): fix import error

    * chore: fix build

    ---------

    Co-authored-by: Uyarn <[email protected]>

commit 62db1bc
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 15:56:53 2025 +0800

    refactor(color-picker): component optimization (Tencent#5142)

    * refactor(color-picker): component optimization

    * refactor(color-picker): class ref

    * chore: fix build

    ---------

    Co-authored-by: Uyarn <[email protected]>

commit c9805e7
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 15:36:19 2025 +0800

    refactor(date-picker): component optimization (Tencent#5139)

commit 46db7a4
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 15:26:50 2025 +0800

    refactor: component optimization (Tencent#5137)

commit bcb2ba0
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 13:53:44 2025 +0800

    refactor(loading): component optimization (Tencent#5127)

    * refactor(loading): component otimization

    * chore(loading): remove unused showNormalLoading

commit f826c95
Author: Wesley <[email protected]>
Date:   Sun Mar 2 13:41:26 2025 +0800

    chore: fix change typo (Tencent#5135)

commit cf19e06
Author: zhangpaopao <[email protected]>
Date:   Sun Mar 2 13:39:44 2025 +0800

    refactor(common-components): component optimization (Tencent#5141)

commit 0fa1519
Author: zhangpaopao <[email protected]>
Date:   Sat Mar 1 14:35:37 2025 +0800

    fix(hooks): useTNodeJSX (Tencent#5102)

    * fix(hooks): useTNodeJSX

    * fix(hooks): up

    * test: up test

    * test: up menu multi-side example

    * chore: update snapshot

    * chore: up multi-side

    * chore: up multi-side

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit e02eef4
Author: wū yāng <[email protected]>
Date:   Sat Mar 1 14:28:22 2025 +0800

    chore: release 1.11.1 (Tencent#5125)

    * chore: release 1.11.1

    * chore: fix typo

    * chore: remove deprecated CHANGELOG

    * chore: changelog's changes

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 091fdc1
Author: Wesley <[email protected]>
Date:   Sat Mar 1 14:11:49 2025 +0800

    fix: dialogCard Console Warn (Tencent#5126)

    * fix: dialogCard Console Warn

    * fix: typo & className

commit da52954
Author: wū yāng <[email protected]>
Date:   Sat Mar 1 12:19:45 2025 +0800

    fix(List): fix scrollTo instance func (Tencent#5117)

commit ea31dea
Author: wū yāng <[email protected]>
Date:   Sat Mar 1 12:17:56 2025 +0800

    fix: fix cjs bundle (Tencent#5116)

commit 41d0302
Author: Wesley <[email protected]>
Date:   Sat Mar 1 12:17:24 2025 +0800

    fix: ignore Ctrl-Key & Command-Key (Tencent#5124)

commit fec58d2
Author: liweijie0812 <[email protected]>
Date:   Fri Feb 28 15:57:52 2025 +0800

    ci(pr-comment-ci): fix check snap conflict (Tencent#5120)

commit 07a3059
Author: liweijie0812 <[email protected]>
Date:   Fri Feb 28 14:48:39 2025 +0800

    ci(pkg-pr-new): add running conditions (Tencent#5103)

commit 5e52d50
Author: PY <[email protected]>
Date:   Thu Feb 27 23:22:44 2025 +0800

    chore: release 1.11.0 (Tencent#5110)

    * chore: release 1.11.0

    * chore: changelog's changes

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 0de27a5
Author: wū yāng <[email protected]>
Date:   Thu Feb 27 22:54:42 2025 +0800

    fix(Select): fix checkall behavior when using filter props (Tencent#5104)

    * fix(Select): fix checkall behavior when using filter props

    * chore: optimize

    * chore: update snapshot

    * chore: optimize

commit 012d205
Author: wū yāng <[email protected]>
Date:   Thu Feb 27 22:31:42 2025 +0800

    chore: optimize ai search (Tencent#5108)

    * chore: optimize ai search

    * chore: optimize ai search

    * chore: comment

commit 01f3b7c
Author: Wesley <[email protected]>
Date:   Thu Feb 27 19:43:55 2025 +0800

    feat(Table): Supple Validate Table Cell Data (Tencent#5105)

    * feat: validateTableCellData

    * update typo

commit e8dcb27
Author: liweijie0812 <[email protected]>
Date:   Thu Feb 27 14:28:14 2025 +0800

    chore: fix import path (Tencent#5101)

commit 6fa0e07
Author: liweijie0812 <[email protected]>
Date:   Thu Feb 27 12:04:46 2025 +0800

    chore: update plugin prompt (Tencent#5090)

    * chore: update plugin prompt

    * feat: add ConfigProviderProps

    * docs: remove attach

    * chore: fix lint

    * chore: lint

    * chore: sync api

    * chore: update route

    * chore: fix doc url

    * chore: sync api

    * feat(Content): support content api

    * fix: content props

commit 5cc361f
Author: betavs <[email protected]>
Date:   Thu Feb 27 11:59:53 2025 +0800

    refactor(select): improve tag removal logic and update context handling (Tencent#5092)

commit 3144f27
Author: 阿菜 Cai <[email protected]>
Date:   Thu Feb 27 10:57:33 2025 +0800

    fix(treeSelect): auto expand the selected nodes on initial render (Tencent#5003)

    * fix(treeSelect): automatically expand the selected nodes on initial render

    * chore: remove extra code

    * chore: 支持别名筛选

    * chore: style findParentValues function

    * feat: 使用 `getParents` 获取父节点

    * chore: 使用 `treeSelectValue` 获取父节点

    * chore: extract public functions to common

    * chore: 参数调整

    * chore: update common

    * chore: update common

    * chore: update common

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 907de18
Author: zhangpaopao <[email protected]>
Date:   Thu Feb 27 10:49:00 2025 +0800

    docs: update CONTRIBUTING.md and test README.md (Tencent#5056)

commit d42741c
Author: wū yāng <[email protected]>
Date:   Wed Feb 26 22:31:00 2025 +0800

    chore: ignore beta version (Tencent#5100)

    * chore: ignore beta version

    * chore: fix bundle files missing

commit a9ef7eb
Author: wū yāng <[email protected]>
Date:   Wed Feb 26 21:53:22 2025 +0800

    chore: release 1.11.0-beta.1 to test npm publish workflow based on mono repo (Tencent#5099)

commit b8fadae
Author: zhangpaopao <[email protected]>
Date:   Wed Feb 26 21:30:27 2025 +0800

    refactor(menu): component optimization (Tencent#5097)

    * refactor(menu): component optimization

    * refactor(menu): fix

    * refactor: up snap
Merge branch 'develop' into feat/drawerPlugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
Status: 已发布
Development

Successfully merging a pull request may close this issue.

3 participants