148 Commits

Author SHA1 Message Date
Cheerwhy
f37d056441 feat(components): [select] add header and footer slot (#14876)
* feat(components): [select] add header and footer slot

* fix(docs): [select] incorrect word

* fix(theme-chalk): [select-dropdown] incorrect padding

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

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

* Apply suggestions from code review

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

---------

Co-authored-by: qinzz <qinzz@chint.com>
Co-authored-by: btea <2356281422@qq.com>
2023-11-27 15:26:48 +08:00
Fuphoenixes
4580aea8e4 fix(components): [select] style error in multiple collapseTags (#14602) 2023-11-11 21:27:35 +08:00
qiang
808d7a6235 fix(components): [select] input height calculation error (#14565)
closed #14561
2023-10-18 12:27:40 +08:00
qiang
ca8846c532 feat(components): [select] accessibility enhancement (#14503)
* feat: accessibility enhancement

* fix: adjusting the attributes of Scrollbar

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

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

* docs: updata

* fix(components): [select] aria-selected error

---------

Co-authored-by: btea <2356281422@qq.com>
2023-10-12 09:29:00 -05:00
kamesan012
cae9ef17b8 fix(components): inline style doesn't use the custom sass setting value (#14117)
* fix(components): inline style doesn't use the custom sass setting value

closed #14038

* Update packages/components/select/src/useSelect.ts

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

* fix(components): update codes

* fix(components): use ns.cssVarName('input-height')

---------

Co-authored-by: btea <2356281422@qq.com>
2023-10-11 19:14:38 -05:00
btea
685c396524 refactor(components): [select] use utils function (#14345) 2023-09-27 09:08:13 +08:00
wzc520pyfm
6cc5892672 fix(components): [select] fix hover index error when creating option (#12635)
* fix(components): [select] fix error when creating option

closed #12634

* test(components): [select] add test for create and default first option

* fix(components): [select] compatible #11297
2023-08-31 11:22:01 +08:00
sseinHu
e5ebf80bf5 fix(components): [select] gurad value type error (#14074)
fix(components): [useSelect.ts] selected.slice is not a function

select In the case of radio, the packaged code will report select. slice is not a function, because the radio selected is an object, and the object does not have the api of slice
2023-08-28 09:31:22 +08:00
Karolis_Stoncius_Sneakybox
c29f6cc6c7 feat(components): [select] add aria-label to select's input (#13932)
* feat(components): [select] add aria-label to select's input

Select's input causes accessibility issues without aria-label, this commit adds it

* refactor(components): [select] change aria-label to label; update docs

* refactor(components): [select] change back to ariaLabel prop name

* docs(components): kebab-case for docs
2023-08-24 21:03:01 +08:00
inottn
1211312491 fix(components): [select] fix the logic of updating selected data (#13374)
* fix(components): [select] fix the logic of updating selected data

* chore: improve judgment condition
2023-08-23 21:00:31 +08:00
wzc520pyfm
37f40dc9cc docs(components): [select] use new display tag (#13301)
* docs(components): [select] use new display tag

* docs(components): [select] description and comment begins in lower case

* docs(components): [select] update type of prop and event
2023-08-21 21:08:24 +08:00
井柏然
067028ba3c fix(components): [select] backspace delete disabled option (#11995)
* fix(components): [select] backspace delete disabled option

* fix(components): [select] findLastIndex

* fix(components): [select] simple polyfill findLastIndex in test file

* fix(components): [select] add test for backspace

* chore: lint
2023-08-13 21:41:13 +08:00
cc-hearts
74e237ce5c fix(components): [select] fix set value error(#13872) (#13879) 2023-08-10 11:43:17 +08:00
init-qy
fe10f7edc0 fix(components): [select] clearIcon did not work with form statusIcon (#13533)
* fix(components): [select] clearIcon not effect with form statusIcon

* fix(components): [select] add computed value

* fix(components): [select] add comment message

* fix(components): [select] add missing import

* refactor: [select] place selectTagsStyle in useSelect

* fix: [select] remove unused export

* fix: compress code

* fix: fix error
2023-08-04 13:19:27 +08:00
qiang
0109ab6195 fix(components): [select] abnormal focus when click tags (#13699)
* fix(components): [select] abnormal focus when click tags

closed #13665

* fix(components): [select] clearable

* chore(components): [select] remove console

* fix: the setTimeout function may bring some side effects

* fix: remove role

* test(components): [select] add some test
2023-08-03 20:15:57 +08:00
xiaoming
05caa04966 fix(components): [select] fix for confusing click behaviour (#13664)
fix(components): [select] fix for confusing click behaviour (#13642)
2023-07-22 17:02:45 +08:00
xiaoming
4d141a2220 fix(style): [select] tooltip positioning is incorrect (#13424)
fix(style): [select] tooltip positioning is incorrect (#13251 #13422)
2023-07-02 17:30:29 +08:00
wzc520pyfm
4e9fc0854c refactor(components): [select] override the class using computed (#13302)
* refactor(components): [select] override the class using computed

* refactor(components): [select] shorthand class object
2023-06-26 17:55:23 +08:00
Xc
40f70da95c fix(components): [select] filter shake (#12106)
* fix(components): [select] filter shake

* fix(components): [select] filter shake

* fix(components): [select] filter shake

* fix(components): [select] filter shake

* fix(components): [select] remove tagInMultiLine
2023-06-16 08:01:12 +08:00
qiang
a99dbb3954 fix(components): [select] optimize the triggering of blur event (#11524)
* fix(components): [select] drop-down selection is not closed when blur

closed #10893, #10992

* fix(components): [select] optimize the triggering of blur event

* refactor(components): [select] optimize code
2023-05-28 17:31:25 +08:00
sleepyShen1989
44376fa0c7 fix(components): [select] fix placeholder display (#11051)
closed # 11049
2023-05-13 12:55:35 +08:00
acyza
4c93b47a05 fix(components): [select] correct update selectSize (#11973)
* chore: 尝试恢复pr

* chore: update

* chore: update
2023-04-23 15:12:46 +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
井柏然
4ee6dfe7ab fix(components): [select] delete key should not choose tag (#12200)
fix(components): [select] delete key choose tag
2023-04-14 01:19:42 +08:00
井柏然
d13c3d83e8 fix(components): [select] multiple disabled style (#12015)
* fix(components): [select] multiple disabled style

* fix(components): [select] multiple disabled not-allowd
2023-03-24 09:36:46 +08:00
井柏然
c89cc2d3df fix(components): [select] iOS keyboard not appear when focus (#11498)
* fix(components): [select] ios keyboard not appear when focus
2023-03-13 22:52:10 +08:00
kooriookami
4ea9fb344f feat(components): [select] Add max-collapse-tags prop (#11378)
* feat(components): [select] Add max-collapse-tags prop

closed #7429

* feat(components): [select]

* feat(components): update

* feat: update

* feat: update

* feat: update
2023-03-10 07:18:21 +00:00
Jeremy
8674619a2d test(components): add tests for select options (#11957)
* test(components): [select] options

* test(components): [select] options component

* Add test for the newly added options component
2023-03-10 14:59:03 +08:00
Travis
6a977d3df1 fix(components): [select] filter all ElOption item labels (#11909)
* fix(components): [select] filter all ElOption item labels

Include children of ElOptionGroup

closed #11903

* refactor(components): [select] use isFunction instead
2023-03-08 15:06:44 +00:00
Travis
8d752c74b9 fix(components): [select] Filter duplicate emits of "update options" (#11884)
* fix(components): [select] Filter duplicate emits of "update options"

* perf(components): [select] Code standardization
2023-03-08 07:13:15 +00:00
Jeremy
5ca063628a fix(components): [select] console warning (#11868)
* fix(components): [select] console warning

* Move rendering related logic into render functions.

* chore: fix warnings

* fix: keyboard navigation issue
2023-03-07 20:00:55 +08:00
Jeremy
c2710d97d0 fix(components): [global-config] (#11847)
* fix(components): [loading]

* Remove inappropriate way of using injection in directives.

* chore: rewrite implementation

* fix(components): [global-config]

* Fix global config injection in global components.

* chore: fix format

* chore: remove .only modifier

* chore: fix failing tests
2023-03-06 23:20:21 +08:00
井柏然
2f5629a2f8 fix(components): [select] support custom height (#10840) (#10847)
* fix(components): [select] support custom height (#10840)

fix(components): [select] support custom height (#10840)

* fix(components): [select] support custom height (#10840)
2023-02-27 22:05:14 +08:00
류한경
8de2c9c450 fix(components): [select] add popper-options prop (#11734) 2023-02-27 19:20:18 +09: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
btea
842fb2b286 fix(components): [select] fix the hoverIndex display error (#11297)
* fix(components): [select] fix the hoverIndex display error

* fix: update useSelect
2023-02-25 16:43:40 +08:00
wonderl17
af9302c887 fix(components): [select] i18n issue of select placeholder (#11508) 2023-02-13 23:06:57 +08:00
Jacob Alspaw
7b64807ff2 fix(components): [select] ensure select options respect filter query during initialization (#11205)
* fix(components): [select] ensure select options respect query immediately during initialization

When the select option is created, the option does not immediately calculate its `visible` state attribute. This can result in the visible select options being out of sync with the filter text. If the options are loaded asynchronously and a user is quick to enter filter text, then the options will show regardless of the filter value once they have completed loading. Fix this by updating the `visible` attribute immediately.

* fix: lint

---------

Co-authored-by: zz <2418184580@qq.com>
2023-02-12 20:39:11 +08:00
dopamine
6799618f79 fix(components): [select] recalculate input height when display change (#11374)
* fix(components): [select] recalculate input height when display change

* fix
2023-02-05 14:00:34 +08:00
Naeemo
702c71b352 refactor(tokens): use Symbol as injection key (#11251) 2023-02-05 13:10:33 +08:00
zz
73a9010e37 fix(components): [select] display tags correctly (#11149)
* fix(components): [select] display tags correctly

* fix: test cases
2023-01-10 22:38:44 +08:00
qiang
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
btea
874aa0a284 refactor(components): [select] use util function (#10286) 2022-10-27 21:41:27 +08:00
btea
6d839aeb96 fix(components): [select] blur trigger remote event should pass string (#10218) 2022-10-26 16:39:05 +08:00
Giwayume
8f1285f880 fix(components): [time-picker] fix popup not showing (#9941)
* fix(components): [time-picker] fix popup not showing

* fix(components): [focus-trap] track last active element automatically

* fix(components): linting

* fix(components): add preventDefault to focusout-prevented

* fix(components): sSR and typecheck

* fix(components): focus trap attach document events in mount

* fix(components): remove document undefined check

* fix(components): [select] fix click scrollbar closes popup

* fix(components): allow focus-trap to refocus after pick

Co-authored-by: OpenGraphica <opengraphica@gmail.com>
2022-10-13 14:42:27 +08:00
Xc
817ec60b71 feat(components): [select] Simplified API (#9994) 2022-10-09 16:04:11 +08:00
Xc
91f1c63e6a fix(components): [select] click label only focus in form (#9798) 2022-09-30 14:35:09 +00:00
Circkoooooo
6f90007f77 fix(components): [select] excute filter/remoteMethod when blur (#9587)
* fix(components): [select] excute filter/remoteMethod when blur event

when select component trigger blur event, it need excute the filterMethod or remoteMethod,
otherwise, the next time you click select, you may filter the result to the previous one.

* fix(components): [select] excute filter/remoteMethod when blur event

* fix(components): [select] excute filter/remoteMethod when blur event

when select component trigger blur event, it need excute the filterMethod or remoteMethod,
otherwise, the next time you click select, you may filter the result to the previous one.

* fix(components): [select] excute filter/remoteMethod when blur event

Co-authored-by: qiang <qw13131wang@gmail.com>
2022-09-23 14:21:23 +08:00
init-qy
c64ea617ef fix(components): [select] fix option-group get wrong visible (#9726)
* fix(components): [select] fix option-group get wrong visible

* fix(components): [select] fix option-group get wrong visible

* fix(components): [select] fix option-group get wrong visible

Co-authored-by: qinye <953218204@qq.com>
2022-09-10 22:07:06 +08:00
Chen_Z
838001aadd fix(components): [select] fix select hover flicker (#9521)
* fix(components): [select] fix select hover flicker

closed #9500

* fix(components): [select] fix select hover flicker

closed #9500
2022-09-09 12:35:36 +08:00