Commit Graph

146 Commits

Author SHA1 Message Date
Meet you
9d9d71a32c feat(components): [date-picker] add quick year and month selection (#19700)
* feat(components): [date-picker] add quick year and month selection

closed #1730

* fix(components): [date-picker] update

* test(components): [date-picker] add tests for year and month selection

* fix: update

* fix(components): update

* fix(components): update

* fix: [date-picker] fix conflicts

* fix(components): [date-picker] update

* Update packages/components/date-picker/src/date-picker-com/panel-date-range.ts

Co-authored-by: btea <2356281422@qq.com>

* fix(components): [date-picker] update

* fix(components): [date-picker] update

---------

Co-authored-by: btea <2356281422@qq.com>
2025-05-13 12:25:06 +08:00
Noblet Ouways
bb5c767b7e fix(components): [date-picker] merge default-value with default-time (#20550)
* fix(components): [date-picker] merge `default-value` with `default-time`

* fix: build

* chore: cleanup

* chore: fix ssr test
2025-05-06 17:16:02 +08:00
betavs
69a94c1263 fix(components): [date-picker] correct injection key for default format (#20611) 2025-05-01 16:33:07 +08:00
dopamine
30a0bfe0a5 fix(components): [date-picker] memory leak with vue 3.4+ (#20451)
* fix(components):[date-picker] memory leak with vue3.4+

* --amend
2025-04-18 11:19:05 +08:00
btea
2e58b8259d fix(components): [date-picker] config format manual change value invalid (#20223)
* fix(components): [date-picker] config format manual change value invalid

* fix: update
2025-03-25 10:09:47 +08:00
thinkasany
7dbac0e1bc chore: use event constants instead string (#20104)
* chore: use UPDATE_MODEL_EVENT constants

* chore: update INPUT_EVENT & CHANGE_EVENT
2025-03-12 15:52:07 +08:00
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
DDDDD12138
d4bb395291 fix(components): [date-picker] support remove same months from different years (#20020)
* fix: support selecting same months from different years

* feat: add test case

* chore: adjust description
2025-03-07 09:51:08 +08:00
知晓同丶
bb4d0535bc fix(components): [date-picker] add user input validation (#20021)
* fix(components): [date-picker] add user input validation

closed #19841

* refactor: rename `checkUserInput` to `correctlyParseUserInput`
2025-03-06 16:17:59 +08:00
xingyixiang
f932ea2dcb fix(components): [date-picker] change triggers twice when clearing (#19804)
* fix(components): [date-picker] change triggers twice when clearing

* fix(components): [date-picker] change triggers twice when clearing

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test
2025-03-03 15:47:34 +08:00
一只前端汪
83cda2115a fix(components): [date-picker] model-value unexpected changes when type is week (#16795)
* fix(components): [date-picker] Unexpected changes when type is week

* fix: remove console

* fix: a11y error

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-12-15 11:05:40 +08:00
DDDDD12138
776ae477fe fix(components): [date-picker] resolve v-model type inconsistency (#18888)
* fix(components): [date-picker] resolve  v-model type inconsistency

* test: add unit test form CommonPicker
2024-11-23 17:44:43 +08:00
jiaxiang
10fcc59ed4 refactor: replace Array.isArray with the built-in isArray (#18671)
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +08:00
qiang
845c07adef feat(components): [date-picker] accessibility enhancement (#18109)
* feat(components): [date-picker] accessibility enhancement

closed #14150

* docs: update

* test: add test

* chore: change prevent to passive

* fix: long press the clear icon to open the time panel

* fix: cannot read $el

* fix: cannot read $el

* docs: updata
2024-10-27 12:14:53 +08:00
btea
60b899d9bc feat(components): [date-picker] add show-now prop (#18625) 2024-10-23 08:53:48 +08:00
qiang
7017d19260 fix(components): [tooltip] change ariaHidden value after closed the dropdown (#18207)
* fix(components): [tooltip] change ariaHidden value after closed dropdown

closed #17720

* test: fix test
2024-09-10 15:58:53 +08:00
xingyixiang
9aa70ecd4e fix(components): [date-picker] disabledDate is invalid when selecting year or month picker (#15848)
* fix(components): [date-picker] props.disabledDate is invalid
when selecting year or month picker

* test(components): [date-picker] props disabledDate

* fix(components): [date-picker] props.disabledDate is invalid

* fix: test

* fix: error

* fix: Disable time validation for date selectors of years and months

* fix: test

* fix: [date-picker] props.disabledDate is invalid

* fix: [date-picker] props.disabledDate is invalid

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-11 19:25:01 +08:00
btea
e815102d70 test(components): default slot test case with type of month or year (#17837) 2024-08-10 11:57:12 +08:00
知晓同丶
839a702af7 feat(components): [date-picker] add icon slots (#17453)
* feat(components): [date-picker] add icon slots

* chore: update date-picker.md

* feat: add `prev-year`、`next-year` with year range

* Apply suggestions from code review

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 12:53:26 +08:00
lyric-zemin
d608f25170 fix(components): [date-picker] Return to normal when reopened (#11802)
* fix(components): [date-picker] Return to normal when reopened

closed #11612

* fix(components): [date-picker] Return to normal when reopened

* test(components): [date-picker] update test

* fix: repeatedly calling the onReset function

---------

Co-authored-by: wu.zeMin <244@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 12:49:14 +08:00
btea
2c1b1ca62c fix(components): [date-picker] slot not take effect when type is month (#17748)
* fix(components): [date-picker] slot not take effect when type is month

* feat: type year support slot

* fix: type

* fix: update

* style: update

* fix: test
2024-08-09 11:15:53 +08:00
Robert Zeng
8692965e80 feat(components): [date-picker] add type yearrange for DatePicker (#14804)
* fix(components): fix bug #14637

* refactor(components): [el-button]update props autoBlur name

* docs(components): [el-button] update docs ablout props clickAutoBlur

* fix(components): [date-picker]  fix bug  #14728

* feat(components): [date-picker] add yearrange

* feat(components): [date-picker] update yearrange codes

* feat(components): [date-picker]fix select range ui bug

* refactor(components): [date-picker]convert setup() to setup, add TS type

* refactor(components): refactor pane-year-range

* refactor(components): [date-picker] refactor panel-year-range styles

* docs(components): [date-picker] update year-range docs #6388 #2487 #7051

* style(components): [date-picker] remove repeat css

* feat(components): [date-picker]add yearrange unit test

* fix(components): [date-picker] fix  unit test case failed error

* fix(components): [date-picker] resolve some pr problems

* docs(components): [yearrange] update docs

* fix(docs): [yearrange] update example of year-range

* refactor(components): [date-picker] resolve some code review suggestions

* fix(components): [date-picker] resolve some CR problems

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] uniform date compute logic

* fix(components): [date-picker] error occurs when mannul input the date

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] optimize YearTableClick func

---------

Co-authored-by: 曾咏波 <cherishtheyouth@qq.com>
Co-authored-by: yongbo.zeng_U+ <yongbo.zeng@united-imaging.com>
Co-authored-by: upthen <zyb.6616@icloud.com>
2024-08-08 11:32:58 +08:00
dopamine
79938178dd build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
Masanori Doizaki
76b0ab0a5d fix(components): [date-picker] fix user input error in monthrange (#12943)
* fix(components): [date-picker] monthrange类型选择器在输入结束后报错

* fix: the format change

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-03 21:39:42 +08:00
Panzer_Jack
dbfa93bab1 feat(components): [date-picker] type add months params (#17342)
* feat(components): [date-picker] `type` add `months` params

closed #17317

* feat(components): [date-picker] optimized code

* docs(components): [date-picker] enhanced multiple selection example

* test(components): [date-picker] add test

---------

Co-authored-by: Panzer_Jack <shenchang@bilibili.com>
2024-07-19 11:47:25 +08:00
锌小子
605499699e fix(components): [date-picker] support dynamic setting of format (#17161)
* fix(components): [date-picker]

change format will not update component

closed #17149

* test(components): [date-picker]

Add a test case for supproting dynamic format

* test(components): [date-picker]

correct test case

---------

Co-authored-by: 张东 <A80784@internet.com>
Co-authored-by: zhangdong <a80369@gree.com.cn>
2024-06-21 15:25:08 +08:00
XiaoDong
ff936c76b5 fix(components): date-picker minDate change unexpectedly (#16748) 2024-06-18 13:56:24 +08:00
sea / 神秘海
e35f403515 fix(types): non-null assertion component name (#16804) 2024-05-15 09:24:42 +08:00
kooriookami
1163d27f71 feat(components): add empty-values and value-on-clear props (#16361)
* feat(components): add empty values

* feat(hooks): update

* feat(components): update

* feat(components): update

* feat: update

* feat(components): update

* feat(components): update

* feat(components): update

* feat: update doc

* feat: add doc
2024-04-12 13:33:21 +08:00
Ganlvin
b1926d59aa fix(components): [date-picker] click the clear to reset the date panel (#15835)
* fix(components): [date-picker] click the clear to reset the date panel

* test: add test case

---------

Co-authored-by: qiuwenlang <v_wlaqiu@tencent.com>
Co-authored-by: btea <2356281422@qq.com>
2024-03-29 08:10:10 +08:00
btea
6ccc8ee915 refactor(components): [tree & date-picker] use public function and type (#16017) 2024-03-02 20:41:58 +08:00
yuchen
42d1738463 feat(components): [date-picker] add type years for year multiple select (#15980)
* feat(components): [date-picker] add type years for year multiple select

* fix(components): [date-picker] fix footerVisible while type is not years

* style(components): [date-picker] stand out selected item for year/month

* style(components): [date-picker] remove the in-range background

* docs(components): [date-picker] add 'years' for attribute type
2024-03-01 09:35:52 +08:00
betavs
0e1f6ffaa0 fix(components): [date-picker] selected value comparison logic error (#15918)
* fix(components): [date-picker] selected value comparison logic error

* test(components): [date-picker] selected value comparison logic error

* perf(components): [date-picker] selected value comparison logic error

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-02-28 12:09:47 +08:00
Xc
972f236a12 fix(components): [date-picker] add first click demo (#15252) 2023-12-25 10:50:10 +08:00
Xc
dd81a39772 fix(components): [date-picker] handleFocusPicker delay (#15197) 2023-12-22 15:42:16 +08:00
ivan0525
d4f331ffb6 fix(components): [date-picker] tagName judgement error (#15079)
* fix(components): [table] fix tests typo

* fix(components): [date-picker] tagName judgement error

---------

Co-authored-by: zhuangyufeng <zhuangyufeng@szkingdom.com>
2023-12-14 21:07:05 +08:00
一只前端汪
0482d11337 fix(components): [data-picker] use renderSlot simplified code (#15036) 2023-12-05 15:10:08 +08:00
Zenyb
827d606a88 fix(components): [date-picker] the time panel is closed without losing focus (#14748)
* fix(components): [date-picker] fix bug #14728

* fix(components): [date-picker] use handleFocusPicker to fix #14728

---------

Co-authored-by: yongbo.zeng_U+ <yongbo.zeng@united-imaging.com>
2023-12-03 22:07:17 +08:00
wzc520pyfm
9d65c0be90 docs(components): [date-picker] use new dispaly tag (#14754)
* refactor(components): [time-picker] update  boolean attr are declared

* docs(components): [date-picker] use new dispaly tag

* docs(components): [date-picker] delete extra description
2023-11-11 21:47:08 +08:00
一只前端汪
cba217228f feat(components): [date-picker] add dateFormat and timeFormat props (#14330)
* fix(components): [time-picker] extractDateFormat extractTimeFormat

* fix(components): [time-picker] Provide default return values

* feat(components): [date-picker] add dateFormat and timeFormat props

* feat(components): [date-picker] update demo

* Update docs/en-US/component/datetime-picker.md

Co-authored-by: btea <2356281422@qq.com>

* Update docs/en-US/component/datetime-picker.md

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2023-10-13 11:18:23 +08:00
一只前端汪
9b9b65751c fix(components): [date-picker] slot compatible with Vue3.3.x (#14354) 2023-10-04 03:18:59 -05:00
GU Yiling
6e24736f89 fix(components): [date-picker] month range should emit calendar-change (#14262) 2023-09-13 16:53:11 +08:00
Jeremy
06e85824df refactor(components): [date-picker] basic-date-table (#10344)
* Extract logic out of basic-date-table file.
2023-09-10 17:50:12 +08:00
Karolis_Stoncius_Sneakybox
c7021b31ed refactor(components): [date-picker] add aria-labels to date picker btns (#14149) 2023-09-08 11:54:44 +08:00
inottn
a661de2482 fix(components): [date-picker] fix the logic of checking the date range (#13377) 2023-08-24 11:20:13 +08:00
kamesan012
b8e474089b fix(components): fix the attribute conflict (#13504)
* fix(components): fix the attribute conflict

When value is input by shortcut, it's value will not be changed by defaultTime anymore

closed #13483

* fix(components): change param to pass the test

* fix(components): delete unnecessary changes

* fix(components): use let to replace ref variable

* fix(components): add test cases
2023-08-15 23:02:45 +08:00
btea
a8324ca421 refactor: [date-picker] rename time-arrow-control (#13651)
* refactor: [date-picker] remove time-arrow-control

* docs: rename time-arrow-control
2023-08-11 20:51:34 +08:00
Evan Liu
f2b6e1eb2b chore(components): [date-picker] correct typo in test file (#13876) 2023-08-06 09:27:55 +08:00
btea
93b230166c fix(components): [date-picker] disable button if now is disabled (#13655)
* fix(components): [date-picker] disbale button if now is disabled

* fix: test

* chore: add test
2023-07-29 19:21:48 +08:00
dopamine
b0258f6c3e chore(components): [date-picker] export instasnce type (#13618)
* chore(components): [date-picker] export instasnce type

* move DatePickerInstance to instance.ts
2023-07-29 12:20:17 +09:00