在线预览
欢迎大家 PR 和 Star 各种操作.
node 18.16.0
必须在页面中设置 name 属性 这个 name 属性值 需要和 菜单中的 name 属性值 关联上才可以
<script lang="ts">
export default { name: 'SystemMenu' }
</script>
通过 src/store/modules/settings.ts
中的 config 对象里面的 hasSearch
属性来控制该组件的显示隐藏.
el-config-provider
组件,达到和 element-plus
UI 库 进行关联.src/store/modules/settings.ts
中的 config 对象里面的 hasZiTi
属性来控制该组件的显示隐藏.src/store/modules/settings.ts
中的 config 对象里面的 hasClipboard
属性来控制该组件的显示隐藏.src/store/modules/settings.ts
中的 config 对象里面的 isCollapsed
属性来控制 侧边栏 展开 or 缩进.src/store/modules/settings.ts
中的 config 对象里面的 hasBreadcrumb
属性来控制该组件的显示隐藏.src/store/modules/settings.ts
中的 config 对象里面的 hasTagsView
属性来控制该组件的显示隐藏.src/store/modules/settings.ts
中的 config 对象里面的 hasSidebarLogo
属性来控制该组件的显示隐藏.因为 vuex 没有类型提示, 改用 pinia 来做状态管理
当项目越来越大时(大约几十个组件),使用 Tailwind CSS 最初的编译时间达到了 3s,而热更新时的时间甚至超过了 1s。 - @voorjaar
官网地址(https://www.tailwindcss.cn/docs/installation)
不用这个的坏处
自己研究了一会发现, lint-staged
npm 包中说明了 只需要一行命令即可.
npx mrm@2 lint-staged
更换成vite-plugin-svg-icons
组件使用.
根据网上资料, 和自己的判断对 axios
进行了封装操作.达到 传参
和 返回值
有类型提示.
例子: 再 src/apis/login/index.ts
中