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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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' }, {