<template>
    <div>
        <Button @click="openWebForm">测试表单</Button>
        <SelectPosition></SelectPosition>
    </div>
</template>
<script>
import WebForm from '@/views/web-form';
import SelectPosition from '@/views/web-form/item/select-position';

export default {
    name: 'App',
    watch: {
    },
    data() {
        return {
            formData: undefined,
        }
    },
    components: {
        SelectPosition
    },
    methods: {
        openWebForm() {
            // WebForm.edit("3FF560609B3E40539555CB548893E4B5", '这是我的测试', {
            //     a333: '经销商',
            //     a34: '76F1CB5A1A8E41739B4AD3F3CB79E229',
            //     a444: '5F06A8EEBAA24D2C98490B78FE923D12'
            // });
            WebForm.edit({
                formGuid: '3FF560609B3E40539555CB548893E4B5',
                onOKCb: ()=>{}
            })
        },
    },
    mounted() {
        this.formData = {
            a1: '1',
            a2: '3',
            a3: 3,
            select: 'cd',
            //a7: '2018-09-18'
        }

        this.$nextTick(() => {
            // console.log(this.marker.position.lat);
        });
    }
};

</script>
<style>
/*@import "leaflet/dist/leaflet.css";*/

/*.ivu-modal-body {
    padding: 0 !important;
}*/

#app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}

</style>
