Commit 97d693e7 authored by 叶飞's avatar 叶飞

add:list

parent d1d64fc7
{ {
"version": "independent", "version": "independent",
"npmClient": "yarn", "npmClient": "npm",
"useWorkspaces": true, "useWorkspaces": true,
"changelog": { "changelog": {
"repo": "test/winsdom-components", "repo": "test/winsdom-components",
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
"pre-commit": "pretty-quick --staged", "pre-commit": "pretty-quick --staged",
"commit-msg": "node scripts/verifyCommit.js" "commit-msg": "node scripts/verifyCommit.js"
}, },
"publishConfig": { "publishConfig": {
"registry": "https://g.civnet.cn:4873" "registry": "https://g.civnet.cn:4873"
}, },
"size-limit": [ "size-limit": [
...@@ -114,6 +114,12 @@ ...@@ -114,6 +114,12 @@
"limit": "100 s", "limit": "100 s",
"webpack": false, "webpack": false,
"running": false "running": false
},
{
"path": "packages/list/dist/**/*.js",
"limit": "100 s",
"webpack": false,
"running": false
} }
] ]
} }
console.log('hello world'); export default 'hello world';
# `list`
> TODO: description
## Usage
```
const list = require('list');
// TODO: DEMONSTRATE API
```
{
"name": "list",
"version": "1.0.0",
"description": "> TODO: description",
"author": "yefei <947371421@qq.com>",
"homepage": "",
"license": "ISC",
"main": "lib/list.js",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib"
],
"publishConfig": {
"registry": "https://g.civnet.cn:4873/"
},
"repository": {
"type": "git",
"url": "https://g.civnet.cn:8443/test/wisdom-components.git"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"antd": "^4.7.3",
"prop-types": "^15.7.2",
"react": "^17.0.1"
}
}
import React from 'react';
import List from '../index';
export default () => {
return <List />;
};
import React from 'react';
class List extends React.Component {
constructor(props) {
super(props);
this.state = {
// eslint-disable-next-line react/no-unused-state
name: 'list',
};
}
render() {
return <>list</>;
}
}
export default List;
---
title: ProList - 标准列表
nav:
title: 组件
path: /components
group:
path: /
---
# ProList 标准列表
页内容器卡片,提供标准卡片样式,卡片切分以及栅格布局能力。
## 何时使用
- 需要一个标准卡片容纳内容时。
- 需要多个卡片栅格,gutter 布局时。
- 需要进行卡片内切分布局时。
- 需要卡片可折叠时。
<code src="./demos/index.js">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment