arthub-table 0.0.5 → 0.0.6
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 +14 -14
- package/dist/arthub-table.common.js +1 -1
- package/dist/arthub-table.common.js.map +1 -1
- package/dist/arthub-table.umd.js +1 -1
- package/dist/arthub-table.umd.js.map +1 -1
- package/dist/arthub-table.umd.min.js +1 -1
- package/dist/arthub-table.umd.min.js.map +1 -1
- package/dist/types/core/Body.d.ts +1 -1
- package/dist/types/core/DataGrid.d.ts +10 -1
- package/dist/types/core/Footer.d.ts +4 -0
- package/dist/types/core/GroupRow.d.ts +35 -2
- package/dist/types/core/types.d.ts +23 -0
- package/package.json +6 -7
- package/dist/img/ah-icon_audio_pause.55c06fbf.svg +0 -3
- package/dist/img/ah-icon_closeshape.82e52181.svg +0 -3
- package/dist/img/icon_attachment.724d33ba.svg +0 -3
- package/dist/img/icon_default.9ef1a394.svg +0 -5
- package/dist/img/icon_edit.9966e699.svg +0 -3
- package/dist/img/icon_error_dark.2a057cdd.svg +0 -17
- package/dist/img/icon_error_light.ac6763e9.svg +0 -17
- package/dist/img/icon_failure_dark.f68723a7.svg +0 -25
- package/dist/img/icon_failure_light.489a7167.svg +0 -25
- package/dist/img/icon_folder.ea3efcce.svg +0 -11
- package/dist/img/icon_netdisc.d8bbe2e0.svg +0 -4
- package/dist/img/icon_singlearrowright.6adcd336.svg +0 -4
- package/dist/img/icon_totalNum.23a86d16.svg +0 -3
- package/dist/img/icon_transform_dark.033764ea.svg +0 -26
- package/dist/img/icon_transform_light.fa9fbcbd.svg +0 -26
- package/dist/img/img_3d.39b27128.svg +0 -14
- package/dist/img/img_aep.a898e3e7.svg +0 -8
- package/dist/img/img_ai.61f08a0a.svg +0 -8
- package/dist/img/img_audio.e4ada65c.svg +0 -5
- package/dist/img/img_enf.ad88f95d.svg +0 -28
- package/dist/img/img_excel.56663d85.svg +0 -30
- package/dist/img/img_exe.5e3fc198.svg +0 -27
- package/dist/img/img_img.ac2e0d0c.svg +0 -8
- package/dist/img/img_mcp.393ef169.svg +0 -28
- package/dist/img/img_pdf.f4da9922.svg +0 -7
- package/dist/img/img_ppt.d172780f.svg +0 -26
- package/dist/img/img_pxcook.7e9fce57.svg +0 -18
- package/dist/img/img_rarzip7z.e3b1de82.svg +0 -28
- package/dist/img/img_sketch.d49a9bd4.svg +0 -32
- package/dist/img/img_video.b6ac6198.svg +0 -7
- package/dist/img/img_word.0c1d3c88.svg +0 -31
- package/dist/img/img_x2d.6acc94f6.svg +0 -28
- package/dist/img/img_xd.cc23d09a.svg +0 -28
- package/dist/img/matrix-icon_finish.617f5d3e.svg +0 -3
- package/dist/img/matrix-icon_inprogress.3781156a.svg +0 -3
- package/dist/img/matrix-icon_supervise.edae43f0.svg +0 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# arthub-table
|
|
2
2
|
|
|
3
3
|
> High-performance canvas-based table/grid component for Vue 3 with TypeScript support.
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npm install
|
|
26
|
+
npm install arthub-table
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## Quick Start
|
|
@@ -41,8 +41,8 @@ npm install canvas-table
|
|
|
41
41
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
43
|
import { ref } from "vue";
|
|
44
|
-
import { DataGrid } from "
|
|
45
|
-
import type { ColumnConfig } from "
|
|
44
|
+
import { DataGrid } from "arthub-table";
|
|
45
|
+
import type { ColumnConfig } from "arthub-table";
|
|
46
46
|
|
|
47
47
|
const columns = ref<ColumnConfig[]>([
|
|
48
48
|
{ title: "Name", key: "name", width: 200, type: "text" },
|
|
@@ -67,8 +67,8 @@ Cell viewers provide rich data rendering within cells:
|
|
|
67
67
|
|
|
68
68
|
```vue
|
|
69
69
|
<script setup lang="ts">
|
|
70
|
-
import { DataGrid, registerDefaultViewers } from "
|
|
71
|
-
import type { ColumnConfig } from "
|
|
70
|
+
import { DataGrid, registerDefaultViewers } from "arthub-table";
|
|
71
|
+
import type { ColumnConfig } from "arthub-table";
|
|
72
72
|
|
|
73
73
|
// Register all built-in viewers (call once at app startup)
|
|
74
74
|
registerDefaultViewers();
|
|
@@ -169,7 +169,7 @@ const columns = ref<ColumnConfig[]>([
|
|
|
169
169
|
|
|
170
170
|
## TypeScript Types
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
arthub-table exports comprehensive TypeScript types:
|
|
173
173
|
|
|
174
174
|
```typescript
|
|
175
175
|
import type {
|
|
@@ -186,7 +186,7 @@ import type {
|
|
|
186
186
|
// Group types
|
|
187
187
|
GroupRowData,
|
|
188
188
|
GroupedTableRowData,
|
|
189
|
-
} from "
|
|
189
|
+
} from "arthub-table";
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
## Local Development (with AssetMatrix)
|
|
@@ -197,17 +197,17 @@ import type {
|
|
|
197
197
|
|
|
198
198
|
```env
|
|
199
199
|
USE_LOCAL_CANVAS_TABLE=true
|
|
200
|
-
LOCAL_CANVAS_TABLE_PATH=../
|
|
200
|
+
LOCAL_CANVAS_TABLE_PATH=../arthub-table
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
2. Start
|
|
203
|
+
2. Start arthub-table dev server:
|
|
204
204
|
|
|
205
205
|
```bash
|
|
206
|
-
cd
|
|
206
|
+
cd arthub-table
|
|
207
207
|
npm run serve
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
3. Start AssetMatrix with local
|
|
210
|
+
3. Start AssetMatrix with local arthub-table:
|
|
211
211
|
|
|
212
212
|
```bash
|
|
213
213
|
cd AssetMatrix
|
|
@@ -217,11 +217,11 @@ npm run dev:local-canvas
|
|
|
217
217
|
### Using npm link
|
|
218
218
|
|
|
219
219
|
```bash
|
|
220
|
-
# In
|
|
220
|
+
# In arthub-table directory
|
|
221
221
|
npm link
|
|
222
222
|
|
|
223
223
|
# In AssetMatrix directory
|
|
224
|
-
npm link
|
|
224
|
+
npm link arthub-table
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
## Building
|