# luckysheet-vue3-vite **Repository Path**: hjwforever/luckysheet-vue3-vite ## Basic Information - **Project Name**: luckysheet-vue3-vite - **Description**: luckysheet + Vue3 + Vite demo - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 79 - **Forks**: 44 - **Created**: 2022-03-09 - **Last Updated**: 2025-06-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: luckysheet, vue3, vite, Excel, xlsx ## README # Luckysheet + Vue 3 + Vite [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/hjwforever/luckysheet-vue3-vite) [English](./README.md) | 简体中文 ## 简介 这是一个简单的示例项目,展示了如何在 [Vue3](https://vuejs.org/) 及 [Vite](https://vitejs.dev/) 的项目中使用 [Luckysheet](https://github.com/mengshukeji/Luckysheet/) 和 [Luckyexcel](https://github.com/mengshukeji/Luckyexcel)。 ## 在线示例 > 提示: 演示网站中导出文件可能会出现一些问题,但是本地运行该项目可以正常导出文件 1. [Live Demo](https://luckysheet.vercel.app/) 2. [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/hjwforever/luckysheet-vue3-vite) ## 注意 1. 除了需要安装[luckyexcel](https://www.npmjs.com/package/luckyexcel)的依赖,还需要引入`LuckySheet`的样式文件和js文件。 - 全局引入`LuckySheet`: 在[index.html](./index.html)中从cdn源直接引入相关的文件。 - 更多引入方式请参照[官方文档](https://mengshukeji.github.io/LuckysheetDocs/guide/#steps-for-usage)。 2. 关键代码在 [src/components/LuckySheet.vue](./src/components/LuckySheet.vue)。 ## 开发 你可以从`npm`、`yarn`、`pnpm`三种包管理器中任选一种。
npm
安装依赖

  npm install
  
运行项目

  npm run dev
  
构建项目

  npm run build
  
yarn
安装依赖

  yarn install
  
运行项目

  yarn run dev
  
构建项目

  yarn run build
  
pnpm
安装依赖

  pnpm install
  
运行项目

  pnpm run dev
  
构建项目

  pnpm run build
  
## Resources - [Luckysheet](https://github.com/mengshukeji/Luckysheet) - [Luckyexcel](https://github.com/mengshukeji/Luckyexcel) - [Vue3](https://vuejs.org/) - [Vite](https://vitejs.dev/) ## License [MIT](http://opensource.org/licenses/MIT)