提交 617aff58460318e8b1ee250aaaa2ce12be786228

作者 sorrycc
1 个父辈 3ca5cf23

add category

@@ -54,6 +54,7 @@ function parseJSON(root) { @@ -54,6 +54,7 @@ function parseJSON(root) {
54 img, 54 img,
55 previewUrl: '', 55 previewUrl: '',
56 features, 56 features,
  57 + ...(pkg.block && pkg.block.category ? { category: pkg.block.category } : {}),
57 }); 58 });
58 return memo; 59 return memo;
59 }, []); 60 }, []);
@@ -3,5 +3,8 @@ @@ -3,5 +3,8 @@
3 "description": "Demo block of umi, with antd.", 3 "description": "Demo block of umi, with antd.",
4 "dependencies": { 4 "dependencies": {
5 "antd": "^3.10.9" 5 "antd": "^3.10.9"
  6 + },
  7 + "block": {
  8 + "category": "脚手架"
6 } 9 }
7 } 10 }
@@ -3,5 +3,8 @@ @@ -3,5 +3,8 @@
3 "description": "Blank block for quick start a umi page develop, with mock, dva, service and antd.", 3 "description": "Blank block for quick start a umi page develop, with mock, dva, service and antd.",
4 "dependencies": { 4 "dependencies": {
5 "umi-request": "^1.0.0" 5 "umi-request": "^1.0.0"
  6 + },
  7 + "block": {
  8 + "category": "脚手架"
6 } 9 }
7 } 10 }
@@ -4,5 +4,8 @@ @@ -4,5 +4,8 @@
4 "dependencies": { 4 "dependencies": {
5 "antd": "^3.23.4", 5 "antd": "^3.23.4",
6 "umi-request": "^1.0.0" 6 "umi-request": "^1.0.0"
  7 + },
  8 + "block": {
  9 + "category": "表格"
7 } 10 }
8 } 11 }
注册登录 后发表评论