Commit Graph

140 Commits

Author SHA1 Message Date
Xc
ef22e5db62
feat(components): [tooltip] adjust controlled mode (#8762)
* feat(components): [tooltip] adjust controlled mode
2022-07-17 23:14:51 +08:00
zz
60fdcfe946
fix(hooks): [use-locale] fix type error (#8733) 2022-07-11 19:25:58 +09:00
zz
5399d7c882
fix(hooks): [use-attrs] fix type error (#8558)
* fix(hooks): [use-attrs] fix type error
2022-07-10 18:02:40 +08:00
zz
b50e21015c
fix(hooks): [use-floating] fix type error (#8727) 2022-07-09 18:15:53 +09:00
zz
58bbef942a
fix(hooks): [use-form-item] fix type error (#8726) 2022-07-09 17:49:07 +09:00
三咲智子
7097940f4a
refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
三咲智子
10cad1d072
refactor(components): [switch] deprecate value prop (#8335) 2022-06-18 13:48:02 +08:00
三咲智子
362c7f6b3c
refactor(utils): ep prop (#8018) 2022-06-01 08:00:27 +00:00
opengraphica
af732b124b
feat(components): [dropdown] a11y (#7946)
* feat(components): [dropdown] always use button trigger

* feat(components): [dropdown] a11y unit tests

* feat(components): [dropdown] pr comments
2022-05-30 11:51:25 +08:00
三咲智子
37e2bfaee4
fix(hooks): type error (#7941) 2022-05-30 09:26:14 +08:00
opengraphica
e1b88263e3
feat(components): [popper] focus trap and a11y (#7736)
* feat(components): [popper] fix focus traps

* feat(components): [popper] add focus trap tests

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-20 18:13:27 +08:00
btea
82030446c7
fix(hooks): use-form-item circular reference (#7793) 2022-05-20 15:27:21 +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
云游君
3d1b3d4a58
refactor(theme-chalk): scss css var namespace (#7344)
* refactor(theme-chalk): scss css var namespace

* fix(theme-chalk): compile getCssVar

* fix(theme-chalk): more --el namespace replace & getCssVarWithDefault

* fix(theme-chalk): use cssVarBlockName & cssVar rewrite button css vars

* fix(theme-chalk): replace empty svg fill color with ns

* chore: use cssVarName for --el-color-white

* chore: fix namespace reactive

* chore: use defaultNamespace
2022-04-26 17:19:09 +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
Delyan Haralanov
34f6f71042
test: enable clearMocks in vitest config (#7263) 2022-04-20 17:02:44 +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
三咲智子
b2bfb6f159 fix: vitest 2022-04-12 01:38:15 +08:00
Yuyao Nie
14b9b9f542
fix(components): [popper-container] recreate container when unmounted (#7076) 2022-04-10 14:08:12 +08:00
JeremyWuuuuu
993971e872
feat(components): [virtual-table] grid table (#7081)
- Add grid table props definitions
- Implemented TableGrid component
- Update Virtual Grid for rich typing
2022-04-10 14:05:12 +08:00
bqy_fe
b863db272e
feat(components): [tabs] add tab-change event (#6978) 2022-04-03 14:09:52 +08:00
JeremyWuuuuu
f576d5a57b
feat(components): [tooltip-v2] documentation (#6870)
- Add tooltip-v2 documentation
- Complete tooltip-v2 implementation
2022-03-29 15:12:10 +08:00
JeremyWuuuuu
0ff293b3e9
chore(hooks): [floating] fix eslint warnigns (#6827)
- Update importing order
2022-03-25 17:39:01 +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
三咲智子
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
JeremyWuuuuu
6aeb2d7aab
feat(components): [el-result] warn users using subTitle as slots (#6651)
* feat(components): [el-result] warn users using subTitle as slots

- Add deprecation warning for el-result sub-title slots
- Update documentation with a slotted sub title

* Fix useDeprecated typing issue
2022-03-15 19:50:50 +08:00
三咲智子
80d903771f
feat: extract eslint config to separate package (#6495) 2022-03-10 15:39:13 +08:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
三咲智子
c72679e4e9
refactor(components)!: refactor form (#5401)
* refactor(components): refactor form

* refactor: resolve PR comments

* refactor(components): refactor isNested

* refactor: resolve PR comments
2022-03-06 22:20:56 +08:00
三咲智子
cb6300c739
refactor(components): [dialog] refactor (#6300)
* refactor(components): [dialog] refactor

- fix TS type.
- enhance prop type `beforeClose`
- move `token.ts` to `@element-plus/tokens`

* refactor: resolve review comments

* test: fix slots
2022-03-01 23:43:50 +08:00
三咲智子
aaf90d99d0
test: switch to vitest (#5991)
* test: use vitest

* test: add script and ci

* chore: improve tsconfig

* refactor: use-form-item

* fix: remove unused

* chore: improve scripts

* test: improve mock

* refactor: change coverage
2022-02-21 14:28:22 +08:00
三咲智子
ea812ae622
refactor(components): refactor button (#5933)
* refactor(components): refactor button

* refactor: rename

* test: apply jsx

* feat: expose

* test: fix
2022-02-12 18:37:16 +08:00
三咲智子
b712dd8466
refactor: fix buildProps (#5936) 2022-02-11 11:40:50 +08:00
三咲智子
6503e55277
refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00
三咲智子
f3e9e53f3d
fix(hooks): namespace.is default state (#5941) 2022-02-11 09:09:21 +08:00
三咲智子
c1e5d724d8
refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
三咲智子
b80e5c69e9
refactor(hooks): refactor popup manager to useZIndex (#5701) 2022-02-09 16:31:31 +08:00
bqy
14474efccb
fix(hooks): [use-namespace] cannot be used in nested hooks (#5795) 2022-02-09 00:35:29 +08:00
三咲智子
426a6a686c
feat: switch to lodash-unified (#5734)
* feat: switch to lodash-unified

* chore: move lodash mocks
2022-02-08 10:37:21 +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
三咲智子
df3be7c661
feat(hooks): [use-namespace] add bm (#5475) 2022-01-19 00:06:19 +08:00
三咲智子
75758d83b2
feat(hooks): [use-namespace] add is (#5466) 2022-01-18 21:04:56 +08:00
三咲智子
58c4040b45
fix(hooks): component size (#5402) 2022-01-17 17:20:26 +08:00
iamkun
9929c0fba4
feat: support custom namespace (#5377) 2022-01-15 18:12:48 +08:00
三咲智子
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
btea
15ffab1255
refactor(utils): remove isServer (#5173) 2022-01-06 12:00:57 +08:00