mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
DatePicker: support literal (#15525)
This commit is contained in:
@@ -346,6 +346,7 @@ Pay attention to capitalization
|
||||
| `A` | AM/PM | only for `format`, uppercased | AM |
|
||||
| `a` | am/pm | only for `format`, lowercased | am |
|
||||
| `timestamp` | JS timestamp | only for `value-format`; binding value will be a `number` | 1483326245000 |
|
||||
| `[MM]` | No escape characters | To escape characters, wrap them in square brackets (e.g. [A] [MM]) | MM |
|
||||
|
||||
:::demo
|
||||
```html
|
||||
|
||||
@@ -346,6 +346,7 @@ Preste atención a la capitalización
|
||||
| `A` | AM/PM | solamente para `format`, mayusculas | AM |
|
||||
| `a` | am/pm | solamente para `format`, minúsculas | am |
|
||||
| `timestamp` | JS timestamp | solamente para `value-format`; valor vinculado debe ser un `number` | 1483326245000 |
|
||||
| `[MM]` | No escape characters | To escape characters, wrap them in square brackets (e.g. [A] [MM]) | MM |
|
||||
|
||||
:::demo
|
||||
```html
|
||||
|
||||
@@ -347,6 +347,7 @@ Attention à la capitalisation !
|
||||
| `A` | AM/PM | uniquement pour `format`, majuscules | AM |
|
||||
| `a` | am/pm | uniquement pour `format`, minuscules | am |
|
||||
| `timestamp` | timestamp JS | uniquement pour `value-format`; la variable stockée sera un `number` | 1483326245000 |
|
||||
| `[MM]` | No escape characters | To escape characters, wrap them in square brackets (e.g. [A] [MM]) | MM |
|
||||
|
||||
:::demo
|
||||
```html
|
||||
|
||||
@@ -299,6 +299,7 @@
|
||||
| `A` | AM/PM | 仅 `format` 可用,大写 | AM |
|
||||
| `a` | am/pm | 仅 `format` 可用,小写 | am |
|
||||
| `timestamp` | JS时间戳 | 仅 `value-format` 可用;组件绑定值为`number`类型 | 1483326245000 |
|
||||
| `[MM]` | 不需要格式化字符 | 使用方括号标识不需要格式化的字符 (如 [A] [MM]) | MM |
|
||||
|
||||
:::demo
|
||||
```html
|
||||
|
||||
Reference in New Issue
Block a user