Skip to content

Commit 73bef78

Browse files
tangjinzhousendyazkwolfdrafishAmour1688
authored
Feat 1.5.0 (#1853)
* feat: add Result component * fix: update md template tag html>tpl - fix `result` typo - update jest `result` snapshots * refactor: svg file to functional component icon - update jest snapshot * feat: add result * Feat descriptions (#1251) * feat: add descriptions * fix: add descriptions types and fix docs * fix: lint change code * fix: demo warning * fix: update demo, snapshot and remove classnames * test: add descriptions test * fix: descriptions demo (#1498) * feat: add page header (#1250) * feat: add page-header component * update site: page-header * ts definition update: page-header * get page-header props with getComponentFromProp func * optimize page-header * doc: add page-header actions.md responsive.md * breadcrumb itemRender add pure function support * style: format code * feat: update style to 3.23.6 from 2.13.6 * feat: update style to 3.26.8 from 3.23.6 * chore: update util * chore: update util * feat: update affix * feat: update alert * feat: update anchor * feat: update auto-complete * feat: update avatar * feat: update back-top * feat: update badge * feat: update button * feat: update breadcrumb * feat: update ts * docs: update doc * feat: update calendat * feat: update card * feat: update carousel * feat: update carousel * feat: update checkbox * feat: update comment * feat: update config-provider * docs: update doc * feat: update collapse * feat: update locale * feat: update date-picker * feat: update divider * feat: update drawer * feat: update dropdown * feat: update rc-trigger * feat: update dropdown * feat: update empty * test: add empty test * feat: update form * feat: update form * feat: update spin * feat: update grid * docs: update grid doc * feat: update icon * feat: update slider * feat: update textarea * feat: update input-number * feat: update layout * feat: update list * feat: update menu * feat: meaage add key for update content * feat: modal add closeIcon support * feat: update notification * feat: add pagination disabled support * feat: popconfirm add disabled support * test: update popover * feat: progress support custom line-gradiend * feat: update radio * test: update radio test * docs: update rate demo * feat: skeleton add avatar support number type * test: add switch test * test: update statistic test * fix: input clear icon event * feat: steps add type、 v-model、subTitle * feat: delete typography component * feat: delete Typography style * perf: update select * feat: add download transformFile previewFile actio * docs: update upload * feat: update tree-select * docs: update tree-select * feat: tree add blockNode selectable * docs: add tree demo * test: update snap * docs: updatedoc * feat: update tag * docs: update ad doc * feat: update tooltip * feat: update timeline * feat: time-picker add clearIcon * docs: update tabs * feat: transfer support custom children * test: update transfer test * feat: update table * test: update table test * test: update test * feat: calendar update locale * test: update test snap * feat: add mentions (#1790) * feat: mentions style * feat: theme default * feat: add mentions component * feat: mentions API * feat: add unit test for mentions * feat: update mentions demo * perf: model and inheritAttrs for mentions * perf: use getComponentFromProp instead of this.$props * perf: mentions rm defaultProps * feat: rm rows in mentionsProps * fix: mentions keyDown didn't work * docs: update mentions api * perf: mentions code * feat: update mentions * bump 1.5.0-alpha.1 * feat: pageheader add ghost prop * docs: update descriptions demo * chore: page-header add ghost type * fix: color error * feat: update to 3.26.12 * fix: some prop default value * fix(typo): form, carousel, upload. duplicate identifier (#1848) * Add Mentions Type (#1845) * feat: add mentions type * feat: add mentions in ant-design-vue.d.ts * docs: update doc * docs: add changelog * fix: mentions getPopupCotainer value (#1850) * docs: update doc * docs: uptate demo * docs: update demo * docs: delete demo * docs: delete doc * test: update snapshots * style: format code * chore: update travis * docs: update demo Co-authored-by: Sendya <[email protected]> Co-authored-by: zkwolf <[email protected]> Co-authored-by: drafish <[email protected]> Co-authored-by: Amour1688 <[email protected]>
1 parent ae0590d commit 73bef78

File tree

1,578 files changed

+31334
-58468
lines changed

Some content is hidden

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

1,578 files changed

+31334
-58468
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "antdv-demo"]
2+
path = antdv-demo
3+
url = https://github.com/tangjinzhou/antdv-demo.git

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ components/style/color/*.less
2424
.gitattributes
2525
.stylelintrc
2626
.vcmrc
27-
logo.png
27+
.png
2828
.npmrc.template
2929
.huskyrc

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
language: node_js
22
sudo: required
3+
git:
4+
submodules: false
35
node_js:
46
- 12.4.0
7+
before_install:
8+
- echo -e "[submodule "antdv-demo"]\n path = antdv-demo\n https://[email protected]/tangjinzhou/antdv-demo.git" >~/.gitmodules
9+
- git submodule update --init --recursive
510
before_script:
611
- npm install vue vue-template-compiler
712
script:
813
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then cp ./scripts/.npmrc.template $HOME/.npmrc; fi
914
- COVERAGE=true npm run test
1015
- npm run codecov
1116
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then npm run pub-with-ci; fi
12-
- bash ./scripts/deploy-to-gh-pages.sh
1317
env:
1418
matrix:
1519
secure: PBbJaS48HA/mkj9PuGuRxs00DEJR77XfuPdSlTvCq0QxLIR6wIO+t3LLJdOQctZIX6KWBR/Zq3zSn5bRxgPIaRcoyuEU25ga4cexJMEh1ymE23uTiDcnWwWN0X1jZKGuHPvqVKjyToAv6XW24mTXNvEAqD2uL101JxBseoWJ/2VtyOjJFJwcGbw+MTLymWCZiAF10w+k0SyigawaxZLlYL9LZXv4w3oCjCwuiTD/T6rvyT3wGQzXx7/P7XQGL4el4lE7leuK5m2PhWvX2S3t2FRpoZPw0DINJu5XzuBr3DSMErQjCrP4Ep8iqW8pGGLkoXbcxK3/K+uSy0k+DdBN7jRgnnOeLpqeVUSMaM6LRnl2XyDWL3dKpVbEzZaFkRTmAwdbgYjI+7Enn3/GtseMASo/gK47m2k+kE/msoqwpTGLC5DBOBKxdNShdFnEbOxLUUiVNgoZRXbj6VhdueqK89LsMDsnxzmFtrU8Ytgv8wJsFd5IkIhCStmQ9bdTqER659hd1Qqdh6Qe36AfpZcetOLr86Z++CSwA/pZbLPeEVrfCHDh6V3DPQXG+Zlf/m60OAmhosJ+4dxZwRnR8LnaDFZ+uLYMz+vJGeOtFHvczz7TW4mznjguLE51crG+mkBGT2dx1UUg7zs41lz3GtH9WY8cSG4y5ryjDl6YkXwoiZI=

BACKERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
<h2 align="center">支付宝/微信</h2>
3737

38-
### 使用支付宝/微信的赞助的用户,如需要添加名单,赞助后可发 github 账号到邮箱(415800467@qq.com)
38+
### 使用支付宝/微信的赞助的用户,如需要添加名单,赞助后可发 github 账号到邮箱(antdv@foxmail.com)
3939

4040
- [fastgoo](https://github.com/fastgoo)
4141
- [sendya](https://github.com/sendya)

CHANGELOG.en-US.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,85 @@
44

55
#### Release Schedule
66

7-
- Weekly release: patch version at the end of every week for routine bugfix (anytime for urgent bugfix).
7+
- Weekly release: patch version for routine bugfix.
88
- Monthly release: minor version for new features.
99
- Major version release is not included in this schedule for breaking change and new features.
1010

1111
---
1212

13+
## 1.5.0
14+
15+
`2020-03-06`
16+
17+
### Component features and styles are synchronized to antd version 3.26.12.
18+
19+
- Four new components have been added:
20+
- 🔥🔥🔥 [Mentions](https://antdv.com/components/mentions-cn/) Added mentioned components and discarded the original Mention components.
21+
- 🔥🔥🔥 [Descriptions](https://antdv.com/components/descriptions-cn/) Display multiple read-only fields in groups.
22+
- 🔥🔥🔥 [PageHeader](https://antdv.com/components/page-header-cn/) can be used to declare the topic of the page, display important information about the page that the user is concerned about, and carry the operation items related to the current page.
23+
- 🔥🔥🔥 [Result](https://antdv.com/components/result) is used to feedback the processing results of a series of operation tasks.
24+
- 🔥 Descriptions supports vertical layout.
25+
- 🔥 Progress.Circle supports gradient colors.
26+
- 🔥 Progress.Line supports gradient colors.
27+
- Breadcrumb
28+
- 🎉 Breadcrumb.Item supports the `overlay` property to define drop-down menus.
29+
- 🌟 Added `Breadcrumb.Separator` component, you can customize`separator`.
30+
- 🌟 TreeSelect's `showSearch` supports multiple selection mode.
31+
- 🌟 Timeline.Item adds `gray` color type, which can be used in incomplete or invalid state.
32+
- 🌟 Modal supports `closeIcon` property for customizing the close icon.
33+
- Upload
34+
- 🌟 Upload provides `previewFile` property to customize the preview logic.
35+
- 🌟 Upload adds `transformFile` to support converting files before uploading.
36+
- 🌟 Upload supports previewing pictures in jfif format.
37+
- 🌟 Added `showDownloadIcon` property for displaying download icons.
38+
- 🌟 Input.Search adds `loading` property, which is used to display the loading status.
39+
- 🌟 Grid's `gutter` property adds support for vertical spacing. Now you can set an array for`gutter`, the second value of the array represents the vertical spacing.
40+
- 🌟 message Added support for updating content with unique `key`.
41+
- 🌟 TextArea supports `allowClear`.
42+
- 🌟 Dropdown.Button supports `icon` property to customize the icon.
43+
- Drawer
44+
- 🌟 Support `afterVisibleChange` property, which is triggered after the drawer animation is completed.
45+
- 🌟 Support `ESC` shutdown.
46+
- 🌟 Added `keyboard`, which allows the response to keyboard events to be turned on and off.
47+
- 🌟 TreeNode supports `checkable` property.
48+
- 🌟 Transfer supports `children` custom rendering list.
49+
- 🌟 Pagination supports `disabled` property.
50+
- 🌟 Steps support click to switch function.
51+
- Slider
52+
- 🌟 Support `tooltipPlacement` to define the location of the tip.
53+
- 🌟 Support `getTooltipPopupContainer` to allow custom container for the prompt.
54+
- 🌟 Flip `trigger` direction when Sider is on the right.
55+
- 🌟 Calendar supports `headerRender` to customize header.
56+
- 🌟 Carousel supports custom panel pointing point locations.
57+
- 🌟 Collapse supports `expandIconPosition` property.
58+
- 🌟 Popconfirm adds `disabled` props, which are used to control whether clicking child elements pop up.
59+
- 🌟 Select supports `showArrow` in multi-select mode.
60+
- 🌟 Collapse.Panel added `extra`.
61+
- Card
62+
- 🌟 Card component added `tabBarExtraContent` property.
63+
- 🌟 Card.Grid added a hoverable property to allow floating effects to be disabled.
64+
- 🌟 Anchor.Link adds `target` attribute.
65+
- 🌟 TimePicker added `clearIcon` prop for custom clear icon.
66+
- Form
67+
- 🌟 Support to configure the `colon` property directly on the Form.
68+
- 🌟 Support `labelAlign` property.
69+
- Table
70+
- 🌟 Table adds `getPopupContainer` property for setting various floating layer rendering nodes in the table.
71+
- 💄 Adjust the style of the Table expand button.
72+
- 🌟 Added `tableLayout` property, supports setting the table's`table-layout` layout, and enables `tableLayout =" fixed "` by default under fixed headers / columns, to solve the column alignment problem caused by the table layout automatically based on content .
73+
- 🌟 Added `column.ellipsis` to support automatic omission of cell contents.
74+
- 🌟 Added `scroll.scrollToFirstRowOnChange` property, which is used to set whether to scroll to the top of the table after page turning.   -Filter `filterDropdown` Added`visible` parameter to get the display status of the drop-down box.
75+
- 🌟 The `title` method adds a`sortColumn` parameter to get the currently sorted column.   -Sort When sorting, the `sorter` parameter of`onChange` will always contain `column` information.
76+
- 🌟 Tree component supports `blockNode` property.
77+
- 🌟 RangePicker adds `separator` definition.
78+
- Empty
79+
- 🌟 Empty supports the `imageStyle` property.
80+
- 🌟 Empty `description` supports`false`.
81+
- 🌟 Empty Supports access to preset pictures via `Empty.PRESENTED_IMAGE_DEFAULT` and`Empty.PRESENTED_IMAGE_SIMPLE`
82+
- 🌟 Badge supports custom colors.
83+
- 🐞 Fix the problem that the label of Steps is not centered.
84+
- 🐞 Fix cursor style problem of DatePicker and TimePicker.
85+
1386
## 1.4.12
1487

1588
`2020-03-03`

CHANGELOG.zh-CN.md

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,87 @@
44

55
#### 发布周期
66

7-
- 修订版本号:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
7+
- 修订版本号:日常 bugfix 更新
88
- 次版本号:带有新特性的向下兼容的版本。
99
- 主版本号:含有破坏性更新和新特性,不在发布周期内。
1010

1111
---
1212

13+
## 1.5.0
14+
15+
`2020-03-06`
16+
17+
### 组件功能和样式同步到 antd 3.26.12 版本。
18+
19+
- 新增了四个组件:
20+
- 🔥🔥🔥 [Mentions](https://antdv.com/components/mentions-cn/) 新增提及组件并废弃原有 Mention 组件。
21+
- 🔥🔥🔥 [Descriptions](https://antdv.com/components/descriptions-cn/) 成组展示多个只读字段。
22+
- 🔥🔥🔥 [PageHeader](https://antdv.com/components/page-header-cn/) 可用于声明页面主题、展示用户所关注的页面重要信息,以及承载与当前页相关的操作项。
23+
- 🔥🔥🔥 [Result](https://antdv.com/components/result) 用于反馈一系列操作任务的处理结果。
24+
- 🔥 Descriptions 支持垂直布局。
25+
- 🔥 Progress.Circle 支持渐变色。
26+
- 🔥 Progress.Line 支持渐变色。
27+
- Breadcrumb
28+
- 🎉 Breadcrumb.Item 支持 `overlay` 属性来定义下拉菜单。
29+
- 🌟 新增 `Breadcrumb.Separator` 组件,可进行 `separator` 自定义。
30+
- 🌟 TreeSelect 的 `showSearch` 支持多选模式。
31+
- 🌟 Timeline.Item 新增 `gray` 色彩类型,可用于未完成或失效状态。
32+
- 🌟 Modal 支持 `closeIcon` 属性用于自定义关闭图标。
33+
- 🌟 Upload
34+
- 🌟 Upload 提供 `previewFile` 属性以自定义预览逻辑。
35+
- 🌟 Upload 新增 `transformFile` 支持上传之前转换文件。
36+
- 🌟 Upload 支持预览 `jfif` 格式图片。
37+
- 🌟 新增 `showDownloadIcon` 属性,用于展示下载图标。
38+
- 🌟 Input.Search 新增 `loading` 属性,用于展示加载中的状态。
39+
- 🌟 Grid 的 `gutter` 属性新增垂直间距的支持,现在你可以给 `gutter` 设置一个数组,数组的第二个值就表示垂直间距。
40+
- 🌟 message 新增支持通过唯一的 `key` 来更新内容。
41+
- 🌟 TextArea 支持 `allowClear`
42+
- 🌟 Dropdown.Button 支持 `icon` 属性来自定义图标。
43+
- Drawer
44+
- 🌟 支持 `afterVisibleChange` 属性,在抽屉动画完成后触发。
45+
- 🌟 支持 `ESC` 关闭。
46+
- 🌟 新增 `keyboard`,允许打开关闭对键盘事件的响应。
47+
- 🌟 TreeNode 支持 `checkable` 属性。
48+
- 🌟 Transfer 支持 `children` 来自定义渲染列表。
49+
- 🌟 Pagination 支持 `disabled` 属性。
50+
- 🌟 Steps 支持点击切换功能。
51+
- Slider
52+
- 🌟 支持 `tooltipPlacement` 以定义提示所在位置。
53+
- 🌟 支持 `getTooltipPopupContainer` 以允许自定义提示所在容器。
54+
- 🌟 当 Sider 在右边时,翻转 `trigger` 方向。
55+
- 🌟 Calendar 支持 `headerRender` 以自定义头部。
56+
- 🌟 Carousel 支持自定义面板指示点的位置。
57+
- 🌟 Collapse 支持 `expandIconPosition` 属性。
58+
- 🌟 Popconfirm 增加 `disabled` props,用于控制点击子元素是否弹出。
59+
- 🌟 Select 在多选模式下支持 `showArrow`
60+
- 🌟 Collapse.Panel 新增了 `extra`
61+
- Card
62+
- 🌟 Card 组件新增了 `tabBarExtraContent` 属性。
63+
- 🌟 Card.Grid 新增 `hoverable` 属性允许禁用浮动效果。
64+
- 🌟 Anchor.Link 增加 `target` 属性。
65+
- 🌟 TimePicker 新增了 `clearIcon` prop,用于自定义清除图标。
66+
- Form
67+
- 🌟 支持直接在 Form 上面配置 `colon` 属性。
68+
- 🌟 支持 `labelAlign` 属性。
69+
- Table
70+
- 🌟 Table 新增 `getPopupContainer` 属性用于设置表格内的各类浮层渲染节点。
71+
- 💄 调整 Table 展开按钮的样式。
72+
- 🌟 新增 `tableLayout` 属性,支持设置表格的 `table-layout` 布局,并在固定表头/列下默认开启 `tableLayout="fixed"`,解决因为表格自动根据内容排版造成的列对齐问题。
73+
- 🌟 新增 `column.ellipsis` 支持单元格内容自动省略。
74+
- 🌟 新增 `scroll.scrollToFirstRowOnChange` 属性,用于设置在翻页后是否滚动到表格顶部。
75+
- 🌟 `filterDropdown` 新增 `visible` 参数,用于获取下拉框的显示状态。
76+
- 🌟 `title` 方法新增 `sortColumn` 参数,用于获取当前排序的列。
77+
- 🌟 排序时 `onChange``sorter` 参数将始终包含 `column` 信息。
78+
- 🌟 Tree 组件支持 `blockNode` 属性。
79+
- 🌟 RangePicker 添加 `separator` 定义。
80+
- Empty
81+
- 🌟 Empty 支持 `imageStyle` 属性。
82+
- 🌟 Empty `description` 支持 `false`
83+
- 🌟 Empty 支持通过 `Empty.PRESENTED_IMAGE_DEFAULT``Empty.PRESENTED_IMAGE_SIMPLE` 访问预置图片。
84+
- 🌟 Badge 支持自定义颜色。
85+
- 🐞 修复 Steps 的 label 不居中的问题。
86+
- 🐞 修复 DatePicker 和 TimePicker 的 cursor 样式问题。
87+
1388
## 1.4.12
1489

1590
`2020-03-03`

antd-tools/gulpfile.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,12 @@ gulp.task(
295295
gulp.task(
296296
'pub',
297297
gulp.series('check-git', 'compile', done => {
298-
if (!process.env.GITHUB_TOKEN) {
299-
console.log('no GitHub token found, skip');
300-
} else {
301-
pub(done);
302-
}
298+
// if (!process.env.GITHUB_TOKEN) {
299+
// console.log('no GitHub token found, skip');
300+
// } else {
301+
// pub(done);
302+
// }
303+
pub(done);
303304
}),
304305
);
305306

antdv-demo

Submodule antdv-demo added at 805d329

build/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
dev: {
3-
componentName: 'tree', // dev components
3+
componentName: 'badge', // dev components
44
},
55
};

build/dev.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ let { componentName } = require('./config').dev;
2828
const componentsInPrototype = ['Modal', 'message', 'notification'];
2929

3030
const MAIN_TEMPLATE = `import 'babel-polyfill';
31-
import './index.less';
3231
import 'highlight.js/styles/solarized-light.css';
3332
import Vue from 'vue';
3433
import Vuex from 'vuex';
@@ -38,6 +37,7 @@ import VueClipboard from 'vue-clipboard2';
3837
import Md from './components/md';
3938
import Api from './components/api';
4039
import demoBox from './components/demoBox';
40+
import demoSort from './components/demoSort';
4141
import demoContainer from './components/demoContainer';
4242
import Modal from '../components/modal';
4343
import message from '../components/message';
@@ -47,9 +47,10 @@ import notification from '../components/notification';
4747
import '../components/modal/style';
4848
import '../components/message/style';
4949
import '../components/notification/style';
50-
import Test from '../components/{{name}}/demo/index.vue';
50+
import Test from '../antdv-demo/{{name}}/demo/index.vue';
5151
import zhCN from './theme/zh-CN';
5252
import enUS from './theme/en-US';
53+
import './index.less';
5354
5455
Vue.use(Vuex);
5556
Vue.use(VueClipboard);
@@ -58,6 +59,7 @@ Vue.use(VueI18n);
5859
Vue.component(Md.name, Md);
5960
Vue.component(Api.name, Api);
6061
Vue.component('demo-box', demoBox);
62+
Vue.component('demo-sort', demoSort);
6163
Vue.component('demo-container', demoContainer);
6264
6365
Vue.prototype.$message = message;
@@ -132,8 +134,8 @@ const renderTemplate = name => {
132134
};
133135

134136
const demoPaths = fs
135-
.readdirSync(path.join(__dirname, `../components/${name}/demo`))
136-
.map(p => `../components/${name}/demo/${p}`);
137+
.readdirSync(path.join(__dirname, `../antdv-demo/${name}/demo`))
138+
.map(p => `../antdv-demo/${name}/demo/${p}`);
137139
const testPaths = fs
138140
.readdirSync(path.join(__dirname, `../components/test`))
139141
.map(p => `../components/test/${p}`);
@@ -194,7 +196,7 @@ chokidar.watch(configPath, { ignoreInitial: true }).on('change', async () => {
194196

195197
demoWatcher && (await demoWatcher.close());
196198

197-
demoWatcher = chokidar.watch(path.join(__dirname, `../components/${componentName}/demo`));
199+
demoWatcher = chokidar.watch(path.join(__dirname, `../antdv-demo/${componentName}/demo`));
198200
demoWatcher.on('change', () => {
199201
renderTemplate(componentName);
200202
});

0 commit comments

Comments
 (0)