|
1 | | -# react-base-virtual-list     |
| 1 | +# react-base-virtual-list    [](./CHANGELOG.md) |
2 | 2 |
|
3 | 3 | [中文](README_CN.md) |
4 | 4 |
|
5 | | -React basic virtual list, supports common features and is easy to customize. Support React 18, 19. [Online Demo](https://phphe.github.io/react-base-virtual-list/) |
| 5 | +React basic virtual list, supports common features and is easy to customize. Support React 18, 19. [Online Demo](https://phphe.github.io/react-base-virtual-list/) | [Changelog](./CHANGELOG.md) |
6 | 6 |
|
7 | 7 | ## Features |
8 | 8 |
|
@@ -111,7 +111,7 @@ Irrelevant parts are omitted in the above code. `VirtualListHandle` is a `typesc |
111 | 111 | interface VirtualListHandle { |
112 | 112 | scrollToIndex( |
113 | 113 | index: number, |
114 | | - block?: "start" | "end" | "center" | "nearest" |
| 114 | + block?: "start" | "end" | "center" | "nearest", |
115 | 115 | ): void; |
116 | 116 | getRootElement(): HTMLElement; |
117 | 117 | forceUpdate(): void; |
@@ -142,10 +142,6 @@ You can also use the following third-party CDN url to include it. |
142 | 142 | ## Development |
143 | 143 |
|
144 | 144 | - `lib`: The main files, also the files that are packaged into the library. Running `npm run build` will package the files in this directory into the `dist` folder. The corresponding Vite configuration file is `vite.build.ts`. |
145 | | -- `src`: The files used for development and debugging. Running `npm run dev` will run the code in this directory in the browser. Running `npm run build:web` will package the code in this directory into the `dist` folder. The corresponding Vite configuration file is `vite.config.ts`. |
| 145 | +- `src`: The files used for development and debugging. Running `npm run dev` will run the code in this directory in the browser. Running `npm run demo:build` will package the code in this directory into the `dist-demo` folder. The corresponding Vite configuration file is `vite.config.ts`. |
146 | 146 | - `uno.config.ts`: [unocss](https://github.com/unocss/unocss) configuration file. `unocss` only works in the `src` folder. With the current configuration, you can use `Tailwindcss` style class names. |
147 | | -- `.github/workflows/build.yml`: Some automated actions performed when publishing to GitHub. You can delete or modify it. |
148 | | - |
149 | | -## Changelog |
150 | | - |
151 | | -https://github.com/phphe/react-base-virtual-list/releases |
| 147 | +- `.github/workflows/publish.yml`: Some automated actions performed when publishing to GitHub pages and npmjs.com. You can delete or modify it. |
0 commit comments