vue2-excel-grid 1.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 +97 -0
- package/dist/vue2-excel-grid.esm.js +5883 -0
- package/dist/vue2-excel-grid.umd.js +6 -0
- package/package.json +74 -0
- package/src/components/ExcelGrid.vue +3552 -0
- package/src/index.js +9 -0
- package/src/utils/clipboard.js +141 -0
- package/src/utils/excelExport.js +144 -0
- package/src/utils/excelExportWorker.worker.js +140 -0
- package/src/utils/excelImport.js +118 -0
- package/src/utils/excelImportCore.js +247 -0
- package/src/utils/excelImportWorker.worker.js +104 -0
- package/src/utils/fillHandle.js +119 -0
- package/src/utils/headerTree.js +108 -0
- package/src/utils/i18n.js +101 -0
- package/src/utils/merge.js +77 -0
- package/src/utils/outline.js +109 -0
- package/src/utils/selection.js +76 -0
- package/src/utils/virtualScroll.js +148 -0
- package/src/utils/workerFactory.js +4 -0
- package/src/utils/workerFactory.webpack.js +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# vue2-excel-grid
|
|
2
|
+
|
|
3
|
+
Vue 2.6.14 uchun Excel-uslubidagi Grid komponenti — virtual scrolling, freeze panes, merge cells, export/import va boshqa 12 ta funksional bilan.
|
|
4
|
+
|
|
5
|
+
## O'rnatish
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install vue2-excel-grid xlsx
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Asosiy ishlatish
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import Vue from 'vue'
|
|
15
|
+
import Vue2ExcelGrid from 'vue2-excel-grid'
|
|
16
|
+
|
|
17
|
+
Vue.use(Vue2ExcelGrid)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```vue
|
|
21
|
+
<template>
|
|
22
|
+
<excel-grid
|
|
23
|
+
v-model="myData"
|
|
24
|
+
:columns="columns"
|
|
25
|
+
:height="400"
|
|
26
|
+
locale="uz"
|
|
27
|
+
/>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
export default {
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
columns: [
|
|
35
|
+
{ key: 'id', title: '#', width: 50 },
|
|
36
|
+
{ key: 'name', title: 'Ism', width: 150 },
|
|
37
|
+
{ key: 'city', title: 'Shahar', width: 120 }
|
|
38
|
+
],
|
|
39
|
+
myData: [
|
|
40
|
+
{ id: 1, name: 'Ali', city: 'Toshkent' },
|
|
41
|
+
{ id: 2, name: 'Bobur', city: 'Samarqand' }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Asosiy imkoniyatlar
|
|
50
|
+
|
|
51
|
+
- Virtual scrolling (50 000+ qator)
|
|
52
|
+
- Freeze panes, merge cells, grouping/outline
|
|
53
|
+
- Copy/Paste + Paste Special (Excel-style tiling)
|
|
54
|
+
- Fill handle (raqam, sana, hafta kuni, oy ketma-ketligi)
|
|
55
|
+
- Drag-and-drop qatorlar
|
|
56
|
+
- Excel export/import (.xlsx, .xls, .csv, nested headers)
|
|
57
|
+
- Undo/Redo (Ctrl+Z / Ctrl+Y)
|
|
58
|
+
- Select (dropdown) ustun tipi — `type: 'select'` bilan
|
|
59
|
+
- Dinamik cell editability — `cellEditable` prop yoki `col.editable` funksiyasi
|
|
60
|
+
- i18n: `en` | `ru` | `uz` | `uz-Cyrl`
|
|
61
|
+
- Ctrl+click row header — bir-biriga tutashmaydigan qatorlarni tanlash
|
|
62
|
+
|
|
63
|
+
## Hujjatlar
|
|
64
|
+
|
|
65
|
+
To'liq hujjatlar: [docs/](./docs/)
|
|
66
|
+
|
|
67
|
+
- [Getting Started](./docs/getting-started.md)
|
|
68
|
+
- [Cell Selection](./docs/cell-selection.md)
|
|
69
|
+
- [Keyboard Navigation](./docs/keyboard-navigation.md)
|
|
70
|
+
- [Fill Handle](./docs/fill-handle.md)
|
|
71
|
+
- [Copy/Paste](./docs/copy-paste.md)
|
|
72
|
+
- [Resize & Hide](./docs/resize-hide.md)
|
|
73
|
+
- [Grouping](./docs/grouping.md)
|
|
74
|
+
- [Merge Cells](./docs/merge-cells.md)
|
|
75
|
+
- [Drag and Drop](./docs/drag-and-drop.md)
|
|
76
|
+
- [Complex Headers & Slots](./docs/complex-headers-and-slots.md)
|
|
77
|
+
- [Select Column](./docs/select-column.md)
|
|
78
|
+
- [Cell Editability](./docs/cell-editability.md)
|
|
79
|
+
- [Excel Export](./docs/excel-export.md)
|
|
80
|
+
- [Excel Import](./docs/excel-import.md)
|
|
81
|
+
- [API Reference](./docs/api-reference.md)
|
|
82
|
+
|
|
83
|
+
## Demo
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm run demo
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Testlar
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm run test:unit
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Litsenziya
|
|
96
|
+
|
|
97
|
+
MIT
|