Commit Graph

2007 Commits

Author SHA1 Message Date
三咲智子
b365fe6278
refactor(components): refactor backtop (#3486) 2021-09-19 15:10:59 +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
啝裳
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
啝裳
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
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
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
三咲智子
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
高奕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
啝裳
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
三咲智子
200effa261
refactor(utils): drop ie support (#3304)
* refactor(utils): drop ie support

* fix(utils): remove unused
2021-09-10 15:00:39 +08:00
Herrington Darkholme
fc74a232a0
Revert "fix(components): [el-form]: ensure form validation always triggers callback (#3294)" (#3324)
This reverts commit 509292678d.
2021-09-10 12:02:52 +08:00
Robert Schönthal
509292678d
fix(components): [el-form]: ensure form validation always triggers callback (#3294)
ensures the callback is always called
2021-09-10 11:49:33 +08:00
Aex
6db8dbca82
fix(components): [el-dialog] avoid custom class style conflict (#3267) 2021-09-10 10:09:47 +08:00
三咲智子
b8869f8b9d
refactor(components): refactor check-tag (#3311) 2021-09-10 10:04:09 +08:00
三咲智子
2f23940152
refactor(utils): refactor throwError (#3301)
* refactor(utils): refactor error

* refactor(utils): remove default export
2021-09-10 10:01:17 +08:00
Summer
60be401c89
feat(components): [el-virtual-scroll-bar] handle click event (#3308)
Co-authored-by: 徐志伟 <zwxu01@wisedu.com>
2021-09-09 12:04:11 +08:00
Aex
03f02b5554
refactor(utils): improve debug warn (#3302) 2021-09-09 11:49:48 +08:00
Aex
6408d3cce6
feat(components): [el-badge] support color of type when is-dot (#3279)
* feat(components): [el-badge] apply color of type when isDot

* fix(components): [el-badge] change default type to danger
2021-09-07 17:17:39 +08:00
BeADre
1d445d7ad2
fix(components): [el-menu] fix the infinite loop (#3263) 2021-09-06 23:05:23 +08:00
Aex
ac7c226196
chore(project): upgrade dependencies to latest minor (#3242)
* chore(project): bump @babel/cli from 7.12.1 to 7.15.4

* chore(project): bump @babel/core from 7.11.6 to 7.15.5

* chore(project): bump @babel/plugin-proposal-class-properties to 7.14.5

* chore(project): bump @babel/plugin-transform-runtime to 7.15.0

* chore(project): bump @babel/preset-env from 7.11.5 to 7.15.4

* chore(project): bump @babel/preset-typescript from 7.10.4 to 7.15.0

* chore(project): bump babel-loader from 8.1.0 to 8.2.2

* chore(project): bump babel-plugin-module-resolver from 4.0.0 to 4.1.0

* chore(project): bump @popperjs/core from 2.4.4 to 2.10.1

* chore(project): update babel.config.js

* chore(project): update jest.config.js

* chore(project): bump @typescript-eslint/eslint-plugin to 4.30.0

* chore(project): bump @typescript-eslint/parser from 4.29.3 to 4.30.0

* chore(project): bump algoliasearch from 4.4.0 to 4.10.5

* chore(project): bump transliteration from 2.1.11 to 2.2.0

* chore(project): bump typescript from 4.3.5 to 4.4.2

* chore(project): bump esbuild from 0.12.5 to 0.12.25

* chore(project): bump file-loader from 6.1.0 to 6.2.0

* chore(project): bump rollup from 2.28.2 to 2.56.3

* chore(project): bump rollup-plugin-esbuild from 4.2.3 to 4.5.0

* chore(project): bump sass from 1.37.0 to 1.39.0

* chore(project): move sass & typescript to devDependencies
2021-09-05 19:57:35 +08:00
Aex
7fc2d6bc7d
chore(project): upgrade dependencies to latest patch (#3241)
bump lodash from 4.17.20 to 4.17.21
bump url-loader from 4.1.0 to 4.1.1
bump chalk from 4.1.0 to 4.1.2
bump cross-env from 7.0.2 to 7.0.3
bump components-helper from 1.0.2 to 1.0.4
bump @vue/babel-plugin-jsx from 1.0.0 to 1.0.7
bump @vue/compiler-sfc from 3.2.6 to 3.2.8
bump @vue/component-compiler-utils 3.2.0 from to 3.2.2
2021-09-05 16:27:17 +08:00
kooriookami
c2b6c30f92
feat(components): [el-timeline] add hollow prop (#3229)
* feat: timeline add hollow prop

* feat: update

* feat: format

Co-authored-by: kooriookami <18114643032@163.com>
2021-09-05 11:07:24 +08:00
三咲智子
519630a813
style(components): [el-image] format code (#3238) 2021-09-05 01:25:30 +08:00
zycoJamie
c572d5e6e3
fix(components): lazy image is not work when it changes src (#3189) 2021-09-05 01:06:19 +08:00
Aex
2f9cdc74ce
chore(project): improve prettier format (#3236) 2021-09-05 00:53:31 +08:00
三咲智子
eb932c18c0
fix(components): [el-menu] fix warn & listen item (#3225)
* feat(directives): resize add element argument

* fix(components): [el-menu] fix warn & listen item

* chore: move import order

* fix(components): remove debounce
2021-09-04 19:44:11 +08:00
SongWuKong
6f23947920
fix(components): message verified by el-form is "" validate (#3227) (#3231) 2021-09-04 19:35:11 +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
三咲智子
80ccfef93c
docs/test: [el-form] add scrollToField docs and test (#3147)
* docs(typography): format docs

* docs(docs): [el-form] add scrollToField method

* test(components): [el-form] add scrollToField test

* destroy mock
2021-09-03 14:13:58 +08:00
Aex
21cdf61d20
refactor(components): Improve calendar date range validate (#3156)
* fix(components): Improve calendar date range validate method

* chore(components): Add some comments and references

* fix(components): change `console.warn` to `warn`
2021-09-03 09:59:45 +08:00
msidolphin
9c5c17a5d4
fix(components): [el-input-number] model:value not required (#3190) 2021-09-03 09:30:42 +08:00
SongWuKong
12b5d76020
fix(components): tabs dynamic text (#3174) (#3180)
* fix(components): tabs dynamic text (#3174)

* fix(components): tabs dynamic text (#3174)
2021-09-03 08:19:28 +08:00
kooriookami
f03a8fe07e
perf: [el-menu] only vertical mode has transition (#3200) 2021-09-02 21:08:59 +08:00
Aex
eb8ec6fb7a
fix(components): descriptions cell class (#3195) 2021-09-02 15:01:13 +08:00
msidolphin
d6bf132dd4
fix(components): collapse incorrect export statement (#3185) 2021-09-02 09:45:57 +08:00
Taosh
e8a66adffd
fix(components): [el-form-item] dom element null checking (#3172) 2021-09-01 17:49:39 +08:00
Aex
017eb705d3
fix(utils): improve element.addEventListener (#3173) 2021-09-01 17:38:54 +08:00
kooriookami
614c09eead
perf: perf menu add back arrow-icon and overflow (#3167)
* perf: perf menu add back arrow-icon and overflow

* perf: optimize resize
2021-09-01 15:43:57 +08:00
msidolphin
7556a1b2d1
fix(components): virtualized selector optimize (#3160)
1. limit the maximum width to prevent content overflow
2. hover the last option after closing the panel in multiple mode
3. fixed the incorrect style when disabled
4. optimized tag style
2021-09-01 13:14:17 +08:00
Alan Wang
2431c6d44d
fix: el-image-viewer drag have problem (#3133)
* fix: el-image-viewer drag have problem

* Update packages/components/image-viewer/src/index.vue

Co-authored-by: jeremywu <15975785+JeremyWuuuuu@users.noreply.github.com>

Co-authored-by: jeremywu <15975785+JeremyWuuuuu@users.noreply.github.com>
2021-09-01 11:04:42 +08:00
jeremywu
12006ecdb7
chore(build): remove unused package.json scripts (#3150)
* chore(build): remove unused package.json scripts

- Remove unused scripts
- Revert changes made for removing ts-node
- Fix button.var error

* Update dropdown.vue
2021-08-31 17:57:35 +08:00
Alan Wang
90f77308a9
fix: [image-viewer] two-finger zoom in and out (#3114)
Co-authored-by: jia <Fire_Mars_j@163.com>
2021-08-31 17:19:39 +08:00
kooriookami
b5c7914a05
feat(menu): add ellipsis in horizontal mode (#3083)
* feat(components): adjust types

* feat: popper add fallbackPlacements

* feat: update

* feat: update

* feat: update

* feat: update

* feat: u7pdate

* feat: update fallbackPlacements

* feat: update fallbackPlacements

* feat: when calculate, include padding

* feat: remove horizontal first level arrow

* feat: update

* feat: fix click item index mistake

* feat: fix item active

* feat: update

* feat: remove ele.me website
2021-08-31 15:31:48 +08:00
kooriookami
e7f18fbb4f
fix: [el-scrollbar] add missing off mouseup (#3143) 2021-08-31 14:51:21 +08:00
SongWuKong
5f847e3590
fix(components): [el-table] width init error (close #3087) (#3117) 2021-08-31 14:23:45 +08:00
msidolphin
b1d2f0de06
feat(components): select-v2 support keyboard operations (#3138) 2021-08-31 14:17:43 +08:00
jeremywu
03bc13e45a
fix(components): layout css lost (#3140)
- Fix the lost layout css
2021-08-31 10:04:40 +08:00
Sanxiaozhizi
6cc16bbd06
refactor: enhance type definition (#3062)
* chore: add vue-tsc for type check

* refactor(components): respect Vue's own style type

* refactor(components): improve props type

* chore(build): improve types

* fix(components): remove unnecessary props

* perf(components): use shallowRef

* fix(components): add missing property type for table

* refactor(components): improve time-picker types

* refactor(components): extract import type

* refactor(components): improve popper types

* refactor(components): upload list types

* fix(docs): fix type

* better type

* fix: remove index
2021-08-31 09:40:13 +08:00
feisha
45c292c874
fix: [el-cascader-panel] fix childrenData (close #3126) (#3131) 2021-08-30 22:36:55 +08:00
btea
4e19718553
feat(components): [el-image-viewer] emit close event (#3129) 2021-08-30 18:01:44 +08:00
Aex
88e193ce96
fix(components): [el-upload] revoke object url on item remove (#3135) 2021-08-30 17:50:24 +08:00
SongWuKong
d1b48949f5
fix(components): image no emit switch event (close #3132) (#3134) 2021-08-30 17:44:05 +08:00
Sanxiaozhizi
6b017045ae
feat(components): button-group add size (#3098)
* feat(components): button-group add size

* feat(components): add size validator

* docs: complete docs

* fix(components): fix typo

* refactor(components): move and rename tokens

* refactor(components): change size type

* fix: button-group reactive size
2021-08-29 12:33:35 +08:00
msidolphin
a15f5f293f
feat(components): select-v2 support filter-method & remote-search (#3092) 2021-08-29 09:46:38 +08:00
Sanxiaozhizi
8f67fb7645
feat(components): form add scrollToField method (#3110)
* feat(form): add scrollToField function

* feat(components): complete scrollToField function

Co-authored-by: linjie <linjie@zhuanzhuan.com>
2021-08-28 20:00:19 +08:00
wanghaitao
c1445d80de
Table: fix Destructuring assignment bug (#2893) 2021-08-28 03:48:03 +08:00
BeADre
fdbbd15187
fix: remove useless and duplicate declaration (#3082) 2021-08-28 03:47:38 +08:00
kooriookami
a54098393f
style: radio support size prop both border or not (#3103) 2021-08-27 20:31:40 +08:00
kooriookami
5f87831710
style: checkbox support size prop both border or not (#3099)
* style: checkbox support size prop both border or not

* feat: update

* style: update
2021-08-27 20:28:56 +08:00
Sanxiaozhizi
0617cdf9f8
test: fix test (#3109) 2021-08-27 19:13:37 +08:00
Sanxiaozhizi
e9e56d5938
chore: upgrade & improve eslint rule (#3105)
* chore: remove unused ts-node

* chore: upgrade lodash

* chore: upgrade eslint

* perf: remove side effects in computed

* refactor: follow eslint rules

* chore: remove vue-template-compiler

* style: enhance eslint format rule

* style: format code
2021-08-27 17:46:06 +08:00
SongWuKong
7b79aae8ff
fix(input): autosize type problem (#3008) (#3012)
* fix(input): autosize type problem (#3008)

* fix(input/card):  ( autosize/bodyStyle )type problem (#3008)

* fix(input/card): (autosize/bodyStyle)type problem (#3008)

* fix(components): input/card (autosize/bodyStyle) type problem (#3008)

* fix(components): input/card (autosize/bodyStyle) type problem (#3008)
2021-08-26 17:00:18 +08:00
jeremywu
5f33956b76
fix(components): style path error for radio button (#3079)
- Fix style path issue for radio button and step component
2021-08-26 16:20:55 +08:00
jeremywu
6b2b7ec702
fix(components): exposing style folder for select dropdpwn (#3077)
- Fix the error importing in style file
- Update plugin usage for `babel-plugin-import`
2021-08-26 15:11:47 +08:00
Aex
13c1183cf7
fix(components): [table] avoid table border style conflict (#3064) 2021-08-26 09:58:58 +08:00
kooriookami
d9b7ef56ea
style(docs): Optimized style of documentation (#3010)
* style(docs): use css var

* style: update

* style: demo-icon use grid layout

* style: remove demo-block.vue style scoped

* docs: remove strange character
2021-08-26 09:57:56 +08:00
Haoqun Jiang
5d9037a8b5
fix: stop pinning vue peer dependency version (#3051)
* fix: stop pinning vue peer dependency version

It should be safe to trust `vue` to follow semver.
Pinning a peer dependency version is a bad idea because any change in
peer dependency requirement should be considered a breaking change in
theory.

On the other hand, `@vue/compiler-sfc` has a strict peer dependency
version requirement.
So pinning the `vue` version is likely to causing issues like
https://github.com/vitejs/vite/issues/4573 in the future.

* chore: update lockfile
2021-08-25 17:34:57 +08:00
msidolphin
d6975c61df
feat(select-v2): support allow-create feature (#3017)
* feat(select-v2): support allow-create feature

support allow-create feature and refactored part of select-v2's code

* fix: optimized code
2021-08-25 17:23:13 +08:00
tryag
3aff7bbbd5
fix(rate):use constant (#3011) 2021-08-25 17:11:50 +08:00
JeremyWuuuuu
b4342c5ef4 fix missing folders and umd locale builds and i18n docs for umd builds 2021-08-25 17:07:06 +08:00
Aex
84d8d7111e
fix(components): [descriptions] avoid conflict with el-table (#3005)
Co-authored-by: imwsk <syfzxx@vip.qq.com>

Co-authored-by: imwsk <syfzxx@vip.qq.com>
2021-08-25 11:00:02 +08:00
Sanxiaozhizi
c7e7224f77
refactor: rename el-submenu to el-sub-menu (#3037)
* refactor(components): rename el-submenu to el-sub-menu

* refactor(docs): rename el-submenu to el-sub-menu
2021-08-25 10:03:36 +08:00
wangbincyzj
8830b2337a
fix: [label-wrap] Fix misspellings (#3030)
Co-authored-by: wangbin <bin.wang2@cyclone-robotics.com>
2021-08-25 09:47:41 +08:00
Sanxiaozhizi
08e5fc8662
fix(message-box): fix type (#3038) 2021-08-25 09:47:08 +08:00
jeremywu
0738aed40c
fix(build) fix rollup full bundile issue (#3034) 2021-08-25 01:22:03 +08:00
jeremywu
ef94ac1a70
fix(build): upgrade vue to 3.2.x (#3031)
* chore(build): upgrade vue to 3.2.x

- Update Vue related dependencies version

* update vue version
2021-08-25 00:18:06 +08:00
wangbincyzj
9c790c76f0
fix(components): [form-item] Fix misspellings (#3019)
Co-authored-by: wangbin <bin.wang2@cyclone-robotics.com>
2021-08-24 14:25:28 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00