Skip to content

Commit

Permalink
Master (#1)
Browse files Browse the repository at this point in the history
* Button: circle button supports size (ElemeFE#11275)

让circle button也支持size属性控制,padding的大小根据size属性的```button-padding-vertical```确定

* Upload: fix Error when `beforeUpload` hook return promise of file object (ElemeFE#11297)

* Upload: fix beforeUpload hook bug

* Upload: add ElUploadInternalRawFile interface

* Radio: prevent changing value when radio is disabled. resolves ElemeFE#11296 (ElemeFE#11303)

* InputNumber: add precision attribute (ElemeFE#11281)

* ColorPicker: prevent active-change event when picker is closed (ElemeFE#11304)

* add support of tab penl lazy render(ElemeFE#11022) (ElemeFE#11167)

* add support of tab penl lazy render

* add docs

* fix test

* Tabs: update tab-pane.d.ts

* Docs: update Tabs docs

* Table: fix oversized filter list. Resolves ElemeFE#11314 (ElemeFE#11320)

*  Radio: support switching radio with keyborard in ff. Fixes ElemeFE#8198 (ElemeFE#11325)

* Docs: fix docs of Tab-pane

* Radio: support switching radio with keyborard in ff. Fixes ElemeFE#8198

* Table: support manually sorting. Resolves ElemeFE#9495 (ElemeFE#11311)

* Table: support manually sorting. Resolves ElemeFE#9495

* Table: add parameters for sort api

* Docs: improve docs

* Autocomplete: fix suggestions data bug (ElemeFE#11323)

* Radio & Checkbox: replace cubic-bezier with ease-in (ElemeFE#11331)

* Tooltip: add min-width (ElemeFE#11335)

* Table: retain currently selected row when sorting the table. (ElemeFE#11348)

* MessageBox: remove hidden class when using MessageBox twice (ElemeFE#11371)

* Tree: fix markNodeData error when data is falsy (ElemeFE#11376)

* Changelog: update for 2.4.0 (ElemeFE#11378)

* Chore: fix deploy-ci.sh (ElemeFE#11379)

* [build] 2.4.0

* [release] 2.4.0

* Chore: update donation QR codes

* Docs: update es changelog for 2.4.0 (ElemeFE#11382)

* Tabs: remove focus state when before-leave return a resolved promise (ElemeFE#11386)

* Autocomplete: remove duplicate prop in types (ElemeFE#11388)

* Pagination: update translation for tr-TR (ElemeFE#11399)

Added forgotten translation for page

* Tree: when tree nodes filtered, don't expand node in lazy mode (ElemeFE#11395)

* form-item sizeClass (ElemeFE#11408)

* form-item sizeClass

* Update form.spec.js

* Popover: not emit event or create popper when disabled (ElemeFE#11426)

* Select: fix arrow align in FireFox (ElemeFE#11427)

* Update node.js

* Update node.js

* Update node.js

* improve the test coverage (ElemeFE#11447)

* Test: add some test cases (ElemeFE#11453)

* Select: hide clear icon when value is null (ElemeFE#11460)

* Radio: remove box-shadow when disabled (ElemeFE#11462)

* Tabs: fix lazy loading (ElemeFE#11461)

* Tabs: fix lazy tab-pane order

* Tabs: fix lazy loading

* Update node.js

this.data可能为undefined,需要判断一下

* Update node.js

* Table: retain currently selected row when expanding row (ElemeFE#11464)

* DateTimePicker: fix incorrect date on time pick (ElemeFE#11474)

* date-time-picker: fix incorrect date on time pick

* date-time-picker: fix incorrect date on confirm

* Test: add some test cases (ElemeFE#11485)

* Chore: retire lerna and remove redundant files (ElemeFE#11493)

* Chore: retire lerna and delete redundant files

* Chore: update Makefile

* MessageBox: add iconClass (ElemeFE#11499)

* Dialog: trigger closed event when closing animation ends (ElemeFE#11490)

* Dialog: trigger closed event when close animation ends

* Update dialog.md

* Update dialog.md

* Tabs: add stretch attribute (ElemeFE#11476)

* Tabs: add stretch attribute

* Update tabs.scss

* Table: improve performance of summary-method (ElemeFE#11521)

* Changelog: update for 2.4.1 (ElemeFE#11538)

* Chore: update yarn.lock (ElemeFE#11539)

* [build] 2.4.1

* [release] 2.4.1

* Tabs: fix tabs style (ElemeFE#11536)

* Test: add more test cases  (ElemeFE#11541)

* Tabs: improve test case

* Container: improve test case

* Radio: improve test case

* Popover: fix reference error in the loop (ElemeFE#11503)

* Popover: fix reference error in the loop

* Update directive.js

* Docs: update es changelog for 2.4.1 (ElemeFE#11546)

* Table: fix highlightCurrentRow regression (ElemeFE#11563)

* Cascader: not focus when outside clicked (ElemeFE#11588)

* i18n: update Slovak translation (ElemeFE#11597)

* Button: fix style of single round/circle button in a group (ElemeFE#11605)

* Chore: update sponsor, optimize suggestJump (ElemeFE#11614)

* Pagination: add size to nested select (ElemeFE#11622)

* Table: fix class-name & label-class-name prop not reactive (ElemeFE#11626)

* Cascader: close when option clicked (ElemeFE#11623)

* Cascader: close when option clicked in hover mode

* update menu.vue

* Tree: optimize not-allowed dropping cursor (ElemeFE#11631)

* Pagination: use setCurrentValue when reassigning input value (ElemeFE#11608)

* Pagination:  input bug

currentValue in input component's data object didn't refresh when changeHandle emited

* Update pagination.js

* Chore: delete unused file (ElemeFE#11641)

* Autocomplete: passes id to nested native input (ElemeFE#11643)

* Menu: fix open method error when collapse is changed (ElemeFE#11646)

* Chore: add missing file when create new component (ElemeFE#11663)

* Select: fix form change validation (ElemeFE#11672)

* Table: fix highlightCurrentRow regression (ElemeFE#11691)

* Docs: fix link of element react (ElemeFE#11718)

* Select: remove empty option item when default value is null in single mode (ElemeFE#11731)

* i18n: update ee.js (ElemeFE#11709)

Add missing Estonian translations

* Tabs: add activeName and oldActiveName parameters to before-leave hook (ElemeFE#11713)

* Tabs: add activeName and oldActiveName parameters to before-leave hook

* Tabs: fix docs

* Chore: eslint ignore font files (ElemeFE#11696)

* DatePicker: guards common but incorrect usage (ElemeFE#11673)

* Loading: add missing definition of directive (ElemeFE#11749)

* Changelog: update for 2.4.2

* [release] 2.4.2

* Docs: update es changelog for 2.4.2 (ElemeFE#11758)

* Form: fix a typo in docs (ElemeFE#11765)

line 412: `...并 Form-Item 的...` -->> `...并将 Form-Item 的...`

* Table: fix params on docs (ElemeFE#11774)

* Table: fix params on docs

* Table: add missing definitions

* Table: fix row style definitions

* Update table.d.ts

* Chore: update id and key for algolia (ElemeFE#11783)

* Cascader: hide label when user inputs (ElemeFE#11738)

* Cascader: hide label when user input

* Cascader: update main.vue

* Update main.vue

* Cascader: not set readonly in IE

* InputNumber: remove undocumented slots (ElemeFE#11794)

* Tree: fix TreeNode dragged to wrong position (ElemeFE#11797)

* i18n: update lv.js (ElemeFE#11814)

* Form: clearValidate supports prop names (ElemeFE#11821)

* MessageBox: add distinguishCancelAndClose (ElemeFE#11831)

* Notification:  remove vm attribute (ElemeFE#11830)

* Changelog: update for 2.4.3 (ElemeFE#11832)

* [build] 2.4.3

* [release] 2.4.3

* Chore: use rimraf when deploying (ElemeFE#11834)

* Select: revert ElemeFE#10105 (ElemeFE#11837)

* Table: update getRowClass (ElemeFE#11839)

* Table: setCurrentRow only when highlight-current-row is true

* Table: trigger current-change

* Table: update getRowClass

* Tree: not check node when it's disabled (ElemeFE#11847)

* Docs: update TimePicker doc (ElemeFE#11845)

* Time-Picker: Add missing translation

* Time-Picker: Add missing translation

* Docs: update es changelog for 2.4.3 (ElemeFE#11850)

* update spanish Doc 2.4.3

* update spanish Doc 2.4.3

* MessageBox: add missing declaration (ElemeFE#11861)

* Table: disable filter when filters is an empty array (ElemeFE#11864)

* Table: changing current-row-key when current-row-key is assigned to null (ElemeFE#11866)

* Button: optimize scss(ElemeFE#11900)

* Radio: stop event propagation on radio label (ElemeFE#11912)

* Chore: add missing style (ElemeFE#11953)

* Chore: provide a key with v-for (ElemeFE#11891)

* Radio: change component name (ElemeFE#11957)

* Table: fix empty slot position (ElemeFE#11965)

* Input: fix style error when suffix exists with append (ElemeFE#11951)

* Fix - [Bug Report] Localization ElemeFE#11961 (ElemeFE#11968)

* Input: add missing readonly prop (ElemeFE#11967)

* Tree: fix defaultCheckedKeys and emptyText bug (ElemeFE#11971)

* Changelog: update for 2.4.4 (ElemeFE#11981)

* [build] 2.4.4

* [release] 2.4.4

* Docs: update es changelog for 2.4.4 (ElemeFE#11991)

* Spinner: v-bind:style -> :style (ElemeFE#11997)

* FormItem: v-bind:style -> :style (ElemeFE#11996)

* Tree: fix keydown event in Tree (ElemeFE#12008)

* Table: support class-name when type=expand (ElemeFE#12006)

* TimeSelect: fix fieldReset when initialValue is empty string (ElemeFE#12010)

* Message: fix type definition of ElMessageOptions, support VNode as message type (ElemeFE#12018)

* Input: fix style error -  border-spacing should not depend on default value  (ElemeFE#11990) (ElemeFE#12016)

* Docs: add slot doc for el-upload (ElemeFE#12041)

* Table: allow filterable without filter-method (ElemeFE#12045)

* MessageBox: fix type definition (ElemeFE#12058)

* Use methods instead of inline expressions (ElemeFE#12059)

* Docs: update Cascader doc (ElemeFE#12074)

* Chore: add es doc for new component (ElemeFE#12098)

* Table: add toggleAllSelection method (ElemeFE#12047)

* MessageBox: add missing type (ElemeFE#12118)

* Tree: not check node when check-strictly is true (ElemeFE#12106)

* Select: remove redundant style (ElemeFE#12120)

* date-picker: fix ElemeFE#11152 (ElemeFE#12114)

* Input: fix wrong style of Input suffix (ElemeFE#12108)

* Input: fix wrong style of Input

* update input.vue

* add test case

* Tree: add includeHalfChecked  flag to getCheckedNodes (ElemeFE#12014)

* Changelog: update for 2.4.5 (ElemeFE#12134)

* [build] 2.4.5

* [release] 2.4.5

* Docs: update Spanish doc 2.4.5 (ElemeFE#12138)

* Chore: optimize entry script (ElemeFE#12192)

* Dialog: ignore width when fullscreen is true (ElemeFE#12203)

* Docs: improve quickstart doc  (ElemeFE#12205)

* Menu: save menu state when change collapse and expand menu(ElemeFE#10622) (ElemeFE#12178)

* Docs: improve docs (ElemeFE#12208)

* Table: fix async filters (ElemeFE#12165)

* Select: debounce query (ElemeFE#12181)

* Tree & MessageBox: fix type definition (ElemeFE#12214)

* MessageBox: fix ElMessageBoxOptions.message

* Tree: fix type definition

* Main: fix IE compatibility issues (ElemeFE#12237)

* Menu: make font-size constant into variable (ElemeFE#12239)

* Autocomplete: add `popper-append-to-body` attribute (ElemeFE#12241)

* Cascader: escape special characters for regexp (ElemeFE#12248)

* Slider: avoid NaN when min and max values ​​are equal (ElemeFE#12256)

* Radio: fix focus style (ElemeFE#12262)

* Input: not trigger form validation when input (ElemeFE#12260)

* Input: not trigger validation when input

* InputNumber: update docs

*  Tree: register node after dragging (ElemeFE#12279)

* Tree: register node after dragging

* update Tree docs

* Popover: show popper when InputNumber focused (ElemeFE#12284)

* Pagination: make page-size attribute supports .sync (ElemeFE#12281)

* Pagination: make page-size attribute supports .sync

* Update pagination.js

* Menu: fix docs (ElemeFE#12299)

* Select: not clear text when filtering (ElemeFE#12304)

* Select & Cascader: add default value for query string (ElemeFE#12322)

* Tree: fix add node bug in lazy mode (ElemeFE#12265)

* Changelog: update for 2.4.6 (ElemeFE#12325)

* Changelog: update for 2.4.6

* update changelog

* [build] 2.4.6

* [release] 2.4.6

* Docs: update Spanish doc for 2.4.6 (ElemeFE#12331)

* date-picker: fix form change validation (ElemeFE#12328)

* Cascader: highlight input when menu clicked (ElemeFE#12341)

* Tabs: fixed tab-pane's incorrect order (ElemeFE#12346)

* Date picker refactor dates selection: fix 12323 (ElemeFE#12347)

* date-picker: refactor type='dates'

fix issue ElemeFE#12323
{month, year} table highlights all selected dates
nuke selectedDates to provide cleaner data flow

* doc: correct date-picker's array usage

empty value must be falsy (empty array should not be used)

* DatePicker: improve form change validation (ElemeFE#12348)

watch.value will keep firing during time picker selection
it now detects whether panel is closed before firing el.form.change

* Chore: update license year (ElemeFE#12419)

* TimePicker: dynamic scroll position of time-spinner items (ElemeFE#12415)

Makes it possible to style the height of ".el-time-spinner__item". 
Removed the fixed values associated to a height and line-height: 32px. It's now possible to set whichever height a user wants and the scrollbar will adjust itself accordingly.

* Menu: fix submenu style (ElemeFE#12457)

* MessageBox: update doc (ElemeFE#12465)

* Menu: submenu is-active  bug (ElemeFE#12479)

选中submenu下的菜单,submenu没有激活样式式象错误

* ColorPicker: fix the position of cursor (ElemeFE#12376)

* DatePicker: turn off autocomplete for date picker range (ElemeFE#12521)

* Input: fix autocomplete property is not compatible with native ElemeFE#12513 (ElemeFE#12514)

* fix ElemeFE#12513

* fix: fallback for autoComplete and print deprecated warning

* fix: fix auto-complete property in select component

* fix default complete value

* Docs: Update document for autocomplete property change

* Docs: remove redundant documents

* remove unnecessary console log message\

* Update select.md

* fix: add missing declaration in select.d.ts

* Pagination: assign 1 to default page count (ElemeFE#12525)

* Pagination: fix emit order of page size (ElemeFE#12530)

* Cascader: prevent value changing when menu is closing  (ElemeFE#12507)

* Table: fix table filter (ElemeFE#12539)

* Chore: update donation qrcode (ElemeFE#12553)

* i18n: add Persian translation of the remaining items (ElemeFE#12581)

* i18n: add Vietnamese translation of remaining items (ElemeFE#12609)

* Fix invalid link (ElemeFE#12667)

Current link is https://element.eleme.io/nuxtjs.org instead of https://nuxtjs.org/.

* Upload: create blob URL when picture displays (ElemeFE#12402)

* Upload: create blob URL when picture displays

* Update index.vue

* Tree: fix tree node not deleted (ElemeFE#12684)

* Pagination: update doc (ElemeFE#12685)

* Form: fix style of form label in nested form (ElemeFE#12748)

* FormItem: using slot-scope to display validation message (ElemeFE#12715)

* Updated el-form-item to accept custom error message via slot

* FormItem: updated slot name in docs

* updated spanish and chinese translations

* Update form.md

* Update form.md

* Update form.md

* Update form.md

* doc: add missing info in quickstart (ElemeFE#12574)

* Select: use initial height to reset height of input (ElemeFE#12719)

* Select: use initial height to reset height of input

* Update select.vue

* docs: improved documentation for el-form (ElemeFE#12635)

* Docs: Document el-form label-position attribute

Adds improved documentation to the el-form `label-position` attribute, which behaves differently when used with and without `label-width`. This has been a source of confusion for myself and others:

ElemeFE#8477

Thanks!

* Document el-form label-position attribute (zh-CN, needs translation)

* Document el-form label-position attribute (es)

* Update form.md

* Changelog: update for 2.4.7 (ElemeFE#12765)

* [build] 2.4.7

* [release] 2.4.7

* docs: update Spanish doc for 2.4.7 (ElemeFE#12770)

* update Spanish Doc

* update Spanish Doc

* update Spanish Doc

* Switch: not display outline when focused (ElemeFE#12771)

* FormItem:  adding hide-required-asterisk attribute(ElemeFE#12744)

* Form: adds prop to make asterisk optional on required  fields

* Form: adds prop to make asterisk optional on required  fields

* ElForm: Reverses attribute name to hide-required-asterisk, which defaults to false

* Update form-item.vue

* Update form.scss

* Update form.md

* Dialog: add opened event (ElemeFE#12828)

* Dialog: add opened event

* Docs: update es dialog doc

* Update dialog.md

* i18n: update Greek translation (ElemeFE#12830)

Translate missing text

* Upload: add missing definition (ElemeFE#12839)

* Tree: show indicator in drop node (ElemeFE#12854)

* i18n: add Serbian translation (ElemeFE#12863)

Added Serbian translation.

* Tabs: fix order of TabNav when array is sorted (ElemeFE#12846)

* Tabs: fix order of TabNav when array is sorted

* update tabs.vue

* update test cases

* doc: update i18n doc for Serbian language (ElemeFE#12867)

* Form: emits error message on validate event (ElemeFE#12860)

* Form: Emits error message on validate events

* Update form.md

* ButtonGroup: fix Dropdown style in ButtonGroup(ElemeFE#12815) (ElemeFE#12819)

* [Button]Support Dropdown in ButtonGroup(ElemeFE#12815)

* [Button]Support Dropdown in ButtonGroup(ElemeFE#12815)

* [Button]Support Dropdown in ButtonGroup(ElemeFE#12815)

* test: update test case for form (ElemeFE#12886)

* chore: update date-picker comment notes (ElemeFE#12899)

* DatePicker: validate input date  (ElemeFE#12898)

* date-picker: fix confirm() ignoring date validity

make date-range panel's confirm validate date before confirming.

1. disable confirm button if picked date is invalid
2. reset highlight date on picker open (resetView)

* test: date-time-range confirm honors disabledDate

* Input: s autocomplete on textarea (ElemeFE#12917)

A textarea element can also have an autocomplete attribute.
Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

* Table: called render header in index column (ElemeFE#12914)

* Table: fix table column default alignment (ElemeFE#12578)

* Tree: fix type definition (ElemeFE#12941)

* Tabs: scroll to active tab (ElemeFE#12948)

* Tabs: fix not scrolling to active tab

* update tabs.vue

* changelog for 2.4.8 (ElemeFE#12950)

* changelog for 2.4.8

* Update CHANGELOG.en-US.md

* Update CHANGELOG.es.md

* [build] 2.4.8

* [release] 2.4.8

* docs: Changelog for 2.4.8 Spanish update (ElemeFE#12952)

* i18n: update Hungarian translation (ElemeFE#12963)

* Dropdown: Added slots to documentation (ElemeFE#12985)

* Dropdown: Added slots to documentation

Added slots section in english to documentation for dropdown component. Chinese and Spanish missing.

* Update dropdown.md

* Badge: add type attribute (ElemeFE#12991)

* badge: add type attribute

* Update badge.md

* i18n: update Uyghur translation (ElemeFE#13004)

年前面加上“-”, 在维语中年前面要写“-”表示第几年

* select: refactoring icon reverse (ElemeFE#12353)

* select: refactoring icon reverse

* select: disable clear icon when select popup is visible

* select: refactoring clear icon

* i18n: fix typo (ElemeFE#13032)

校对有些错误字

* TimePicker: selectable range will affect to column minutes in spinner (ElemeFE#12312)

* Tabs: fixed last TabNav unable  to be deleted (ElemeFE#13039)

* InputNumber: fix style when `controls-position` is right (ElemeFE#13052)

* Form: clearValidate supports string type param (ElemeFE#12990)

* Select: make clearable work for multi select (ElemeFE#13049)

* Select: make clearable work for multi select (ElemeFE#6399)

* Select: chore

* Select: fix bug and update docs (ElemeFE#13049)

* Upload: use uid as upload-list key (ElemeFE#13054)

* Upload: use uid as upload-list key

* chore: fix code style

* i18n: Add missing Slovenian translations (ElemeFE#13059)

Date-picker: set year to '', add missing translations.
Pagination: translate /page

* NavMenu: fix typo (ElemeFE#13060)

* Select: fix size attribute not working (ElemeFE#13070)

* Select: fix readonly problem in edge (ElemeFE#13034)

Cascader select readonly 添加 edge 浏览器判断;
src/utils/util.js 添加 isIE, isEdge方法;

* Tag: optimize code (ElemeFE#13069)

* Tag: optimize code

* update tag.vue

* Select: fix option wrap in multiple mode (ElemeFE#12329)

* Select: Fix (ElemeFE#11392 & ElemeFE#12327) Writing space become small when collapse-tags prop is added & input takes new line even if space is available when filterable & multiple props are true

* Changes as IE & Edge dosen't support display: contents

* Revert "Changes as IE & Edge dosen't support display: contents"

This reverts commit 21475c6.

* Fixed issue - input going in new line even if there is space (collapse-tags)

* Made calculating with dynamic (replaced static 208 with el-select__tags dynamic width)

* Select: Fixed Bug - Extra Height

Fixed bug - getting extra height whenever last options width is most of same as select's width

* aria: add role dialog (ElemeFE#13084)

* Alert: add support for title slot (ElemeFE#13082)

* Alert: add support for title slot

* update documents

* Table: Adds header rendering slot (ElemeFE#13012)

* Table: Adds header rendering slot

Fixes ElemeFE#4909 and ElemeFE#4908

* Add translation to spanish

* Include render-header deprecation warning

* Add chinese translation and scoped slot description at bottom

* Fix documentation and warnings. Fix custom-header docs

* Fix redundant columns and cleanup example

* Prevent scopedSlot from working on selection column

* Typo

* Table: tooltip content prefer innerText instead of textContent (ElemeFE#13159)

* Table: update Chinese doc (ElemeFE#13177)

* Tabs: set TabNav key (ElemeFE#13178)

* changelog for 2.4.9 (ElemeFE#13182)

* changelog for 2.4.9

* update changelog

* update changelog

* update

* update

* [build] 2.4.9

* [release] 2.4.9
  • Loading branch information
dongsuo authored Nov 8, 2018
1 parent bd395fa commit 0af90a5
Show file tree
Hide file tree
Showing 748 changed files with 64,879 additions and 20,834 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
src/utils/popper.js
src/utils/date.js
examples/play
*.sh
node_modules
lib
coverage
*.md
*.scss
*.woff
*.ttf
7 changes: 5 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"expect": true,
"sinon": true
},
"plugins": ['vue'],
"extends": 'elemefe',
"plugins": ["html", "json"],
"extends": "elemefe",
"rules": {
"no-restricted-globals": ["error", "event", "fdescribe"]
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
Expand Down
16 changes: 3 additions & 13 deletions .github/CONTRIBUTING.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We are excited that you are interested in contributing to Element. Before submit

## Issue Guidelines

- Issues are exclusively for bug reports, feature requests and design-related topics. Other questions may be closed directly. If any questions come up when you are using Element, please hit [Gitter](https://gitter.im/ElemeFE/element) for help.
- Issues are exclusively for bug reports, feature requests and design-related topics. Other questions may be closed directly. If any questions come up when you are using Element, please hit [Gitter](https://gitter.im/element-en/Lobby) for help.

- Before submitting an issue, please check if similar problems have already been issued.

Expand All @@ -35,32 +35,22 @@ 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+` and `NPM 3+` are required.
`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

# open http://localhost:8085
```

For Chinese users, [yarn](https://github.com/yarnpkg/yarn) with taobao registry is recommended if the dependency installation is slow.
```shell
npm i yarn -g
yarn config set registry https://registry.npm.taobao.org
yarn
npm run dev

# open http://localhost:8085
```

To build:

```shell
npm run dist
```

## Component Developing Guidelines
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file, cooking config, documentation and `package.json` are included.
- 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.

Expand Down
65 changes: 65 additions & 0 deletions .github/CONTRIBUTING.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Guía para Contribuidores a `Element UI`

¡Hola! Gracias por elegir [Element UI](http://element.eleme.io/#/en-US).

`Element UI` es un archivo de componentes para desarrolladores y para gerentes de productos ‘web’ basado en [Vue 2.0](https://vuejs.org/)

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.

- 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í.

- Cuando cometa su cambio, formatea en esta forma: `[Nombre de componente]: Datos sobre el “commit”.` (por ejemplo. `Button: Reparación de xxx error`)

- **DE NINGUNA MANERA** incluya archivos dentro del directorio `lib`.

- 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.

- “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`.

- 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

# abra http://localhost:8085
```

Para armar:

```
shell
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).

16 changes: 3 additions & 13 deletions .github/CONTRIBUTING.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,22 @@ Element UI 的成长离不开大家的支持,如果你愿意为 Element UI 贡
- 合并代码需要两名维护人员参与:一人进行 review 后 approve,另一人再次 review,通过后即可合并。

## 开发环境搭建
首先你需要 Node.js 4+ 和 NPM 3+
首先你需要 Node.js 4+,yarnnpm 3+。注意:我们使用 yarn 进行依赖版本的锁定,所以请不要使用 `npm install` 安装依赖。
```shell
git clone [email protected]:ElemeFE/element.git
npm run dev

# open http://localhost:8085
```

如果国内用户觉得安装慢可以使用 [yarn](https://github.com/yarnpkg/yarn) 搭配 taobao registry
```shell
npm i yarn -g
yarn config set registry https://registry.npm.taobao.org
yarn
npm run dev

# open http://localhost:8085
```

To build:
打包代码:

```shell
npm run dist
```

## 组件开发规范
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、cooking 配置、package.json、文档
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、文档
- 如果包含父子组件,需要更改目录结构,参考 `Button`
- 组件内如果依赖了其他组件,需要在当前组件内引入,参考 `Select`

Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<!--
重要: 请使用以下链接创建新 issue
https://elementui.github.io/issue-generator
未通过以上链接创建的 issue 会被机器人直接关闭。
########
IMPORTANT: Please use the following link to create a new issue:
https://elementui.github.io/issue-generator
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Please make sure these boxes are checked before submitting your PR, thank you!

* [ ] Make sure you follow Element's contributing guide ([中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | [English](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.en-US.md)).
* [ ] Make sure you follow Element's contributing guide ([中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | [English](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.en-US.md) | [Español](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.es.md)).
* [ ] Make sure you are merging your commits to `dev` branch.
* [ ] Add some descriptions and refer relative issues for you PR.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ npm-debug.log.*
lerna-debug.log.*
lib
.idea
.vscode
examples/element-ui
examples/pages/en-US
examples/pages/zh-CN
examples/pages/es
fe.element/element-ui
.npmrc
coverage
waiter.config.js
build/bin/algolia-key.js
.envrc
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
sudo: false
language: node_js
node_js: stable
node_js: lts/*
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- export TRAVIS_COMMIT_MSG="[deploy] $(git log --format='%h - %B' --no-merges -n 1)"
- export TRAVIS_COMMIT_USER="$(git log --no-merges -n 1 --format=%an)"
- export TRAVIS_COMMIT_EMAIL="$(git log --no-merges -n 1 --format=%ae)"
Expand Down
Loading

0 comments on commit 0af90a5

Please sign in to comment.