Skip to content

allowing camel-case props #1000

Closed
Closed
@mark-hahn

Description

@mark-hahn

Wouldn't this ...

props: {
  'prop-a': String, // type check constructor
  'prop-b': null, // accept any type
  'prop-c': { // object descriptor
    type: Number,
    required: true,
    default: 100 // new: default value
  }
}

Match the other options more if it was ...

props: {
  propA: String, // type check constructor
  propB: null, // accept any type
  propC: { // object descriptor
    type: Number,
    required: true,
    default: 100 // new: default value
  }
}

The camel case would appear in the html as prop-a of course.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions