Comments (7)
Bot detected the issue body's language is not English, translate it automatically.
Title: ✨ [Feature]: How to add custom components and blocks?
from tiny-engine.
@Manson596 您好,当前使用bundle.json的形式支持的是我们引入第三方组件,而我们自定义区块在tinyengine中因为依赖构建和发布,以及相对应的api。这部分内容需要等到12月份后端开源后,将tiny-engine前后端进行配套后,才能真正的开放。
from tiny-engine.
Bot detected the issue body's language is not English, translate it automatically.
@Manson596 Hello, the current use of bundle.json supports the introduction of third-party components, and our custom blocks depend on building and publishing in tinyengine, as well as the corresponding API. This part of the content needs to wait until the back-end is open sourced in December and the tiny-engine front-end and back-end are matched before it can be truly open.
from tiny-engine.
目前我仿造内置img组件在packages/canvas/src/components/builtin.json等文件添加了自定义组件 设计器中显示正常,但是预览的时候看到接口schemas2code只返回了我自定义的组件名称,并没有返回template结构
from tiny-engine.
Bot detected the issue body's language is not English, translate it automatically.
Currently, I imitate the built-in img component and add a custom component designer to files such as packages/canvas/src/components/builtin.json, which displays normally in the designer. However, when previewing, I see that the interface schemas2code only returns my customized component name, and No template structure is returned
from tiny-engine.
@Manson596 内置组件在画布中正常渲染是简单的组件引用,预览经DSL出码时对这些组件做了转换处理,如Text组件转换为span标签(见vue-generator下的text2Span函数)。
如要添加自定义组件,可参考Text组件转换方式在DSL中进行特殊处理。
from tiny-engine.
Bot detected the issue body's language is not English, translate it automatically.
@Manson596 The normal rendering of built-in components in the canvas is a simple component reference. When the preview is output by DSL, these components are converted. For example, the Text component is converted into a span tag (see the text2Span function under vue-generator).
If you want to add a custom component, you can refer to the Text component conversion method for special processing in DSL.
from tiny-engine.
Related Issues (20)
- 🐛 [Bug]: 无法加载第三方组件 HOT 13
- 🐛 [Bug]: 生成本地代码弹窗无勾选列表 HOT 5
- 🐛 [Bug]: Drag into the TinyForm form, click to generate code, and the input box is displayed as a button HOT 9
- ✨ [Feature]: 路由跳转之类的的出码 HOT 3
- 🐛 [Bug]: 执行 npm run build:prod 报错 HOT 5
- 🐛 [Bug]: Tap Full Screen No Response HOT 2
- 🐛 [Bug]: Button hierarchy issues HOT 7
- 🐛 [Bug]: 添加ElTable和ElTableColumn组件后,在编辑器中ElTableColumn不能选中 HOT 7
- 🐛 [Bug]: 区块编辑内容时,如果点击右上角清除画板内容,右侧属性面板不再展示添加属性按钮 HOT 3
- 🐛 [Bug]: cdn地址管了, 替代cdn HOT 3
- ✨ [Feature]: 通过iframe将tinyEngine嵌入到项目中,项目配置组件的json用postMessage传给tinyEngine,如何正确渲染至画布 HOT 2
- 🐛 [Bug]: 多个区块分类时 区块分类的显示 修改有问题 HOT 5
- 🐛 [Bug]: preview一直处于“页面加载中...”的提示,console提示文件未找到 HOT 15
- 🐛 [Bug]: 无法添加loading HOT 2
- 🐛 [Bug]: 在组件属性中改变size的值未成功,console报错 HOT 1
- 自定义一个类似@opentiny/vue里面的组件并引入tiny-engine平台,编辑时显示,预览和导出代码到tiny-engine-generate-preview时不显示,tiny-engine-generate-preview的项目暂时是可以手动Install解决🐛 [Bug]: HOT 3
- 🐛 [Bug]: elementplus pagination 分页拖拽至画布不显示分页 HOT 6
- 🐛 [Bug]: 右侧的组件属性面板区的样式里面没法通过json配置设置默认值,如我要设置个尺寸宽(W)为 60的默认值 HOT 1
- 🐛 [Bug]: 组件元数据结构规范contentMenu属性右键菜单动作配置了没起效 HOT 1
- 🐛 [Bug]: TinyRadioGroup造成无法操作问题 HOT 2
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 tiny-engine.