dext7r / vue-amis-sdk

基于amis-editor封装的vue版本,支持vue2,vue3
https://github.com/h7ml/vue-amis-sdk-examples
Apache License 2.0
31 stars 4 forks source link

https://github.com/pangao1990/vue-pywebview-app #1

Closed wanghaisheng closed 1 year ago

wanghaisheng commented 2 years ago

拖拽式生成的代码 我能和这里整合 吗 有一个文件夹

h7ml commented 2 years ago

repo 隐藏权限了吗

wanghaisheng commented 2 years ago

好像是没了

vue-pywebview-pyinstaller.zip

h7ml commented 2 years ago

你的项目是基于vite esmodule的。amis暂不完全支持esmodule方式, 目前amis是在适配esmodule中,相关issues你可以看看 https://github.com/baidu/amis/search?q=vite&type=issues

h7ml commented 2 years ago

image

h7ml commented 2 years ago

测试了下 你的项目可以集成进来

h7ml commented 2 years ago

image

拖拽式生成的代码 我能和这里整合 吗 有一个文件夹

https://github.com/pangao1990/vue-pywebview-pyinstaller/pull/2

wanghaisheng commented 2 years ago

怎么搞怎么搞

wanghaisheng commented 2 years ago

我理解是 通过aims的拖拽式 配合这个amis sdk能生成原生vue code 剩下的就 是import或者直接贴代码到template里去

h7ml commented 2 years ago

这个只能生成json

h7ml commented 2 years ago

生成预览方式你可以看看这里 https://amis-admin-vue.vercel.app/iframe#/

wanghaisheng commented 2 years ago

那你说的集成 相当于是aims底层库引入 然后搭配json做展示?

h7ml commented 2 years ago

是的

h7ml commented 2 years ago

你需要拖拽后生成界面。有两种思路,一种是将生成的json保存到数据库,每次渲染页面前,请求对应的json内容渲染,一种是直接将配置好的json,手动拷贝到页面里。

wanghaisheng commented 2 years ago

第一种我好像见过了已经 https://github.com/amisadmin/fastapi_amis_admin这个应该就是 第二种还没有啥子路 你现在这个相当于editor?但我没明白默认的使用方式是咋样的 咋引入到项目中去

h7ml commented 2 years ago

第一种我好像见过了已经 https://github.com/amisadmin/fastapi_amis_admin这个应该就是 第二种还没有啥子路 你现在这个相当于editor?但我没明白默认的使用方式是咋样的 咋引入到项目中去

我提的pr给你引入了。

思路参考这个 https://h7ml.gitee.io/amis-editor-demo/#/hello-world

wanghaisheng commented 2 years ago

@h7ml 你给的这个 我看不到源码 具体咋操作的 我先用在线编辑器设计界面,得到json 然后使用sdk生成vue 将得到的vue拷贝到src public文件夹

你之前说一种是直接将配置好的json,手动拷贝到页面里。 我看你的图里也是引用nodemodule里面已经渲染的vue文件

wanghaisheng commented 2 years ago

https://github.com/baidu/amis/releases 总算弄得明白了 你这个类似js react的sdk 整个操作方法应该是这样的

a009 commented 2 years ago

@h7ml @wanghaisheng 请建一个QQ或微信群吧,我也在项目中用了vue+amis,方便大家交流,经验共享。

wanghaisheng commented 2 years ago

喊h7ml拉个qq频道

a009 commented 2 years ago

@h7ml 请建个qq群吧,我们一起探索。