fix: Text widgets use 'text' not 'label', Button widgets use 'label' not 'text
Per bricks-framework specification: - Text/Title controls: use 'text' for non-i18n text, 'otext'+'i18n:true' for i18n - Button controls: use 'label' for button display text
This commit is contained in:
parent
21cbd1b2fb
commit
282c1780ba
@ -26,12 +26,12 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "CRM系统",
|
|
||||||
"style": {
|
"style": {
|
||||||
"fontSize": "20px",
|
"fontSize": "20px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"color": "white"
|
"color": "white"
|
||||||
}
|
},
|
||||||
|
"text": "CRM系统"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -42,11 +42,11 @@
|
|||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"id": "lbl_username",
|
"id": "lbl_username",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "用户: admin",
|
|
||||||
"style": {
|
"style": {
|
||||||
"color": "white",
|
"color": "white",
|
||||||
"marginRight": "16px"
|
"marginRight": "16px"
|
||||||
}
|
},
|
||||||
|
"text": "用户: admin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -26,14 +26,14 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "CRM系统登录",
|
|
||||||
"style": {
|
"style": {
|
||||||
"fontSize": "24px",
|
"fontSize": "24px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"textAlign": "center",
|
"textAlign": "center",
|
||||||
"marginBottom": "24px",
|
"marginBottom": "24px",
|
||||||
"color": "#333"
|
"color": "#333"
|
||||||
}
|
},
|
||||||
|
"text": "CRM系统登录"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user