69 Commits

Author SHA1 Message Date
5447972845 feat(components): [tree-v2] add scrollbar-always-on attribute (#21293) 2025-07-11 17:48:45 +08:00
cfc661c626 feat(types): [components] add public prop types (#21222)
* feat(types): [utils] add ExtractPublicPropTypes type

* feat(types): [components] add props public type

* chore(types): use type-only import for Prop from 'vue'

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-07-07 00:51:32 +08:00
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02:00
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920.

* Revert "chore: fix"

This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
097e3f08a1 fix(components): [table-v2] modify the width calculation logic (#19021)
* fix(components): [table-v2] modify the width calculation logic

* fix(components): [table-v2] resolved scrollbar width issue

* test(components): [scrollbar] fix test case error
2025-05-14 21:32:03 +08:00
8edea27a36 build: rollup dts (#20586)
* build: rollup dts

* update

* update
2025-05-06 09:42:40 +08:00
sea
1084071fcf chore(eslint-config): add newline-after-import rules (#20309)
chore: add `newline-after-import` rules
2025-03-31 20:48:10 +08:00
3a6c51c300 chore: [virtual-list] remove ts-nocheck directive and unused code (#20299)
* chore: [virtual-list] remove ts-nocheck directive and unused code

* chore: remove compatible code

* chore: add line

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-03-31 09:02:10 +00:00
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb814d2b1300bf57c06648b6b27281c7c5.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00
cd517d6743 chore(components): [select-v2] remove ts-nocheck comments in select-v2 (#16746)
* chore: remove ts-nocheck comments in select-v2

* take the review comments

* improve emits type

* the keys of emits use camelCase instead of kebab-case

* apply suggestions from code review

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

* reduce duplicate ESLint comments

* use more succinct syntax to define props

* revert emits to kebab-case

* fix: type checking failed

* chore: illustrate why return early in validateIcon

* fix: signature with duplicate parameter names

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-09-23 13:45:35 +08:00
8618a6bcd0 refactor: import shared utilities from @element-plus/utils (#18048)
chore: import shared utilities from `@element-plus/utils`
2024-08-29 09:04:03 +08:00
bd95cc8a46 perf(components): [virtual-list] wrap row with Fragment and set key on it (#8284)
fix(components): [virtual-list] wrap row with Fragment and set key on it

closed #8279

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-21 10:52:12 +08:00
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
sea
606ff06322 improvement(components): @touchstart @touchmove @wheel add passive (#16741)
* perf(components): @touchstart @touchmove add passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* style: fix lint

* perf(components): update passive

* perf(components): update passive

* perf:  delete useless code
2024-07-26 21:01:17 +08:00
fe0d162193 fix(components): [tree-v2] component activation content not displayed (#17511) 2024-07-13 17:19:34 +08:00
b905cc00aa refactor(components): [virtual-list] remove use-wheel ts-nocheck comments (#16929)
chore: remove ts-nocheck comments in virtual-list
2024-05-21 16:37:11 +08:00
xy
5d2bedc867 fix(components): [virtual-list] Resetting the vertical scrollbar state (#13319) 2023-06-25 09:29:10 +08:00
105d79b0d9 refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00
6b983e1215 chore(components): [table-v2] accessibility improvement (#11891) 2023-03-08 15:14:06 +08:00
2ab408ae48 fix(components): [virtual-list] scroll issue (#11475)
* Remove browser judgement for fixing scroll issue.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
Co-authored-by: iamkun <kunhello@outlook.com>
2023-02-09 19:04:05 +08:00
2793c8477f fix(components): fix virtual list scroll&wheel handler (#11472)
fix xEndEdge&yEndEdge logic when wheel event emits

fix hasReachedEdge logic when  offsetX

offsetY is zero

closed #11463, #11155

Co-authored-by: 迦叶(仝航) <jiaye@xiaohongshu.com>
2023-02-08 23:20:46 +08:00
5bcccfd756 fix(components): [virtual-list] fix type error (#9780) 2022-09-16 07:50:17 +08:00
54f4353587 perf: RTLOffsetType compare (#9320) 2022-08-18 09:35:18 +08:00
48d0edfe99 fix(hooks): [use-lockscreen] fix namespace (#8711) 2022-07-26 18:12:14 +08:00
2287dc3690 fix(components): [virtual-list] throw non-corresponding error message (#8835) 2022-07-17 17:28:26 +08:00
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
3374ab9a1c fix(components): [virtual-list] fix namespace in virtual-list (#8255)
Co-authored-by: 迪恩 <dien@yottastudios.com>
2022-06-14 20:59:56 +08:00
52a528fde7 fix(components): [virtual-table] horizontal scroll (#7538) 2022-05-06 21:28:57 +08:00
77c7225a9d docs(components): [virtual-table] basic usage (#7352)
- Add entry for table-v2
- Add basic usage for table-v2
2022-04-24 13:44:40 +08:00
6d9e56a106 feat(components): [virtual-table] compsables (#7341)
- Split `use-table` into separate files for better readability
2022-04-23 20:05:20 +08:00
655fecd8f2 feat(components): [virtual-table] renderers (#7273)
- Update table grid for dynamic height row rendering
- Expose reset rendered row methods for Grid
- Expose enums in virtual table for user facing usages.
- Update table-v2 style.
2022-04-20 18:06:45 +08:00
34f6f71042 test: enable clearMocks in vitest config (#7263) 2022-04-20 17:02:44 +08:00
0a0241e54d test: fix console output errors and warnings (#7237) 2022-04-19 17:37:56 +08:00
1d13ebb05d feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
5716a94211 feat(components): [virtual-table] renderers (#7218)
- Temporarily removed ColumnResizer in HeaderCell
- Update VirtualScrollbar to match the design
- Style updates
2022-04-18 15:53:03 +08:00
da63b35c6b feat(components): [virtual-table] renderers (#7195)
- Move render function into rendering units
2022-04-17 15:34:52 +08:00
83aba9fd7a feat(components): [virtual-table] renderer (#7191)
- Add ExpandIcon for rendering expandable row
- Fix a potential bug in VirtualGrid component
- Add method for mapping expandable data
2022-04-17 11:36:14 +08:00
dbebca623b feat(components): [virtual-table] composables (#7143)
- Add implementation for virtual table composables
2022-04-13 15:24:17 +08:00
851bd47c37 refactor(components): [virtual-list, visual-hidden] use useNamespace (#6461) 2022-04-12 22:52:48 +08:00
993971e872 feat(components): [virtual-table] grid table (#7081)
- Add grid table props definitions
- Implemented TableGrid component
- Update Virtual Grid for rich typing
2022-04-10 14:05:12 +08:00
5021214d77 feat(components): [el-virtual-list] support native behaviours (#6945) 2022-04-01 14:37:41 +08:00
cc9df6ea61 style: delete extra spaces (#6903)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-03-31 09:11:29 +08:00
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
d9b8ec2164 refactor(utils): remove isFF (#6507)
* refactor(utils): remove isFF

* chore: remove isObject
2022-03-10 11:30:10 +08:00
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
6503e55277 refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00
c1e5d724d8 refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
426a6a686c feat: switch to lodash-unified (#5734)
* feat: switch to lodash-unified

* chore: move lodash mocks
2022-02-08 10:37:21 +08:00
6287c1f92d refactor(utils): remove isServer (#4792) 2021-12-12 23:28:03 +08:00