You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
1 month ago
|
import dash
|
||
|
from dash import html
|
||
|
import feffery_antd_components as fac
|
||
|
from feffery_dash_utils.style_utils import style
|
||
|
|
||
|
app = dash.Dash(__name__)
|
||
|
|
||
|
app.layout = html.Div(
|
||
|
[
|
||
|
fac.AntdTable(
|
||
|
columns=[
|
||
|
{
|
||
|
"dataIndex": f"字段{i}",
|
||
|
"title": fac.AntdSpace(
|
||
|
[
|
||
|
fac.AntdText(f"字段{i}"),
|
||
|
fac.AntdTooltip(
|
||
|
fac.AntdIcon(
|
||
|
icon="antd-question-circle",
|
||
|
style=style(color="#8c8c8c", cursor="help"),
|
||
|
),
|
||
|
title=f"这是字段{i}的含义解释巴拉巴拉巴拉巴拉",
|
||
|
),
|
||
|
]
|
||
|
),
|
||
|
}
|
||
|
for i in range(1, 6)
|
||
|
],
|
||
|
data=[{f"字段{i}": "示例" for i in range(1, 6)}],
|
||
|
bordered=True,
|
||
|
)
|
||
|
],
|
||
|
style=style(padding=100),
|
||
|
)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
app.run(debug=True)
|