Comments (5)
@WangYi0220
src/store/modules/pageDesign.js里面有这个方法导出json数据
你看下就应该知道怎么把json设置回去了
from pagedesign.
感谢,已经成功回显
from pagedesign.
@CB-ysx 您好, 这个模板也是json形式的吗? 哪个位置能加载这个模板?
from pagedesign.
@ancin 可以写一个setWidgetJsonData方法,传模板的json数据,进行赋值。
setWidgetJsonData(store, {page, widgets}) {
store.state.dPage = page;
store.state.dWidgets = widgets;
}
大概这样子,可能还有其他数据的初始化。
from pagedesign.
感谢
from pagedesign.
Related Issues (20)
- 一个问题 HOT 1
- 生成的图片背景色有两种 HOT 6
- 打包后静态文件打开为空
- 如果增加模板功能就完美了 HOT 2
- 本地和打包到服务器显示不一致 HOT 2
- 我想加个模板的功能 HOT 2
- 此项目可以被商用么 HOT 2
- 在线预览网址打不开了 HOT 3
- 本地运行后点击上传图片按钮无反应 HOT 1
- 有小程序类似的插件吗? HOT 1
- 服务器npm run build 后报错
- json用java生成图片时,文本的字体大小、位置都跟h5生成的不一样,该怎么调啊…… HOT 1
- 有时候字体图片组件拖动不了,报Cannot read property 'uuid' of undefined怎么解决? HOT 2
- 要是有旋转、翻转功能就好了
- 请问你的图标字体在哪里下载的? HOT 3
- 旋转功能
- 请问大佬们 有移动端类似的推荐吗 HOT 2
- 您好,请教一个问题 HOT 2
- save as html HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagedesign.