Comments (3)
我看下代码等给你提pr
其实这种需求是这样的:div->button,这个复合组件,button 已经是预设的组件,那么在这个复合组件我只需要设置复合组件的属性,不用配置button的属性了,在复合组件内部能识别出来button这个组件,并按照button的editsetting 返回给复合组件
from gaea-editor.
preComponents 之前没有考虑清楚,所以也许用起来比较别扭或者有问题,最初的想法 preComponents = 已有普通组件 + 一些内置 props 配置,比如一个 Button,可以通过预设组件,裂解为三个:primary 样式的 Button,disabled 的 Button,虚线边框的 Button,这些配置如果不放出来让用户改,就等于是固化写死了的。
另外组合组件这个版本似乎没有做进去,可以考虑提 PR。
from gaea-editor.
preComponents 之前没有考虑清楚,所以也许用起来比较别扭或者有问题,最初的想法 preComponents = 已有普通组件 + 一些内置 props 配置,比如一个 Button,可以通过预设组件,裂解为三个:primary 样式的 Button,disabled 的 Button,虚线边框的 Button,这些配置如果不放出来让用户改,就等于是固化写死了的。
另外组合组件这个版本似乎没有做进去,可以考虑提 PR。
我理解了,其实type=primary,danger ,还有disabled这些是可以通过面板配置出来的。
其实第三方的组件有时候是需要hoc 或者其他方式改一下的
比如button,这个,一般都是这么写<Button>text</Button>
,你只能将配置props的方式传给内部的antd组件
from gaea-editor.
Related Issues (20)
- 克隆项目 npm run start 报错 HOT 2
- Uncaught ReferenceError: Save is not defined HOT 2
- src/components/box-editor/src/box-editor/box-editor.component.tsx报错 HOT 1
- npm run docs 后浏览器提示https不安全 HOT 1
- Local development run,got a mistake HOT 1
- 给组件设置margin后,hover框偏移
- [教程-图文] 关于在Window里面使用WSL(Liunx子系统)来开发gaea-editor HOT 2
- [BUG] 当属性过多的时候,无法点击到对应的添加事件的按钮 HOT 1
- window安装了包之后,启动 HOT 3
- npm run docs运行不起来 HOT 2
- 引入Editor报错,Xe.create is not a function HOT 5
- 如何初始化编辑器布局? HOT 2
- 代码没法运行 , 但是不知道什么报错 HOT 3
- 请问 container 组件的 Grow参数是什么用的 ? HOT 1
- 钉钉二维码过期 HOT 1
- npm run start 报错
- 有没有用 JavaScript 或 vue 写的类似可视化搭建库
- 源码代码找半天
- 请问如何获取editor component onchange event?
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 gaea-editor.