Skip to content

Commit

Permalink
fix issue#2
Browse files Browse the repository at this point in the history
  • Loading branch information
killkli committed Nov 30, 2021
1 parent cd5572c commit eb35318
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 11,465 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# A simple Vue3 wrapper for [JSpreadsheet](https://github.com/jspreadsheet/ce)

## *** Update for 0.3 ***
Fixed [Github Issue #2](https://github.com/killkli/vue3_jspreadsheet/issues/2#issue-1059249929)

## *** Update for 0.2.5 ***
Fixed a major problematic setting in package.json, which would cause webpack not to compile imported css from node_modules. For Node & webpack users, please must update to version ^0.2.5!

Expand Down
1 change: 1 addition & 0 deletions dev/serve.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createApp } from 'vue';
import jSuites from "jsuites";
import Dev from './serve.vue';

const app = createApp(Dev);
Expand Down
19 changes: 17 additions & 2 deletions dev/serve.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
<script>
import { defineComponent } from 'vue';
import { defineComponent, ref } from 'vue';
import VueJSpreadsheet from '@/vue3_jspreadsheet.vue';
export default defineComponent({
name: 'ServeDev',
components: {
VueJSpreadsheet
},
setup() {
const tableData = ref([]);
const testFunc = ()=>{
tableData.value = [
['A1', 'B1', 'C1'],
[1,2,3],
[4,5,6]
];
}
console.log(tableData);
return {
tableData,testFunc
}
}
});
</script>

<template>
<div id="app">
<VueJSpreadsheet />
<VueJSpreadsheet v-model="tableData" />
<button @click="testFunc">test</button>
</div>
</template>
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3_jspreadsheet",
"version": "0.2.6",
"version": "0.3",
"private": false,
"description": "A simple Vue3 wrapper for JSpreadsheet module, which is awesome in itself.",
"main": "dist/vue3_jspreadsheet.ssr.js",
Expand All @@ -22,6 +22,7 @@
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"
},
"dependencies": {
"jsuites": "^4.9.22"
},
"devDependencies": {
"@babel/core": "^7.14.6",
Expand All @@ -46,7 +47,8 @@
"vue": "^3.0.5"
},
"peerDependencies": {
"vue": "^3.0.5"
"vue": "^3.0.5",
"jsuites": "^4.9.22"
},
"engines": {
"node": ">=12"
Expand Down
Loading

1 comment on commit eb35318

@killkli
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #2

Please sign in to comment.