Comments (1)
Component
为了保持组件的可控性, 所有自定义组件都需要继承于此Component, 而不是React.Component.
- 属性
- className [String], 可以将className附加到组件的根元素的class上.
- style [Object], 可以将style附加到组件的根元素的style上.
- 方法
- classNames(className, ..., className), 参数类型参照[1], 返回类型为String.
View
- 属性
- if [any], Vue中的
v-if
的实现, 参考[2]. - show [any], Vue的
v-show
的实现, 参考[3]. - transition [String], Vue的
transition
的实现, 参考[4].
- if [any], Vue中的
注意: React.Children.count(props.children) === 1
References
- https://github.com/JedWatson/classnames
- https://vuejs.org/guide/conditional.html#v-if
- https://vuejs.org/guide/conditional.html#v-show
- https://vuejs.org/guide/transitions.html#Transitioning-Single-Elements-Components
from element-react.
Related Issues (20)
- Pagination: quick next button is wrongly positioned
- Place footer below header of table
- Is this project deprecated ? [question] HOT 1
- Disable onRowClick for one column of row HOT 1
- Form 的 resetFields方法无效 HOT 1
- Table No Data text is not editable HOT 4
- gitter & discord HOT 1
- element-china-area-data 数据中**省-台中市,后面对应的code错误
- Radio.Group组件在苹果手机上需要双击才会实现radio功能,单击会选中单击的,之前选中的没有取消选中
- Tree的checkbox为什么不支持禁用disabled
- 走马灯样式丢失
- DatePicker bug
- table 如何合并单元格?? HOT 1
- Component中添加第二个Tree组件后报错
- el-table-column中formatter函数渲染多次
- 什么时候出ts版本 HOT 1
- tree业务场景太少了
- 颜色选择器如果存于一个FORM里时 点击确定按钮会自动提交FORM
- 一使用就报各种依赖找不到,难道要一个个的手动安装?垃圾
- 只有我一个人遇到了没有与此匹配的重载这个问题吗?
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 element-react.