<template>
  <div class="ui-dataset">
    <div class="ui-dataset__head" v-if="title">
      <strong class="ui-dataset__title">{{ title }}</strong>
    </div>
    <div class="ui-dataset__body">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'UiDataset',
  provide() {
    return {
      UiDataset: this
    }
  },
  props: {
    title: {
      type: String
    },
    labelWidth: {
      type: String,
      default: '60px'
    }
  }
}
</script>
<style lang="less">
.ui-dataset__head{
  height: 32px;
  line-height: 32px;
  margin-bottom: 3px;
}
.ui-dataset__title{
  font-size: 18px;
  font-weight: bold;
}
</style>
