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
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
kooriookami
1163d27f71
feat(components): add empty-values and value-on-clear props ( #16361 )
...
* feat(components): add empty values
* feat(hooks): update
* feat(components): update
* feat(components): update
* feat: update
* feat(components): update
* feat(components): update
* feat(components): update
* feat: update doc
* feat: add doc
2024-04-12 13:33: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
qiang
6222629007
refactor(components): [message-box] remove useRestoreActive ( #11646 )
2023-05-28 09:57:29 +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
d58149f4bb
refactor(components): [config-provider] ( #11749 )
...
* refactor(components): [config-provider]
* Port useConfigProviders and tokens to components/.
* refactor(hooks): [global-config]
* Reimplement a few coupled hooks.
* Remove hooks/globa-config and tokens/&.
* Update import paths based on the changes.
* chore: fix a failing test case
2023-02-28 10:35:56 +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
Jeremy
ec161eaef5
feat(hooks): [use-popper] ( #10983 )
...
* feat(hooks): [use-popper]
* Implement use-popper
* chore: code adjustment
* test: add test for use popper
* test: finish test for use popper
* fix: popper API
* chore: remove unused imports
* chore: refine code
* feat: export popper from hooks package
* chore: enhanced how to process default value
Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-12-19 21:46:16 +08:00
仿生狮子
15d75fa275
chore: remove duplicate code ( #10223 )
2022-10-25 11:01:30 +08:00
dopamine
a03cf125fd
fix(components): [carousel] improper active item ( #8904 )
...
* fix(components): [carousel] none of active item
closed #8891
* fix: ts error
* fix: guarantee items order when reusing carousel-item component
* style: code format
* fix: test fail
* chore: correct type
* fix: sorting failed in some cases
* better implementation
better implementation
* impove code accroding to review comment
2022-10-02 08:44:40 +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
JeremyWuuuuu
da992a97b2
feat(hooks): [floating] add use-floating ( #6822 )
...
* feat(hooks): [floating] add use-floating
- Implement floating-ui vue with composition API
- Add test for the hook.
* Update coordinate type
2022-03-25 15:43:54 +08:00
三咲智子
b80e5c69e9
refactor(hooks): refactor popup manager to useZIndex ( #5701 )
2022-02-09 16:31:31 +08:00
jeremywu
dbb00ef4b6
fix(components): [el-popper] append to body compatability ( #5755 )
...
* fix(components): [el-popper] append to body compatability
- Add a new hook for deprecation warning
- Add deprecation warnings for previous used `append-to-body` API
- Add test for the API.
* Address PR comments
* Update documentations for deprecated
* Fix formatting issue
2022-02-04 14:59:58 +08:00
kooriookami
fb50b4ff8d
fix(components): [Dialog & MessageBox] support draggable ( #5369 )
...
* feat: add use-draggable
* feat: msgbox add draggable
* feat: update
* feat: update
* feat: update
* feat: update
* feat: update
* feat: update
2022-02-03 21:04:25 +08:00
iamkun
9929c0fba4
feat: support custom namespace ( #5377 )
2022-01-15 18:12:48 +08:00
jeremywu
dd19cae2bc
refactor(components): popper composables ( #5035 )
...
* refactor(components): popper composables
- Refactor popper composables
* updates
* updates for tooltip
* Updates for popper. TODO: fix controlled tooltip animation
* Fix controlled mode popper animation issue
* Add new feature for customizing tooltip theme
* Fix popover and popconfirm error
* - Add Collection component for wrapping a collection of component
- Add FocusTrap component for trap focus for popups
- Add RovingFocus component for roving focus component type
- Adjust dropdown component based on these newly added components
- Add popper-trigger component for placing the trigger
- TODO: Finish current dropdown component, and all component's tests plus documents
* Refactor popper
* Complete organizing popper
* Almost finish dropdown
* Update popper tests
* update only-child test
* Finish focus trap component test
* Finish tooltip content test
* Finish tooltip trigger tests
* Finish tooltip tests
* finish tests for Collection and RovingFocusGroup
* Fix test cases for timeselect & select & popover
* Fix popover, popconfirm, menu bug and test cases
* Fix select-v2 test error caused by updating popper
* Fix date-picker test issue for updating popper
* fix test cases
* Fix eslint
* Rebase dev & fix tests
* Remove unused code
2022-01-04 09:15:15 +08:00
三咲智子
db1d9401fe
feat(components): [el-config-provider] add size ( #4730 )
2021-12-10 17:21:01 +08:00
三咲智子
bbd16a08e9
refactor(hooks): refactor hooks ( #4253 )
...
* refactor(hooks): remove use-css-var
* refactor(hooks): remove use-events
* refactor(hooks): remove use-migrating
* refactor(hooks): remove use-transition
* refactor(hooks): named export useAttrs
* refactor(hooks): named export useFocus
* refactor(hooks): refactor useFormItem
* refactor(hooks): refactor useGlobalConfig
* refactor(hooks): refactor useLocale
* refactor(hooks): refactor useLockscreen
* refactor(hooks): refactor useModal
* refactor(hooks): refactor useModelToggle
* refactor(hooks): refactor usePreventGlobal
* refactor(hooks): refactor useRestoreActive
* refactor(hooks): refactor useTeleport
* refactor(hooks): refactor useThrottleRender
* refactor(hooks): refactor useTimeout
* refactor(hooks): refactor useTransitionFallthrogh
2021-11-29 15:58:44 +08:00
msidolphin
66043aa3b5
refactor(components): [el-config-provider] improve componomponent extendiability ( #4175 )
...
re #4146
added button configuration
added useGlobalConfig hook
2021-11-05 18:10:07 +08:00
Aex
78ab1b2f8e
feat(hooks): add same target support ( #3473 )
...
* feat(hooks): add same target support
* fix: dialog test
* fix: remove unused code
* improvement: custom-mask-event attr
2021-09-18 10:04:25 +08:00
jeremywu
19bc41f965
feat(hooks): extracting size injection for form items ( #3383 )
...
* feat(hooks): extracting size injection for form items
- Extract common code for form items
- Apply extracted code for el-button
* - Address import order
* Update packages/hooks/use-form-item/index.ts
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
* - Fix type annotation for fallbacks
* - Use MaybeRef to mark type of local fallbacks
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2021-09-13 23:14:48 +08:00
jeremywu
c8d65bf43d
feat(locale): locale-provider ( #2662 )
...
- Add a component for providing configs
- Add `use-locale` hooks into hooks for composable usage
- Add `use-locale` for `config-provider` to allow user to provide locale config via `react-like` API
- Add test cases against these new features
2021-07-25 15:26:00 +08:00
hangzou
65924dd40c
feat: new hook: useCssVar
for inject custom css vars ( #2547 )
...
* feat: new hook: `usecssvars` for inject custom css vars
* perf: optimize usecssvar logic
* test: test css var
2021-07-20 15:26:17 +08:00
jeremywu
2e097605dc
feat(hooks): export popperjs common attributes ( #2520 )
...
- Export popperjs/core common attributes for reusing
2021-07-14 14:59:39 +08:00
jeremywu
6b4c04fd0a
feat(hooks): add use-timeout hook ( #2439 )
...
* feat(hooks): add use-timeout hook
- Add use timeout hook for register timeout callbacks
- Add test cases against add-timeout
* resolve linter issue
2021-07-06 07:49:49 +08:00
JeremyWuuuuu
5f8b25bc31
feat(hooks): add use-model-toggle hook
...
- Add use model hook to the hooks for toggleable model common logic
2021-07-05 08:50:36 +08:00
jeremywu
913aaafabb
feat(hooks): add use-teleport hook ( #2421 )
...
* feat(hooks) add use-teleport hook
- Add teleport hook for teleported components
- Add teleport hooks hepler methods
- Add coresponding testing cases
* - add use teleport to the exporting entry
2021-07-03 19:04:03 +08:00
jeremywu
30f1947c47
fix(overlay): Fix overlay event triggering issue ( #1235 )
2021-01-14 17:01:37 +08:00
porcelainHeart
8b2febe2f6
feat: new compontent Skeleton ( #953 )
2020-12-21 20:07:48 +08:00
bastarder
e4bb9daf4f
fix(select): Fix select.focus is undefined bug ( #862 )
...
* fix(select): Fix select.focus is undefined bug
* fix(select): Add hook test
Co-authored-by: bastarder <jie.qian@blockheaders.com>
2020-12-07 11:29:08 +08:00
justwiner
2985a71751
feat(table): table ( #407 )
...
Co-authored-by: winerlu <winerlu@tencent.com>
Co-authored-by: zazzaz <izazzaz@hotmail.com>
2020-10-20 10:31:47 +08:00
Simona
e1add47603
feat(hooks): add useAttrs hook ( #317 )
...
* feat(hooks): add useAttrs hook
* feat(hooks): undo binding class and style automatically
* test: remove unused import statement
2020-09-19 20:44:07 +08:00
jeremywu
ef92b6c11c
### feat: add dialog ( #197 )
...
* Add overlay component; Dialog component almost done
* feat(dialog): add use-lockscreen
* feat(dialog): coding completed awaiting tests
* feat(dialog): finish writing test cases
* fix test failures
* Address PR comments
* fallback some changes
2020-09-09 21:18:08 +08:00
JeremyWuuuuu
af45dbd070
feat(tooltip): tooltip component
2020-08-25 22:51:26 +08:00