Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d5afe6e

Browse files
fix: title render params
1 parent e40d9fb commit d5afe6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎example/index.jsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const config = {
5454
enable: true,
5555
showCollapseDetail: true
5656
},
57-
titleRender: (data) => {
58-
return data.title;
57+
titleRender: (title) => {
58+
return title;
5959
},
6060
titleExtIconRender: () => {
6161
return (

‎src/canvas/node.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default class TableNode extends Node {
150150
let titleTextDom = $(`<div class="title-text"></div>`);
151151
$(titleDom).append(titleTextDom);
152152
ReactDOM.render(
153-
titleRender(this.options),
153+
titleRender(title,this.options),
154154
titleTextDom[0]
155155
);
156156
} else {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /