vddl icon indicating copy to clipboard operation
vddl copied to clipboard

code

Open zhaozhinan opened this issue 6 years ago • 12 comments

拖拽不同的按钮,对应的添加上对应的html代码段,可以吗

zhaozhinan avatar Apr 19 '18 16:04 zhaozhinan

拖动的是数据,至于对应的html代码,或许可以按照某些约定生成?

hejianxian avatar Apr 20 '18 01:04 hejianxian

@zhaozhinan 像一些在线的表单制作功能,都是固定好数据和模版。例如拖动一个多行输入框(按钮)到列表,在列表作为一个item,可以根据数据的类型来选择不同的模版进行渲染。

hejianxian avatar Apr 20 '18 01:04 hejianxian

这个包vddl支持像这种的吗?可以扩展个demo吗神 @hejianxian

zhaozhinan avatar Apr 20 '18 08:04 zhaozhinan

Demo 我就不写了。你可以看看我的截图!

image

hejianxian avatar Apr 20 '18 08:04 hejianxian

把错误贴上来看看。

或者example,可以跑起来没?

hejianxian avatar Apr 23 '18 01:04 hejianxian

你项目里的example的例子可以跑 移植过来就不行 跑不起来 123445 项目已经发邮件 在store.vue里

zhaozhinan avatar Apr 23 '18 02:04 zhaozhinan

"Cannot find module './Mime'", 这是?

hejianxian avatar Apr 23 '18 02:04 hejianxian

这个错误,看不出和vddl有什么关系

hejianxian avatar Apr 23 '18 02:04 hejianxian

把vddl相关的引用去掉就能跑 不信您看看

zhaozhinan avatar Apr 23 '18 02:04 zhaozhinan

我用npm装完依赖后,执行 npm start 并没有出现你那个报错。只是打开的页面,是空白。

Version: npm 5.4.2 nodejs 8.4.0

[./node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js] 23.9 KiB {app} [built]
[./node_modules/core-js/shim.js] 7.99 KiB {app} [built]
[./node_modules/eventsource-polyfill/dist/browserify-eventsource.js] 852 bytes {app} [built]
[./node_modules/vddl/dist/vddl.runtime.js] 18.1 KiB {app} [built]
[./node_modules/vue/dist/vue.esm.js] 286 KiB {app} [built]
[./node_modules/webpack-hot-middleware/client.js?noInfo=true&reload=true] (webpack)-hot-middleware/client.js?noInfo=true&reload=true 7.18 KiB {app} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 509 bytes {app} [built]
[./src/App.vue] 1.92 KiB {app} [built]
[./src/apis/index.js] 886 bytes {app} [built]
   [0] multi ./build/dev-client babel-polyfill ./src/main.js 52 bytes {app} [built]
[./src/main.js] 542 bytes {app} [built]
[./src/routers/index.js] 772 bytes {app} [built]
[./src/stores/index.js] 169 bytes {app} [built]
    + 562 hidden modules
Child html-webpack-plugin for "index.html":
         Asset      Size  Chunks  Chunk Names
    index.html  1.38 MiB       0  
    Entrypoint undefined = index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./index.html] 968 bytes {0} [built]
    [./node_modules/lodash/lodash.js] 527 KiB {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 509 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 519 bytes {0} [built]
ℹ 「wdm」: Compiled successfully.
> 浏览 http://localhost:8110
> 当前路径 /Users/hejianxian/Downloads/object

hejianxian avatar Apr 23 '18 02:04 hejianxian

要不你试试重装依赖吧,上着班呢 😢

hejianxian avatar Apr 23 '18 02:04 hejianxian

https://stackoverflow.com/questions/32994407/error-cannot-find-module-mime?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

hejianxian avatar Apr 23 '18 04:04 hejianxian