textTitleBox.vue 723 Bytes
<template>
    <div class="title-box" v-if="titles">
		<div class="box">
			<div class="title-box">
				<div class="title">{{titles.title}}</div>
			</div>
			<div class="more-box" @click="more(titles)">
				<div class="more-text">更多</div>
			</div>
		</div>
    </div>
</template>

<script>
    export default {
        data: function () {
            return {

            }
        },
        props: ["titles"],
		methods: {

			/**
			 * 更多
			 * @param {object} item [数据对象]
			 */
			more(item) {
				this.$emit("more", item);
			}
		}
    }
</script>

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