iview

作者: Clover园 | 来源:发表于2019-02-26 14:13 被阅读0次

    .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

    相关文章

      网友评论

          本文标题:iview

          本文链接:https://www.haomeiwen.com/subject/liyayqtx.html