Skip to content

Commit e1b51e9

Browse files
authored
feat: add new form support v-model
* chore: update site * chore: update submodule * docs: update * docs: update doc * docs: update * test: update snap * docs: update * feat: add new form support v-model * feat: add new form * docs: update changelog * chore: update webpack * test: update snap
1 parent 4f49338 commit e1b51e9

File tree

162 files changed

+2304
-9660
lines changed

Some content is hidden

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

162 files changed

+2304
-9660
lines changed

.jest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ module.exports = {
1919
testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$',
2020
moduleNameMapper: {
2121
'^@/(.*)$': '<rootDir>/$1',
22-
'ant-design-vue': '<rootDir>/components/index.js',
22+
'ant-design-vue$': '<rootDir>/components/index.js',
23+
'ant-design-vue/es': '<rootDir>/components',
2324
'^vue$': 'vue/dist/vue.common.js',
2425
},
2526
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],

CHANGELOG.en-US.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- 🔥🔥🔥 [Descriptions](https://antdv.com/components/descriptions/) Display multiple read-only fields in groups.
2020
- 🔥🔥🔥 [PageHeader](https://antdv.com/components/page-header/) 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.
2121
- 🔥🔥🔥 [Result](https://antdv.com/components/result) is used to feedback the processing results of a series of operation tasks.
22+
- 🔥🔥🔥 [NewForm](https://antdv.com/components/n-form) Form components that use v-model for automatic validation are more concise than v-decorator forms.
2223
- 🔥 Descriptions supports vertical layout.
2324
- 🔥 Progress.Circle supports gradient colors.
2425
- 🔥 Progress.Line supports gradient colors.
@@ -550,8 +551,6 @@ Component Fixes / Enhancements:
550551

551552
`2018-12-16`
552553

553-
### Synchronize with antd 3.10.x
554-
555554
- 🔥🔥🔥 replaced font icons with svg icons which bring benefits below::
556555
- Complete offline usage of icon, no dependency of alipay cdn font icon file and no more empty square during downloading than no need to deploy icon font files locally either.
557556
- Much more display accuracy in lower-level screens.

CHANGELOG.zh-CN.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
`2020-03-06`
1616

17-
- 新增了四个组件
17+
- 新增了五个组件
1818
- 🔥🔥🔥 [Mentions](https://antdv.com/components/mentions-cn/) 新增提及组件并废弃原有 Mention 组件。
1919
- 🔥🔥🔥 [Descriptions](https://antdv.com/components/descriptions-cn/) 成组展示多个只读字段。
2020
- 🔥🔥🔥 [PageHeader](https://antdv.com/components/page-header-cn/) 可用于声明页面主题、展示用户所关注的页面重要信息,以及承载与当前页相关的操作项。
2121
- 🔥🔥🔥 [Result](https://antdv.com/components/result) 用于反馈一系列操作任务的处理结果。
22+
- 🔥🔥🔥 [NewForm](https://antdv.com/components/n-form) 使用 v-model 进行自动校验的表单组件,相较于 v-decorator 形式的表单,更加简洁。
2223
- 🔥 Descriptions 支持垂直布局。
2324
- 🔥 Progress.Circle 支持渐变色。
2425
- 🔥 Progress.Line 支持渐变色。
@@ -553,8 +554,6 @@
553554

554555
`2018-12-16`
555556

556-
### 与 antd 3.10.x 同步
557-
558557
- 🔥🔥🔥 使用了 svg 图标替换了原先的 font 图标,从而带来了以下优势:
559558
- 可以离线化使用,不需要从支付宝 cdn 下载字体文件,图标不会因为网络问题呈现方块,也无需字体文件本地部署。
560559
- 在低端设备上 svg 有更好的清晰度。

antd-tools/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const esDir = path.join(cwd, 'es');
3434
function dist(done) {
3535
rimraf.sync(path.join(cwd, 'dist'));
3636
process.env.RUN_ENV = 'PRODUCTION';
37-
const webpackConfig = require(path.join(cwd, 'build/webpack.build.conf.js'));
37+
const webpackConfig = require(path.join(cwd, 'webpack.build.conf.js'));
3838
webpack(webpackConfig, (err, stats) => {
3939
if (err) {
4040
console.error(err.stack || err);

antdv-demo

build/config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

build/dev.js

Lines changed: 0 additions & 213 deletions
This file was deleted.

0 commit comments

Comments
 (0)