{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# `ui.separator`\n", "\n", "## 分隔符\n", "\n", "这个元素基于 Quasar 的 [QSeparator 组件](https://quasar.dev/vue-components/separator)。\n", "\n", "它用作卡片、菜单和其他组件容器的分隔符,类似于 HTML 的 `
` 标签。" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from nicegui import ui\n", "\n", "ui.label('text above')\n", "ui.separator()\n", "ui.label('text below')\n", "\n", "# ui.run()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "py311", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.7" } }, "nbformat": 4, "nbformat_minor": 2 }