From ec40bd0d14d793f92a40fc6314f106a5aca25033 Mon Sep 17 00:00:00 2001
From: iczer <1126263215@qq.com>
Date: Mon, 23 Jul 2018 23:18:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EStepForm?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/analysis/SalesData.vue | 2 +-
src/components/form/BasicForm.vue | 15 ++++-
src/components/form/Step1.vue | 70 +++++++++++++++++++++
src/components/form/Step2.vue | 87 +++++++++++++++++++++++++++
src/components/form/Step3.vue | 32 ++++++++++
src/components/form/StepForm.vue | 57 ++++++++++++++++++
src/router/index.js | 3 +-
7 files changed, 261 insertions(+), 5 deletions(-)
create mode 100644 src/components/form/Step1.vue
create mode 100644 src/components/form/Step2.vue
create mode 100644 src/components/form/Step3.vue
create mode 100644 src/components/form/StepForm.vue
diff --git a/src/components/analysis/SalesData.vue b/src/components/analysis/SalesData.vue
index b03a983..0eefd14 100644
--- a/src/components/analysis/SalesData.vue
+++ b/src/components/analysis/SalesData.vue
@@ -58,7 +58,7 @@ export default {
},
labelConfig: ['percent', {
formatter: (val, item) => {
- return item.point.item + ': ' + val;
+ return item.point.item + ': ' + val
}
}]
}
diff --git a/src/components/form/BasicForm.vue b/src/components/form/BasicForm.vue
index e58f43c..1776802 100644
--- a/src/components/form/BasicForm.vue
+++ b/src/components/form/BasicForm.vue
@@ -93,7 +93,7 @@ import AInputNumber from 'vue-antd-ui/es/input-number/index'
import ARadioGroup from 'vue-antd-ui/es/radio/Group'
import ARadio from 'vue-antd-ui/es/radio/Radio'
import ASelect from 'vue-antd-ui/es/select/index'
-import AButton from "vue-antd-ui/es/button/button";
+import AButton from 'vue-antd-ui/es/button/button'
const ARangePicker = ADatePicker.RangePicker
const ASelectOption = ASelect.Option
@@ -101,10 +101,19 @@ export default {
name: 'BasicForm',
components: {
AButton,
- ASelectOption, ASelect, ARadio, ARadioGroup, AInputNumber, ATextarea, ARangePicker, AInput, AFormItem, AForm, ACard},
+ ASelectOption,
+ ASelect,
+ ARadio,
+ ARadioGroup,
+ AInputNumber,
+ ATextarea,
+ ARangePicker,
+ AInput,
+ AFormItem,
+ AForm,
+ ACard},
data () {
return {
- title: '基础表单',
desc: '表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。',
value: 1
}
diff --git a/src/components/form/Step1.vue b/src/components/form/Step1.vue
new file mode 100644
index 0000000..81546c3
--- /dev/null
+++ b/src/components/form/Step1.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+ ant-design@alipay.com
+
+
+
+
+
+ 支付宝
+ 微信
+
+
+
+
+
+
+
+
+
+
+
+ 下一步
+
+
+
+
+
+
+
+
diff --git a/src/components/form/Step2.vue b/src/components/form/Step2.vue
new file mode 100644
index 0000000..9d7dbdf
--- /dev/null
+++ b/src/components/form/Step2.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+ ant-design@alipay.com
+
+
+ test@example.com
+
+
+ Alex
+
+
+ ¥ 5,000.00
+
+
+ 提交
+ 上一步
+
+
+
+
+
+
+
+
diff --git a/src/components/form/Step3.vue b/src/components/form/Step3.vue
new file mode 100644
index 0000000..c2299ba
--- /dev/null
+++ b/src/components/form/Step3.vue
@@ -0,0 +1,32 @@
+
+
+
+
+ success
+
+
+ 再转一笔
+ 查看账单
+
+
+
+
+
+
+
+
diff --git a/src/components/form/StepForm.vue b/src/components/form/StepForm.vue
new file mode 100644
index 0000000..b2897b7
--- /dev/null
+++ b/src/components/form/StepForm.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index 11324b6..8997e88 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -7,6 +7,7 @@ import NotPermit from '@/components/exception/403'
import ServerError from '@/components/exception/500'
import Form from '@/components/form/Form'
import BasicForm from '@/components/form/BasicForm'
+import StepForm from '@/components/form/StepForm'
Vue.use(Router)
@@ -33,7 +34,7 @@ export default new Router({
{
path: '/form/step',
name: '分步表单',
- component: NotFound,
+ component: StepForm,
icon: 'none'
},
{