@94ai/nf-table 3.2.48 → 100.1.2

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.
@@ -53,7 +53,7 @@ import {
53
53
  onMounted,
54
54
  ref
55
55
  } from 'vue-demi'
56
- import { deepClone } from 'packages/nf-table/lib/utils'
56
+ import { deepClone } from '@94ai/common-utils'
57
57
 
58
58
  const props = withDefaults(defineProps<{
59
59
  storageKey?: string
@@ -140,7 +140,7 @@ import {
140
140
  PropType,
141
141
  onMounted
142
142
  } from 'vue-demi'
143
- import { deepClone } from './utils'
143
+ import { deepClone } from '@94ai/common-utils'
144
144
 
145
145
  const instance = getCurrentInstance()?.proxy
146
146
 
@@ -965,6 +965,7 @@ const tableAttrer = computed(() => {
965
965
  'height': '48px',
966
966
  'color': '#303133',
967
967
  'font-size': '14px'
968
+
968
969
  },
969
970
  'cell-style': { 'text-align': 'left' },
970
971
  resizable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "3.2.48",
3
+ "version": "100.1.2",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,10 +14,11 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-drawer": "^3.2.48",
18
- "@94ai/nf-message": "^3.2.48",
19
- "@94ai/nf-search-form": "^3.2.48",
20
- "@94ai/nf-theme-chalk": "^3.2.48",
17
+ "@94ai/common-utils": "^100.1.2",
18
+ "@94ai/nf-drawer": "^100.1.2",
19
+ "@94ai/nf-message": "^100.1.2",
20
+ "@94ai/nf-search-form": "^100.1.2",
21
+ "@94ai/nf-theme-chalk": "^100.1.2",
21
22
  "vue-cookies": "^1.8.3",
22
23
  "vue-demi": "^0.14.5",
23
24
  "vuedraggable": "^2.24.3"
@@ -35,5 +36,5 @@
35
36
  "types": "lib/index.d.ts",
36
37
  "main": "lib/nf-table.cjs.js",
37
38
  "module": "lib/nf-table.esm-bundler.js",
38
- "gitHead": "91145bb7df8dad2c0cb3eefb101c6158ec854269"
39
+ "gitHead": "5b811c0e9d5ed95519222e3a9b744331734feeaf"
39
40
  }
package/lib/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function deepClone(source: any): Record<string, any> | Record<string, any>[];
package/package/utils.ts DELETED
@@ -1,15 +0,0 @@
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
- }