addressCreateBar.vue 760 Bytes
<template>
    <div class="address-create-bar">
		<div class="placeholder-box"></div>
		<div class="box">
				<div class="buttons">
					<div class="btn btn-bright" @click="doCreate">
						<img src="static/img/icon_add.png" class="img"/>
						<div class="text">新增地址</div>
					</div>
				</div>
			</div>
    </div>
</template>

<script>
    export default {
		name: 'addressCreateBar',
        data: function () {
            return {
                
            }
        },
		methods: {
			
			/**
			 * 创建地址
			 */
			doCreate() {
				this.$emit('doCreate');
			}
		}
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less">
    @import './addressCreateBar';
</style>