Giter VIP home page Giter VIP logo

maotu-docs's People

Contributors

yaolunmao avatar

Stargazers

Wayne avatar CrazyZhang avatar Xie avatar Simon avatar  avatar  avatar  avatar

Watchers

 avatar

maotu-docs's Issues

ruoyi-vue-plus导入maotu失败

1.请问maotu能导入到vue2中吗?虽然我试了一下不行,会报错。
2.我在vue3中导入maotu,不论是mt-edit还是mt-preview都没办法使用的样子,其中mt-preview显示的是空白,mt-edit报错
image
请问您知道这个怎么解决吗?不论是导入示例项目的project.vue文件,还是教程中的代码都会报这个错

预览模式批量导入vue组件 显示问题

mt-preview 页面独自渲染 ,按照文档 单独引入vue文件注册显示正常, 批量导入vue 文件,批量注册 页面不显示, 鼠标经过页面组件位置后该组件才显示,如果关闭showPopover,组件就不显示

运行的时候报错

oot@ubuntu:/usr/local/software/maotu/maotu# npm run serve

[email protected] serve
vue-cli-service serve

INFO Starting development server...

ERROR Failed to compile with 1 error 11:33:22 PM

error in ./src/App.vue?vue&type=template&id=7ba5bd90&ts=true

Module parse failed: Unexpected token (5:27)
File was processed with these loaders:

  • ./node_modules/vue-loader/dist/templateLoader.js
  • ./node_modules/vue-loader/dist/index.js
    You may need an additional loader to handle the result of these loaders.
    | const _hoisted_1 = { style: {"width":"100%","height":"100vh"} }
    |

export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
| return (_openBlock(), _createElementBlock("div", _hoisted_1, [
| _createVNode($setup["MtEdit"])

ERROR in ./src/App.vue?vue&type=template&id=7ba5bd90&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/App.vue?vue&type=template&id=7ba5bd90&ts=true) 5:27
Module parse failed: Unexpected token (5:27)
File was processed with these loaders:

  • ./node_modules/vue-loader/dist/templateLoader.js
  • ./node_modules/vue-loader/dist/index.js
    You may need an additional loader to handle the result of these loaders.
    | const _hoisted_1 = { style: {"width":"100%","height":"100vh"} }
    |

export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
| return (_openBlock(), _createElementBlock("div", _hoisted_1, [
| _createVNode($setup["MtEdit"])
@ ./src/App.vue?vue&type=template&id=7ba5bd90&ts=true 1:0-196 1:0-196
@ ./src/App.vue 1:0-72 6:68-74 16:71-18:3 17:29-35 16:2-18:4
@ ./src/main.js 2:0-28 3:10-13

webpack compiled with 1 error

运行指南中的预览报错

image

TypeError: Cannot set properties of undefined (setting 'val')
at maotu.es.js:40792:12
at Array.map ()
at useExportJsonToDoneJson (maotu.es.js:40787:20)
at Proxy.setImportJson (maotu.es.js:41222:79)
at mycompoents.vue?t=1722332362367:10:39
at runtime-core.esm-bundler.js:1548:40
at callWithErrorHandling (runtime-core.esm-bundler.js:202:19)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:209:17)
at hook.__weh.hook.__weh (runtime-core.esm-bundler.js:1528:19)
at flushPostFlushCbs (runtime-core.esm-bundler.js:386:32)

关于组合问题

使用组合后,组合里面的组件如何绑定通过props传递信息,试了
setItemAttrByID,不组合之前可以 传递到组件, 组合后传递不到组件

注册两个组件,为什么 type: "vue",类型的可以执行MtPreview的onEventCallBack函数, type: "custom-svg"类型的不行

{
id: "inputBox",
title: "输入框",
type: "vue",
thumbnail: "/svgs/input.svg",
width: 200,
height: 30,
props: {
modelValue: {
type: "input",
val: "输入框",
title: "文本",
},
},
events: [
{
id: "22",
type: "click",
action: "customCode",
change_attr: [],
custom_code: "$mtEventCallBack($item_info)",
trigger_rule: {
value: null,
},
},
],
},
{
id: "switch",
title: "开关",
type: "custom-svg",
thumbnail: "/svgs/switch.svg",
props: {
state: {
type: "switch",
val: false,
title: "开关",
},
},
events: [
{
id: "23",
type: "click",
action: "customCode",
change_attr: [],
custom_code:
"console.log('测试打印当前组件json',$item_info);\n$mtEventCallBack($item_info)",
trigger_rule: {
value: null,
},
},
],
},
cap

框架菜单栏右侧折叠点击后报错

ResizeObserver loop completed with undelivered notifications.
at handleError (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:299:58)
at eval (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:318:7)

元件上的关联点

请问下可以修改每个元件上面关联点的位置嘛,现在买个元件上面都是8个关联点的

关于 组件 事件 建议

目前组件 事件 有四个 单击 双击 鼠标移入 鼠标移出, 是否可以增加输入框聚焦 失焦 事件, 在本文框输入中如果用鼠标移出触发,存在文本框还在输出 ,而鼠标移动到别的地方的可能性,造成文本框输入不能触发。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.