Skip to content

Commit 5092c4f

Browse files
fix: changed datetime to datetime-local (#910)
1 parent 7cacf99 commit 5092c4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guide/component-attrs.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ When a component returns a single root node, non-prop attributes will automatica
1212
app.component('date-picker', {
1313
template: `
1414
<div class="date-picker">
15-
<input type="datetime" />
15+
<input type="datetime-local" />
1616
</div>
1717
`
1818
})
@@ -26,7 +26,7 @@ In the event we need to define the status of the date-picker component via a `da
2626

2727
<!-- Rendered date-picker component -->
2828
<div class="date-picker" data-status="activated">
29-
<input type="datetime" />
29+
<input type="datetime-local" />
3030
</div>
3131
```
3232

@@ -91,7 +91,7 @@ app.component('date-picker', {
9191
inheritAttrs: false,
9292
template: `
9393
<div class="date-picker">
94-
<input type="datetime" v-bind="$attrs" />
94+
<input type="datetime-local" v-bind="$attrs" />
9595
</div>
9696
`
9797
})
@@ -105,7 +105,7 @@ With this new configuration, our `data-status` attribute will be applied to our
105105

106106
<!-- Rendered date-picker component -->
107107
<div class="date-picker">
108-
<input type="datetime" data-status="activated" />
108+
<input type="datetime-local" data-status="activated" />
109109
</div>
110110
```
111111

0 commit comments

Comments
 (0)