MCPcopy
hub / github.com/alibaba/lowcode-engine / Tip

Class Tip

packages/editor-core/src/widgets/tip/tip.tsx:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { postTip } from './tip-handler';
5
6export class Tip extends Component<IPublicTypeTipConfig> {
7 private id = uniqueId('tips$');
8
9 componentWillUnmount() {
10 postTip(this.id, null);
11 }
12
13 render() {
14 postTip(this.id, this.props);
15 return <meta data-role="tip" data-tip-id={this.id} />;
16 }
17}

Callers

nothing calls this directly

Calls 1

uniqueIdFunction · 0.85

Tested by

no test coverage detected