1.1.8 • Published 3 years ago

zm-spreadsheet v1.1.8

Weekly downloads
22
License
MIT
Repository
github
Last release
3 years ago

zm-spreadsheet

a javascript spreadsheet

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Internationalization

// npm
import Spreadsheet from 'x-data-spreadsheet';

// If you need to override the default options, you can set the override 
// const options = {}; 
// new Spreadsheet('#v-spreadsheet-demo', options);

const s = new Spreadsheet("#v-spreadsheet-demo")
	.loadData({})
	.change(data => {
	 	// save data to db 
	})
	.saveData((state,data) => {
		// state 保存类型(save-draft 保存草稿  save 保存 save-as 另存为)
		// data 表格数据
    console.log(state, data)
  });;

// data validation
s.validate()

translate to Chinese

import zhCN from 'v-spreadsheet/src/locale/zh-cn';
Spreadsheet.locale('zh-cn', zhCN);

For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
1.1.8

3 years ago

1.1.6

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago