@antv/dumi-theme-antv 0.3.0-beta.22 → 0.3.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.js +1 -5
- package/dist/pages/Examples/components/GalleryPageContent/index.js +2 -1
- package/dist/pages/Examples/utils.d.ts +1 -0
- package/dist/pages/Examples/utils.js +3 -0
- package/dist/slots/Features/index.module.less +2 -2
- package/package.json +1 -1
|
@@ -14,15 +14,12 @@ import React, { useState } from 'react';
|
|
|
14
14
|
import { Anchor, Menu } from 'antd';
|
|
15
15
|
import { useLocale } from 'dumi';
|
|
16
16
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
17
|
+
import { getCategoryId } from "../../../../utils";
|
|
17
18
|
import styles from "../../../../index.module.less";
|
|
18
19
|
var MenuIcon = createFromIconfontCN({
|
|
19
20
|
scriptUrl: '//at.alicdn.com/t/font_470089_1lnym745udm.js' // generated by iconfont.cn
|
|
20
21
|
|
|
21
22
|
});
|
|
22
|
-
|
|
23
|
-
function getCategoryId(tid, eid) {
|
|
24
|
-
return [tid, eid].join('-').replace(/\s/g, '');
|
|
25
|
-
}
|
|
26
23
|
/**
|
|
27
24
|
* LeftMenu
|
|
28
25
|
*
|
|
@@ -31,7 +28,6 @@ function getCategoryId(tid, eid) {
|
|
|
31
28
|
* @author YuZhanglong <loveyzl1123@gmail.com>
|
|
32
29
|
*/
|
|
33
30
|
|
|
34
|
-
|
|
35
31
|
export var LeftMenu = function LeftMenu(props) {
|
|
36
32
|
var exampleTopics = props.exampleTopics;
|
|
37
33
|
|
|
@@ -7,6 +7,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { useLocale } from 'dumi';
|
|
9
9
|
import { DemoCard } from "./DemoCard";
|
|
10
|
+
import { getCategoryId } from "../../utils";
|
|
10
11
|
import styles from "../../index.module.less";
|
|
11
12
|
/**
|
|
12
13
|
* Examples 首页内容预览组件
|
|
@@ -63,7 +64,7 @@ export var GalleryPageContent = function GalleryPageContent(props) {
|
|
|
63
64
|
return /*#__PURE__*/React.createElement("div", {
|
|
64
65
|
key: i
|
|
65
66
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
66
|
-
id:
|
|
67
|
+
id: getCategoryId(example.targetTopic.id, example.id)
|
|
67
68
|
}, example.title[locale.id]), /*#__PURE__*/React.createElement("ul", {
|
|
68
69
|
className: styles.galleryList
|
|
69
70
|
}, example.demos.map(function (demo) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getCategoryId(topicId: any, exampleId: any): string;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
font-size: 2.8em;
|
|
24
24
|
padding-left: 4.06%;
|
|
25
25
|
font-weight: 500;
|
|
26
|
-
margin:
|
|
26
|
+
margin: 17px 0 0 0;
|
|
27
27
|
position: relative;
|
|
28
28
|
height: min-content;
|
|
29
29
|
color: #fff;
|
|
@@ -197,4 +197,4 @@
|
|
|
197
197
|
display: block;
|
|
198
198
|
z-index: 2;
|
|
199
199
|
}
|
|
200
|
-
}
|
|
200
|
+
}
|