[新增] tab 组件 type 属性
This commit is contained in:
parent
eab7040d0a
commit
2e2b4381f0
@ -1,7 +1,47 @@
|
|||||||
::: demo
|
::: demo
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-tab><div style="padding: 30px;">面板</div></lay-tab>
|
<lay-tab></lay-tab>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { ref } from 'vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
setup() {
|
||||||
|
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: demo
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<lay-tab type="brief"></lay-tab>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { ref } from 'vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
setup() {
|
||||||
|
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: demo
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<lay-tab type="card"></lay-tab>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layui-tab">
|
<div class="layui-tab" :class="[type?'layui-tab-' + type:'']">
|
||||||
<ul class="layui-tab-title">
|
<ul class="layui-tab-title">
|
||||||
<li class="layui-this">网站设置</li>
|
<li class="layui-this">网站设置</li>
|
||||||
<li>用户管理</li>
|
<li>用户管理</li>
|
||||||
@ -18,4 +18,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="LayTab" lang="ts">
|
<script setup name="LayTab" lang="ts">
|
||||||
|
import { defineProps, withDefaults } from 'vue'
|
||||||
|
|
||||||
|
const props =
|
||||||
|
defineProps<{
|
||||||
|
type?: string
|
||||||
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user