Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{ className: 'book-name' },
book.title
),
_react2.default.createElement(
'div',
{ className: 'book-author' },
'作者:',
book.author[0]
),
_react2.default.createElement(
_react3.Button,
{ onClick: this.removeResult.bind(this), className: 'mui--z1' },
'重新选择'
)
) : null,
_react2.default.createElement(_react3.Textarea, { hint: '粘贴书籍的全部文本内容', style: { height: 200 }, name: 'book_content', ref: 'bookContent' }),
_react2.default.createElement(
_react3.Button,
{ onClick: this.handleAddBook.bind(this), variant: 'raised' },
'确认添加'
)
)
);
}
}]);
_react2.default.createElement(_branding2.default, null),
_react2.default.createElement(
_react3.Container,
null,
_react2.default.createElement(
_react3.Form,
{ className: 'content-container', action: '#', method: 'post' },
_react2.default.createElement(
'h1',
{ className: 'page-title' },
'添加书籍'
),
_react2.default.createElement(_react3.Input, { onChange: this.handleInputChange.bind(this), value: this.state.bookName, name: 'bookName', label: '书名', floatingLabel: true }),
_react2.default.createElement(_react3.Input, { onChange: this.handleInputChange.bind(this), value: this.state.author, name: 'author', label: '作者', floatingLabel: true }),
_react2.default.createElement(_react3.Input, { onChange: this.handleInputChange.bind(this), value: this.state.cover, name: 'cover', label: '封面', floatingLabel: true }),
_react2.default.createElement(_react3.Textarea, { style: { height: 200 }, onChange: this.handleInputChange.bind(this), value: this.state.bookContent, name: 'bookContent', label: '书籍内容', floatingLabel: true }),
_react2.default.createElement(
_react3.Button,
{ onClick: this.handleAddBook.bind(this), variant: 'raised' },
'确认添加'
)
)
)
);
}
}]);
_react2.default.createElement('img', { src: book.image }),
_react2.default.createElement(
'div',
{ className: 'book-name' },
book.title
),
_react2.default.createElement(
'div',
{ className: 'book-author' },
book.author[0]
)
);
}
}(),
_react2.default.createElement(_react3.Input, { onChange: this.handleInputChange.bind(this), value: this.state.doubanItemId, name: 'doubanItemId', label: '豆瓣条目 ID ', floatingLabel: false }),
_react2.default.createElement(_react3.Textarea, { style: { height: 200 }, onChange: this.handleInputChange.bind(this), value: this.state.bookContent, name: 'bookContent', label: '书籍内容', floatingLabel: false }),
_react2.default.createElement(
_react3.Button,
{ onClick: this.handleAddBook.bind(this), variant: 'raised' },
'确认添加'
)
)
)
);
}
}]);