为了方便编辑器 hack :(

This commit is contained in:
liaoxuezhi 2019-11-21 17:17:01 +08:00
parent 9cf6d9adde
commit 08dce61461
2 changed files with 10 additions and 2 deletions

View File

@ -201,7 +201,7 @@ export default class Tabs extends React.Component<TabsProps, TabsState> {
: -1;
}
render() {
renderTabs() {
const {
classnames: cx,
classPrefix: ns,
@ -260,6 +260,10 @@ export default class Tabs extends React.Component<TabsProps, TabsState> {
</CTabs>
);
}
render() {
return this.renderTabs();
}
}
@Renderer({

View File

@ -683,7 +683,7 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
);
}
render() {
renderWizard() {
const {className, steps, render, store, mode, classPrefix: ns} = this.props;
const currentStep = this.state.currentStep;
@ -745,6 +745,10 @@ export default class Wizard extends React.Component<WizardProps, WizardState> {
</div>
);
}
render() {
return this.renderWizard();
}
}
function isJumpable(step: any, index: number, currentStep: number, data: any) {