帮助文档调整
This commit is contained in:
parent
a4f2f9f8c1
commit
f0182669d5
|
|
@ -27,7 +27,7 @@ function render(props) {
|
|||
if (fontWeight === void 0) { fontWeight = 800; }
|
||||
return data === null || data === void 0 ? void 0 : data.map(function (menuItem) {
|
||||
if (menuItem.children) {
|
||||
return ((0, jsx_runtime_1.jsx)(antd_1.Menu.SubMenu, tslib_1.__assign({ style: { background: '#ffffff', margin: '0px', borderRadius: '0px' }, title: (0, jsx_runtime_1.jsxs)("div", tslib_1.__assign({ style: { display: 'flex', marginLeft: 8, fontWeight: "".concat(fontWeight), fontSize: "".concat(fontSize, "px"), flexDirection: 'row' } }, { children: [menuItem.logo ? ((0, jsx_runtime_1.jsx)(antd_1.Image, { height: 26, width: 26, src: menuItem.logo, preview: false })) : null, (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: { marginLeft: 8 } }, { children: menuItem.label }))] })), onTitleClick: function (e) {
|
||||
return ((0, jsx_runtime_1.jsx)(antd_1.Menu.SubMenu, tslib_1.__assign({ style: { margin: 0, borderRadius: 0 }, title: (0, jsx_runtime_1.jsxs)("div", tslib_1.__assign({ style: { display: 'flex', marginLeft: 8, fontWeight: "".concat(fontWeight), fontSize: "".concat(fontSize, "px"), flexDirection: 'row' } }, { children: [menuItem.logo ? ((0, jsx_runtime_1.jsx)(antd_1.Image, { height: 26, width: 26, src: menuItem.logo, preview: false })) : null, (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: { marginLeft: 8 } }, { children: menuItem.label }))] })), onTitleClick: function (e) {
|
||||
if (menuItem.isArticle) {
|
||||
loadArticles(e.key);
|
||||
}
|
||||
|
|
@ -36,7 +36,7 @@ function render(props) {
|
|||
}
|
||||
else {
|
||||
var isSelected = selectedKeys.includes(menuItem.key);
|
||||
return ((0, jsx_runtime_1.jsx)(antd_1.Menu.Item, tslib_1.__assign({ style: { background: '#ffffff', margin: '0', width: '100%', borderRadius: '0px' }, onClick: function (e) {
|
||||
return ((0, jsx_runtime_1.jsx)(antd_1.Menu.Item, tslib_1.__assign({ style: { margin: 0, width: '100%', borderRadius: 0 }, onClick: function (e) {
|
||||
if (menuItem.type === 'article') {
|
||||
gotoArticleUpsert(e.key, selectedKeys);
|
||||
if (typeof callback === 'function') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue