SpreadJS Overview--破解版网上轻松找到
SpreadJS is the most comprehensive spreadsheet solution for enterprise JavaScript development.

It combines grid capabilities and spreadsheet functionality to offer a complete Excel-like experience, including tables, charts, shapes, sparklines, high-speed calculation engine, conditional formatting, sorting and filtering along with extensive support for importing and exporting native Excel spreadsheets with no Excel dependencies. Some exclusive features like barcodes, rich text, cell buttons, cell dropdowns and range templates are also provided to assist developers in creating flawless JavaScript applications.

Use the SpreadJS widget to create and manage spreadsheets, advanced data grids, interactive dashboards, analytical charts, business intelligence reports, well-defined data entry forms and much more.

Microsoft and Excel are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other brand and product names are trademarks or registered trademarks of their respective holders.

SpreadJS with Vue

SpreadJS supports Vue - a JavaScript framework that provides developers with distinct tools to help them build complex user interfaces and web applications.

Using Node Package Manager

Vue 3

  1. Create a Vue Project

    Open the command prompt window and type the following commands to create a simple Vue project.

    npm install -g @vue/cli
    vue create spreadjs-quickstart :: Here, select Vue 3.
    cd spreadjs-quickstart
    npm run serve

    After you finish, the Vue project will be created at the specified location in the directory. For more information on how to create a Vue project, refer to Quick Start | Vue.js.

  2. Import SpreadJS Vue Module in Project

    Install SpreadJS Vue modules in your project using the following command:

    npm install @grapecity/spread-sheets-vue
    npm install @grapecity/spread-sheets
  3. Use SpreadJS in Vue application

    Modify the main.js file by using the sample code given below:

    import { createApp } from 'vue'
    import App from './App.vue'
    import { GcSpreadSheets, GcWorksheet, GcColumn } from '@grapecity/spread-sheets-vue'let app = createApp(App);
    app.component('gc-spread-sheets', GcSpreadSheets);
    app.component('gc-worksheet', GcWorksheet);
    app.component('gc-column', GcColumn);
    app.mount("#app");

    Modify the App.vue file by using the sample code given below:

    <template><div id="spread-host"><gc-spread-sheets hostClass="spreadHost" @workbookInitialized="initSpread"><gc-worksheet><gc-column> </gc-column></gc-worksheet></gc-spread-sheets></div>
    </template><script>import "@grapecity/spread-sheets/styles/gc.spread.sheets.excel2016colorful.css";import * as GC from "@grapecity/spread-sheets";export default {name: "app",components: {},data() {return {};},methods: {initSpread: function (spread) {this.spread = spread;let sheet = this.spread.getActiveSheet();sheet.getCell(0, 0).vAlign(GC.Spread.Sheets.VerticalAlign.center).value("SpreadJS");},},};
    </script><style>.spreadHost {width: 800px;height: 800px;}
    </style>
  4. Save and Run the Application

    npm run serve

Vue 2

  1. Create a Vue Project

    Open the command prompt window and type the following commands to create a simple Vue project.

    npm install -g @vue/cli
    npm i -g @vue/cli-init
    vue init webpack spreadjs-quickstart :: Here, select Vue 2.
    cd spreadjs-quickstart
    npm run dev 

    After you finish, the Vue project will be created at the specified location in the directory. For more information on how to create a Vue project, refer to Installation — Vue.js.

  2. Import SpreadJS Vue Module in Project

    Install @grapecity/spread-sheets-vue in your project using the following command:

    npm install @grapecity/spread-sheets-vue
  3. Use SpreadJS in Vue application

    Modify the App.vue file as per your requirements. Changes will be reflected when the browser window is refreshed. As an example, you can use the sample code given below:

    <template><div><gc-spread-sheets:hostClass='hostClass'><gc-worksheet:dataSource="dataTable":autoGenerateColumns = 'autoGenerateColumns'><gc-column:width="width":dataField="'price'":visible = 'visible':formatter = 'formatter':resizable = 'resizable'></gc-column></gc-worksheet></gc-spread-sheets></div>
    </template>
    <script>import '@grapecity/spread-sheets/styles/gc.spread.sheets.excel2016colorful.css'import  '@grapecity/spread-sheets-vue'export default {data(){return {hostClass:'spread-host',autoGenerateColumns:true,width:300,visible:true,resizable:true,formatter:"$ #.00"}},computed:{dataTable(){let dataTable = [];for (let i = 0; i < 42; i++) {dataTable.push({price: i + 0.56})}return dataTable}}}
    </script>
    <style scoped>
    .spread-host {width: 500px;height: 600px;
    }
    </style>
  4. Save and Run the Application

    npm run dev

Using Traditional HTML

Vue 2

SpreadJS can be used with Vue 2 using traditional HTML. This method involves the following steps:

  1. Create a HTML page

    As the first step, you need to create an HTML page.

  2. Add SpreadJS and Vue-SpreadJS to HTML template

