vue表单设计时 有标题和下划线的容器

vue表单设计时 有标题和下划线的容器,第1张

<template>
  <div class="contain">
    <div class="title">
      <span>{{ title }}</span>
    </div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'containBox',
  props: { title: String },
  data() {
    return {}
  },
  methods: {},
  mounted() {}
}
</script>

<style lang="less" scoped>
.contain {
  border-bottom: 1px solid rgb(209, 214, 224);
  .title {
    font-size: 15px;
    font-weight: bold;
    padding: 8px 0px 8px 6px;
  }
}
</style>

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1320455.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-11
下一篇 2022-06-11

发表评论

登录后才能评论

评论列表(0条)

保存