🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

ac-spreadsheet

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-spreadsheet

### 简介 **ac-spreadsheet** 是一个在线电子表格组件,依赖于[handsontable](https://github.com/handsontable/handsontable).该组件提供了列宽拖拽、列交换、排序、在线编辑、增减行、动态获取焦点行数据等操作。 ### 安装

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ac-spreadsheet

简介

ac-spreadsheet 是一个在线电子表格组件,依赖于handsontable.该组件提供了列宽拖拽、列交换、排序、在线编辑、增减行、动态获取焦点行数据等操作。

安装

  • 通过npm安装
   npm install ac-spreadsheet --save
  • 国内镜像通过cnpm安装
    cnpm install ac-spreadsheet --save
  • 用友内网通过ynpm安装
ynpm installac-spreadsheet --save

使用

import React, { Component } from 'react';
import HotTable from 'ac-spreadsheet';
class Demo1 extends Component {
    constructor(props) {
        super(props);
        this.data = [
          ['张其', '2019',11 ,'男',90 ],
          ['王收', '2020', 11, '男', 100],
          ['孙武', '2018', 11, '男', 93],
          ['宋佳','2021', 13, '女', 92],
          ['李琦','2021', 15, '女', 99]
        ];
      }
    
      render() {
        return (<HotTable data={this.data}  width="600" height="300" />);
      }
}

API

参数类型默认值说明
settingsobjecthandsontable组件中的所需参数都在这个对象中

开发调试

$ npm install

$ npm run dev

FAQs

Package last updated on 08 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts