帮助文档调整

This commit is contained in:
qsc 2023-07-13 21:47:17 +08:00
parent a4f2f9f8c1
commit f0182669d5
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function render(props) {
if (fontWeight === void 0) { fontWeight = 800; } if (fontWeight === void 0) { fontWeight = 800; }
return data === null || data === void 0 ? void 0 : data.map(function (menuItem) { return data === null || data === void 0 ? void 0 : data.map(function (menuItem) {
if (menuItem.children) { 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) { if (menuItem.isArticle) {
loadArticles(e.key); loadArticles(e.key);
} }
@ -36,7 +36,7 @@ function render(props) {
} }
else { else {
var isSelected = selectedKeys.includes(menuItem.key); 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') { if (menuItem.type === 'article') {
gotoArticleUpsert(e.key, selectedKeys); gotoArticleUpsert(e.key, selectedKeys);
if (typeof callback === 'function') { if (typeof callback === 'function') {