Blame view

ant-design-vue-jeecg/src/components/setting/SettingItem.vue 611 Bytes
肖超群 authored
1
2
3
4
5
6
7
8
9
<template>
  <div class="setting-drawer-index-item">
    <h3 class="setting-drawer-index-title">{{ title }}</h3>
    <slot></slot>
    <a-divider v-if="divider"/>
  </div>
</template>

<script>
肖超群 authored
10
11
12
13
14
15
16
17
18
19
export default {
  name: "SettingItem",
  props: {
    title: {
      type: String,
      default: ''
    },
    divider: {
      type: Boolean,
      default: false
肖超群 authored
20
21
    }
  }
肖超群 authored
22
}
肖超群 authored
23
24
25
26
</script>

<style lang="less" scoped>
肖超群 authored
27
28
.setting-drawer-index-item {
  margin-bottom: 24px;
肖超群 authored
29
肖超群 authored
30
31
32
33
34
  .setting-drawer-index-title {
    font-size: 14px;
    color: rgba(0, 0, 0, .85);
    line-height: 22px;
    margin-bottom: 12px;
肖超群 authored
35
  }
肖超群 authored
36
37

}
肖超群 authored
38
</style>