Commit Graph

1194 Commits

Author SHA1 Message Date
三咲智子
3e8409cd45
refactor(dev): drop babel (#3678)
* refactor(dev): drop babel

* test: fix test

* drop babel

* refactor: drop nodejs 14 support
2021-09-27 15:25:58 +08:00
Summer
ec96e9dbc7
fix(components): [el-affix] get scrollContainer of vertical (#3424)
Co-authored-by: 徐志伟 <zwxu01@wisedu.com>
2021-09-27 14:53:16 +08:00
msidolphin
2d2878eb53
feat(components): add virtual tree (#3398)
* feat(components): add virtual tree

* perf: optimize compute performance

* perf: optimize update checked states performance

* feat(components): [tree-v2] supports filter method

* feat(components): [el-tree-v2] exposes check api

* feat(components): [el-tree-v2] exposes current api

* feat(components): [el-tree-v2] support contextmenu event

* style(components): [el-tree-v2] optimized code style

* refactor(components): [el-tree-v2] using svg icon

* refactor(components): [el-tree-v2] replace all PropType with buildProp

replace all PropType with buildProp, support perfMode, expose setData

* refactor: improve prop

* docs: [el-tree-v2] improve documention

* refactor(components): [el-tree-v2] optimized code

Co-authored-by: Kevin <sxzz@sxzz.moe>
2021-09-27 11:12:50 +08:00
spx
7ee4f44e22
fix(components): trigger update:modelValue by itself (#3660)
trigger update:modelValue by component itself

fix #2282
2021-09-27 11:09:59 +08:00
三咲智子
f9c9f11415
feat(project): upgrade async-validator to 4.0.3 (#3667)
* feat(project): upgrade async-validator to 4.0.3

* fix: fix types
2021-09-27 09:57:44 +08:00
三咲智子
b88e932775
chore: change normalize-wheel to esm version (#3371) 2021-09-27 09:55:40 +08:00
三咲智子
6447feb505
fix(build): fix dependencies packaging (#3665)
* Revert "fix(components): [el-date-picker] dayjs props not extended (#3662)"

This reverts commit fb8446709f.

* fix(build): fix rollup externals
2021-09-27 00:23:27 +08:00
Aex
fb8446709f
fix(components): [el-date-picker] dayjs props not extended (#3662) 2021-09-26 23:38:44 +08:00
jeremywu
50a1b6f892
feat(components): [el-virtualized-grid] fulfillment (#3612)
* feat(components): [el-virtualized-grid] fulfillment

- Add scrollabr and scroll handler to v-grid

* Address comments and code perfection

* Update render function

* fix linter

* address comments
2021-09-26 19:22:56 +08:00
云游君
51cc956589
feat(utils): extract color to utils & fix submenu color (#3638) 2021-09-26 12:01:20 +08:00
msidolphin
e1a91b1a9f
fix(components): [el-date-picker] validate callback (#3649) 2021-09-26 11:55:38 +08:00
三咲智子
8b0402ae03
refactor(components): [el-message][el-notification] improve type (#3636) 2021-09-26 04:20:21 +08:00
三咲智子
7a9c6f38d7
build: parallel build (#3416) 2021-09-26 01:29:07 +08:00
三咲智子
5faec885f3
feat(dev): add global component types for volar (#3624)
* feat(dev): add global component types for volar

* chore: update README.md
2021-09-26 00:06:46 +08:00
三咲智子
0b015ab7d4
fix(components): [el-popconfirm] fix vue warning (#3618)
close #3613
2021-09-24 21:18:16 +08:00
啝裳
4dd3806f47
fix: [el-menu] using v-for causing render loop (#3617)
* fix: [el-menu] using v-for causing render loop

* fix: [el-menu] using v-for causing render loop

* perf: improve perf

Co-authored-by: Kevin <sxzz@sxzz.moe>
2021-09-24 21:08:23 +08:00
jeremywu
3138dea797
fix(components): sub components no install issue (#3615)
- Add noop install for all sub components for supress the warning
2021-09-24 19:11:56 +08:00
三咲智子
5f5248020c
chore(project): adjust dependency (#3595) 2021-09-24 09:28:21 +08:00
btea
db9a5e6bd6
fix(components): [el-popover] fix the title renderIf type error (#3552) 2021-09-24 09:21:38 +08:00
三咲智子
6f5ef560ea
refactor: improve buildProp (#3592) 2021-09-23 20:06:07 +08:00
btea
f21b15a67e
fix(components): [el-form] fix the methods validate callback invalid (#3589) 2021-09-23 16:10:03 +08:00
三咲智子
34745432d1
fix(components): fix message closeAll (#3583) 2021-09-23 14:18:53 +08:00
Abdulkaiyum Shaikh
1b843aac8e
Added missing 'memoize-one' to the publish package (#3572) 2021-09-23 08:12:50 +08:00
三咲智子
f9e192535f
refactor: replace yarn with pnpm (#3571)
* refactor: replace yarn with pnpm

* chore: install pnpm

* chore: disable cache

* ignore pnpm-lock.yaml

* resolve deps

* setup pnpm
2021-09-23 08:12:37 +08:00
btea
53a519457e
fix(components): [el-selectv2] add type remove ts error (#3480)
* fix(components): [el-select-dropdown] add type remove ts error

* fix: remove the SelectV2Context
2021-09-23 01:11:06 +08:00
jeremywu
a887a9632e
feat(components): exposing sub components (#3563) 2021-09-22 21:50:41 +08:00
bchen1029
165ae1000b
fix(components): [el-select] fix composition bug #3532 (#3533) 2021-09-22 21:45:22 +08:00
三咲智子
a5438d3545
fix(components): fix typo (#3561) 2021-09-22 21:09:32 +08:00
三咲智子
46d69bd37f
refactor: improve buildProp (#3558)
* refactor: improve buildProp

* fix: fix key

* fix: improve validator
2021-09-22 20:27:23 +08:00
云游君
35c90180d1
refactor(components): use css var to set menu global style (#3539)
* refactor(components): use css var to set menu global style

* fix(components): remove useless value & change camelCase & test file

* test: comment code that can not test final style

* test: fix unused-vars lint

* feat: add computed for useMenuCssVar

* test(components): revert test file

* fix(components): use computed value
2021-09-22 18:41:32 +08:00
jeremywu
2a0ebbc0b9
feat(components): [el-virtualized-list] enable virtual list perf mode (#3547)
* feat(components): [el-virtualized-list] enable virtual list perf mode

- Add perfMode API for both list and grid
- Code refactor

* fix linter issue
2021-09-22 18:29:54 +08:00
啝裳
57519896c5
fix: [el-scrollbar] cascade selector of cascader is stuck after clicking (#3546)
* fix: [el-scrollbar] cascade selector of cascader is stuck after clicking

* fix: [el-scrollbar] cascade selector of cascader is stuck after clicking

* fix: [el-scrollbar] cascade selector of cascader is stuck after clicking
2021-09-22 15:44:20 +08:00
yuzhang
325cc43709
feat(components): [el-message-box] add inline style prop (#3537) 2021-09-22 10:06:40 +08:00
Dreamcreative
d7a96911d4
fix(components): [el-select-v2] fix style problem when select-v2 option too long (#3534) 2021-09-22 08:47:42 +08:00
三咲智子
426a1814d0
refactor(components): refactor empty (#3522)
* refactor(components): refactor empty

* fix: tests
2021-09-22 01:41:44 +08:00
三咲智子
9575d111c2
refactor(components): refactor message (#3524)
* refactor(components): refactor message

* chore: remove unused
2021-09-22 01:40:18 +08:00
三咲智子
2431b589af
refactor(components): refactor notification (#3495)
* refactor(components): refactor notification

* chore: fix type

* refactor(components): improve vnode

* Update notification.vue
2021-09-22 01:19:35 +08:00
三咲智子
6256189100
refactor(components): refactor pagination (#3526)
* refactor(components): refactor pagination

* fix: tests

* fix: emits

* refactor: improve props
2021-09-22 01:19:04 +08:00
三咲智子
bb5ec2c487
refactor(components): refactor link (#3527)
* refactor(components): refactor link

* fix: buildProp
2021-09-22 00:48:26 +08:00
三咲智子
6a57d547d0
refactor(components): refactor icon (#3528) 2021-09-22 00:46:23 +08:00
三咲智子
d71c87344a
refactor: fix buildProp (#3529) 2021-09-21 17:19:35 +08:00
云游君
9fddcf42fa
fix(style): use flex replace float & fix vertical center (#3523) 2021-09-21 02:23:44 +08:00
jeremywu
91d851f44d
fix(components): [el-virtual-list] potential mem issue (#3510)
- Replace memo with memoize-one for preventing mem outage
2021-09-19 22:09:18 +08:00
云游君
ac30cd0d6e
chore: add vscode config & upgrade typescript/sass/vite (#3502)
* chore: add vscode config & upgrade typescript/sass/vite

* fix: format scss by prettier
2021-09-19 19:34:25 +08:00
三咲智子
7d1fa5aea1
refactor(components): refactor page-header (#3491)
* refactor(components): refactor page-header

* fix
2021-09-19 18:22:22 +08:00
三咲智子
1e02424daf
refactor(components): refactor tag (#3489)
* refactor(components): refactor tag

* fix
2021-09-19 18:21:43 +08:00
三咲智子
fbebf03d8c
refactor(components): refactor popconfirm (#3490)
* refactor(components): refactor popconfirm

* fix(components): fix path

* chore: change name

* fix
2021-09-19 18:21:23 +08:00
三咲智子
cff124ceca
refactor(components): refactor breadcrumb (#3487)
* refactor(components): refactor breadcrumb

* fix

* Revert "fix"

This reverts commit 5e096c51065776c726a21a541813387d40723153.
2021-09-19 18:18:13 +08:00
三咲智子
25f948fb25
refactor(components): refactor overlay (#3496) 2021-09-19 16:00:19 +08:00
三咲智子
d9cfaaac52
refactor(components): refactor divider (#3488) 2021-09-19 15:50:11 +08:00
三咲智子
b365fe6278
refactor(components): refactor backtop (#3486) 2021-09-19 15:10:59 +08:00
Aex
dd871cc8e9
fix(theme-chalk): [el-radio] input border hover color (#3493) 2021-09-19 02:51:02 +08:00
云游君
0836097c55
refactor(components): drawer animation use transition replace keyframe (#3447)
* refactor(components): drawer animation use transition replace keyframe

* fix(components): fix drawer leave animation
2021-09-19 00:09:41 +08:00
Aex
5ff3de24b5
fix(components): [el-dialog] content scrolling behavior (#3484) 2021-09-18 22:43:07 +08:00
啝裳
a24c2977e1
perf(components): [el-button] delete isEmpty (#3479) 2021-09-18 20:49:50 +08:00
BeADre
fdc2bef0c1
feat(components): [el-timeline] add center prop (#3436)
* feat(components): [el-timeline]add center prop

* fix: remove unnecessary selector
2021-09-18 11:31:58 +08:00
啝裳
48a787d55f
fix: [el-table] an extra 0 after the total line at safari (#3471) 2021-09-18 10:25:54 +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
477519a52e
feat(project): local dev environment (#3463)
- Add vite config for local dev
2021-09-17 16:42:20 +08:00
三咲智子
0636e1e240
style: add import and stricter lint (#3440)
* style: add import lint

* chore: apply eslint rules

* chore: add stricter lint

* chore: lint all files

* auto fix

* manually fix

* restore build-indices.ts
2021-09-17 15:27:31 +08:00
三咲智子
1615b9ee67
feat(dev): improve typings (#3457)
* refactor: improve buildProp

* feat(dev): add global components type for Volar
2021-09-17 15:07:32 +08:00
啝裳
f66b046872
fix: [el-form] button type is reset and reset form (#3445)
* fix: [el-form] button type is reset and reset form

* fix: [el-form] button type is reset and reset form

* fix: [el-form] button type is reset and reset form
2021-09-17 11:15:49 +08:00
三咲智子
c86c2b0fe9
style: eslint enable prefer-template (#3414)
* style: eslint enable prefer-template

* chore: apply eslint rules
2021-09-17 09:18:24 +08:00
jeremywu
d8502d872f
fix(components): el-icon root element receives attributes twice (#3442)
- Fix attributes incorrectly inherited twice.
2021-09-17 00:02:38 +08:00
云游君
fb22634b61
style(components): add css var width & margin-top for dialog (#3431) 2021-09-16 23:01:22 +08:00
Delyan Haralanov
c17161e21c
Feat/remove mitt (#3356)
* feat(components): collapse use provide/inject instead of mitt events

# Conflicts:
#	packages/components/collapse/src/collapse-item.vue
#	packages/components/collapse/src/collapse.vue

* feat(components): menu use provide/inject instead of mitt events

# Conflicts:
#	packages/components/menu/src/menu.ts

* feat(components): form use provide/inject instead of mitt events

# Conflicts:
#	packages/components/checkbox/src/checkbox-group.vue
#	packages/components/checkbox/src/useCheckbox.ts
#	packages/components/form/src/form-item.vue
#	packages/components/form/src/form.vue
#	packages/components/input/src/index.vue
#	packages/components/radio/src/radio-group.vue
#	packages/components/select/src/useSelect.ts
#	packages/components/slider/src/index.vue
#	packages/components/time-picker/src/common/picker.vue
#	packages/components/transfer/src/index.vue
#	packages/tokens/form.ts

* feat(components): tree use provide/inject instead of mitt events

# Conflicts:
#	packages/components/tree/src/model/useDragNode.ts
#	packages/components/tree/src/tree-node.vue

* feat(components): select use provide/inject instead of mitt events

# Conflicts:
#	packages/components/select/src/option-group.vue
#	packages/components/select/src/select.vue
#	packages/components/select/src/useOption.ts
#	packages/components/select/src/useSelect.ts

* feat: remove mitt from packages dependencies

# Conflicts:
#	packages/components/package.json
#	packages/element-plus/package.json
#	packages/tokens/package.json

* feat: remove mitt from webpack.config.js

* refactor: change imports order

* refactor: import types separately

* fix: revert removing mitt from webpack.config.js

This config is not related to the build so no need to remove mitt here
2021-09-16 21:19:27 +08:00
Aex
3a84382f2e
fix(theme-chalk): [el-input] textarea focus & hover border color (#3403) 2021-09-15 22:25:03 +08:00
啝裳
58585bf87d
fix: use fromPairs replace Object.fromEntries (#3422) 2021-09-15 14:43:34 +08:00
btea
9d142ae129
fix(utils): add type remove the ts error (#3406)
* fix(utils): add type remove the ts error

* fix: optional chaining operator replace non-nullish assertion

* chore: try again test
2021-09-15 08:30:30 +08:00
Alan Wang
5978ebdabd
fix: [el-cascader] multiple search with v-model can't work (#3350)
Co-authored-by: Kevin <sxzz@sxzz.moe>
2021-09-15 05:25:08 +08:00
三咲智子
680de635f6
fix(core): downgrade vueuse version (#3405) 2021-09-14 23:22:59 +08:00
Ted
29545d1ea2
docs: [locale] update tr.ts (#3385) 2021-09-14 13:19:47 +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
Summer
b5b67b489d
fix(components): [el-virtual-scrollbar] fix move bug (#3379)
Co-authored-by: 徐志伟 <zwxu01@wisedu.com>
2021-09-13 18:07:51 +08:00
三咲智子
d943a66434
fix(components): [el-badge] add export type (#3376) 2021-09-13 13:19:24 +08:00
三咲智子
1079e9afe6
fix(components): [el-dialog] fix emits (#3375) 2021-09-13 13:19:06 +08:00
三咲智子
f538abae77
build: no strict when build (#3373) 2021-09-13 13:14:39 +08:00
三咲智子
0bcebf5e18
fix: add @vueuse/core as dependency (#3374) 2021-09-13 13:13:13 +08:00
三咲智子
7a4bd0f236
refactor(components): refactor affix (#3368) 2021-09-13 12:02:18 +08:00
三咲智子
0eca6446e4
refactor(components): refactor dialog (#3369)
* refactor(components): refactor dialog

* refactor: drawer for dialog
2021-09-13 12:01:37 +08:00
三咲智子
60da0daf98
refactor(components): refactor card (#3367) 2021-09-13 10:51:11 +08:00
三咲智子
04d1d13905
refactor(components): refactor badge (#3366) 2021-09-13 10:49:52 +08:00
三咲智子
ad12c39ce5
refactor(components): refactor alert (#3365) 2021-09-13 10:48:10 +08:00
三咲智子
19752ba778
refactor(components): refactor avatar (#3364) 2021-09-13 10:46:12 +08:00
三咲智子
d26070d939
chore: add @vueuse/core (#3370) 2021-09-13 10:37:43 +08:00
jectychen
4d3a499fa6
feat(utils): getPropByPath function adjust (#1276)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2021-09-13 03:14:47 +08:00
高奕GaoYi
00d38e1807
feat(components): [el-upload] clearFiles support filter status (#1501) 2021-09-13 03:13:11 +08:00
波比小金刚
31bd0b12fb
refactor(components): [el-alert] improve judgment (#1985) 2021-09-12 22:02:45 +08:00
啝裳
da07d130da
feat(components): [el-upload] support put method (#3358) 2021-09-12 19:51:21 +08:00
三咲智子
0327d2d0b2
refactor(components): refactor button (#3341)
* feat(utils): add buildProp

* chore: disable eslint rule

* chore: typescript use strict

* refactor(components): refactor button

* feat: add comment for buildProp
2021-09-12 19:38:48 +08:00
Aex
0a878740c7
feat(components): [el-input-number] add focus & blur methods (#3337)
* feat(components): [el-input-number] add focus & blur methods

* fix(components): update focus

* docs: update input-number blur

* fix: remove useless code

* feat(components): use optional chaining
2021-09-12 19:24:17 +08:00
三咲智子
5be1f0d878
refactor(utils): refactor with-install (#3355) 2021-09-12 19:18:14 +08:00
啝裳
f2939ae075
feat(components): [el-calendar] add prev-year and next-year (#3360) 2021-09-12 18:43:44 +08:00
三咲智子
ee0cc94249
fix(components): rename loading directive instance name (#3336) 2021-09-12 18:33:24 +08:00
啝裳
629fef2993
feat(components): calendar component header support slot (#3316)
* feat(components): calendar component header support slot

* feat(components): calendar component header support slot

* feat(components): calendar component header support slot
2021-09-12 18:32:53 +08:00
Alan Wang
b14f45006c
fix: [el-table] default-expand-all doesn't work (#3321)
close #2776
2021-09-12 18:00:22 +08:00
btea
72774e95d1
refactor(utils): refactor menu-bar (#3343) 2021-09-12 17:46:55 +08:00
Alan Wang
64c094b528
fix(components): [el-textarea] show different font family (#3349)
Co-authored-by: “Alanscut” <“wp_scut@163.com”>
2021-09-11 21:40:40 +08:00
啝裳
2816cd3332
feat(components): image-viewer component support slot (#3345)
* feat(components): image-viewer component support slot

* feat(components): image-viewer component support named slot viewer

* feat(components): image-viewer component support named slot viewer
2021-09-11 19:47:47 +08:00
btea
2baaaf5ef9
fix(components): [el-cascader] event renamed to e (#3344) 2021-09-11 15:55:33 +08:00