mrodal / vue-inheritance-loader

Webpack loader to be used along with vue-loader for Single File Components that provides template extension
38 stars 5 forks source link

The props of custom components are changed to lowercase #8

Open withparadox2 opened 4 years ago

withparadox2 commented 4 years ago

Child component can not receive expected props passed from parent because they are converted to lower case.

I read the code and find the case of tag is under consideration while attribute's is not, it seems necessary to add another option lowerCaseAttributeNames: false for parser.

function parseDOM(source) {
  return htmlparser.parseDOM(source, {recognizeSelfClosing: true, lowerCaseTags: false});
}