From 3f742a4dc1fbf794052d4c7969800d18102e6b1a Mon Sep 17 00:00:00 2001
From: iczer <1126263215@qq.com>
Date: Wed, 15 Jul 2020 12:38:22 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20remove=20the=20deprecated=20API=20of?=
=?UTF-8?q?=20Ant=20Design=20Vue;=20:star2:=20=E7=A7=BB=E9=99=A4=20Ant=20D?=
=?UTF-8?q?esign=20Vue=20=E5=BA=9F=E5=BC=83=E7=9A=84=20API=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/detail/BasicDetail.vue | 1 +
src/pages/form/advance/RepositoryForm.vue | 74 +++++++++++------------
src/pages/form/advance/TaskForm.vue | 69 ++++++++++-----------
src/pages/list/search/SearchForm.vue | 23 +++----
src/pages/login/Login.vue | 30 +++++----
5 files changed, 103 insertions(+), 94 deletions(-)
diff --git a/src/pages/detail/BasicDetail.vue b/src/pages/detail/BasicDetail.vue
index 567b907..67ca385 100644
--- a/src/pages/detail/BasicDetail.vue
+++ b/src/pages/detail/BasicDetail.vue
@@ -18,6 +18,7 @@
退货商品
-
+
-
-
+
+
-
-
+
+
-
-
+
+
王同学
李同学
黄同学
@@ -35,33 +33,30 @@
-
-
+
+
王晓丽
李军
-
-
+
+
-
-
+
+
公开
私密
@@ -79,6 +74,11 @@ export default {
name: 'RepositoryForm',
props: ['showSubmit'],
i18n: require('./i18n-repository'),
+ data() {
+ return {
+ form: this.$form.createForm(this)
+ }
+ },
methods: {
handleSubmit (e) {
e.preventDefault()
diff --git a/src/pages/form/advance/TaskForm.vue b/src/pages/form/advance/TaskForm.vue
index 7772211..3200c73 100644
--- a/src/pages/form/advance/TaskForm.vue
+++ b/src/pages/form/advance/TaskForm.vue
@@ -1,31 +1,30 @@
-
+
-
-
+
+
-
-
+
+
-
+
黄丽丽
李大刀
@@ -34,33 +33,30 @@
-
-
+
+
王伟
李红军
-
-
+
+
-
-
+
+
定时执行
周期执行
@@ -78,6 +74,11 @@ export default {
name: 'TaskForm',
props: ['showSubmit'],
i18n: require('./i18n-task'),
+ data() {
+ return {
+ form: this.$form.createForm(this)
+ }
+ },
methods: {
handleSubmit (e) {
e.preventDefault()
diff --git a/src/pages/list/search/SearchForm.vue b/src/pages/list/search/SearchForm.vue
index 4db371a..5cd06d1 100644
--- a/src/pages/list/search/SearchForm.vue
+++ b/src/pages/list/search/SearchForm.vue
@@ -1,6 +1,6 @@
-
+
@@ -24,11 +24,11 @@
-
-
+
+
我自己
吴家豪
周星星
@@ -40,11 +40,7 @@
-
+
周星星
@@ -76,6 +72,11 @@ const TagSelectOption = TagSelect.Option
export default {
name: 'SearchForm',
components: {FormRow, TagSelectOption, TagSelect},
+ data() {
+ return {
+ form: this.$form.createForm(this)
+ }
+ },
methods: {
lookMyself () {
this.form.setFieldsValue({
diff --git a/src/pages/login/Login.vue b/src/pages/login/Login.vue
index fff47c0..0cdba0d 100644
--- a/src/pages/login/Login.vue
+++ b/src/pages/login/Login.vue
@@ -8,23 +8,28 @@
Ant Design 是西湖区最具影响力的 Web 设计规范
-
+
-
-
+
+
-
-
+
+
@@ -77,7 +82,8 @@ export default {
data () {
return {
logging: false,
- error: ''
+ error: '',
+ form: this.$form.createForm(this)
}
},
computed: {