quanyawei
2024-08-28 247dacca9784396eeaf17ef3e85c7ae646b786e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<template>
  <div>
    <av-page-header title="分布表单">
      <div slot="breadcrumb">
        <a-breadcrumb>
          <a-breadcrumb-item>
            <a >首页</a>
          </a-breadcrumb-item>
          <a-breadcrumb-item>
            <a >表单页</a>
          </a-breadcrumb-item>
          <a-breadcrumb-item>
            <a >分布表单</a>
          </a-breadcrumb-item>
          <a-breadcrumb-item>分步表单(填写转账信息)</a-breadcrumb-item>
        </a-breadcrumb>
      </div>
      <div slot="content">
        将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
      </div>
    </av-page-header>
    
    <a-card :bordered="false">
      <a-steps :current="item.step" class="steps">
        <a-step :title="'填写转账信息'"></a-step>
        <a-step title="确认转账信息"></a-step>
        <a-step title="完成"></a-step>
      </a-steps>
      <step-form1 :value="item" v-if="item.step==0"/>
      <step-form2 class="stepForm" :value="item" v-if="item.step==1"/>
      <step-form3 class="stepForm" :value="item" v-if="item.step==2"/>
      <!---->
      
    </a-card>
  </div>
</template>
 
<script  lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
import { State, Mutation, namespace } from 'vuex-class';
import { TransferService } from './services/TransferService';
 
import StepForm1 from './components/StepForm1.vue';
import StepForm2 from './components/StepForm2.vue';
import StepForm3 from './components/StepForm3.vue';
 
@Component({
    components: {
      StepForm1,
      StepForm2,
      StepForm3,
    },
})
export default class StepForm extends Vue {
 
  public item: TransferService = new TransferService();
 
  constructor() {
      super();
  }
 
}
</script>
 
<style lang="less">
 
.stepForm {
  margin: 40px auto 0;
  max-width: 500px;
}
 
 
.stepFormText {
  margin-bottom: 24px;
  :global {
    .ant-form-item-label,
    .ant-form-item-control {
      line-height: 22px;
    }
  }
}
 
</style>
 
<style lang="less" scoped>
 
@import '~ant-design-vue/dist/antd.less';
 
.steps {
      margin: 16px auto;
    max-width: 750px;
}
 
 
 
.result {
  margin: 0 auto;
  max-width: 560px;
  padding: 24px 0 8px;
}
 
.desc {
  padding: 0 56px;
  color: @text-color-secondary;
  h3 {
    font-size: 16px;
    margin: 0 0 12px 0;
    color: @text-color-secondary;
    line-height: 32px;
  }
  h4 {
    margin: 0 0 4px 0;
    color: @text-color-secondary;
    font-size: 14px;
    line-height: 22px;
  }
  p {
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 22px;
  }
}
 
@media screen and (max-width: @screen-md) {
  .desc {
    padding: 0;
  }
}
 
.information {
  line-height: 22px;
  :global {
    .ant-row:not(:last-child) {
      margin-bottom: 24px;
    }
  }
  .label {
    color: @heading-color;
    text-align: right;
    padding-right: 8px;
    @media screen and (max-width: @screen-sm) {
      text-align: left;
    }
  }
}
 
.money {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 14px;
}
 
.uppercase {
  font-size: 12px;
}
 
</style>