Commit Graph

270 Commits

Author SHA1 Message Date
qiang
60cd22b890
feat(components): [image] support native lazy loading (#7968) 2022-06-01 13:21:05 +08:00
Jeremy
2a44274bf4
docs(components): [time-picker] event parameters (#8002)
* Update doc event parameters for blur/focus event.
* Update doc event parameters for change event.
* Update doc event parameters for visible-change event.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-31 10:03:44 +08: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
qiang
49117b6b03
docs: fix typo (#7815)
type="link" -> link
2022-05-24 09:36:23 +08:00
JeremyWuuuuu
15c3aa4fb1
docs(components): [input-number] HTML tag issue (#7864) 2022-05-23 22:05:37 +08:00
msidolphin
6f04af6c39
feat(components): [table] ensure minimum-size doesn't follow the content (#7627)
* feat(components): [table] ensure minimum-size doesn't follow the content

* chore: add version tag
2022-05-20 17:57:21 +08:00
0song
4172ff4da6
docs: update doc (#7799) 2022-05-20 12:06:00 +08:00
JeremyWuuuuu
5bfa42cfed
feat(components): [button] restore type="text" (#7761) 2022-05-18 00:39:31 +08:00
JeremyWuuuuu
01a3edf619
docs(components): [input-number] documentation updates (#7727)
- Add version tag for `value-on-clear`.
- Add breaking change log for `value-on-clear`.
2022-05-17 10:47:09 +08:00
Carter Li
2577b06328
feat(components): [input-number] add :value-on-clear and make it nullable (#7724) 2022-05-17 01:16:44 +08:00
JeremyWuuuuu
5d2daca248
docs(components): [button] link button (#7694)
- Update docs for link button.
- Update vp-translation wrong usage of button.
- Update doc show cases examples.
- Update commit hash value for `link button`
2022-05-14 12:58:09 +08:00
Xc
ad3d998752
feat(components): [button] add link api (#7652)
* feat: button add link type

* fix: code lint

* feat: button add link api

* docs: edit word

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-05-14 12:20:02 +08:00
Carter Li
325f84d44f
feat(components): menu add more controllable styles (#7549)
1. add some css variables
2. support specifying level padding
3. small code refactor
4. deprecate `background-color` etc
2022-05-12 22:38:26 +08:00
qiang
2dc4e463fd
chore(ci): optimizing the generated code hint file (#7634) 2022-05-12 10:59:16 +08:00
opengraphica
9c51dab123
feat(components): [dialog] a11y and focus trap on dialog components (#7550)
* feat(components): [dialog] a11y and focus trap on dialog components

* feat(components): [dialog] remove default browser focus style

* feat(components): [dialog] clean up async and comment
2022-05-10 17:58:18 +08:00
btea
688dbb3011
fix(docs): copy icon (#7587)
* fix(docs): copy icon

* chore: modify demo & update copy
2022-05-10 08:06:04 +08:00
JeremyWuuuuu
16abb4ca41
improvement(components): [virtual-table] (#7557)
- Add method `scrollToRow` to VirtualTable.
- Restore missing `cellProps` attribute.
- Add example for **Manual Scroll**.
- Add example for **Cross Hovering**.
- Update documentation accordingly.
2022-05-07 19:06:57 +08:00
JeremyWuuuuu
9b3a88811d
improvement(components): [virtual-table] (#7548)
- Add example for selection.
- Add example for inline editing.
2022-05-07 11:47:52 +08:00
btea
43cf294f8c
fix(docs): icon collection link (#7547) 2022-05-07 09:48:23 +08:00
JeremyWuuuuu
090706250b
feat(components): [auto-resizer] new component (#7541)
* feat(components): [auto-resizer] new component

- Add new component AutoResizer for skip passing width/height.
- Update documentation for AutoResizer.
- Update FAQs for TableV2.
- Update interfaces for TableV2.

* Fix linter error

* Fix linter issue
2022-05-07 09:47:32 +08:00
JeremyWuuuuu
a4aad5a9c0
feat(components): [button] update text button (#7515) 2022-05-05 23:53:47 +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
云游君
6f9d55471b
docs: add dark mode usage & compile dark/css-vars.css (#7513)
* docs: add dark mode usage & compile dark/css-vars.css

* docs: add example link
2022-05-05 19:56:10 +08:00
JeremyWuuuuu
14cfb0500f
docs(components): [virtualized-table] finishing leftovers (#7496)
- Finishing the documentation examples
- Add APIs to the documentation
- Fix some issue while updating the documentations
2022-05-05 00:54:49 +08:00
Travis
eda5bd8695
docs(docs): [badge] fix badge.md prop description error (#7419) 2022-05-04 12:10:25 +08:00
iamkun
f0c0ed8b14
docs: update message box doc 'callback accepted values' (#7469) 2022-05-03 02:42:11 +08:00
云游君
4ea1d85184
docs: fix color box spacing (#7458) 2022-05-01 18:38:08 +08:00
Kevin.Liao
ca5b8982eb
fix(docs): icon import (#7440) 2022-05-01 07:01:01 +08:00
joson
9aa6cc1912
feat(components): [switch] add size (#7377)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-05-01 05:58:43 +08:00
iamkun
4b0613d354
docs: update some description in the docs (#7432) 2022-04-29 18:03:54 +08:00
JeremyWuuuuu
46d04c7ddd
docs(components): [virtual-table] spans (#7441) 2022-04-29 17:57:39 +08:00
三咲智子
7e33c87fe8
docs: add icons for cdn, global and automatic imports (#7407)
closes #7369
2022-04-28 12:35:11 +08:00
opengraphica
16989d8187
feat(components): [slider] aria keyboard controls and attrs (#7389)
* feat(components): [slider] aria keyboard controls and attrs

fix #7350

* feat(components): [slider] fix lint error in slider types

* feat(components): [slider] change start value for home/end unit test

* feat(components): prevent scrolling on touch screen for runway

* feat(components): [slider] type-o in locale prop

* fix(components): [slider] PR comments r1

* fix(components): [slider] linting errors
2022-04-27 21:38:47 +08:00
JeremyWuuuuu
dc98974db9
docs(components): [virtual-table] filtering (#7401)
- Add example for adding filter.
- Export header cell slot renderer interface.
2022-04-27 15:41:22 +08:00
JeremyWuuuuu
1037eb75b4
docs(components): [virtual-table] grouping header (#7397) 2022-04-26 19:21:12 +08:00
JeremyWuuuuu
2d4c52e352
docs(components): [virtual-table] documentations (#7386)
* docs(components): [virtual-table] documentations

- Add examples for `sticky-rows`.
- Add examples for `fixed-columns`.

* Remove style language marking
2022-04-26 14:16:46 +08:00
JeremyWuuuuu
915e1ffe26
docs(components): [virtual-table] custom cell & row class (#7370)
- Add example for customizing cell
- Add example for customize row class
2022-04-25 17:53:49 +08:00
Xc
335569e8a7
feat(components)[image] imageviewer add close-on-press-escape(#7154) (#7182)
* feat: imageviewer add close-on-press-escape(#7154)

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-04-25 13:34:40 +08:00
JeremyWuuuuu
77c7225a9d
docs(components): [virtual-table] basic usage (#7352)
- Add entry for table-v2
- Add basic usage for table-v2
2022-04-24 13:44:40 +08:00
云游君
c022b6cb94
docs: fix some spacing styles (#7343) 2022-04-24 00:56:03 +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
云游君
60d38a464f
docs: dark palette when toggle & fix autocomplete bg (#7317) 2022-04-23 08:39:21 +08:00
iamkun
b602608bed
docs: [color-picker] fix popper-class (#7331) 2022-04-22 22:38:11 +08:00
Lee
5068528768
fix(docs): radio-group (#7257)
* Update radio.md

Radio-group Attributes
Accepted Values
size is wrong

* fix(docs): radio-group
2022-04-21 21:39:13 +08:00
云游君
2b47933c8f
fix(theme-chalk): components details when dark (#7229)
* fix(theme-chalk): components details when dark

* fix(theme-chalk): remove step icon bg color
2022-04-19 12:38:12 +08:00
blackie
0ecc6bc91e
docs(components): [tooltips] Update docs (#6962) 2022-04-13 22:15:37 +08:00
Yorn Qiu
8149867dd0
docs(components): [select-v2] remove repeated 'clear-icon' (#7145)
* docs(components): [select-v2] remove repeated 'clear-icon'

remove repeated 'clear-icon' in SelectV2 Attributes

* docs(components): [select-v2] change the lower-cased component to Components
2022-04-13 20:59:30 +08:00
iamkun
5bb64819c7
docs: add config-provider namespace (#7128) 2022-04-12 22:29:05 +08:00
三咲智子
73fa508530
docs: fix typo (#7117) 2022-04-12 07:45:54 +08:00
云游君
33859cca5d
feat: add dark for custom button & adjust details (#7086) 2022-04-10 23:58:20 +08:00
bqy_fe
d9e493f4cf
docs(components): [table] add empty slot (#7004) 2022-04-09 17:56:51 +08:00
三咲智子
851242e317
feat(docs): add source and contributors (#6044)
* feat(docs): add source and contributors

closes #6038

* feat(docs): ignore contributor when dev

* ci: add github token

* fix: lint

* fix: page

* fix: placeholder

* ci: remove preview
2022-04-08 00:40:25 +08:00
bqy_fe
b863db272e
feat(components): [tabs] add tab-change event (#6978) 2022-04-03 14:09:52 +08:00
虞金攀
904aa0e21b
feat(components): add tree select component (#6843)
* feat(ElTreeSelect): add tree select base component

* refactor(ElTreeSelect): use render function and move select/tree props to them self module

* fix(ElTreeSelect): init value not checked

* fix(ElTreeSelect): `toArray` ignores valid values

* fix(ElTreeSelect): expose not working when defined on mounted

* fix(ElTreeSelect): watch `modelValue` deep

* test(ElTreeSelect): add base unit test

* perf(ElTreeSelect): default slot should be a function

* fix(ElTreeSelect): `onNodeClick` can not call,

* test(ElTreeSelect): update unit test

* fix(ElTreeSelect): `onNodeClick` can not call,

* fix(ElTreeSelect): remove folder node when `checkStrictly` is false

* feat(ElTreeSelect): export `ElTreeSelect`

* fix(ElTreeSelect): `filterMethod` conflicts with `filterNodeMethod`

* docs(ElTreeSelect): add component docs

* fix(ElTreeSelect): fix lint

* docs(ElTreeSelect): fix lazy loading requires non-leaf nodes, and change mock labels

* docs(ElTreeSelect): the link address of the attributes is incorrect

* docs(ElTreeSelect): `dropdown` doesn't need the `-` symbol

* refactor(ElTreeSelect): use alias path and make sure vue is above to components

* refactor(ElTreeSelect): use a unified namespace for styles

* docs(ElTreeSelect): change option labels in default slots

* refactor(ElTreeSelect): import `ElOption` using unified entry and change the way to override the select click event

* style(ElTreeSelect): sort imports

* docs(ElTreeSelect): update the documentation for special codes

* refactor(ElTreeSelect): keep it consistent with the select style

* refactor(ElTreeSelect): use `isFunction` from `@element-plus/utils`

* refactor(ElTreeSelect): use single closing tag when no subset

* docs(ElTreeSelect): set `TreeSelect` promotion as `2.1.8`
2022-04-02 15:15:33 +08:00
一个大胖子
913cf42fdd
fix(docs): [el-divider] Document case error, String to string (#6934) 2022-04-01 14:27:23 +08:00
msidolphin
0b8f1cb64b
docs: [el-table] add self-close issue (#6923)
* docs: [el-table] add self-close issue

* chore: adjust word

* chore: improve desc
2022-03-31 20:44:05 +08:00
JeremyWuuuuu
337622ed95 feat(components): [tag] add new API for rounded
- Add new api `round` for rounded tag.
- Add documentation for rounded tag.
- Update document styles.
2022-03-31 17:27:49 +08:00
msidolphin
d3756d941e
feat(components): [el-scrollbar] expose scrollTo method (#6663)
* feat(components): [el-scrollbar] expose scrollTo method

* chore: improve code
2022-03-31 14:25:58 +08:00
msidolphin
e8ea457f6c
docs: [el-table] add FAQ category (#6907)
* docs: [el-table] add FAQ category

* - Update docs/en-US/component/table.md

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-03-31 10:27:06 +08:00
bqy_fe
8c26036e60
refactor(components): [image, image-viewer] refactor (#6704)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-30 21:44:30 +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
5afe23c18c
refactor(components): [el-popper] refactor popper to script setups (#6725)
- Update legacy syntax to script setup for popper
- Update tests due to changes
- Move popper/token to element-plus/tokens
2022-03-24 21:22:46 +08:00
三咲智子
b51c37ad29
docs: improve API format (#6799) 2022-03-24 15:35:15 +08:00
JeremyWuuuuu
b051efd1b7
feat(components): [el-config-provider] experimental feature toggle (#6794)
- Add experimental feature toggle to config provider
- Add experimental feature toggle documentation
- Update test cases against feature toggle
2022-03-24 13:48:58 +08:00
三咲智子
9c029b414d
docs: [upload] improve typings (#6764) 2022-03-23 18:50:36 +08:00
btea
d083be90c9
feat(components): [cascader] add tag-type attribute (#6726)
* feat(components): [cascader] add tag-type attribute

* chore: add comment
2022-03-21 12:42:03 +08:00
blackie
458e301a52
fix(components): [result] rename slot's name from 'subTitle' to 'sub-title' (#6636)
* fix(components): [result] rename slot's name

* docs(components): [result] update doc
2022-03-15 16:59:50 +08:00
云游君
d3a66b8767
refactor(components): [rate] use css var & disable to disabled & star-color to fill-color (#6601)
* refactor(components): [rate] use css var & disable to disabled

* refactor(components): [rate] remove getIconStyle

* refactor(components): [rate] rename star-color to fill-color

* fix(test-utils): rate vitest by css vars

* refactor: use ns.is('', state)
2022-03-14 19:34:49 +08:00
三咲智子
5d85fba20c
chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
msidolphin
d435a6a6fc
feat(components): [el-table] exposes scroll methods (#6539)
* feat(components): [el-table] exposes scroll methods

* chore: improve code
2022-03-13 23:00:58 +08:00
blackie
468d4ba162
refactor(components): [skeleton] switch to script-setup syntax (#6395)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-13 20:53:05 +08:00
Jason Ren
bf8eec1314
docs: [layout] fix a mistyped value (#6576) 2022-03-13 15:32:50 +08:00
云游君
93ee392932
fix(components): [upload] photo-wall wrap (#6546)
* fix(components): upload photo-wall wrap

* refactor(components): upload conent with props by tsx

* fix: type generate for upload sfc tsx

* Revert "fix: type generate for upload sfc tsx"

This reverts commit beeb9fb1642a875278ab9bf92f8ae4b7ae971013.

* Revert "refactor(components): upload conent with props by tsx"

This reverts commit 425e4a9f34693d9828bc8cf2e5ef2d75c5037864.

* fix: upload content type by as any

* refactor: extract uploadContentProps to object

* refactor(components): upload use tamplate instead of h

* Update packages/components/upload/src/upload.vue

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

* refactor(components): remove useless key in upload-content

* refactor(components): fix type

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-03-12 16:57:48 +08:00
三咲智子
da6d2dc84b
feat(components): [message] support re-render vnode (#6527)
* feat(components): [message] support re-render vnode

* docs: improve api reference

* test: add message vnode render function
2022-03-11 20:19:31 +08:00
Alan Wang
103bb1b104
feat(components): [cascader]add collapse-tags-tooltip (#6331) 2022-03-11 15:58:00 +08:00
Alan Wang
a3e3acc0fc
feat(components): [select-v2]add collapse-tags-tooltip (#6532)
* feat(components): [select-v2]add collapse-tags-tooltip

* feat(components): [select-v2]set fallback-placements

* feat(components): [select-v2]add collapse-tags-tooltip

* feat(components): [select-v2]set fallback-placements

* feat(components): [select-v2]add v-if on tooltip
2022-03-11 15:56:35 +08:00
Alan Wang
57d08f9a78
feat(components): [select]add collapse-tags-tooltip (#6245)
* feat(components): [select]add collapse-tags-tooltip

* feat(components): [select] collapse-tags-tooltip set width

* feat(components): [select] collapse-tags-tooltip set fallback-placements

* feat(components): [select] resolve conflicts

* feat(components): [select] add v-if on tooltip
2022-03-11 15:56:23 +08:00
云游君
195224f745
docs: separate layout examples (#6526) 2022-03-11 00:13:29 +08:00
msidolphin
505616c2ab
feat: [el-table] support always show scrollbar & get selection rows (#6469) 2022-03-08 14:28:58 +08:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
三咲智子
eab6be93e7
refactor(docs): [form] improve docs and typings (#6447) 2022-03-07 13:37:13 +08:00
C.Y.Kun
13ffea1114
refactor(components): refactor upload (#6014)
* refactor(components): refactor ElUpload

* refactor(components): refactor upload

* test: use jsx

* refactor: resolve review comments

* fix: ts error

* refactor: re-order imports

* refactor: rename

* fix: infinity watch

* refactor: rename

* refactor: address PR comments

Co-authored-by: Kevin <sxzz@sxzz.moe>
2022-03-05 23:09:31 +08:00
JeremyWuuuuu
11d3db586c
feat(components): [el-messagebox] add context for message box (#6379)
- Add context for message box
- Update documentation based on changes
2022-03-05 19:40:35 +08:00
Carter Li
4412ace887
feat(components): export prop persistent in el-select (#6428)
Ref: https://github.com/element-plus/element-plus/issues/6378#issuecomment-1058968214
2022-03-04 17:52:10 +08:00
JeremyWuuuuu
69de57b8d4
feat(components): [el-notification] add context for notification (#6368)
- Add context for notify method
- Add documentation for adding appContext for notification
- Fix a bug which message[type] method connot get context
- Enhance documentation for ElMessage
2022-03-02 11:12:26 +08:00
JeremyWuuuuu
d5f6f795cd
feat(components): [el-notification] add context for notification (#6367)
- Add context for notify method
- Add documentation for adding appContext for notification
- Fix a bug which message[type] method connot get context
- Enhance documentation for ElMessage
2022-03-02 10:55:51 +08:00
JeremyWuuuuu
f6a58ce66c
fix(components): [el-dialog] revert focus trapping feature (#6346)
* fix(components): [el-dialog] revert focus trapping feature

- Revert focus trapping

* Remove focus trap documentation
2022-03-01 00:45:42 +08:00
三咲智子
dbbfa34bec
feat(components): [button] add icon slot (#6343) 2022-03-01 00:11:24 +08:00
JeremyWuuuuu
6aa69126b8
feat(components): [message] add vue context for message component (#6259) 2022-02-24 11:24:34 +08:00
blackie
c7d738e468
refactor(components): [button-group] switch to script-setup syntax (#6256) 2022-02-24 10:15:28 +08:00
paul
f68aa3cf05
feat(components): [el-row] enhancement for supporting space-evenly (#6223)
Co-authored-by: gp5251 <gp5251@qq.com>
2022-02-23 10:46:06 +08:00
云游君
f0e4b3a184
fix(docs): remove fixed variables & add color palette (#6216) 2022-02-22 16:42:54 +08:00
JeremyWuuuuu
d2e9de9511
feat(components): [el-dialog] enhancement for dialog a11y (#6087)
* feat(components): [el-dialog] enhancement for dialog a11y

- Refactor dialog to script setup

* Separates dialog and its content into different components

* Remove unused code & fix a potential bug in focus-trap component

* Update dialog-content.vue

Co-authored-by: bqy <1743369777@qq.com>
2022-02-22 12:49:28 +08:00
msidolphin
108f7dd5df
feat(components): [el-popconfirm] support persistent (#6207) 2022-02-22 10:48:59 +08:00
啝裳
87617892e9
docs: [el-popover] add trigger=contextmenubefore-enterbefore-leave (#6108)
* docs: [el-popover] add before-enter、before-leave

* docs: [el-popover] add `trigger=contextmenu`

* docs: update
2022-02-21 17:10:55 +08:00
Ghislain B
769833954a
docs(components): [el-popover] add missing effect option (#6135)
* docs(components): [popover] add missing `effect` option

* Update popover.md

Co-authored-by: Ghislain Beaulac <Ghislain.Beaulac@se.com>
Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-02-21 14:56:44 +08:00
Alan Wang
4159bfa500
fix(docs): [popover] add description of teleported (#6137) 2022-02-21 10:16:42 +08:00
msidolphin
78b24dfdfd
fix(components): [el-table] optimize popover performance (#6170) 2022-02-21 09:21:59 +08:00
weidehai
7e9ff25aea
test(components): [el-tooltip] add unit test about appendTo (#6178) 2022-02-21 09:12:29 +08:00
btea
2dd396f644
chore(docs): update rate.md (#6077) 2022-02-16 10:40:30 +08:00