Comments (4)
react 组件间不能继承
from tabs.
var Tabs = require('rc-tabs');
class CarouselPanel extends Tabs.TabPane {
constructor(props) {
super(props);
}
}
class Carousel extends Tabs {
constructor(props) {
super(props);
}
}
Carousel.defaultProps = {
prefixCls: 'rc-carousel'
};
Carousel.CarouselPanel = CarouselPanel;
module.exports = Carousel;
额 但是这样可以跑。Carousel 有很多代码是复用 tabs 😢
from tabs.
不要继承吧,这个react没说可以,后面可能会有问题,你先写着,后面有复用的会抽取成 mixin
from tabs.
👌
from tabs.
Related Issues (20)
- 边框线
- 官网的storybook代码都不能滚动
- can not slide between tabs
- ModalForm with tab closes when clicking ok HOT 1
- alpha 版本在 npm 被错误打上了 latest tag HOT 1
- import {TabPane} from 'rc-tabs' throws an error in typescript HOT 1
- TabPane doesn't shown HOT 2
- 可以为多个tab增加一个group吗?
- 设置 inkBar 为 false 无法隐藏 inkBar HOT 3
- 响应式显示...,在计算的时候,如果标签头存在请求到的数据,那么在计算时是不是有问题,部分电脑存在固定几个标签,没有溢出也显示了... HOT 2
- Can not import "TabPane" HOT 6
- ENOENT: no such file or directory ~demos\:id
- tabListRef.current is null HOT 4
- inkStyle calculation error
- tabs新增新的tab后滚动条没有滚动到激活状态的标签上 HOT 1
- key值不符合document.querySelector语法时错误
- Tabs scroll slowly in firefox some version such as 72.0
- RC-Tabs no longer working HOT 2
- RC-Tabs no longer working HOT 4
- How to disable the initial animation on `inkBar`?
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 tabs.