<template>
  <div :class="className">
    <slot></slot>
  </div>
</template>

<script lang="ts">
import { Vue, Component, Prop } from "vue-property-decorator";

@Component({})
export default class AppPresetCaption extends Vue {

    /**
     * 名称
     *
     * @type {string}
     * @memberof AppPresetCaption
     */
    @Prop() public name!: string;

    /**
     * 类名
     *
     * @memberof AppPresetText
     */
    get className(): string {
        return `app-preset-caption ${this.name}`;
    }
}
</script>

<style lang='less'>
@import "./app-preset-caption.less";
</style>