Skip to content

Toolbar 工具条

代码演示

基础用法

vue
<template>
    <x-toolbar>
        <a-button type="primary">新建数据</a-button>

        <template #extra>
            <a-space>
                <a-input></a-input>
                <a-button
                    ghost
                    type="primary">
                    查询
                </a-button>
            </a-space>
        </template>
    </x-toolbar>
</template>

<script setup></script>

<style lang="less" scoped></style>

带边框

vue
<template>
    <x-toolbar bordered>
        <a-button type="primary">新建数据</a-button>

        <template #extra>
            <a-space>
                <a-input></a-input>
                <a-button
                    ghost
                    type="primary">
                    查询
                </a-button>
            </a-space>
        </template>
    </x-toolbar>
</template>

<script setup></script>

<style lang="less" scoped></style>

API

Props

名称说明类型默认值
bordered是否显示边框,显示边框时将会使用 Card 组件包裹booleantrue

Slots

名称说明
default内容
extra扩展内容,显示在右侧

本文档内容版权为 XYAdmin 作者所有,保留所有权利。