Commit Graph

73 Commits

Author SHA1 Message Date
kooriookami
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
Xc
beaac3736c fix(components): [input] type hidden use class (#15865) 2024-02-20 13:02:20 +08:00
YoungDan-hero
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
afe1
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
btea
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
Hefty
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
Evan Liu
55272b51c3 chore(components): [input] fix inputStyle comment typo (#13768) 2023-07-29 08:55:02 +08:00
btea
8fc38655b0 refactor(components): [input] extract InputInstance (#13620) 2023-07-18 17:37:21 +08:00
qiang
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
wzc520pyfm
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
btea
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
Hefty
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
btea
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
Jeremy
4c27822ef0 fix(components): circular referencing issue (#11777)
* fix(components): circular referencing issue

* Move sizes related into hooks.
* Remove size definitions in forms only re-exports.

* chore: fix failing tests
2023-03-01 16:44:09 +08:00
Jeremy
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
acyza
9d3d77c674 fix(components): [input] fix textarea autosize (#11376)
* fix(components): [input] fix textarea autosize
2023-02-14 23:51:32 +08:00
acyza
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
Xc
8ee73a4183 fix(components): [input] prefix and suffix add click focus event (#10674) 2022-11-20 15:00:19 +08:00
iamkun
2167a01822 docs: fix error text (#10587) 2022-11-12 09:52:31 +08:00
Xc
d1e615eca7 docs(components): [input] (#10513)
* docs(components): [input]
* Update input doc
* Add description for input props
* Add exposes attribute to doc
* Add a11y tag

* docs(components): [input]
2022-11-09 23:57:22 +08:00
Xc
e7843c02c4 refactor(components): [input] export instance type (#10368) 2022-11-02 22:32:06 +08:00
Hefty
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
Hefty
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
Xc
7b2f1c5bb9 fix(components): [input] memory leak (#9965) 2022-10-02 09:23:53 +08:00
Xc
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
zz
f5fa7e741f refactor(utils): refactor iconPropType (#9502) 2022-08-28 13:20:07 +08:00
류한경
9d8bad8419 fix(components): [input] fix type error (#8731) 2022-07-10 15:09:50 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
btea
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
opengraphica
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
opengraphica
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
bqy_fe
675311b7db fix(components): [input] when textarea resize is both, the wordLimit position inaccurate (#7445) 2022-05-05 09:52:37 +08:00
Serendipity96
9b23b1c9ec feat(components): [input] add input formatter (#6876)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-23 22:48:21 +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
Delyan Haralanov
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
Zhongxiang Wang
d2810c867e fix(components): [input] fix status icon gap (#7228) 2022-04-19 12:39:08 +08:00
Zhongxiang Wang
8307d109fd refactor(components): [input] change to flex layout (#7179)
* Revert "fix(components): [input] improved when both `suffix` and `prefix` are displayed (#7001)"

This reverts commit 793ca8ae29.

* refactor(components): [input] change to flex layout
2022-04-18 23:18:13 +08:00
白雾三语
793ca8ae29 fix(components): [input] improved when both suffix and prefix are displayed (#7001)
* fix: [el-select-v2] 修復select-v2 v-model 不能正常的支持 Object

* feat: [el-select-v2] 修復select-v2 v-model 不能正常的支持 Object,并增加单元测试

* improvement(components): The input component text display is optimized

* docs(components): Modify the comment

* improvement(components): Set padding default value

* improvement(components): 修改了部分写法并增加了类型

* improvement(components): 添加注释

* improvement(components): Modify the comment

Co-authored-by: 白雾三语 <32354856+czh740132583@users.noreply.github.com>
2022-04-10 14:25:25 +08:00
Zhongxiang Wang
58ca971e39 fix(components): [el-input] change icon when showing password (#6846) 2022-03-29 15:39:48 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
云游君
f74f4e94d2 refactor(theme-chalk): remove default size class & simplify button css (#6782)
* refactor(theme-chalk): [button] remove default size class & simplify css

* test: fix test caused by size remove default

* fix: adapt for form default & remove tag default button m 0

* fix: add uno.css & bem for tag
2022-03-24 19:42:09 +08:00
Hefty
acecd8e668 fix(components): [el-input] keydown event validator warming (#6691) 2022-03-19 09:28:28 +08:00
JeremyWuuuuu
be0f72577b fix(components): [el-form] Form not emitting validation result (#6610)
* fix(components): [el-form] Form not emitting validation result

- Refactor validate code to allow it to yield promise value
- Update tests accordingly

* fix: refactor

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-14 19:47:31 +08:00
三咲智子
5d85fba20c chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
三咲智子
9c30a5d153 refactor(components): [input] refactor (#6545)
* refactor(components): [input] refactor

* test: improve tests

* fix: dts

* fix: nextTick
2022-03-13 00:23:00 +08:00
张大大
045703228b fix(components): [el-input] pass input-style props to input-wrapper (#6506)
Co-authored-by: zhangtian <zhangtian@weidian.com>
2022-03-11 14:56:29 +08:00