forked from hug-sun/element3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/hug-sun/element3
- Loading branch information
Showing
925 changed files
with
11,111 additions
and
73,913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
src/utils/popper.js | ||
src/utils/date.js | ||
examples/play | ||
*.sh | ||
node_modules | ||
lib | ||
coverage | ||
*.md | ||
*.scss | ||
*.woff | ||
*.ttf | ||
src/index.js | ||
*.d.ts | ||
*.md | ||
*.snap | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
browser: true, | ||
es2020: true, | ||
node: true, | ||
jest: true | ||
}, | ||
globals: { | ||
ga: true, | ||
chrome: true, | ||
__DEV__: true | ||
}, | ||
extends: [ | ||
'plugin:json/recommended', | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/prettier' | ||
'@vue/typescript/recommended', | ||
'@vue/prettier', | ||
'@vue/prettier/@typescript-eslint' | ||
], | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
ecmaVersion: 2020 | ||
}, | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'prettier/prettier': 'error', | ||
'vue/experimental-script-setup-vars': 'off' | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-empty-function': 'off' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,9 @@ We are excited that you are interested in contributing to Element. Before submit | |
- Merging a PR takes two maintainers: one approves the changes after reviewing, and then the other reviews and merges. | ||
|
||
## Prerequisites | ||
|
||
`Node.js 4+`, `yarn` and `npm 3+` are required. Note: we use yarn to lock dependency versions, so you should install dependencies using `yarn` instead of `npm install`. | ||
|
||
```shell | ||
git clone [email protected]:ElemeFE/element.git | ||
npm run dev | ||
|
@@ -52,9 +54,11 @@ npm run dist | |
``` | ||
|
||
## Component Developing Guidelines | ||
|
||
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file and documentation are included. | ||
- Refer to `Button` for nested components. | ||
- Refer to `Select` for components that depend on other components. | ||
|
||
## Code Style | ||
|
||
Just comply with the [ESLint](https://github.com/ElemeFE/eslint-config-elemefe) configuration of [ElemeFE](https://github.com/elemefe). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,14 @@ | |
|
||
Estamos orgullosos de que usted esta interesado en contribuir al proyecto `Element`. Antes de someter sus contribuciones, por favor tome un momentito para leer estas simples guías para contribuidores. | ||
|
||
|
||
## Guía Para Reportar Problemas (“Issues”) | ||
|
||
- [“Issues”]( https://elementui.github.io/issue-generator) son exclusivamente para informar de errores, sugerencias o solicitaciones para funcionalidad adicional referente a diseño. Preguntas de otro tipo corren el riesgo de ser cerradas inmediatamente. Sí tiene preguntas sobre el uso de `Element`, vea [Gitter](https://gitter.im/element-en/Lobby) para más ayuda. | ||
- [“Issues”](https://elementui.github.io/issue-generator) son exclusivamente para informar de errores, sugerencias o solicitaciones para funcionalidad adicional referente a diseño. Preguntas de otro tipo corren el riesgo de ser cerradas inmediatamente. Sí tiene preguntas sobre el uso de `Element`, vea [Gitter](https://gitter.im/element-en/Lobby) para más ayuda. | ||
|
||
- Antes de someter un informe sobre algún problema, sírvase de revisar sí ya hubo un informe. | ||
- Antes de someter un informe sobre algún problema, sírvase de revisar sí ya hubo un informe. | ||
|
||
- Por favor especifique que versión de `Element` y `Vue` que esta utilizando, y que versión de sistema operativo y que versión de navegador web que está utilizando. [JSFiddle](https://jsfiddle.net/) esta recomendado para crear un entorno para reproducir el problema claramente. | ||
|
||
|
||
## Guías para un “Pull Request (PR)” | ||
|
||
- Crea una bifurcación (“fork”) del repositorio a su propia cuenta en github.com. Por favor no crea ramas nuevas aquí. | ||
|
@@ -26,20 +24,21 @@ Estamos orgullosos de que usted esta interesado en contribuir al proyecto `Eleme | |
|
||
- Asegúrese de que el comando `npm run dist` produzca los archivos correctos. | ||
|
||
- Para asegurar compatibilidad y reducir tamaño de los archivos, nuestra configuración de `babel` solo importa `preset-2015`, así que IPAs como Array.prototype.find` y `Object.assign` en `ES2015` no son recomendados. Puede importar “polyfills” terceros, sí es necesario. | ||
- Para asegurar compatibilidad y reducir tamaño de los archivos, nuestra configuración de `babel` solo importa `preset-2015`, así que IPAs como Array.prototype.find`y`Object.assign`en`ES2015` no son recomendados. Puede importar “polyfills” terceros, sí es necesario. | ||
|
||
- “Rebase” antes de crear un “pull request (PR)” para mantener la historia de “commits” limpia. | ||
|
||
- Asegúrese que sus PRs se refrieran a la rama `dev` y no a la rama `master`. | ||
- Asegúrese que sus PRs se refrieran a la rama `dev` y no a la rama `master`. | ||
|
||
- Si su PR arregla un error técnico, por favor, haga referencia al error especifico. | ||
|
||
- Fusión de un PR requiere dos mantenedores: el primero aprueba los cambios después de revisar, y entonces el segundo mantenedor revisa los cambios y hace la fusión. | ||
|
||
|
||
## Requerimientos Técnicos | ||
|
||
`Node.js 4+`, `yarn` y `npm 3+` son requisitos. Nota: Usamos yarn para bloquear versiones de dependencias, por lo que debería instalar dependencias usando `yarn` en lugar de `npm install`. | ||
. | ||
|
||
```shell | ||
git clone [email protected]:ElemeFE/element.git | ||
npm run dev | ||
|
@@ -57,11 +56,11 @@ npm run dist | |
``` | ||
|
||
## Guía Para Desarrollo de Componentes | ||
|
||
- Corra el comando `make new <component-name>` para crear el directorio de su proyecto para un componente nuevo. Verifique su código fuente test, archivo de entrada y documentación están incluidos. | ||
- Refiérase al `Button` para componentes anidados. | ||
- Refiérase al `Select` para componentes que dependen de otros componentes. | ||
|
||
|
||
## Estilo de Desarrollo | ||
Por favor acate a este estilo [ESLint](https://github.com/ElemeFE/eslint-config-elemefe) configuración de [ElemeFE](https://github.com/elemefe). | ||
|
||
Por favor acate a este estilo [ESLint](https://github.com/ElemeFE/eslint-config-elemefe) configuración de [ElemeFE](https://github.com/elemefe). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,9 @@ Nous sommes ravis que vous souhaitiez contribuer à Element. Avant de soumettre | |
- La fusion d'un PR nécessite deux responsables: l'un approuve les modifications après révision, puis l'autre les révise et les fusionne. | ||
|
||
## Pré-requis | ||
|
||
`Node.js 4+`, `yarn` et `npm 3+` sont requis. Note: nous utilisons yarn pour verrouiller les versions des dépendances, donc vous devriez installer les dépendances en utilisant `yarn` au lieu de `npm install`. | ||
|
||
```shell | ||
git clone [email protected]:ElemeFE/element.git | ||
npm run dev | ||
|
@@ -52,9 +54,11 @@ npm run dist | |
``` | ||
|
||
## Concernant le développement de composants | ||
|
||
- Exécutez `make new <nom-du-composant>` pour créer un répertoire pour le nouveau composant. Les tests, le fichier d'entrée et la documentation sont inclus. | ||
- Reportez-vous au `Button` pour les composants imbriqués. | ||
- Reportez-vous à `Select` pour connaître les composants qui dépendent d'autres composants. | ||
|
||
## Style du code | ||
|
||
Il suffit de se conformer à la configuration [ESLint](https://github.com/ElemeFE/eslint-config-elemefe) de [ElemeFE](https://github.com/elemefe). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,15 @@ Element UI 是一套为开发者、设计师和产品经理准备的开源组件 | |
Element UI 的成长离不开大家的支持,如果你愿意为 Element UI 贡献代码或提供建议,请阅读以下内容。 | ||
|
||
## Issue 规范 | ||
|
||
- issue 仅用于提交 Bug 或 Feature 以及设计相关的内容,其它内容可能会被直接关闭。如果你在使用时产生了疑问,请到 Slack 或 [Gitter](https://gitter.im/ElemeFE/element) 里咨询。 | ||
|
||
- 在提交 issue 之前,请搜索相关内容是否已被提出。 | ||
|
||
- 请说明 Element UI 和 Vue 的版本号,并提供操作系统和浏览器信息。推荐使用 [JSFiddle](https://jsfiddle.net/) 生成在线 demo,这能够更直观地重现问题。 | ||
|
||
## Pull Request 规范 | ||
|
||
- 请先 fork 一份到自己的项目下,不要直接在仓库下建分支。 | ||
|
||
- commit 信息要以`[组件名]: 描述信息` 的形式填写,例如 `Button: fix xxx bug`。 | ||
|
@@ -33,7 +35,9 @@ Element UI 的成长离不开大家的支持,如果你愿意为 Element UI 贡 | |
- 合并代码需要两名维护人员参与:一人进行 review 后 approve,另一人再次 review,通过后即可合并。 | ||
|
||
## 开发环境搭建 | ||
|
||
首先你需要 Node.js 4+,yarn 和 npm 3+。注意:我们使用 yarn 进行依赖版本的锁定,所以请不要使用 `npm install` 安装依赖。 | ||
|
||
```shell | ||
git clone [email protected]:ElemeFE/element.git | ||
npm run dev | ||
|
@@ -50,9 +54,11 @@ npm run dist | |
``` | ||
|
||
## 组件开发规范 | ||
|
||
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、文档 | ||
- 如果包含父子组件,需要更改目录结构,参考 `Button` | ||
- 组件内如果依赖了其他组件,需要在当前组件内引入,参考 `Select` | ||
|
||
## 代码规范 | ||
|
||
遵循饿了么前端的 [ESLint](https://github.com/ElemeFE/eslint-config-elemefe) 即可 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
请提交PR之前确认一下已通过 | ||
请提交 PR 之前确认一下已通过 | ||
|
||
1. 看过这个贡献者说明 [中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | ||
1. 看过这个贡献者说明 [中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | ||
2. 测试通过 | ||
3. 如果有相关的issue,记得关联上 | ||
3. 如果有相关的 issue,记得关联上 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.