Skip to content
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

i18n-n component local components passing #959

Merged
merged 1 commit into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
functional: true,
props: {
tag: {
type: [String, Boolean],
type: [String, Boolean, Object],
default: 'span'
},
value: {
Expand Down
4 changes: 2 additions & 2 deletions vuepress/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ The element `textContent` will be cleared by default when `v-t` directive is unb

* `path {Path}`: required, keypath of locale messages
* `locale {Locale}`: optional, locale
* `tag {string|boolean}`: optional, default `'span'`
* `tag {string | boolean | Object}`: optional, default `'span'`
* `places {Array | Object}`: optional (7.2+)

:::danger Important!!
Expand Down Expand Up @@ -794,7 +794,7 @@ new Vue({
* `value {number}`: required, number to format
* `format {string | NumberFormatOptions}`: optional, number format name or object with explicit format options
* `locale {Locale}`: optional, locale
* `tag {string|boolean}`: optional, default `'span'`
* `tag {string | boolean | Object}`: optional, default `'span'`

#### Usage:

Expand Down