克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

mini_sheet

介绍

向LuckySheet致敬!阅读LuckySheet源码的过程中,从小到大重构学习前端开发技术。

安装教程

  1. 下载并安装 Visual Studio Code -> Terminal -> New Terminal -> 在命令行执行以下命令
  2. npm install
  3. npm install gulp -g
  4. npm run dev

使用说明

DEVELOP

npm run dev

PACKAGE

npm run build

Google浏览器 http://localhost:3000/



## 软件架构
LuckySheet文档: https://mengshukeji.github.io/LuckysheetDocs/
源码分析目录:https://blog.csdn.net/u010593516/article/details/109604358

### HTML元素
   div id="luckysheet-grid-window-1"
    canvas id="luckysheetTableContent"
     table class="luckysheet-grid-window-2"
      div class="luckysheet-left-top" 左上角全选
      div id="luckysheet-cols-h-c"  列标题栏
      div id="luckysheet-rows-h" 行标题栏
      div id="luckysheet-cell-loading"  页面加载进度条
      div id="luckysheet-cell-main"  单元格区域

源代码行数

资源浏览器 -> src 目录 -> 鼠标右键 -> Git bash here -> 命令行执行

$ find . "(" -name "*.js" ")" -print | xargs wc -l
    12 ./config.js
    55 ./controllers/constant.js
    73 ./controllers/handler.js
    57 ./controllers/resize.js
   140 ./controllers/sheetmanage.js
    79 ./controllers/sheetSearch.js
    38 ./core.js
    26 ./global/createdom.js
   556 ./global/draw.js
   155 ./global/getdata.js
     6 ./global/loading.js
    24 ./global/refresh.js
    67 ./global/rhchInit.js
    31 ./global/scroll.js
    85 ./global/setdata.js
    17 ./global/validate.js
    10 ./index.js
     7 ./plugins/js/clipboard.min.js
     1 ./plugins/js/crypto-api.min.js
     7 ./plugins/js/html2canvas.min.js
     0 ./plugins/js/jquery-ui.min.js
     7 ./plugins/js/jquery.mousewheel.min.js
     1 ./plugins/js/jstat.min.js
     6 ./plugins/js/localforage.min.js
     3 ./plugins/js/lodash.min.js
     0 ./plugins/js/spectrum.min.js
    22 ./store/index.js
   159 ./utils/util.js
  1644 total
MIT License Copyright (c) 2021 小声读源码 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

向LuckySheet致敬!阅读LuckySheet源码的过程中,从小到大重构学习前端开发技术。 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化