@94ai/nf-table 3.2.4 → 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/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
@@ -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.4",
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-search-form": "^3.2.4",
18
- "@94ai/nf-theme-chalk": "^3.2.4",
19
- "vue-demi": "^0.14.5"
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": "9518f3ee1354378e844b825d6d850d18ec14f71a"
38
+ "gitHead": "60e08cb237f842c3fc38168cbd911ec3a4c9d440"
35
39
  }