Skip to content

Commit

Permalink
merge latest element into master (#75)
Browse files Browse the repository at this point in the history
* I18n: Update ar.js (ElemeFE#16653)

* Date-Picker: add className picker option (ElemeFE#16632)

* add classname

* add docs

* add test

* add range picker

* update api name

* update api name

* update test

* Fix: httprequest type (ElemeFE#16633)

* docs: Update contributing guide (ElemeFE#14800)

* Tree: Increase css weight (ElemeFE#16799)

* Test: refactor unit test to use data-uri instead (ElemeFE#16847)

* DateTimePicker: fix time-spinner not scroll to right position

* Table: prevent click handler after drag (ElemeFE#16850)

* Tab: fix tabs-item's padding cause active-bar's width and transform err(  … ElemeFE#15355) (ElemeFE#16520)

* Tab: Refactor tabs-item's padding with dynamic value

* Docs: fix typo in Drawer docs (ElemeFE#16848)

* Calendar : Fix weekdays i18n issue (ElemeFE#16772)

* Popover: add close-delay prop (ElemeFE#16671)

* Input: Fix Korean composition event (ElemeFE#15069)

* Table: fix wrong empty block height (ElemeFE#16861)

* Chore: Theme Extension (ElemeFE#16686)

* Checkbox: Improve screen reader experience (ElemeFE#16575)

* Docs: Update custom theme (ElemeFE#16983)

* DOC: update spanish doc 2.11.1 (ElemeFE#16961)

* update spanish doc 2.11

* update spanish doc 2.11

* update spanish doc 2.11

* DOC: update spanish doc 2.11

* DOC: update spanish doc 2.11

* DOC: update spanish doc 2.11

* DOC: update spanish doc 2.11

* i18n: add Esperanto translation (ElemeFE#16955)

* Table: fix chrome crash when set thead css display to none (ElemeFE#16956)

* Cascader: fix display errors (ElemeFE#16665)

* Cascader: Fix disable status and close button issue (ElemeFE#16209)

* Input: the click event of clear button is not trigger when using v-loading (ElemeFE#16576)

* BackTop: use cubic bezier scrolling

* Tabs: fix activated tab is out of visual range bug (ElemeFE#17033)

* RadioGroup: not produce invalid HTML in table if "is" attribute is specify (ElemeFE#17070)

* Table: not throw error when calling toggleExpansion (ElemeFE#16304)

* Divider: Support custom classes (ElemeFE#17078)

* Table: not trigger sort-change event when mounted (ElemeFE#17113)

* Table: set toggleAllSelection as instance property (ElemeFE#17137)

* Dialog: update sass var (ElemeFE#16365)

* Docs: Update input-number document about change event (ElemeFE#16316) (ElemeFE#16966)

* Calendar: fix locale error

* Transfer: fix style error

* Chore(deps): Bump mixin-deep from 1.3.1 to 1.3.2 (ElemeFE#17211)

* Table: fix setCurrentRow unable to clear highlight row (ElemeFE#16879)

* Table: fix expand-row-keys not work when data is loaded asynchronously (ElemeFE#16899)

* Select: not toggle dropdown when filtering (ElemeFE#17205)

* changelog for 2.12.0 (ElemeFE#17218)

* chore: update folder (ElemeFE#17220)

* [build] 2.12.0

* [release] 2.12.0

* doc: fix time-select typo (ElemeFE#17250)

* DatePicker: fix bug of only select min date of date range problem (ElemeFE#17191) (ElemeFE#17207)

* [Select]: fix select test cases

* README: fix typo (ElemeFE#16952)

* Docs: fix Drawer attribute accepted value typo in es (ElemeFE#17122)

* add font-size for the style of tree empty-text (ElemeFE#17094)

* Avatar: remove no-used css-property (ElemeFE#16975)

* Table: column header can be costumed (ElemeFE#17291)

* Table: update table header cell style (ElemeFE#17284)

* Table: fix table header height after filter (ElemeFE#17348)

* Table: fixed row-style with display not work (ElemeFE#17002)

* update webpack config (ElemeFE#17373)

* Docs: update Spanish changelog 2.12.0 (ElemeFE#17364)

* Calendar: import el-button and el-button-group (ElemeFE#17376)

* MessageBox: fix icon position error (ElemeFE#17410)

* i18n: update locale es.js (ElemeFE#17419)

* TimePicker: Set the selection range after scrolling up or down (ElemeFE#16868)

* Chore: update readme Dingtalk QR code (ElemeFE#17656)

* Doc: Fix Changelog typo (ElemeFE#17874)

* Docs: Fix Loading demo (ElemeFE#17862) (ElemeFE#17863)

* Message: fix close instace offsetHeight(ElemeFE#17564) (ElemeFE#17852)

* I18n: Update avatar component fr doc (ElemeFE#17762)

* Form: callback of validateField should be optional (ElemeFE#17314)

* Cascader: fix TypeScript 3.7 compatibility (ElemeFE#17881)

Fix error: 导入声明与“CascaderOption”的局部声明冲突

* Menu: fix router NavigationDuplicated error when using vue-router@^3.1.0 (ElemeFE#17269)

* Menu: fix router NavigationDuplicated error when using vue-router@^3.1.0

* Better fix

* comment

* fix

* Popconfirm: Add popconfirm component (ElemeFE#17548)

* init

* init

* init docs

* init docs2

* init type

* update test

* update naming

* Dropdown: update type file (ElemeFE#17550)

* Chore: SSR test (ElemeFE#16797)

* init ssr test

* ssr test

* Progress: add strokeLinecap prop (ElemeFE#17552)

* Progress: add strokeLinecap prop

* update docs

* InfiniteScroll: Skip trigger event on invisible element (ElemeFE#17553)

* InfiniteScroll: Do not trigger event on invisible element

* InfiniteScroll: Do not trigger event on invisible element2

* Image: Perfect picture preview behavior (ElemeFE#16985) (ElemeFE#17375)

* Perfect picture preview function

* update test

* Avatar: recover removed css-property (ElemeFE#17372)

This reverts commit 10592d1.

* Image: Fix shield the page when preview big image (ElemeFE#16796) (ElemeFE#16997)

* Image: Fix shield the page when preview big image

* refine

* Image:fix page scroll when use image-viewer by keyup and keydown

* add notes

* Table: fix header table not display (ElemeFE#17341)

* I18n: Update sv-SE.js (ElemeFE#17926)

* Drawer: bugfix/drawer-append-to-body-not-working (ElemeFE#16953)

- 修复了 AppendToBody API 不管用的问题.
- 修复了展开动画会出现滚动条的问题
- 新增了一个新的 API `withHeader` 来控制是否显示 Header 栏
- 动画流畅度的一个小改动
- 对应文档的改动
- 对应单元测试的改动

* Select: Fix tag show value or empty issue (17199) (ElemeFE#17396)

* Select: Fix tag show value or empty issue

* update docs

* Docs:  add input event in input Events Table (ElemeFE#18061)

* docs: Input Events Table add input event

update input doc, add input event
the issue is ElemeFE#7592

* docs: update input docs and add input event

* docs: update input docs and add input event

* Docs: delete Input  repeat change event (ElemeFE#18085)

* fix: FF scroll bar width (ElemeFE#18091)

* Chore: Update Changelog (ElemeFE#18200)

* change log

* update sub folder

* [build] 2.13.0

* [release] 2.13.0

* Transfer: fix incorrect line-height of el-transfer's first list item when it was used with  el-form-item (ElemeFE#18917)

* [Input Number] Correctly compute inputNumberDisabled (ElemeFE#18439)

* doc: Popconfirm doc update (ElemeFE#18324)

* Carousel: fix console typo bug (ElemeFE#18264)

* doc: fix step-strictly docs typo (ElemeFE#18705)

* Autocomplete: add change event (ElemeFE#17913)

* Autocomplete:  fix suggestion error when textarea (ElemeFE#18478)

* Image: don't show image-viewer when preview is false (ElemeFE#18967)

* Image: Fix preview dose not show when preview list not contain src issue (ElemeFE#18975) (ElemeFE#19130)

* chore: remove index intro (ElemeFE#19155)

* Image: Fix shortcut key not work at second time issue (ElemeFE#18983) (ElemeFE#19156)

* Image: fix shortcut key not work at second time issue (ElemeFE#18983)

* fix test case

* fix test case

Co-authored-by: cl199793 <cl199793@alibaba-inc.com>

* Docs: fix a type error in document of steps component. (ElemeFE#17555)

* Chore: Update Changelog (ElemeFE#19162)

* [build] 2.13.1

* [release] 2.13.1

* Autocomplete: fix change event bug (ElemeFE#19200)

* fix: Image update error status

* locale: Fix ru-RU popconfirm translation (ElemeFE#19220)

* locale: Fix  vi translation (ElemeFE#19244)

* locale: Update Catalan and Spanish translations (ElemeFE#19296)

* locale: Update locale Indonesia (id.js) (ElemeFE#19320)

* locale: Update Brazilian Portuguese translation  (ElemeFE#19374)

* chore: update changelog (ElemeFE#19442)

* chore: update changelog

* chore: update changelog style

* [build] 2.13.2

* [release] 2.13.2

* doc: Update Spanish Changelog 2.13.2 (ElemeFE#19944)

* chore: Update Discussion Group Link (ElemeFE#20175)

* doc: Correct calendar English docs (ElemeFE#19912)

* fix: Update km.js (ElemeFE#20077)

Update Khmer translate

* fix(progress): fix attribute error (ElemeFE#19985)

* fix: Update Russian locale (ru-RU.js)  (ElemeFE#19451)

* chore: update README (Vue 3.0) (ElemeFE#20345)

add migration guide to Vue 3.0

* fix: Update ua locale (ElemeFE#20344)

* docs: fix color picker default value typo (ElemeFE#20212)

* fix: re-name error popconfirm event name (ElemeFE#20240)

* chore: update changelog (ElemeFE#20347)

* chore: update version.js

* [build] 2.14.0

* [release] 2.14.0

* chore: remove donation section

* i18n: Update Arabic translation (ElemeFE#20202)

* chore: readme add link to Vue.js 3.0 Migration repository (ElemeFE#20199)

Now that Vue.js 3.0 has been release, it'll be nice to let users/developers know that we are working on the migration there.

* chore: update sponsor (ElemeFE#20425)

* Popover: compatible with 2.6 new v-slot syntax (ElemeFE#20424)

* i18n: Update Uighur locale (ElemeFE#20177)

* chore: update changelog (ElemeFE#20427)

* [build] 2.14.1

* [release] 2.14.1

* Update faas config

* chore: update issue template (ElemeFE#20588)

* Select: fix placeholder i18n bug (ElemeFE#17644)

* fix: fix Popconfirm i18n bug

* docs: fix typo in french translation of datetime-picker.md (ElemeFE#20543)

* Drawer: fix focus bug (ElemeFE#20626)

Co-authored-by: wp178491 <wp178491@alibaba-inc.com>

* Docs: add format attribute description to the progress component (ElemeFE#20641)

* Image: preview optimization (ElemeFE#20652)

* feat: add change log 2.15.0 (ElemeFE#20692)

* [build] 2.15.0

* [release] 2.15.0

* fix(Drawer): fix size number bug (ElemeFE#20718)

* fix: fix incorrect image object fit ratio in IE (ElemeFE#19583)

* chore: update Axure resource v2.1.0

* Cascader: fix cascader panel active path (ElemeFE#20730)

* fix: fix calendar component i18n bug

fix ElemeFE#20524

* fix(color-picker): fix color-picker can't select 8-digit hex color (ElemeFE#20710)

* chore: update header banner

* docs: add change log (ElemeFE#20798)

* [build] 2.15.1

* [release] 2.15.1

* chore: remove getTestEle (ElemeFE#20811)

* Image: fix z-index and keydown event add stopPropagation (ElemeFE#20859)

* Input: fix show password cursor (ElemeFE#20870)

* Input: fix show password icon in edge (ElemeFE#20902)

* fix: update isFunction (ElemeFE#20912)

* Carousel: fix interval and scale bug (ElemeFE#20931)

* Cascader: fix delete tag bug (ElemeFE#20939)

* Drawer: add overflow auto (ElemeFE#20948)

* feat: add change log (ElemeFE#21032)

* [build] 2.15.2

* [release] 2.15.2

* Skeleton: add skeleton component (ElemeFE#21038)

* Local: fix week translations for hr locale (ElemeFE#21040)

* Table: fix lazy load data (ElemeFE#21041)

* Docs: fix form hide-required-asterisk description (ElemeFE#21045)

* Fix drawer destroy (ElemeFE#20715)

* Drawer: fix destroyOnClose bug

* Row: fix align top (ElemeFE#20963)

* Select: fix the bug when the value is Boolean (ElemeFE#21052)

* Calendar: fix first-day-of-week (ElemeFE#21057)

* Utils: fix isScroll (ElemeFE#21065)

* Skeleton: fix skeleton.d.ts (ElemeFE#21074)

* Empty: add empty component (ElemeFE#21080)

* CascaderPanel: export type (ElemeFE#21070)

* Spinner: add spinner.d.ts (ElemeFE#21090)

* fix(utils.dom): fix utils.dom error (ElemeFE#21049)

In IE browser, If the reference element(slot="reference") under the popover component is a SVG element, an error will be reported.

[ElemeFE#21048](ElemeFE#21048)

* chore: add changelog (ElemeFE#21108)

* [build] 2.15.3

* [release] 2.15.3

* Utils: fix isScroll (ElemeFE#21098)

* Descriptions: add description component (ElemeFE#21129)

* Translation: update it.js (ElemeFE#21133)

added missing translations

* RadioGroup: fix RadioGroup used in component causes exception ElemeFE#17908 (ElemeFE#20783)

* chore: fix lint and some errors (ElemeFE#21136)

* chore: fix lint

* chore: fix lint and some errors

* Result: add result component (ElemeFE#21171)

* Message: fix message[type] (ElemeFE#21088)

* Carousel: reset the timer when setActiveItem method is called (ElemeFE#20846)

* Cascader: fix emitPath (ElemeFE#21185)

* Select: fix select filterable bug (ElemeFE#17494)

* Tree: fix insertChild (ElemeFE#21194)

* Select: fix a bug that makes the browser jitter in zoom mode (ElemeFE#21197)

* chore: add changelog (ElemeFE#21199)

* [build] 2.15.4

* [release] 2.15.4

* Select: fix resetInputHeight (ElemeFE#21201)

* chore: add changelog (ElemeFE#21203)

* [build] 2.15.5

* [release] 2.15.5

* Cascader: fix a bug that makes the browser jitter in zoom mode (ElemeFE#21207)

* i18n: fix italian mistake (ElemeFE#21012)

* Cascader: optimize performance (ElemeFE#21231)

* Select: fix long text overflow in multiple mode (ElemeFE#21237)

* Dropdown: add disabled property (ElemeFE#21235)

* Radio: fix checked state when browser go back (ElemeFE#21250)

* Descriptions: fix type declaration (ElemeFE#21265)

* Descirptions: avoid table style conflict (ElemeFE#21254)

* Descirptions: avoid table style conflict

* Table: avoid `th` & `td` style conflict

* Table: fix class location avoid click event errors

* Table: optimize getCellClass method

* Descriptions: add missing class

* Drawer: fix append to body (ElemeFE#21264)

* chore: add changelog (ElemeFE#21286)

* [build] 2.15.6

* [release] 2.15.6

* Select: fix click icon triggering dropdown (ElemeFE#21314)

* Badge: fix type class when is-dot (ElemeFE#21308)

* Form: validate method reject error info (ElemeFE#21374)

* Select: fix keydown event when composition (ElemeFE#21336)

* Table: fix resizeObserver loop limit exceeded (ElemeFE#21255)

* Chore: create preview.yml (ElemeFE#21457)

* Chore: fix CI (ElemeFE#21461)

* Create preview-build.yml

* Chore: fix ci

* Descriptions: fix label slot bug (ElemeFE#21462)

* Chore: replace node-sass with dart-sass (ElemeFE#21019)

* chore: 移除 node-sass 替换为 sass 进行构建

- 更新调用库 gulp-sass 更新为 gulp-dart-sass 以支持 sass
- 更新 scss 使用语法旧语法已被废弃

* chore: add yarn lock

* Table: fix toggleAllSelection bug when table is empty (ElemeFE#21456)

* Button: fix disabled priority (ElemeFE#21375)

* Docs: fix skeleton typos (ElemeFE#21408)

* Table: optimize performance (ElemeFE#21330)

* Table: optimize performance

* Table: fix sync height

* chore: add changelog (ElemeFE#21481)

* [build] 2.15.7

* [release] 2.15.7

* Table: revert sync fixed table rows height (ElemeFE#21486)

* Switch: fix toggling value error (ElemeFE#19473)

Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@hotmail.com>

* i18n: Update Azerbaijani translation (ElemeFE#21771)

* i18n: Update Slovenian translation (ElemeFE#21729)

* fix: vue version explicitly to 2.x (ElemeFE#21736)

* i18n: Update Slovak translations (ElemeFE#21711)

* i18n: Add Icelandic translation (ElemeFE#21709)

* i18n: Add Bengali translation (ElemeFE#21485)

* Docs: update input typo about size attribute (ElemeFE#21723)

* Docs: Update skeleton.md (ElemeFE#21601)

* DatePicker: fix function name typo (ElemeFE#21663)

* Revert "Chore: replace node-sass with dart-sass (ElemeFE#21019)" (ElemeFE#21791)

This reverts commit d6dedac.

* chore: add changelog (ElemeFE#21792)

* i18n: Format optimization

* [build] 2.15.8

* [release] 2.15.8

Co-authored-by: Lukas <12974004+l3op@users.noreply.github.com>
Co-authored-by: iamkun <kunhello@outlook.com>
Co-authored-by: luckyCao <cao.lei1031@163.com>
Co-authored-by: Jeff Wen <sinchangwen@gmail.com>
Co-authored-by: Hazlank <401840614@qq.com>
Co-authored-by: Cr <631807682@qq.com>
Co-authored-by: jesse-li <lijiexi93@gmail.com>
Co-authored-by: hetech <dengzhiyang123@126.com>
Co-authored-by: 咸fish <victorting_2015@aliyun.com>
Co-authored-by: winkay <34124953+winkay@users.noreply.github.com>
Co-authored-by: SeongYeob Jeong <ubi.toffee@gmail.com>
Co-authored-by: LachlanStuart <26366936+LachlanStuart@users.noreply.github.com>
Co-authored-by: Moonhyuk Im <godmoon00@naver.com>
Co-authored-by: Tyler Trotter <tylertrotter@gmail.com>
Co-authored-by: Gonzalo Nandez <godan2310@yahoo.es>
Co-authored-by: Maksim Koryukov <maxkoryukov@users.noreply.github.com>
Co-authored-by: zhangHongEn <zhang_h_n@163.com>
Co-authored-by: Inside <inside74@163.com>
Co-authored-by: lon <longhao.lhl@alibaba-inc.com>
Co-authored-by: Geass <nullptru@gmail.com>
Co-authored-by: Zhi Cun <island205@gmail.com>
Co-authored-by: Haoran Yu <haoran_yu@hotmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiewei Qian <wacky6@users.noreply.github.com>
Co-authored-by: Kerwin Ch <smk0621@hotmail.com>
Co-authored-by: msidolphin <OoMass-EffectoO@hotmail.com>
Co-authored-by: 0xflotus <0xflotus@gmail.com>
Co-authored-by: wurong <w18801775254@163.com>
Co-authored-by: spengjie <spengjie@sina.com>
Co-authored-by: 不得不错 <hnsxxscyx@gmail.com>
Co-authored-by: MASONGZHI <511071161@qq.com>
Co-authored-by: Bryan Matthews <mattheyan@gmail.com>
Co-authored-by: 任立欣 <1060754972@qq.com>
Co-authored-by: Weiqi Wu <295290708@qq.com>
Co-authored-by: Gong <445722156@qq.com>
Co-authored-by: Baptiste Lombard <17877656+blombard@users.noreply.github.com>
Co-authored-by: Carter Li <CarterLi@users.noreply.github.com>
Co-authored-by: Emil Ahlbäck <Emil.Ahlback99@gmail.com>
Co-authored-by: jeremywu <591449570@qq.com>
Co-authored-by: vimvinter <zhoudaxia5683@163.com>
Co-authored-by: Hanx <xuanxinhan@vip.qq.com>
Co-authored-by: ashuser-pendo <ashuser@Pendo.io>
Co-authored-by: IceFox <zengxinhai007@gmail.com>
Co-authored-by: 张超杰 <1098626505@qq.com>
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
Co-authored-by: Roojay <roojay520@users.noreply.github.com>
Co-authored-by: inooNgt <inoongt@gmail.com>
Co-authored-by: cl199793 <cl199793@alibaba-inc.com>
Co-authored-by: 刘宏玺 <liuhongxi0000@163.com>
Co-authored-by: Philip Solovyev <philvv@mail.ru>
Co-authored-by: Quang LN <nhatquang2810@hotmail.com>
Co-authored-by: Ismail D <didouhismael@gmail.com>
Co-authored-by: therour <nizomsidiq@gmail.com>
Co-authored-by: Diego Mengarda <diegormengarda@gmail.com>
Co-authored-by: Bryce Barbara <BryceBarbara@users.noreply.github.com>
Co-authored-by: vc3nt <keansovay@gmail.com>
Co-authored-by: Caaalabash <1121062986@qq.com>
Co-authored-by: Emil Yangirov <32175431+yangirov@users.noreply.github.com>
Co-authored-by: Alex <alexk.mammut@gmail.com>
Co-authored-by: Zhwt <greatzhwt@gmail.com>
Co-authored-by: Vladislav Bakaev <vladislav-bakaev@mail.ru>
Co-authored-by: Ahmed Elkattan <58733479+elkattan@users.noreply.github.com>
Co-authored-by: Enguerrand des Vaux <enguerrand@des-vaux.fr>
Co-authored-by: IlhamTahir <yili@howzhi.com>
Co-authored-by: nzh63 <nzh21@outlook.com>
Co-authored-by: Peng Gao <ggjqzjgp103@qq.com>
Co-authored-by: Lucas Soulier <lucas@buckless.com>
Co-authored-by: 好多大米 <lost1q84@gmail.com>
Co-authored-by: wp178491 <wp178491@alibaba-inc.com>
Co-authored-by: charlie0228 <charlie800228@gmail.com>
Co-authored-by: UxieKong <1351117103@qq.com>
Co-authored-by: zj9495 <zj9495@gmail.com>
Co-authored-by: qige2016 <286882998@qq.com>
Co-authored-by: fw6 <45113594+fw6@users.noreply.github.com>
Co-authored-by: yanzhuang <qq984245844@gmail.com>
Co-authored-by: bliberi <beatrice.liberi@gmail.com>
Co-authored-by: lichao <18709270892@163.com>
Co-authored-by: Nekojita1 <bearlove@ooxx.me>
Co-authored-by: pofore <pofore@qq.com>
Co-authored-by: Ricardo Tondello <rkdtondello@gmail.com>
Co-authored-by: SHIODA Masaharu <masaharu.shioda@legalforce.co.jp>
Co-authored-by: Aex <adaex@qq.com>
Co-authored-by: Aex <spryti@qq.com>
Co-authored-by: dennyak47 <20741686+dennyak47@users.noreply.github.com>
Co-authored-by: bchen1029 <39672197+bchen1029@users.noreply.github.com>
Co-authored-by: TommyShao <tomieric@gmail.com>
Co-authored-by: Lin <yunfax@outlook.com>
Co-authored-by: zhhbstudio <zhhbstudio@gmail.com>
Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@outlook.com>
Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@hotmail.com>
Co-authored-by: Chingiz Mammadov <info@chz.dev>
Co-authored-by: Patrick <patik.developer@outlook.com>
Co-authored-by: Chen Kai <k_0520@qq.com>
Co-authored-by: sjaustirni <22116610+sjaustirni@users.noreply.github.com>
Co-authored-by: Aron Hrafnsson <aronhr@users.noreply.github.com>
Co-authored-by: llwwtt <592171420@qq.com>
Co-authored-by: Allen <allenforuse@gmail.com>
Co-authored-by: 离岛 <yanwydxf@163.com>
Co-authored-by: bofeng <xinguanhua@gmail.com>
Co-authored-by: 博风 <xinguanhua.xgh@alibaba-inc.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 372 changed files with 10,491 additions and 1,421 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
@@ -1,6 +1,7 @@
{
"globals": {
"ga": true
"ga": true,
"chrome": true
},
"plugins": ["html", "json"],
"extends": "elemefe",
Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.en-US.md
Expand Up @@ -43,7 +43,7 @@ npm run dev
# open http://localhost:8085
```

> **Notice**: modify `examples/play/index.vue` file, use the component you contribute, then run `npm run dev:play`, go ahead http://localhost:8085, get result, more quickly and friendly.
> **Notice**: modify `examples/play/index.vue` file, use the component you contribute, then run `npm run dev:play`, go ahead [http://localhost:8085](http://localhost:8085), get result, more quickly and friendly.
To build:

Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.es.md
Expand Up @@ -47,7 +47,7 @@ npm run dev
# abra http://localhost:8085
```

> **Notice**: modify `examples/play/index.vue` file, use the component you contribute, then run `npm run dev:play`, go ahead http://localhost:8085, get result, more quickly and friendly.
> **Notice**: modify `examples/play/index.vue` file, use the component you contribute, then run `npm run dev:play`, go ahead [http://localhost:8085](http://localhost:8085), get result, more quickly and friendly.
Para armar:

Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.fr-FR.md
Expand Up @@ -43,7 +43,7 @@ npm run dev
# open http://localhost:8085
```

> **Remarque** : modifiez le fichier `examples/play/index.vue`, utilisez le composant auquel vous contribuez, puis lancez `npm run dev:play`, allez sur http://localhost:8085, regardez le résultat rapidement et facilement.
> **Remarque** : modifiez le fichier `examples/play/index.vue`, utilisez le composant auquel vous contribuez, puis lancez `npm run dev:play`, allez sur [http://localhost:8085](http://localhost:8085), regardez le résultat rapidement et facilement.
Pour le build:

Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.zh-CN.md
Expand Up @@ -41,7 +41,7 @@ npm run dev
# open http://localhost:8085
```

> **提示**:可以运行 `npm run dev:play`,修改 `examples/play/index.vue` 文件,调用你修改后的组件,仍然访问 http://localhost:8085,查看修改效果,更快更方便。
> **提示**:可以运行 `npm run dev:play`,修改 `examples/play/index.vue` 文件,调用你修改后的组件,仍然访问 [http://localhost:8085](http://localhost:8085),查看修改效果,更快更方便。
打包代码:

Expand Down
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Create new issue
url: https://elementui.github.io/issue-generator
about: The issue which is not created via https://elementui.github.io/issue-generator will be closed immediately.
45 changes: 45 additions & 0 deletions .github/workflows/preview-build.yml
@@ -0,0 +1,45 @@
name: Preview Build

on: pull_request

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
PULL_REQUEST_NUMBER: ${{ github.event.number }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '10.15.0'
registry-url: https://registry.npmjs.com/

- name: Build
run: npm run bootstrap && npm run deploy:build


# share website dist
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: docs
path: examples/element-ui/
retention-days: 1

# write pr.txt for share
- name: Save pr number
if: ${{ always() }}
run: echo ${PULL_REQUEST_NUMBER} > ./pr.txt

# share pr number
- name: Upload pr number
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pr
path: ./pr.txt
retention-days: 1
83 changes: 83 additions & 0 deletions .github/workflows/preview-deploy.yml
@@ -0,0 +1,83 @@
name: Preview Deploy

on:
workflow_run:
workflows: ['Preview Build']
types:
- completed

jobs:
success:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr

- name: save PR id
id: pr
run: echo "::set-output name=id::$(<pr.txt)"

- name: download docs artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
name: docs

- name: upload surge service
id: deploy
run: |
export DEPLOY_DOMAIN=https://preview-pr-${{ steps.pr.outputs.id }}-element-ui.surge.sh
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
- name: update status comment
uses: actions-cool/maintain-one-comment@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
🎊 PR Preview has been successfully built and deployed to https://preview-pr-${{ steps.pr.outputs.id }}-element-ui.surge.sh
<img width="300" src="https://user-images.githubusercontent.com/507615/90250366-88233900-de6e-11ea-95a5-84f0762ffd39.png">
<!-- Sticky Pull Request Comment -->
body-include: '<!-- Sticky Pull Request Comment -->'
number: ${{ steps.pr.outputs.id }}

- name: The job failed
if: ${{ failure() }}
uses: actions-cool/maintain-one-comment@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
😭 Deploy PR Preview failed.
<img width="300" src="https://user-images.githubusercontent.com/507615/90250824-4e066700-de6f-11ea-8230-600ecc3d6a6b.png">
<!-- Sticky Pull Request Comment -->
body-include: '<!-- Sticky Pull Request Comment -->'
number: ${{ steps.pr.outputs.id }}

failed:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr

- name: save PR id
id: pr
run: echo "::set-output name=id::$(<pr.txt)"

- name: The job failed
uses: actions-cool/maintain-one-comment@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
😭 Deploy PR Preview failed.
<img width="300" src="https://user-images.githubusercontent.com/507615/90250824-4e066700-de6f-11ea-8230-600ecc3d6a6b.png">
<!-- Sticky Pull Request Comment -->
body-include: '<!-- Sticky Pull Request Comment -->'
number: ${{ steps.pr.outputs.id }}

0 comments on commit 8dff47d

Please sign in to comment.