日期 DateD
1.取名说明
因为js内置了Date对象,所以此组件不能以此命名。
2.状态属性
| 属性名称 | 数据类型 | 是否必填 | 默认值 | 回传参数 | 说明 |
|---|---|---|---|---|---|
| name | string | 是 | null | 空 | 表单字段名称 |
| attachTime | bool | 否 | true | 空 | 是否附加时间格式,为true则选择后value值附加" 00:00:00",方便传于后端 |
| year | number | 否 | null | 空 | 年 |
| month | number | 否 | null | 空 | 月 |
| day | number | 否 | null | 空 | 日 |
| onSelect | func | 否 | null | value,value,name,null | 确定事件 |