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
a579224896
fix(components): [autocomplete] add placeholder prop type definition ( #21206 )
...
* fix(components): [autocomplete] add placeholder prop type definition
* feat(components): [autocomplete] add inputProps and merge properties
* docs: [input] description typo
* feat: explicitly using the `model` & `disabled`
* fix(components): [time-picker] single input name type
* docs: add input attrs link
---------
Co-authored-by: warmthsea <2586244885@qq.com>
2025-07-03 00:15:53 +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
bc7773b673
feat(components): [input] native inputmode prop for el-input & el-input-number ( #14997 )
...
* feat(components): add native inputmode for el-input
* feat(components): add native inputmode for el-input-number
Please enter the commit message for your changes. Lines starting
* chore: rm "props" in template
2025-06-20 20:24:26 +08: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
aab2df4b40
refactor: delete useless code ( #20759 )
...
* refactor: delete useless code
A && B && C && ( C || D ) === A && B && C 所以第四个判断完全没意义
* chore: format code
---------
Co-authored-by: warmthsea <2586244885@qq.com>
2025-05-19 09:07:05 +08:00
e87a8670d4
refactor(components): [description, input] use the component name constant ( #20107 )
...
* refactor(components): [description] extracts the component name constant
* refactor: extracts the component name constant
* refactor: change the location of COMPONENT_NAME
* Update packages/components/descriptions/src/description-item.ts
Co-authored-by: btea <2356281422@qq.com>
* refactor: change the name
* refactor: Extract COMPONENT_NAME to a separate file
* refactor: Adjust rows
---------
Co-authored-by: btea <2356281422@qq.com>
2025-03-15 23:14:51 +08:00
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
7acf11ec37
test(components): [input] use formatter
, event val check ( #20031 )
...
Co-authored-by: btea <2356281422@qq.com>
2025-03-06 09:44:45 +08:00
b46fc201e4
fix(components): [input] @change
event value formatter ( #20000 )
...
* fix: change事件值没有被格式化
fix: change事件值没有被格式化
* Update packages/components/input/src/input.vue
---------
Co-authored-by: btea <2356281422@qq.com>
2025-03-06 09:36:49 +08:00
6c6e4c67e2
fix(components): [input] the cursor error when click show-password ( #19003 )
...
closed #18387 , #18831
2024-11-24 20:02:02 +08:00
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
5917190205
feat(components): [input] show pwd visible icon when the input is readonly ( #18458 )
...
feat(components): [input] show pwd visible icon when input is readonly
2024-10-15 13:35:34 +08:00
d7e5f193cd
fix: the disabled state should not trigger focus ( #18108 )
2024-08-31 19:48:48 +08:00
dc8cb90130
fix(components): [input] blur event fails when using textarea ( #17836 )
...
closed #17825
2024-08-10 11:02:28 +08:00
949479699b
refactor(hooks): determine the focus by event listening ( #17719 )
...
* refactor(hooks): determine the focus by event listening
* test: skip the focus test
* test: fix test
* feat(hooks): add beforeFocus
* fix: optimize blur
* chore(components): [mention] remove focus & blur
2024-08-07 18:35:30 +08:00
0f8282520f
chore(components): remove deprecated 2.8.0 ( #17735 )
...
* chore(components): remove deprecated 2.8.0
* chore(components): update
2024-08-02 11:08:24 +08:00
0456c790db
feat: add mention component ( #17586 )
...
* feat: add mention component
* fix: build error
* fix: build error
* feat: delete as a whole
* fix: update docs
* fix: update global.d.ts
* fix: update
* fix: update code
* fix: update code
* fix: update code
* fix: rename
* fix: update code
* fix: upload code
* fix: update code
* fix: fixed cursor position abnormality
* fix: update code
* fix: docs add avatar
* fix: tooltip position is wrong when placing on top
* feat: add overview icon
* fix: overview icon color
2024-08-02 11:00:26 +08:00
233d38b631
refactor(hooks): rewrite composition as a composable function ( #14240 )
...
* refactor(hooks): rewrite composition as a composable function
* fix(components): [select] avoid navigateOptions when composing Chinese
* fix: error
* chore: change afterComposition
2024-07-28 21:11:20 +08:00
56d1afa283
fix(components): [input] add prop "row" explicit declare ( #17085 )
2024-07-21 13:23:04 +08:00
39ac0b5a0d
fix(components): [input] class bind error corresponding to dynamic slot ( #17194 )
2024-06-15 12:40:06 +08:00
73968424d7
feat(components): [input] add is-focus
class name when textarea focus ( #17049 )
2024-06-03 11:44:18 +08:00
bd1613d599
feat(hooks): add use-aria hooks ( #16598 )
...
* feat(hooks): add use-aria hooks
* feat(components): update
* feat(hooks): update
* feat(hooks): update
2024-04-23 13:56:44 +08:00
beaac3736c
fix(components): [input] type hidden use class ( #15865 )
2024-02-20 13:02:20 +08:00
5ae172962b
fix(components): [input] resolve input attributes issue for textarea ( #15514 )
...
fix(components): resolve input attributes issue for textarea
The minlength and maxlength attributes were not working properly when the input type was set to textarea. This commit fixes this issue, ensuring these attributes function as expected for textarea inputs.
2024-01-15 17:06:54 +08:00
49ca14fecd
fix(components): [input] remove useless contants ( #15351 )
...
* fix(components): [input] remove useless contants
* fix: remove useless contants
2024-01-04 20:52:17 +08:00
62206bb0c0
fix(components): [input] remove unnecessary properties ( #15220 )
2023-12-22 09:56:46 +08:00
c4dac14f1b
refactor(components): [input] get maxlength and minlength from props instead of attrs ( #15212 )
...
* refactor(components): [input] get maxlength and minlength from props
* refactor: remove default
2023-12-21 14:30:57 +08:00
e5a3a13760
fix(components): [input] input-style rendering error ( #15174 )
...
fix(components): [el-input] input-style rendering error
2023-12-17 12:49:28 +08:00
09bb91abef
fix(components): [input] missing autofocus types ( #14246 )
...
* fix(components): [input] missing autofocus types
closed #14243
* fix: autofocus default to false
2023-09-14 10:25:51 +08:00
704399fadd
fix(components): [input] lose focus when click suffix icon ( #13264 )
...
* feat(hooks): add useFocusController
* fix(components): [input] lose focus when click suffix icon
closed #13153 , #13159
* refactor(hooks): use-focus-controller
* test: fix test
* test: update
* fix(theme-chalk): [input] add cursor style to the wrapper
2023-07-13 16:41:18 +08:00
03e2a15411
fix(components): [input] fix formatter and parse problem ( #12622 )
...
* fix(components): [input] fix formatter and parse problem
closed #12613
* fix(components): [input] fix input value problem
* fix(components): [input] update return value for input event emit
* test(components): [input] add test for formatter and parser
2023-06-04 13:51:44 +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
6c20f21831
fix(components): [input] textarea height calc ( #12087 )
2023-03-23 16:42:16 +00:00
6026035c8e
fix(components): [input] scrollbar not hide after autosize ( #10137 )
...
* fix(components): [input] scrollbar not hide after autoresize
closed #8825
* chore: add note for force repaint
* chore: remove useless type
* fix: duplicate call calcTextareaHeight
2023-03-20 09:51:57 +08:00
b38607f53b
fix(components): [input] update input value length calculate ( #11816 )
...
* fix(components): [input] update input value length calculate
* fix: update test
2023-03-10 14:52:40 +08:00
11925c8231
refactor(tokens) - [form] ( #11743 )
...
* refactor(tokens): [form] - remove tokens/form
* Move content in tokens/form to components/form.
* Replace token imports in components/form.
* chore: remove form/tokens and replace imports
* refactor(components): [form/form-item]
* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
55bfb50a4d
fix(components): [input] use v-if throw exception ( #11187 )
...
* fix(components): [input] use v-if throw exception
* fix(components): [input] remove the non-null assertion
2023-02-05 19:35:32 +08:00
8ee73a4183
fix(components): [input] prefix and suffix add click focus event ( #10674 )
2022-11-20 15:00:19 +08:00
8dafd0aa53
perf(components): [input] remove useless calculation ( #10092 )
...
No need to calculate icon offset after change to the `flex` layout
2022-10-14 18:16:48 +08:00
2d69499935
fix(components): [input] missing native form attribute ( #10093 )
...
* fix(components): [input] missing native form attribute
closed #9827
* fix: change form prop default value to undefined
2022-10-14 18:15:57 +08:00
7b2f1c5bb9
fix(components): [input] memory leak ( #9965 )
2022-10-02 09:23:53 +08:00
fa312f0b85
fix(components): [input] formatted values are out of sync ( #9501 )
...
Co-authored-by: RealityBoy <1923740402@qq.com>
2022-08-31 13:45:38 +08:00
bf2d671142
refactor(components): [input] fix ts error ( #8200 )
2022-06-13 14:49:18 +08:00
94808e8ec9
fix(components): [input] hide eye icon if no value ( #8096 )
2022-06-08 09:24:15 +08:00
42ff59fc39
feat(components): [date-picker] work with modal focus trap; a11y controls and attributes ( #7598 )
...
* feat(components): [date-picker] a11y controls and attributes
* feat(components): [date-picker] keyboard controls for picker
* feat(components): [date-picker] unit test complete
* feat(components): [date-picker] remove immediate watch date
2022-05-10 21:51:17 +08:00
7173e402b7
feat(components): [form-item] auto attach labels to inputs ( #7450 )
...
* feat(components): [form-item] auto attach labels to inputs
* feat(components): [form-item] auto-attach up through select
* feat(components): [form-item] auto id complete for all inputs
* feat(components): [form-item] fix lint, remove unused usePopper hook
* feat(components): [form-item] PR comments
2022-05-05 22:04:32 +08:00
675311b7db
fix(components): [input] when textarea resize is both, the wordLimit position inaccurate ( #7445 )
2022-05-05 09:52:37 +08:00
9b23b1c9ec
feat(components): [input] add input formatter ( #6876 )
...
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-23 22:48:21 +08:00
d2810c867e
fix(components): [input] fix status icon gap ( #7228 )
2022-04-19 12:39:08 +08:00