11 Commits

Author SHA1 Message Date
bf0568cacf feat(components): add custom clear icon (#21699)
* feat(components): add custom clear icon function

added `clear-icon` property to Cascader, Input, and InputTag components to customize the clear icon.

* Update docs/en-US/component/cascader.md

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

* Update docs/en-US/component/cascader.md

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

* feat(components): add custom clear icon use case

* docs(components): reduce cascader clear-icon use case options

* Update packages/components/input-tag/src/input-tag.vue

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

* Update packages/components/input/src/input.vue

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

---------

Co-authored-by: btea <2356281422@qq.com>
2025-08-15 18:47:30 +02:00
8a243036fe fix(components): [input-tag] paste multiple delimiters (#21256)
* fix(components): [input-tag] paste multiple delimiters

* chore: refact

* refactor: easier to read & import types

* chore: remove useless convert regex

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

* chore: fix

* chore: fix

* chore: same logic on paste & better tests

* chore: fix edge case

* chore: fix

* chore: add

---------

Co-authored-by: btea <2356281422@qq.com>
2025-07-08 09:02:13 +00: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
b881ef25cb refactor(hooks): [useFocusController] add disabled attribute (#21032)
refactor(hooks): [useFocusController] add disabled prop

Co-authored-by: warmthsea <2586244885@qq.com>
2025-07-01 08:41:35 +00: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
0589201ad4 feat(components): [input-tag] add delimiter (#20532)
* feat(components): [input-tag] add delimiter

* chore: add missing bump version
2025-04-26 07:55:25 +08:00
7fcc81b17b feat(components): [input-tag] add saveOnBlur prop (#20158)
* feat(components): [input-tag] add saveOnBlur prop

* fix(components): [input-tag] reset inputValue to undefined

* docs(components): [input-tag] add version tag for save-on-blur attribute

* refactor(components): [input-tag] simplify saveOnBlur prop definition

* chore(components): [input-tag] set saveOnBlur default to true

* docs(components): [input-tag] saveOnBlur default to true
2025-03-20 21:07:31 +08: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
72a0eebf4f fix(components): [input-tag] trigger the add of tag when Chinese is Composing (#19079)
fix(components): [input-tag] trigger the add of tag when is Composing
2024-12-03 07:49:03 +08:00
d416dd74b0 feat(components): [input-tag] new component (#18885)
* feat(components): [input-tag] add input-tag component

* feat: styles

* test: add test

* docs: add docs

* docs: updata

* docs: uopdata

* docs: updata

* fix: optimize the style when input too long text

* feat: add draggable attribute

* fix: regain focus after dragged

* fix: regain focus on dragend

* refactor: useDragTag

* fix: style of disabled

* refactor: rename event name

* refactor: move useCalcInputWidth to hooks

* feat: add aria-label
2024-11-29 10:50:21 +08:00