.babelrc
{ "presets": [ ["env", { "modules": false }], "stage-2" ], "plugins": ["transform-runtime"], "env": { "test": { "presets": ["env", "stage-2"], "plugins": ["transform-vue-jsx", "transform-runtime",["import", { "libraryName": "iview", "libraryDirectory": "src/components" }]] } }}
sortMethod: (a, b, type) => type === 'asc' ? a.age > b.age : a.age < b.age
a:比较的第一值 b:比较的第二个值 type:非常重要的值,desc倒序 asc顺序
autocomplete组件按需加载时,报错 transfer,只要在AutoComplete 上加上 transfer就可以了,此时 transfer为true,不加默认就是false
网友评论