Skip to main content

nicegui补充组件

Project description

NiceGUI 补充 / Adds

补充NiceGUI未实现的一些组件

在使用NiceGUI的过程中,我查阅了组件库文档和quasarchs文档,但突然发现有些组件竟然没有实现,如BreadCrumbs,感觉还是挺重要的,就专门创了一个项目

安装 / Installation

# nicegui>=1.4.0
pip install nicegui-add

构建 / Build

本库是使用Poetry构建,更多需查询官方文档

poetry build
poetry publish --build

文档构建 / Documents Build

文档是使用Sphinx构建

cd docs
python make.py

make.py

import os

make = "make.bat "

os.system(make + "clear")
os.system(make + "html")

组件 / Elements

Breadcrumbs 面包屑

类似于文件管理器上的导航栏

用法 / Usage

aui.breadcrumbs(separator: str = ...)
  • separator为每个元件BreadcrumbsEl之间的隔开符,默认是/
aui.breadcrumbs_el(text: str = ..., icon: str = ..., on_click=...)
  • text为显示文本
  • icon为显示图标
  • on_click为被点击时的事件

例子 / Example

from nicegui import ui
from nicegui_add import aui

with aui.breadcrumbs():
    aui.breadcrumbs_el("Home", icon="home", on_click=lambda: print("'Home' Clicked"))
    aui.breadcrumbs_el("System", icon="windows", on_click=lambda: print("'Windows' Clicked"))
    aui.breadcrumbs_el("Apps", icon="apps", on_click=lambda: print("'Apps' Clicked"))
    
ui.run()

开发笔记 / Development Notes

选择存储库平台时,我本来是打算用Github的,但是Github的登录特别繁琐,干脆改用Gitlab算了,而且Gitlab在中国地区可以正常访问,而不像Github一样,老是登不上去

版本记录 / Version Records

0.0.1

0011 第一次发布,包含 bar, breadcrumbs, breadcrumbs_el, space, toolbar, toolbar_title组件

0.0.2

0021 补充项目资料

0022 添加组件Intersection / 交叉,可以为ui.Card组件做显示效果

0.0.3

0031 补充项目资料

0.0.4

0041 添加组件ButtonGroup / 按钮组

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nicegui_add-0.0.4.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

nicegui_add-0.0.4-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page