Skip to content

ui-javascript/tpl-arco-design-vue-pro-2022

Repository files navigation

README

arco design pro vue 模板改造

框架

插件

  • vscode-easycode

参考 @ref

vue-global-api -- 解决eslint报错
npm install vue-global-api -D --legacy-peer-deps

禁用vetur改用volar

===
// .eslintrc.js
module.exports = {
  extends: [
    // collections
    'vue-global-api/reactivity',
    'vue-global-api/lifecycle',
    'vue-global-api/component',
    // single apis
    'vue-global-api/ref',
    'vue-global-api/toRef',
  ]
};

===
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/no-absolute-path': 'off',
'import/no-extraneous-dependencies': 'off',
  • 组件正则替换命名
<a-(\w+)-(\w+)-(\w+)
<\u$1\u$2\u$3

<a-(\w+)-(\w+)
<\u$1\u$2

<a-(\w+)
<\u$1

</a-(\w+)-(\w+)-(\w+)
</\u$1\u$2\u$3

</a-(\w+)-(\w+)
</\u$1\u$2

</a-(\w+)
</\u$1

===
@ps Breadcrumb重名了, 改为CustomBreadcurmb