Commit e8657a36 by Lin

refactor(FormAdd): 优化表单样式和结构

- 将表单项标签的样式从内联样式改为类名,提升可维护性
- 引入响应式样式变量,确保在不同设备上表单显示一致
- 清理不必要的样式和计算,简化代码结构
1 parent a60a595f
......@@ -114,6 +114,17 @@ export default {
'--reception-dash-month-target-label-font-size': '12px',
'--reception-dash-month-target-value-font-size': '14px',
'--reception-dash-month-target-value-margin-top': '4px',
// receptionCenter: FormAdd(客户档案新增/编辑)默认样式变量(可被 resolutions 覆盖)
'--reception-form-add-label-font-size': '14px',
'--reception-form-add-input-font-size': '14px',
'--reception-form-add-placeholder-font-size': '14px',
'--reception-form-add-cell-value-font-size': '14px',
'--reception-form-add-btn-text-font-size': '16px',
'--reception-form-add-item-height': '56px',
'--reception-form-add-item-padding-top': '0px',
'--reception-form-add-item-padding-bottom': '0px',
'--reception-form-add-navbar-title-font-size': '17px',
},
portrait: {
'--adapter-color': 'red',
......@@ -249,6 +260,17 @@ export default {
'--reception-dash-month-target-label-font-size': '16px',
'--reception-dash-month-target-value-font-size': '20px',
'--reception-dash-month-target-value-margin-top': '8px',
// 针对 768x1174 竖屏:FormAdd 文本与行高自适应增大
'--reception-form-add-label-font-size': '18px',
'--reception-form-add-input-font-size': '18px',
'--reception-form-add-placeholder-font-size': '18px',
'--reception-form-add-cell-value-font-size': '18px',
'--reception-form-add-btn-text-font-size': '18px',
'--reception-form-add-item-height': '72px',
'--reception-form-add-item-padding-top': '10px',
'--reception-form-add-item-padding-bottom': '10px',
'--reception-form-add-navbar-title-font-size': '22px',
},
'landscape-1174x768': {
'--adapter-color': '#FF4444',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!