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)
Built Distribution
Close
Hashes for nicegui_add-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4922b59af1486f14af6d18cb1e4c7e47b35d47f50b09108b33bf6c126db26150 |
|
MD5 | 2f28e72021f7ae79b17d394e9ddbb136 |
|
BLAKE2b-256 | 6863ee9f51a17644a51ad5d540d86e3612ed329c803e352090932fc6fa8f6675 |