Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
export default {
exportStatic: {}
}
import { defineConfig } from 'dumi';

export default defineConfig({
title: 'rc-overflow',
favicon:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
logo:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
exportStatic: {},
outputPath: 'docs-dist',
resolve: {
examples: ['none'],
},
styles: [
`
.markdown table {
width: auto !important;
}
`,
]
});
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# rc-overflow 🐾

[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]
[![build status][github-actions-image]][github-actions-url]
[![Codecov][codecov-image]][codecov-url]
[![Dependencies][david-image]](david-url)
[![DevDependencies][david-dev-image]][david-dev-url]
[![bundle size][bundlephobia-image]][bundlephobia-url]
[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![Dependencies][david-image]](david-url) [![DevDependencies][david-dev-image]][david-dev-url] [![bundle size][bundlephobia-image]][bundlephobia-url]

[npm-image]: http://img.shields.io/npm/v/rc-overflow.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-overflow
Expand All @@ -27,15 +21,15 @@ Auto collapse box when overflow

## Live Demo

https://react-component.github.io/overflow/
https://overflow-react-component.vercel.app/

## Install

[![rc-overflow](https://nodei.co/npm/rc-overflow.png)](https://npmjs.org/package/rc-overflow)

## Usage

```tsx
```ts
// TODO
```

Expand Down
3 changes: 3 additions & 0 deletions docs/demo/base.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## base

<code src="../../examples/basic.tsx">
3 changes: 3 additions & 0 deletions docs/demo/blink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## blink

<code src="../../examples/blink.tsx">
3 changes: 3 additions & 0 deletions docs/demo/fill-width.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## fill-width

<code src="../../examples/fill-width.tsx">
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: rc-overflow
---

<embed src="../README.md"></embed>
2 changes: 1 addition & 1 deletion examples/basic.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Overflow from '../src';
import Overflow from 'rc-overflow';
import '../assets/index.less';
import './common.less';

Expand Down
2 changes: 1 addition & 1 deletion examples/blink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Overflow from '../src';
import Overflow from 'rc-overflow';
import '../assets/index.less';
import './common.less';

Expand Down
2 changes: 1 addition & 1 deletion examples/fill-width.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Overflow from '../src';
import Overflow from 'rc-overflow';
import '../assets/index.less';
import './common.less';

Expand Down
2 changes: 1 addition & 1 deletion now.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "dist" }
"config": { "distDir": "docs-dist" }
}
],
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@types/react-dom": "^16.9.10",
"@umijs/fabric": "^2.0.8",
"cross-env": "^7.0.2",
"dumi": "^1.0.38",
"dumi": "^1.1.10",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.1",
"enzyme-to-json": "^3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-table": ["src/index.ts"]
"rc-overflow": ["src/index.tsx"]
}
}
}