Transfer shuttle frame
Introducing Transfer on Demand
edit
import { ... Transfer } from 'element-ui'; const components = [ ... Transfer ]; (component => { (, component); });
Install the transform-vue-jsx plugin
Edit .babelrc file
{ "presets": [ ["env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } }], "stage-2" ], "plugins": [["component", [ { "libraryName": "element-ui", "styleLibraryName": "theme-default" } ]], "transform-runtime", "transform-vue-jsx"], "comments": false }
Install the corresponding plug-in
npm install babel-plugin-syntax-jsx --save-dev npm install babel-plugin-transform-vue-jsx --save-dev npm install babel-helper-vue-jsx-merge-props --save-dev
Summarize
The above is the introduction of vue to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!