<template>
  <el-form-item
    :label="label"
    :prop="prop"
    v-bind="$attrs"
    v-on="$listeners"
  >
    <c-highlight-content
      :id="previewLabel || label || prop"
      :path="preProp ? preProp + '.' + prop : prop"
      v-if="prop"
    >
      <slot></slot>
    </c-highlight-content>
    <slot v-else></slot>
  </el-form-item>
</template>

<script>
export default {
  props: ["label", "prop", "previewLabel", "preProp"],
  methods: {
  },
};
</script>

<style></style>
