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