Commit Graph

97 Commits

Author SHA1 Message Date
dopamine
6cea66f24c refactor: buildProps 2025-03-21 19:33:46 +08:00
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* 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
风屿
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
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
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
TKSun
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
Mark J
fbbb50a9b2 fix(components): [input] refused to apply inline style because it violates csp (#19541)
fix(components): [input] CSP support #15065

`element.setAttribute('style', 'css code')` violate Content Security Policy (CSP)
using `element.style.setProperty()` instead
2025-01-24 15:05:10 +08:00
qiang
6c6e4c67e2 fix(components): [input] the cursor error when click show-password (#19003)
closed #18387, #18831
2024-11-24 20:02:02 +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
Lo
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
btea
d7e5f193cd fix: the disabled state should not trigger focus (#18108) 2024-08-31 19:48:48 +08:00
btea
344c218d01 test(components): [pagination/input] test case (#18080) 2024-08-29 20:20:58 +08:00
dopamine
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
blesstosam
1d81c3982d chore(components): [input] remove repeated export of InputInstance (#17907)
* chore: remove repeated export of InputInstance

* chore: recover settings.json

* fix: lint error

* fix: test

---------

Co-authored-by: WL01-10045094 <weilei@weileideMacBook-Pro.local>
2024-08-16 10:42:05 +08:00
qiang
dc8cb90130 fix(components): [input] blur event fails when using textarea (#17836)
closed #17825
2024-08-10 11:02:28 +08:00
qiang
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
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
kooriookami
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
qiang
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
chouchouji
2564007850 refactor(components): optimize component boolean type (#17622)
* refactor(components): optimize component boolean type

* style(components): [overlay] fromat code
2024-07-25 14:17:23 +08:00
sleepyShen1989
56d1afa283 fix(components): [input] add prop "row" explicit declare (#17085) 2024-07-21 13:23:04 +08:00
btea
39ac0b5a0d fix(components): [input] class bind error corresponding to dynamic slot (#17194) 2024-06-15 12:40:06 +08:00
btea
73968424d7 feat(components): [input] add is-focus class name when textarea focus (#17049) 2024-06-03 11:44:18 +08:00
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