jsx-vue2
jsx-vue2 copied to clipboard
过滤掉jsx属性中的换行符
render (h) {
return (
<div style='
line-height: 16px;
text-align: left;
'>
</div>
)}
以上jsx如果不过滤换行符,会报错: Unterminated string constant
在老版本jsx插件中, 是会过滤掉属性中的换行符,老版本参考: [ babel-plugin-transform-vue-jsx /index.js](https://github.com/vuejs/babel-plugin-transform-vue-jsx/blob/6ad7487579094cc188d470171af8f62335193896/index.js#L207)
Deploy Preview for jsx-vue2-playground ready!
| Name | Link |
|---|---|
| Latest commit | e3dd1dc324cace1a81ee81783bbecf9de1b5f565 |
| Latest deploy log | https://app.netlify.com/sites/jsx-vue2-playground/deploys/64a400b7fd1cb90008f0ec1d |
| Deploy Preview | https://deploy-preview-308--jsx-vue2-playground.netlify.app/ |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.