Commit 87de3549 authored by yyh's avatar yyh

代码调整

parent 36822364
......@@ -21,14 +21,8 @@
<script lang="ts">
import { Component, Prop, Vue, Emit } from 'vue-property-decorator';
import { Icon, Image, Button } from 'vant';
@Component({
name: 'ConfirmChain',
components: {
[Icon.name]: Icon,
[Image.name]: Image,
[Button.name]: Button,
},
})
export default class ConfirmChain extends Vue {
@Prop( {
......
......@@ -17,14 +17,8 @@
<script lang="ts">
import { Component, Prop, Vue, Emit } from 'vue-property-decorator';
import { Icon, Image, Button } from 'vant';
@Component({
name: 'Dialog',
components: {
[Icon.name]: Icon,
[Image.name]: Image,
[Button.name]: Button,
},
})
export default class Dialog extends Vue {
@Prop( {
......
......@@ -17,7 +17,6 @@
</template>
<script lang="ts">
import { Component, Prop, PropSync, Vue, Watch, Inject, Emit, Model } from 'vue-property-decorator';
import { Field } from 'vant';
import { Action } from 'vuex-class';
import { isCode, isEmail } from '@/const/pattern';
import { LoginType } from '@/const/enum';
......@@ -27,9 +26,6 @@ import { LoginType } from '@/const/enum';
*/
@Component({
name: 'codeInput',
components: {
[Field.name]: Field,
},
})
export default class CodeInput extends Vue {
@Model ('input', { type: String, required: true })
......
......@@ -10,16 +10,12 @@
</template>
<script lang="ts">
import { Component, Vue, Model, Emit, Prop } from 'vue-property-decorator';
import { Field } from 'vant';
import { isPhone } from '@/const/pattern';
/**
* 手机号输入框
*/
@Component({
name: 'EmailInput',
components: {
[Field.name]: Field,
},
})
export default class EmailInput extends Vue {
@Model ('input', { type: String, required: true })
......
......@@ -10,8 +10,6 @@ import { Component, Prop, PropSync, Vue } from 'vue-property-decorator';
*/
@Component({
name: 'MainButton',
components: {
},
})
export default class MainButton extends Vue {
......
......@@ -17,16 +17,12 @@
</template>
<script lang="ts">
import { Component, Vue, Model, Emit } from 'vue-property-decorator';
import { Field } from 'vant';
import { isCode, isEmail } from '@/const/pattern';
/**
* 密码输入框
*/
@Component({
name: 'PasswordInput',
components: {
[Field.name]: Field,
},
})
export default class PasswordInput extends Vue {
@Model ('input', { type: String, required: true })
......
......@@ -10,16 +10,12 @@
</template>
<script lang="ts">
import { Component, Vue, Model, Emit, Prop } from 'vue-property-decorator';
import { Field } from 'vant';
import { isPhone } from '@/const/pattern';
/**
* 手机号输入框
*/
@Component({
name: 'PhoneInput',
components: {
[Field.name]: Field,
},
})
export default class PhoneInput extends Vue {
@Model ('input', { type: String, required: true })
......
import { importAll } from '@/utils/utils';
const components = importAll(require.context('@/components/', true, /\.vue$/ ));
import {DatetimePicker, Picker, Uploader, Steps, Step, List, Image, Empty, Field, Dialog, GridItem, Grid, Button, Popup, NavBar, SwipeCell } from 'vant';
import { DatetimePicker, Picker, Uploader, Steps, Step, List, Image, Empty, Field, Dialog, GridItem, Grid, Button, Popup, NavBar, SwipeCell } from 'vant';
export default {
install(Vue: any) {
Vue.component(Button.name, Button);
......
......@@ -21,6 +21,9 @@
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
import filter from '@/filter/filters.ts';
@Component({
name: 'TypeSix',
})
export default class TypeSix extends Vue {
@Prop()
private proofSubItem: any;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment