<template>
  <div>
    <div class="weui-cells__title" v-if="title" :style="{color:titleColor}" v-html="title"></div>
    <div class="weui-cells" :class="{'vux-no-group-title':!title}" :style="{marginTop: gutter}">
      <slot name="after-title"></slot>
      <slot></slot>
    </div>
    <slot name='tip'></slot>
  </div>
</template>

<script>
export default {
  name: 'x-cell',
  props: {
    title: String,
    titleColor: String,
    labelWidth: String,
    labelAlign: String,
    labelMarginRight: String,
    gutter: String
  }
}
</script>

<style lang="less">

.vux-no-group-title {
  padding-left: 15px;
  padding-right: 15px;
  color: #999;
  font-size: 14px;
}
</style>
