Git Product home page Git Product logo

luckysheet-vue-importandexport's Introduction

luckysheet-vue

English| 简体中文

Introduction

This is a simple project that shows the use of Luckysheet and Luckyexcel in a vue cli3 project

Note

  1. lintOnSave is set to false, otherwise an error will be reported
  2. In some cases, you need to use $nextTick,then, use the luckysheet initialization method in it
  3. The core code is in HelloWorld.vue

Development

Requirements

Node.js Version >= 6

Installation

npm install
npm install exceljs
npm install FileSaver

Development

npm run serve

Package

npm run build

Resources

License

MIT

Copyright (c) 2020-present, mengshukeji

luckysheet-vue-importandexport's People

Contributors

oy-paddy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

luckysheet-vue-importandexport's Issues

一些补充

  1. RGB 转为 16进制,Exceljs不支持RGB颜色
function colorHex (color) {
        // RGB颜色值的正则
        var reg = /^(rgb|RGB)/;
        if (reg.test(color)) {
            var strHex = "#";
            // 把RGB的3个数值变成数组
            var colorArr = color.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
            // 转成16进制
            for (var i = 0; i < colorArr.length; i++) {
                var hex = Number(colorArr[i]).toString(16);
                if (hex === "0") {
                    hex += hex;
                }
                strHex += hex;
            }
            return strHex;
        } else {
            return String(color);
        }
    }

导入5m以上的excel文件可能会导致页面崩溃

luckysheet导入大的(上万条数据)的excel时,dom构建时间过长甚至崩溃。
尝试使用outlook网页版的excel打开,发现它对加载做了优化,滚动的时候才会加载后面的内容。
建议luckysheet加入懒加载优化,从而降低dom性能消耗。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.