fix: form fieldMappingTime improve and modelPropName support (#5335)

* 表单的fieldMappingTime支持将格式化掩码设为null以便原值映射,这样可以支持非日期时间类型的组件;
* 表单增加modelPropName设置组件的双向绑定属性名,用于支持未提前注册的双向绑定属性为非默认名称的组件。
* 增加一些经常会有人提到的组合字段演示,
This commit is contained in:
Netfan
2025-01-09 22:49:28 +08:00
committed by GitHub
parent 99c7fd72f8
commit 516d0b8dc8
8 changed files with 115 additions and 21 deletions

View File

@@ -21,7 +21,7 @@
.form-valid-error {
/** select 选择器的样式 */
.ant-select .ant-select-selector {
.ant-select:not(.valid-success) .ant-select-selector:not(.valid-success) {
border-color: hsl(var(--destructive)) !important;
}
@@ -39,6 +39,10 @@
border-color: hsl(var(--destructive));
box-shadow: 0 0 0 2px rgb(255 38 5 / 6%);
}
.ant-input:not(.valid-success) {
border-color: hsl(var(--destructive)) !important;
}
}
/** 区间选择器下面来回切换时的样式 */