Skip to content

Changed datetime to datetime-local in component attributes guide #910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/guide/component-attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ When a component returns a single root node, non-prop attributes will automatica
app.component('date-picker', {
template: `
<div class="date-picker">
<input type="datetime" />
<input type="datetime-local" />
</div>
`
})
Expand All @@ -26,7 +26,7 @@ In the event we need to define the status of the date-picker component via a `da

<!-- Rendered date-picker component -->
<div class="date-picker" data-status="activated">
<input type="datetime" />
<input type="datetime-local" />
</div>
```

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

<!-- Rendered date-picker component -->
<div class="date-picker">
<input type="datetime" data-status="activated" />
<input type="datetime-local" data-status="activated" />
</div>
```

Expand Down