@94ai/nf-table 3.2.3 → 3.2.20
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/lib/index.d.ts +1299 -308
- package/lib/nf-column-check-dialog.vue.d.ts +9 -0
- package/lib/nf-column-check-drawer.vue.d.ts +122 -0
- package/lib/nf-table.cjs.js +6380 -256
- package/lib/nf-table.esm-bundler.js +6381 -257
- package/lib/nf-table.vue.d.ts +438 -49
- package/lib/types.d.ts +3 -0
- package/lib/utils.d.ts +1 -0
- package/package/index.ts +14 -1
- package/package/nf-column-check-dialog.vue +17 -2
- package/package/nf-column-check-drawer.vue +420 -0
- package/package/nf-table.vue +930 -497
- package/package/types.ts +3 -0
- package/package/utils.ts +15 -0
- package/package.json +9 -5
package/package/types.ts
CHANGED
|
@@ -241,6 +241,9 @@ export interface ElPaginationAttributes {
|
|
|
241
241
|
'hide-on-single-page'?: boolean
|
|
242
242
|
}
|
|
243
243
|
export interface NfTableColumnAttributes {
|
|
244
|
+
_index?: number
|
|
245
|
+
__index?: number
|
|
246
|
+
initHidden?: boolean
|
|
244
247
|
type?: 'selection' | 'index' | 'expand'
|
|
245
248
|
label?: string
|
|
246
249
|
prop?: string
|
package/package/utils.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function deepClone(source) {
|
|
2
|
+
if (!source && typeof source !== 'object') {
|
|
3
|
+
throw new Error('error arguments shallowClone')
|
|
4
|
+
}
|
|
5
|
+
const targetObj: Record<string, any> | Record<string, any>[] = source.constructor === Array ? [] : {}
|
|
6
|
+
Object.keys(source).forEach((keys) => {
|
|
7
|
+
if (source[keys] && typeof source[keys] === 'object') {
|
|
8
|
+
targetObj[keys] = source[keys].constructor === Array ? [] : {}
|
|
9
|
+
targetObj[keys] = deepClone(source[keys])
|
|
10
|
+
} else {
|
|
11
|
+
targetObj[keys] = source[keys]
|
|
12
|
+
}
|
|
13
|
+
})
|
|
14
|
+
return targetObj
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.20",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,9 +14,13 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-
|
|
18
|
-
"@94ai/nf-
|
|
19
|
-
"
|
|
17
|
+
"@94ai/nf-drawer": "^3.2.20",
|
|
18
|
+
"@94ai/nf-message": "^3.2.20",
|
|
19
|
+
"@94ai/nf-search-form": "^3.2.20",
|
|
20
|
+
"@94ai/nf-theme-chalk": "^3.2.20",
|
|
21
|
+
"vue-cookies": "^1.8.3",
|
|
22
|
+
"vue-demi": "^0.14.5",
|
|
23
|
+
"vuedraggable": "^2.24.3"
|
|
20
24
|
},
|
|
21
25
|
"peerDependenciesMeta": {
|
|
22
26
|
"@vue/composition-api": {
|
|
@@ -31,5 +35,5 @@
|
|
|
31
35
|
"types": "lib/index.d.ts",
|
|
32
36
|
"main": "lib/nf-table.cjs.js",
|
|
33
37
|
"module": "lib/nf-table.esm-bundler.js",
|
|
34
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "60e08cb237f842c3fc38168cbd911ec3a4c9d440"
|
|
35
39
|
}
|