refactor(index.ui): 卡片从Button改为VBox容器
Button在bricks中不是容器控件,不支持subwidgets嵌套。 改用VBox作为卡片容器,支持click事件+嵌套Text子控件。 固定尺寸: height=140px, width=280px
This commit is contained in:
parent
8f0c2a84e2
commit
0371bf3a12
BIN
docs/.api_downapp.md.swp
Normal file
BIN
docs/.api_downapp.md.swp
Normal file
Binary file not shown.
@ -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": [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user