refactor(index.ui): 卡片从Button改为VBox容器

Button在bricks中不是容器控件,不支持subwidgets嵌套。
改用VBox作为卡片容器,支持click事件+嵌套Text子控件。
固定尺寸: height=140px, width=280px
This commit is contained in:
yumoqing 2026-05-28 23:36:07 +08:00
parent 8f0c2a84e2
commit 0371bf3a12
2 changed files with 18 additions and 18 deletions

BIN
docs/.api_downapp.md.swp Normal file

Binary file not shown.

View File

@ -28,14 +28,14 @@
"subwidgets": [
{% if is_customer or is_admin %}
{
"widgettype": "Button",
"widgettype": "VBox",
"options": {
"css": "card",
"height": "140px",
"width": "280px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
"borderRadius": "8px"
},
"binds": [
{
@ -68,14 +68,14 @@
]
},
{
"widgettype": "Button",
"widgettype": "VBox",
"options": {
"css": "card",
"height": "140px",
"width": "280px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
"borderRadius": "8px"
},
"binds": [
{
@ -110,14 +110,14 @@
{% endif %}
{% if is_admin %}
,{
"widgettype": "Button",
"widgettype": "VBox",
"options": {
"css": "card",
"height": "140px",
"width": "280px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
"borderRadius": "8px"
},
"binds": [
{
@ -150,14 +150,14 @@
]
},
{
"widgettype": "Button",
"widgettype": "VBox",
"options": {
"css": "card",
"height": "140px",
"width": "280px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
"borderRadius": "8px"
},
"binds": [
{
@ -190,14 +190,14 @@
]
},
{
"widgettype": "Button",
"widgettype": "VBox",
"options": {
"css": "card",
"height": "140px",
"width": "280px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
"borderRadius": "8px"
},
"binds": [
{
@ -230,14 +230,14 @@
]
},
{
"widgettype": "Button",
"widgettype": "VBox",
"options": {
"css": "card",
"height": "140px",
"width": "280px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
"borderRadius": "8px"
},
"binds": [
{