@visactor/vtable-search 1.2.1-alpha.2 → 1.3.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 +12 -31
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -22,51 +22,32 @@ VTable is not just a high-performance multidimensional data analysis table, but
|
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
25
|
-
[npm package](https://www.npmjs.com/package/@visactor/vtable-
|
|
25
|
+
[npm package](https://www.npmjs.com/package/@visactor/vtable-search)
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
// npm
|
|
29
|
-
npm install @visactor/vtable-
|
|
29
|
+
npm install @visactor/vtable-search
|
|
30
30
|
|
|
31
31
|
// yarn
|
|
32
|
-
yarn add @visactor/vtable-
|
|
32
|
+
yarn add @visactor/vtable-search
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Quick Start
|
|
36
36
|
|
|
37
37
|
```jsx
|
|
38
|
-
import * as VTable from '@visactor/vtable';
|
|
39
|
-
import { downloadCsv, exportVTableToCsv, downloadExcel, exportVTableToExcel } from '@visactor/vtable-export';
|
|
40
|
-
|
|
41
38
|
const option = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
caption: "name",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
field: "1",
|
|
49
|
-
caption: "age",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
field: "2",
|
|
53
|
-
caption: "gender",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
field: "3",
|
|
57
|
-
caption: "hobby",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
records: new Array(1000).fill(["John", 18, "male", "🏀"]),
|
|
39
|
+
container: document.getElementById(CONTAINER_ID),
|
|
40
|
+
records,
|
|
41
|
+
columns,
|
|
61
42
|
};
|
|
62
|
-
|
|
63
43
|
const tableInstance = new VTable.ListTable(option);
|
|
44
|
+
window.tableInstance = tableInstance;
|
|
64
45
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
46
|
+
const search = new SearchComponent({
|
|
47
|
+
table: tableInstance,
|
|
48
|
+
autoJump: true
|
|
49
|
+
});
|
|
50
|
+
window.search = search;
|
|
70
51
|
|
|
71
52
|
```
|
|
72
53
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vtable-search",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The search util of VTable",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "VisActor",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@visactor/
|
|
34
|
-
"@visactor/
|
|
33
|
+
"@visactor/vutils": "~0.18.9",
|
|
34
|
+
"@visactor/vtable": "1.3.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@visactor/vchart": "1.11.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"axios": "^1.4.0",
|
|
76
76
|
"@types/react-is": "^17.0.3",
|
|
77
77
|
"rollup-plugin-node-resolve": "5.2.0",
|
|
78
|
-
"@internal/eslint-config": "0.0.1",
|
|
79
78
|
"@internal/bundler": "0.0.1",
|
|
79
|
+
"@internal/eslint-config": "0.0.1",
|
|
80
80
|
"@internal/ts-config": "0.0.1"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|