Skip to content

Commit

Permalink
Merge branch 'element-plus:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JauSingSing committed May 13, 2024
2 parents 31f73db + 969cc76 commit 24b264f
Show file tree
Hide file tree
Showing 270 changed files with 7,352 additions and 2,132 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-commit-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

strategy:
matrix:
node-version: [16]
node-version: [18]
os: [ubuntu-latest, windows-latest]
include:
- node-version: 16
- node-version: 18
node-name: LTS
# - node-version: 18
# node-name: Current
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-build-product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs-deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
registry-url: https://registry.npmjs.com/

- name: Setup pnpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.com/

- name: Get pnpm store directory
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.com/

- name: Setup pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ssr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get pnpm store directory
id: pnpm-cache
Expand Down Expand Up @@ -57,9 +57,9 @@ jobs:

strategy:
matrix:
node-version: [16]
node-version: [18]
include:
- node-version: 16
- node-version: 18
node-name: LTS
# - node-version: 18
# node-name: Current
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
shamefully-hoist=true
strict-peer-dependencies=false
shell-emulator=true
package-manager-strict=false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"vue.volar",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"antfu.vite",
"antfu.unocss",
"lokalise.i18n-ally"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"cSpell.words": ["Element Plus", "element-plus"],
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"npm.packageManager": "pnpm",
"eslint.probe": [
"javascript",
Expand Down
68 changes: 68 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,73 @@
## Changelog

### 2.7.2

_2024-04-26_

#### Features

- Hooks add use-aria hooks (#16598 by @kooriookami)
- Components [color-picker] add `teleported` prop (#16634 by @zhixiaotong)
- Components [form] add validate callback promise type (#16652 by @warmthsea)

#### Bug fixes

- 🐛 update autocomplete default width (#16633 by @xxholly32)
- Components [select] group error when custom option component (#16621 by @Liao-js)
- Components [table] return type of function summary-method supports VNode (#16648 by @FrontEndDog)
- Test-utils fix main export error (#16504 by @wzc520pyfm)
- Components Add missing export (#16323 by @zzh948498)
- Components [table-v2] fix scrolling fail (#16470 by @Tsong-LC)
- Components [select] `isDisabled` is not fresh (#16419 by @makedopamine)
- Components [progress] bar background support gradient (#16666 by @btea)
- Components [select-v2] custom options init error in multiple (#16664 by @Liao-js)

### 2.7.1

_2024-04-20_

#### Features

- Components [badge] Add badge-style and badge-class (#16585 by @kooriookami)

#### Bug fixes

- Hooks [empty-values] warning on modifying computead value (#16508 by @btea)
- Components [input-number] fix binding wheel event warning (#16495 by @Canroc)
- Components [table] fix cell tooltip display error (#16449 by @electroluxcode)
- Components [table] hover style error (#16517 by @dowinweb)
- Components [table] fix grouping head when dynamic column (#16433 by @Liao-js)
- Components [select-v2] fix has existing option when allow create (#16590 by @Liao-js)
- Components [table] table body rerendered when use row-key (#16544 by @Liao-js)

### 2.7.0

_2024-04-12_

#### Breaking changes

- See #15834

#### Features

- Components [segmented] new component (#16258 by @kooriookami)
- Components add empty-values and value-on-clear props (#16361 by @kooriookami)
- Components [badge] add dotClass、dotStyle、offset props (#16434 by @lxw15337674)
- Support node 18+ & update tsx and vitest (#16190 by @btea)

#### Bug fixes

- Components [input-number] wrapper padding style is overridden (#16310 by @betavs)
- Components [input-number] fix cascading style order (#16308 by @makedopamine)
- Components [table-v2] fixed mode hovering rerender cell (#12378 by @chenxch)
- Components [select-v2] manually set object type modelValue error (#16473 by @Fuphoenixes)
- Components [select & select-v2] fix filterable double click error (#16456 by @Fuphoenixes)
- Components [table] fixed hover on colSpan > 2 background is error (#16443 by @Liao-js)

#### Refactors

- Components [button] use buttonkls (#16090 by @wzc520pyfm)

### 2.6.3

_2024-03-29_
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Next section is for those who wants to help develop Element Plus.

You should be having:

NodeJS >= 16
NodeJS >= 18

Git > v2.20

Some of our compiling code used syntax that introduced in NodeJS>16.0 so you will be need to install that in advance.
Some of our compiling code used syntax that introduced in NodeJS>18 so you will be need to install that in advance.

## Clone the repository

Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<img src="https://img.shields.io/npm/v/element-plus.svg" />
</a>
<a href="https://github.com/element-plus/element-plus">
<img src="https://img.shields.io/badge/node-%20%3E%3D%2016-47c219" />
<img src="https://img.shields.io/badge/node-%20%3E%3D%2018-47c219" />
</a>
<a href="https://npmcharts.com/compare/element-plus?minimal=true">
<img src="https://img.shields.io/npm/dm/element-plus.svg" />
Expand All @@ -28,7 +28,7 @@
Alright, for you to get started if you are looking for making Element Plus better you should keep reading.
For developers that uses Element Plus to develop your website you should go ahead visit [Getting Started](https://element-plus.org/).

- 中国大陆[加速镜像站点](https://element-plus.gitee.io/)
- 中国大陆[加速镜像站点](https://cn.element-plus.org/zh-CN/)

## Breaking change list

Expand Down Expand Up @@ -67,8 +67,8 @@ You can also try Element Plus out with the components built-in playground.
<tbody>
<tr>
<td align="center" valign="middle">
<a href="https://js.design?source=element-plus" target="_blank">
<img width="150px" src="https://user-images.githubusercontent.com/17680888/160634485-df0d00af-8633-4ab8-9a72-aac2b65d1d36.png">
<a href="https://melecode.com/" target="_blank">
<img width="150px" src="https://github.com/element-plus/element-plus/assets/82012629/9ca4269c-7545-4463-9bdc-8e5a1fbd0b08">
</a>
</td>
<td align="center" valign="middle">
Expand All @@ -78,12 +78,12 @@ You can also try Element Plus out with the components built-in playground.
</td>
<td align="center" valign="middle">
<a href="https://www.jnpfsoft.com/index.html?from=elementUI" target="_blank">
<img width="150px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/82012629/285874192-0d562df0-2ebc-4bb3-bf8f-8674ac07c38a.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231127T131759Z&X-Amz-Expires=300&X-Amz-Signature=532bfe31066712d205616b9a91002be8a187b7111e692a487356943a19c1772e&X-Amz-SignedHeaders=host&actor_id=82012629&key_id=0&repo_id=281319253">
<img width="150px" src="https://github.com/element-plus/element-plus/assets/17680888/6a044d82-c393-48ab-90b8-de0d3aad1624">
</a>
</td>
<td align="center" valign="middle">
<a href="http://github.crmeb.net/u/Element?from=element-plus" target="_blank">
<img width="150px" src="https://github-production-user-asset-6210df.s3.amazonaws.com/82012629/286477993-570c3e32-c32c-43ea-997b-2c5fc8df198a.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231129%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231129T043748Z&X-Amz-Expires=300&X-Amz-Signature=b4f0d40ae84855c2c9cdab96e90aaf8fcbbba67240bbe2588c32775b41cc1720&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=281319253">
<img width="150px" src="https://github.com/element-plus/element-plus/assets/17680888/7abd3c5a-04fb-4eae-9540-0d21c5ed71ed">
</a>
</td>
</tr>
Expand All @@ -96,10 +96,15 @@ You can also try Element Plus out with the components built-in playground.
<tbody>
<tr>
<td align="center" valign="middle">
<a href="https://wonderful-code.gitee.io/?from=element-plus" target="_blank">
<a href="https://doc.buildadmin.com/?from=element-plus" target="_blank">
<img width="130px" src="https://user-images.githubusercontent.com/17680888/173179536-30e35fd1-cd5a-482a-bc41-9d5f0aa66fd4.png">
</a>
</td>
<td align="center" valign="middle">
<a href="https://fantastic-admin.github.io/" target="_blank">
<img width="130px" src="https://github.com/element-plus/element-plus/assets/82012629/fdff8d8f-83e8-4986-9949-c5b4e0d30217">
</a>
</td>
<td align="center" valign="middle">
<a href="https://bit.dev/?from=element-ui" target="_blank">
<img width="130px" src="https://user-images.githubusercontent.com/10095631/41342907-e44e7196-6f2f-11e8-92f2-47702dc8f059.png">
Expand Down
12 changes: 0 additions & 12 deletions docs/.vitepress/config/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,6 @@ gtag('config', 'UA-175337989-1');`,
gtag('config', 'G-M74ZHEQ1M1');
`,
],
[
'script',
{},
`(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2894908,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
],
[
'script',
{
Expand Down
23 changes: 15 additions & 8 deletions docs/.vitepress/config/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ export const rightLogoSmallSponsors = [
name: 'BuildAdmin',
img: '/images/sponsors/buildadmin.png',
imgL: '/images/sponsors/buildadmin-l.png',
url: 'https://wonderful-code.gitee.io/?from=element-plus',
url: 'https://doc.buildadmin.com/?from=element-plus',
slogan: 'Vue3 opensource admin system',
slogan_cn: 'Vue3企业级开源后台管理系统',
},
{
name: 'Fantastic-admin',
img: '/images/sponsors/fantastic-admin.png',
imgL: '/images/sponsors/fantastic-admin-l.png',
url: 'https://fantastic-admin.github.io/',
slogan: 'Out-of-the-box Vue3 management system framework',
slogan_cn: '一款开箱即用的 Vue3 中后台管理系统框架',
},
{
name: 'bit',
img: '/images/bit.svg',
Expand All @@ -33,13 +41,12 @@ export const rightLogoSmallSponsors = [

export const leftCustomImgSponsors = [
{
name: 'JSDesign',
name_cn: '即时设计',
img: '/images/js-design.png',
url: 'https://js.design/?source=element-plus&plan=sy',
slogan: 'Professional online UI design tool',
slogan_cn: '专业在线UI设计工具',
banner_img: '/images/js-design-banner.jpg',
name: '美乐',
img: '/images/sponsors/mele.png',
url: 'https://melecode.com/',
slogan: 'Enterprise-level low-code development platform',
slogan_cn: '企业级全栈低代码开发平台',
banner_img: '/images/sponsors/mele-banner.png',
},
{
name: 'VForm',
Expand Down
5 changes: 5 additions & 0 deletions docs/.vitepress/crowdin/en-US/pages/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@
"link": "/statistic",
"text": "Statistic",
"promotion": "2.2.30"
},
{
"link": "/segmented",
"text": "Segmented",
"promotion": "2.7.0"
}
]
},
Expand Down
4 changes: 3 additions & 1 deletion docs/.vitepress/crowdin/en-US/pages/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@
"figmaVariables": "Figma Variables",
"figmaVariablesIntro": "Components all use variables to quickly switch between dark and light modes.",
"figma2023": "2023 Figma UI Kit",
"figma2023Intro": "Components designed using Figma's latest variable configuration provide Light/Dark/Dark Alpha theme switching to help you quickly build interface designs."
"figma2023Intro": "Components designed using Figma's latest variable configuration provide Light/Dark/Dark Alpha theme switching to help you quickly build interface designs.",
"masterGo2024": "2024 MasterGo UI Kit",
"masterGo2024Intro": "MasterGo component library with optimized adaptive layouts, more complete component states, and variant switching."
}

0 comments on commit 24b264f

Please sign in to comment.