Add references to the gc.spread.sheets.all.*.*.*.min.jsgc.SpreadJS.*.*.*.css and gc.spread.sheets.vue.*.*.*.js files in the HTML template (i.e. your index.html file).

  1. Use SpreadJS in Vue application

    Now, you can use SpreadJS in your Vue application. As an example, you can use the sample code given below:

    <!DOCTYPE html>
    <html lang="en">
    <head><meta charset="UTF-8"><title>Hello SpreadJS Vue</title><link rel="stylesheet" href="lib/gc.spread.sheets.excel2016colorful.0.0.0.css" type="text/css"/><style>#app{width: 100%;height:100%;}.vue-demo{width: 800px;height:400px;margin: 0 auto;}</style>
    </head>
    <body>
    <div id="app"><app></app>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="lib/gc.spread.sheets.all.0.0.0.js"></script>
    <script src="lib/gc.spread.sheets.vue.js"></script>
    <script type="text/x-template" id="app-template"><div><gc-spread-sheetsv-bind:hostClass='hostClass'@workbookInitialized='spreadInitHandle'><gc-worksheet  ></gc-worksheet></gc-spread-sheets></div>
    </script>
    <script type="text/javascript">window.onload = function () {Vue.component('app', {template: '#app-template',data:function () {return {hostClass: "vue-demo"}},methods: {spreadInitHandle: function (spread) {window.mySpread = spread;console.log('now you can also get spread from window');}}});new Vue({el:"#app",})}
    </script>
    </body>
    </html> 

    The SpreadSheets, Worksheet, and Column are the basic elements of tag hierarchy. Other elements work by setting them. The main tag hierarchy is:

    <gc-spread-sheets>
    <gc-worksheet>
    <gc-column></gc-column>...
    </gc-worksheet>...
    </gc-spread-sheets>

SpreadJS 15.2.3 黄金十月美好版相关推荐

  1. 《系统玩家自强不息十月增强版》ISO下载

    <系统玩家自强不息十月增强版>ISO下载 2009年10月21日 星期三 17:01 <系统玩家自强不息十月增强版> +++++++++++++++++++++++++++++ ...

  2. SpreadJS 15.0 vs SpreadJS 14.0 Patch

    SpreadJS 15 Adds new data-bound table view that includes a relational data manager. 使用 SpreadJS 的在线表 ...

  3. IDPhotoStudio(证件照打印软件) v2.15.6.65中文绿色便携版

    点击下载来源:IDPhotoStudio(证件照打印软件) v2.15.6.65中文绿色便携版 IDPhotoStudio是一款功能强大.简单易用的证件照打印软件,可用于创建和打印文档照片.IDPho ...

  4. 管理类联考——英语二——技巧篇——写作——A节——书信——九类书信黄金句型(背诵版)

    九类书信黄金句型(背诵版) 1.询问信 询问信开头常用句式 l would be grateful if you could send me information about. . . l am w ...

  5. Visual Studio “15”第三个预览版发布

    微软发布了Visual Studio 2015后继版本Visual Studio "15" (VS15)的第三个预览版本.目前为止,VS15延续了开发过程的迭代特性,升级了IDE的 ...

  6. 全功能版SEO动态寄生虫-15项功能霸屏排名版

    2019全功能版SEO动态寄生虫泛目录,那么值得一说的,寄生虫同样有Shell站群功能,通过不同的Shell生成,客户端会返回URL数据到服务器端,服务器端记录下此次的繁殖数据,在下次不同的Shell ...

  7. iOS / iPadOS 15.7.4发布安全更新 旧版iPhone和ipad无法升级系统解决方法

    苹果于昨日面向无法升级到 iOS / iPadOS 16 的旧款 iPhone 和 iPad,发布了 iOS / iPadOS 15.7.4 更新.本次更新并未引入新的功能,而是重点修复了存在于 We ...

  8. 4.15早盘黄金行情平平,白银TD纸白银行情分析

    消息面: 昨晚(4月13日)公布的美国3月份CPI(消费者物价指数)同比上涨2.6%,好于预期(2.5%),并远高于2月份的1.7%:除去食品.能源的核心消费者物价指数同比上涨1.6%,好于预期的1. ...

  9. 15个SaaS问答(图文并茂版)

  10. 2017.3.15 审查(黄金) 思考记录

    这个题由于满足递归的性质,所以可以用 ac自动机 + 栈 处理 然并卵,莫名T了一个点. #include<iostream> #include<cstdio> using n ...

最新文章

  1. 小米5x_除了一亿像素,对于小米CC9pro可能你还要了解这些
  2. 帝人製机--适合的机遇--遇到恰到好处的产品--工业机器人减速机造就一个百年企业
  3. Resin的安全性ip限制
  4. [渝粤教育] 郑州升达经贸管理学院 大学英语混合式课程 参考 资料
  5. Linux网络编程一步一步学-UDP方式点对点通讯
  6. 太空大战背景移动的几种方式
  7. dbeaver查看执行计划_SAP学习基础篇(52):PP模块-物料需求计划
  8. 2010 模板下载 罗斯文_利用模板建立ACCESS数据库—ACCESS图解操作系列(二)
  9. Linux 下载工具推荐: Motrix qbittorrent
  10. CentOS6.7 SSH安装与配置
  11. 微信群机器人管理系统源码
  12. 模拟信号与数字信号的本质区别
  13. 公有云、私有云、私有化_私有云与公共云的评估
  14. 洛谷 P1562 智破连环阵 题解(搜索)
  15. python逻辑回归模型建模步骤_Python逻辑回归——建模-评估模型
  16. 从零开始 verilog 以太网交换机(一)架构分析
  17. 关于Navicat到期的办法(亲测有效)
  18. c语言中优先级劣后级,基金优先级与劣后级之间的区别是什么?
  19. 4.8 范德蒙德行列式
  20. Word快速转换幻灯片文稿(转)

热门文章

  1. WPE封包外挂教程(上)
  2. vijos1214——伤心的AsukaNoKaze
  3. HTML5期末大作业:我的家乡网站设计4
  4. 图像识别从零写出dnf脚本关键要点
  5. [短线是银]条件选股公式集源码!
  6. 遥感图像处理学习一、概念及组成
  7. java 移位运算_java移位运算
  8. linuX开发板eop下载器,EOP乐谱架软件|EOP乐谱架(Everyone Piano插件)下载 V1.3.12.2 最新版 - 比克尔下载...
  9. c2c运营流程图_电商运营流程图模板分享,运营的核心都在这里了,快来拿走吧...
  10. 知到网课教师口语艺术考试题库(含答案)