Skip to content

Commit

Permalink
chore: fix dumi website
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Mar 4, 2021
1 parent 7705c4e commit 3a7259e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
21 changes: 5 additions & 16 deletions .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,10 @@ export default defineConfig({
outputPath: '.doc',
exportStatic: {},
styles: [
`a img + svg {
display: none;
}`
],
scripts: [{
content: `
(function () {
var timer = setInterval(function() {
try {
var menuList = document.getElementsByClassName('__dumi-default-menu-list');
menuList[0].childNodes[0].childNodes[0].innerText = '${name}';
clearInterval(timer);
} catch (e) {}
}, 200)
})();
`
}]
.markdown table {
width: auto !important;
}
`,
]
});
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Slider UI component for React

`npm start` and then go to http://localhost:8000


Online examples: https://slider.react-component.now.sh/

## Usage

Expand Down Expand Up @@ -57,7 +57,7 @@ export default () => (

An extension to make Slider or Range support Tooltip on handle.

```jsx
```js
const Slider = require('rc-slider');
const createSliderWithTooltip = Slider.createSliderWithTooltip;
const Range = createSliderWithTooltip(Slider.Range);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@types/react-dom": "^16.9.0",
"@umijs/fabric": "^2.0.0",
"cross-env": "^7.0.0",
"dumi": "^1.0.37",
"dumi": "^1.1.7",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.1",
"enzyme-to-json": "^3.1.2",
Expand Down

0 comments on commit 3a7259e

Please sign in to comment.