Appearance
Title 区块标题
这是标题
这是 Title
的基础例子
vue
<script setup lang="ts">
const data = {
more: 'https://cytp.cn/type',
options: [
{ label: '豆菜类', href: 'https://cytp.cn/type/1' },
{ label: '叶菜类', href: 'https://cytp.cn/type/2' },
{ label: '葱姜蒜类', href: 'https://cytp.cn/type/3' },
{ label: '根茎菜类', href: 'https://cytp.cn/type/4' },
],
}
</script>
<template>
<div class="title-demo">
<NpTitle name="这是标题" />
</div>
<div class="title-demo">
<NpTitle name="这是一个标题" :data="data" />
</div>
</template>
<style lang="less" scoped>
.title-demo {
width: 600px;
padding: 10px;
background: #f5f7f9
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28