loogn / element-plus-form-designer

基于 vue3 和 element-plus 的表单设计器.
MIT License
4 stars 1 forks source link

拖曳组件后报错 Cannot read properties of undefined (reading 'cols') #1

Open 12gameRensheng opened 2 years ago

12gameRensheng commented 2 years ago

image

node版本:v16.15.0 npm 版本: 8.5.5 其他扩展包版本信息: image

环境:window

loogn commented 2 years ago

线下升级到"element-plus": "^2.2.6",也没发现错误,你是拖拽每个控件都是这样吗?

12gameRensheng commented 2 years ago

对的 大佬 我引用时没有报错 但是一拖曳 每个组件都会报那个错误 还需要我提供什么配置文件吗 或者我加你qq或微信 你帮我看看

` { "name": "vue-next-admin", "version": "2.0.2", "description": "vue3 vite next admin template", "author": "lyt_20201208", "license": "MIT", "scripts": { "dev": "vite --force", "build": "vite build", "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/" }, "dependencies": { "@element-plus/icons-vue": "^1.0.0", "@tmagic/editor": "^1.0.2", "@tmagic/form": "^1.0.2", "amis": "^2.0.0", "axios": "^0.26.0", "clipboard": "^2.0.11", "cnpm": "^8.2.0", "countup.js": "^2.1.0", "cropperjs": "^1.5.12", "echarts": "^5.3.0", "echarts-gl": "^2.0.9", "echarts-wordcloud": "^2.0.0", "element-plus": "^2.2.6", "element-plus-form-designer": "^0.1.5", "jsplumb": "^2.15.6", "lru-cache": "^7.10.2", "md5": "^2.3.0", "mitt": "^3.0.0", "mock": "^0.1.1", "nprogress": "^0.2.0", "print-js": "^1.6.0", "qrcodejs2-fixes": "^0.0.2", "qs": "^6.10.5", "screenfull": "^6.0.1", "sortablejs": "^1.14.0", "splitpanes": "^3.1.1", "vue": "^3.2.31", "vue-clipboard3": "^1.0.1", "vue-grid-layout": "^3.0.0-beta1", "vue-i18n": "^9.1.9", "vue-router": "^4.0.13", "vue3-json-viewer": "^2.2.2", "vuex": "^4.0.2", "wangeditor": "^4.7.12" }, "devDependencies": { "@types/md5": "^2.3.2", "@types/node": "^17.0.21", "@types/nprogress": "^0.2.0", "@types/qs": "^6.9.7", "@types/sortablejs": "^1.10.7", "@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/parser": "^5.13.0", "@vitejs/plugin-vue": "^2.2.4", "@vitejs/plugin-vue-jsx": "^1.3.10", "@vue/compiler-sfc": "^3.2.31", "dotenv": "^16.0.0", "eslint": "^8.10.0", "eslint-plugin-vue": "^8.5.0", "prettier": "^2.5.1", "sass": "^1.49.9", "sass-loader": "^12.6.0", "typescript": "^4.6.2", "vite": "^2.8.6", "vue-eslint-parser": "^8.3.0" }, "browserslist": [ "> 1%", "last 2 versions", "not dead" ], "bugs": { "url": "https://gitee.com/lyt-top/vue-next-admin/issues" }, "engines": { "node": ">=12.0.0", "npm": ">= 6.0.0" }, "keywords": [ "vue", "vue3", "vuejs/vue-next", "element-ui", "element-plus", "vue-next-admin", "next-admin" ], "repository": { "type": "git", "url": "https://gitee.com/lyt-top/vue-next-admin.git" } }

`

loogn commented 2 years ago

先自测一下看看: 1,把我的源码clone下来,运行看是否有问题 2,直接把源码里组件那块复制到你的项目中,再试试