Skip to content

Commit 8dff47d

Browse files
tskimmettl3opiamkunluckyCaosinchang
authored
merge latest element into master (#75)
* 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: iamkun <[email protected]> Co-authored-by: luckyCao <[email protected]> Co-authored-by: Jeff Wen <[email protected]> Co-authored-by: Hazlank <[email protected]> Co-authored-by: Cr <[email protected]> Co-authored-by: jesse-li <[email protected]> Co-authored-by: hetech <[email protected]> Co-authored-by: 咸fish <[email protected]> Co-authored-by: winkay <[email protected]> Co-authored-by: SeongYeob Jeong <[email protected]> Co-authored-by: LachlanStuart <[email protected]> Co-authored-by: Moonhyuk Im <[email protected]> Co-authored-by: Tyler Trotter <[email protected]> Co-authored-by: Gonzalo Nandez <[email protected]> Co-authored-by: Maksim Koryukov <[email protected]> Co-authored-by: zhangHongEn <[email protected]> Co-authored-by: Inside <[email protected]> Co-authored-by: lon <[email protected]> Co-authored-by: Geass <[email protected]> Co-authored-by: Zhi Cun <[email protected]> Co-authored-by: Haoran Yu <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jiewei Qian <[email protected]> Co-authored-by: Kerwin Ch <[email protected]> Co-authored-by: msidolphin <[email protected]> Co-authored-by: 0xflotus <[email protected]> Co-authored-by: wurong <[email protected]> Co-authored-by: spengjie <[email protected]> Co-authored-by: 不得不错 <[email protected]> Co-authored-by: MASONGZHI <[email protected]> Co-authored-by: Bryan Matthews <[email protected]> Co-authored-by: 任立欣 <[email protected]> Co-authored-by: Weiqi Wu <[email protected]> Co-authored-by: Gong <[email protected]> Co-authored-by: Baptiste Lombard <[email protected]> Co-authored-by: Carter Li <[email protected]> Co-authored-by: Emil Ahlbäck <[email protected]> Co-authored-by: jeremywu <[email protected]> Co-authored-by: vimvinter <[email protected]> Co-authored-by: Hanx <[email protected]> Co-authored-by: ashuser-pendo <[email protected]> Co-authored-by: IceFox <[email protected]> Co-authored-by: 张超杰 <[email protected]> Co-authored-by: 三咲智子 <[email protected]> Co-authored-by: Roojay <[email protected]> Co-authored-by: inooNgt <[email protected]> Co-authored-by: cl199793 <[email protected]> Co-authored-by: 刘宏玺 <[email protected]> Co-authored-by: Philip Solovyev <[email protected]> Co-authored-by: Quang LN <[email protected]> Co-authored-by: Ismail D <[email protected]> Co-authored-by: therour <[email protected]> Co-authored-by: Diego Mengarda <[email protected]> Co-authored-by: Bryce Barbara <[email protected]> Co-authored-by: vc3nt <[email protected]> Co-authored-by: Caaalabash <[email protected]> Co-authored-by: Emil Yangirov <[email protected]> Co-authored-by: Alex <[email protected]> Co-authored-by: Zhwt <[email protected]> Co-authored-by: Vladislav Bakaev <[email protected]> Co-authored-by: Ahmed Elkattan <[email protected]> Co-authored-by: Enguerrand des Vaux <[email protected]> Co-authored-by: IlhamTahir <[email protected]> Co-authored-by: nzh63 <[email protected]> Co-authored-by: Peng Gao <[email protected]> Co-authored-by: Lucas Soulier <[email protected]> Co-authored-by: 好多大米 <[email protected]> Co-authored-by: wp178491 <[email protected]> Co-authored-by: charlie0228 <[email protected]> Co-authored-by: UxieKong <[email protected]> Co-authored-by: zj9495 <[email protected]> Co-authored-by: qige2016 <[email protected]> Co-authored-by: fw6 <[email protected]> Co-authored-by: yanzhuang <[email protected]> Co-authored-by: bliberi <[email protected]> Co-authored-by: lichao <[email protected]> Co-authored-by: Nekojita1 <[email protected]> Co-authored-by: pofore <[email protected]> Co-authored-by: Ricardo Tondello <[email protected]> Co-authored-by: SHIODA Masaharu <[email protected]> Co-authored-by: Aex <[email protected]> Co-authored-by: Aex <[email protected]> Co-authored-by: dennyak47 <[email protected]> Co-authored-by: bchen1029 <[email protected]> Co-authored-by: TommyShao <[email protected]> Co-authored-by: Lin <[email protected]> Co-authored-by: zhhbstudio <[email protected]> Co-authored-by: Edwin Betancourt <[email protected]> Co-authored-by: Edwin Betancourt <[email protected]> Co-authored-by: Chingiz Mammadov <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Chen Kai <[email protected]> Co-authored-by: sjaustirni <[email protected]> Co-authored-by: Aron Hrafnsson <[email protected]> Co-authored-by: llwwtt <[email protected]> Co-authored-by: Allen <[email protected]> Co-authored-by: 离岛 <[email protected]> Co-authored-by: bofeng <[email protected]> Co-authored-by: 博风 <[email protected]>
1 parent 28da5d6 commit 8dff47d

File tree

372 files changed

+10491
-1421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+10491
-1421
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"globals": {
3-
"ga": true
3+
"ga": true,
4+
"chrome": true
45
},
56
"plugins": ["html", "json"],
67
"extends": "elemefe",

.github/CONTRIBUTING.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ npm run dev
4343
# open http://localhost:8085
4444
```
4545

46-
> **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.
46+
> **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.
4747
4848
To build:
4949

.github/CONTRIBUTING.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ npm run dev
4747
# abra http://localhost:8085
4848
```
4949

50-
> **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.
50+
> **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.
5151
5252
Para armar:
5353

.github/CONTRIBUTING.fr-FR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ npm run dev
4343
# open http://localhost:8085
4444
```
4545

46-
> **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.
46+
> **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.
4747
4848
Pour le build:
4949

.github/CONTRIBUTING.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ npm run dev
4141
# open http://localhost:8085
4242
```
4343

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

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Create new issue
4+
url: https://elementui.github.io/issue-generator
5+
about: The issue which is not created via https://elementui.github.io/issue-generator will be closed immediately.

.github/workflows/preview-build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Preview Build
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
env:
10+
PULL_REQUEST_NUMBER: ${{ github.event.number }}
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '10.15.0'
19+
registry-url: https://registry.npmjs.com/
20+
21+
- name: Build
22+
run: npm run bootstrap && npm run deploy:build
23+
24+
25+
# share website dist
26+
- name: Upload artifact
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: docs
30+
path: examples/element-ui/
31+
retention-days: 1
32+
33+
# write pr.txt for share
34+
- name: Save pr number
35+
if: ${{ always() }}
36+
run: echo ${PULL_REQUEST_NUMBER} > ./pr.txt
37+
38+
# share pr number
39+
- name: Upload pr number
40+
if: ${{ always() }}
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: pr
44+
path: ./pr.txt
45+
retention-days: 1

.github/workflows/preview-deploy.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Preview Deploy
2+
3+
on:
4+
workflow_run:
5+
workflows: ['Preview Build']
6+
types:
7+
- completed
8+
9+
jobs:
10+
success:
11+
runs-on: ubuntu-latest
12+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
13+
steps:
14+
- name: download pr artifact
15+
uses: dawidd6/action-download-artifact@v2
16+
with:
17+
workflow: ${{ github.event.workflow_run.workflow_id }}
18+
name: pr
19+
20+
- name: save PR id
21+
id: pr
22+
run: echo "::set-output name=id::$(<pr.txt)"
23+
24+
- name: download docs artifact
25+
uses: dawidd6/action-download-artifact@v2
26+
with:
27+
workflow: ${{ github.event.workflow_run.workflow_id }}
28+
workflow_conclusion: success
29+
name: docs
30+
31+
- name: upload surge service
32+
id: deploy
33+
run: |
34+
export DEPLOY_DOMAIN=https://preview-pr-${{ steps.pr.outputs.id }}-element-ui.surge.sh
35+
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
36+
37+
- name: update status comment
38+
uses: actions-cool/[email protected]
39+
with:
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
body: |
42+
🎊 PR Preview has been successfully built and deployed to https://preview-pr-${{ steps.pr.outputs.id }}-element-ui.surge.sh
43+
<img width="300" src="https://user-images.githubusercontent.com/507615/90250366-88233900-de6e-11ea-95a5-84f0762ffd39.png">
44+
<!-- Sticky Pull Request Comment -->
45+
body-include: '<!-- Sticky Pull Request Comment -->'
46+
number: ${{ steps.pr.outputs.id }}
47+
48+
- name: The job failed
49+
if: ${{ failure() }}
50+
uses: actions-cool/[email protected]
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
body: |
54+
😭 Deploy PR Preview failed.
55+
<img width="300" src="https://user-images.githubusercontent.com/507615/90250824-4e066700-de6f-11ea-8230-600ecc3d6a6b.png">
56+
<!-- Sticky Pull Request Comment -->
57+
body-include: '<!-- Sticky Pull Request Comment -->'
58+
number: ${{ steps.pr.outputs.id }}
59+
60+
failed:
61+
runs-on: ubuntu-latest
62+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
63+
steps:
64+
- name: download pr artifact
65+
uses: dawidd6/action-download-artifact@v2
66+
with:
67+
workflow: ${{ github.event.workflow_run.workflow_id }}
68+
name: pr
69+
70+
- name: save PR id
71+
id: pr
72+
run: echo "::set-output name=id::$(<pr.txt)"
73+
74+
- name: The job failed
75+
uses: actions-cool/[email protected]
76+
with:
77+
token: ${{ secrets.GITHUB_TOKEN }}
78+
body: |
79+
😭 Deploy PR Preview failed.
80+
<img width="300" src="https://user-images.githubusercontent.com/507615/90250824-4e066700-de6f-11ea-8230-600ecc3d6a6b.png">
81+
<!-- Sticky Pull Request Comment -->
82+
body-include: '<!-- Sticky Pull Request Comment -->'
83+
number: ${{ steps.pr.outputs.id }}

0 commit comments

Comments
 (0)