问题出在哪?
components/index.ts
export { default as Button } from "./button"export { default as Card } from "./card"export { default as Icon } from "./icon"
button/index.ts
import Button from "./Button.vue"export default Button
button/Button.vue
<script setup lang="ts"></script><template> <button type="button"> <slot></slot> </button></template>
不知道问题在哪儿。
不过不要这样做,会影响打包时候分包,导致 js 文件很大,无法 lazy-loading 。
什么原因
Chorm浏览器打开控制器vue项目就报 关闭就不会有这个错, 大佬们 这怎么弄
背景: git项目中需要回退更改,执行 git reset --soft xx 回退成功之后,git push之后有报错 尝试强制push,执行 git push --force 仍然有报错 代码只能往前提交、push,不能回退、push
代码地址 要如何正确引入ant并使用呢?
vue实现动态按钮借助iview的Button,由于这些按钮是配置出来的,目前没有代码,还不清楚怎么写,所以麻烦大佬们了 如图 期望能在各个vue组件使用的,然后通过不同的点击来触发事件,希望大佬们,给个思路