Commit Graph

12 Commits

Author SHA1 Message Date
三咲智子
81e6c377ba
fix(hooks): provide root locale (#5218)
* fix: provide root locale

* refactor(locale): refactor locale

* fix: tests

* revert: play
2022-01-08 19:36:13 +08:00
三咲智子
b153aaa7a5
fix(hooks): return key name if not defined (#4664) 2021-12-04 23:40:06 +08:00
三咲智子
7647c9e685
fix(hooks): fix translate option (#4619) 2021-12-04 11:15:49 +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
btea
cb03f4d890
fix(hooks): add type remove ts error (#4055) 2021-10-28 04:44:27 +08:00
三咲智子
55348b30b6
style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00
jeremywu
e926d20179
fix(build): exposing installer function and version for umd build (#3041)
* fix(build): exposing installer function and version for umd build

* fix codepen code snippet error
2021-08-25 11:27:16 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00
jeremywu
3d6259263a
fix(locale): inject locale for modal like components (#2737)
- Add a runtime locale object cache for modal components to use
2021-07-28 12:20:23 +08:00
jeremywu
c42f905c10
refactor: i18n implementation (#2670) 2021-07-26 00:24:30 +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