vue2-excel-grid 1.7.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/vue2-excel-grid.esm.js +1193 -587
- package/dist/vue2-excel-grid.umd.js +3 -3
- package/package.json +1 -1
- package/src/components/EgLocalSyncModal.vue +99 -48
- package/src/components/ExcelGrid.vue +258 -122
- package/src/utils/dataHash.js +139 -0
- package/src/utils/i18n.js +32 -24
- package/src/utils/idbStore.js +122 -20
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
- `col.onSelect` callback — fires when a value is picked in a `select`/`treeSelect` column
|
|
75
75
|
- `col.enableSearch` — search box in the `select`/`treeSelect` dropdown; treeSelect searches every level
|
|
76
76
|
- Toolbar — `toolbar` prop: Undo/Redo, Export/Import, theme picker, size switcher, Lock (read-only mode), and Fullscreen; add custom buttons via `toolbarButtons` or the `#toolbar-extra` slot
|
|
77
|
-
- `localSyncKey` prop —
|
|
77
|
+
- `localSyncKey` prop — saves `v-model` data as a local IndexedDB **version history** when the page is being left (tab hidden/closed, not per-edit), deduping identical content via a Web Worker-computed hash; a toolbar button + modal lists versions with a full preview and Save/Restore/Delete, plus a full CRUD `ref` API (`saveLocalVersionNow`, `listLocalVersions`, `getLocalVersion`, `restoreLocalVersion`, `deleteLocalVersion`) for building your own custom UI
|
|
78
78
|
|
|
79
79
|
## Documentation
|
|
80
80
|
|