This is a React version of the Univer.js spreadsheet demo, converted from the original Vue.js implementation.
- Full-featured spreadsheet with Univer.js
- Custom menu plugins for import, export, and save functionality
- Chinese localization support
- Chart and drawing capabilities
- Formula engine integration
- Node.js (version 16 or higher)
- npm or yarn
- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
src/
├── components/
│ ├── Univer.tsx # Main Univer component
│ └── plugins/ # Custom plugins
│ ├── controllers/ # Plugin controllers
│ ├── locale/ # Localization files
│ └── index.ts # Plugin exports
├── App.tsx # Main App component
├── main.tsx # Application entry point
├── style.css # Global styles
└── utils.ts # Utility functions
The project includes custom menu plugins for:
- Save: Saves the current workbook state
- Import: Imports Excel files into the workbook
- Export: Exports the workbook to Excel format
- React 18
- TypeScript
- Vite
- Univer.js ecosystem
- Less (for styling)
This project is for demonstration purposes.