Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderXXX 写法不支持 #66

Open
eightHundreds opened this issue Nov 21, 2023 · 0 comments
Open

renderXXX 写法不支持 #66

eightHundreds opened this issue Nov 21, 2023 · 0 comments

Comments

@eightHundreds
Copy link

import React from "react";
import { definePage } from "@music163/tango-boot";
import { Page, Section, Button, Input, FormilyForm } from "@music163/antd";
class App extends React.Component {
  renderX(){
    return <Button>666</Button>
  }
  render() {
    return (
      <Page title={tango.stores.app.title}>
        <Section title="Section Title">
        {this.renderX()}</Section>
        <Section>
          <Button>button</Button>
          <Input />
        </Section>
      </Page>
    );
  }
}
export default definePage(App);

把这个丢到tango里, renderX里的组件可以拖拽,到另一个地方, 但表现上是复制,而不是移动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant