cnhis-design-vue 3.1.27-beta.0 → 3.1.27-beta.1
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.
|
@@ -163,7 +163,9 @@ function splitExtendKey(fieldList, values) {
|
|
|
163
163
|
return values;
|
|
164
164
|
const queryFieldValue = useMemoize((extendKey) => {
|
|
165
165
|
try {
|
|
166
|
-
|
|
166
|
+
if (isObject(values[extendKey]))
|
|
167
|
+
return values[extendKey];
|
|
168
|
+
return JSON.parse(values[extendKey]) || {};
|
|
167
169
|
} catch (e) {
|
|
168
170
|
return {};
|
|
169
171
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { traverse, uuidGenerator, DMZ } from '../../../../../shared/utils/index.js';
|
|
2
2
|
import { isArray, isFunction } from 'lodash-es';
|
|
3
3
|
import { onBeforeUnmount } from 'vue';
|
|
4
4
|
import '../../../index.js';
|
|
@@ -11,12 +11,14 @@ function virtualTreePlugin() {
|
|
|
11
11
|
name: pluginName,
|
|
12
12
|
apply(hooks) {
|
|
13
13
|
hooks.dataHooks.data.tap(pluginName, (rowData, context, config) => {
|
|
14
|
+
if (!config.treeConfig)
|
|
15
|
+
return;
|
|
14
16
|
const {
|
|
15
17
|
transform,
|
|
16
18
|
rowField = "__parentId",
|
|
17
19
|
parentField = "parentId",
|
|
18
20
|
children = "childrenList"
|
|
19
|
-
} = config.treeConfig
|
|
21
|
+
} = config.treeConfig;
|
|
20
22
|
if (!transform)
|
|
21
23
|
return;
|
|
22
24
|
enrichRowData(rowData);
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.27-beta.
|
|
4
|
-
"license": "ISC",
|
|
5
|
-
"module": "./es/components/index.js",
|
|
6
|
-
"main": "./es/components/index.js",
|
|
7
|
-
"types": "./es/components/index.d.ts",
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"es/components/**/style/*",
|
|
10
|
-
"es/components/*(.css,.less)"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
"es",
|
|
14
|
-
"README.md"
|
|
15
|
-
],
|
|
16
|
-
"peerDependencies": {
|
|
17
|
-
"naive-ui": "^2.30.0",
|
|
18
|
-
"vue": "^3.2.0",
|
|
19
|
-
"vxe-table": "^4.2.5"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@formily/core": "2.1.9",
|
|
23
|
-
"@formily/path": "2.1.9",
|
|
24
|
-
"@formily/vue": "2.1.9",
|
|
25
|
-
"@vicons/ionicons5": "^0.12.0",
|
|
26
|
-
"@vueuse/core": "^8.6.0",
|
|
27
|
-
"@vueuse/shared": "^8.6.0",
|
|
28
|
-
"@wangeditor/editor": "^5.1.1",
|
|
29
|
-
"@wangeditor/editor-for-vue": "^5.1.11",
|
|
30
|
-
"axios": "^0.27.2",
|
|
31
|
-
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
32
|
-
"bpmn-js": "^9.2.2",
|
|
33
|
-
"bpmnlint-utils": "^1.0.2",
|
|
34
|
-
"date-fns": "^2.29.1",
|
|
35
|
-
"diagram-js": "^8.7.1",
|
|
36
|
-
"ids": "^1.0.0",
|
|
37
|
-
"inherits": "^2.0.4",
|
|
38
|
-
"lodash": "^4.17.21",
|
|
39
|
-
"lodash-es": "^4.17.21",
|
|
40
|
-
"lodash-unified": "^1.0.2",
|
|
41
|
-
"min-dash": "^3.8.1",
|
|
42
|
-
"min-dom": "^3.2.1",
|
|
43
|
-
"moment": "^2.29.1",
|
|
44
|
-
"naive-ui": "^2.30.0",
|
|
45
|
-
"sortablejs": "^1.15.0",
|
|
46
|
-
"spark-md5": "^3.0.2",
|
|
47
|
-
"tiny-svg": "^2.2.4",
|
|
48
|
-
"v-viewer": "^3.0.10",
|
|
49
|
-
"video.js": "^7.19.2",
|
|
50
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
51
|
-
"viewerjs": "^1.10.5",
|
|
52
|
-
"vue": "^3.2.0",
|
|
53
|
-
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
54
|
-
"xe-utils": "^3.5.4"
|
|
55
|
-
},
|
|
56
|
-
"browserslist": [
|
|
57
|
-
"defaults",
|
|
58
|
-
"not ie < 8",
|
|
59
|
-
"last 2 versions",
|
|
60
|
-
"> 1%",
|
|
61
|
-
"iOS 7",
|
|
62
|
-
"last 3 iOS versions"
|
|
63
|
-
],
|
|
64
|
-
"gitHead": "
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cnhis-design-vue",
|
|
3
|
+
"version": "3.1.27-beta.1",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"module": "./es/components/index.js",
|
|
6
|
+
"main": "./es/components/index.js",
|
|
7
|
+
"types": "./es/components/index.d.ts",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"es/components/**/style/*",
|
|
10
|
+
"es/components/*(.css,.less)"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
"es",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"naive-ui": "^2.30.0",
|
|
18
|
+
"vue": "^3.2.0",
|
|
19
|
+
"vxe-table": "^4.2.5"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@formily/core": "2.1.9",
|
|
23
|
+
"@formily/path": "2.1.9",
|
|
24
|
+
"@formily/vue": "2.1.9",
|
|
25
|
+
"@vicons/ionicons5": "^0.12.0",
|
|
26
|
+
"@vueuse/core": "^8.6.0",
|
|
27
|
+
"@vueuse/shared": "^8.6.0",
|
|
28
|
+
"@wangeditor/editor": "^5.1.1",
|
|
29
|
+
"@wangeditor/editor-for-vue": "^5.1.11",
|
|
30
|
+
"axios": "^0.27.2",
|
|
31
|
+
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
32
|
+
"bpmn-js": "^9.2.2",
|
|
33
|
+
"bpmnlint-utils": "^1.0.2",
|
|
34
|
+
"date-fns": "^2.29.1",
|
|
35
|
+
"diagram-js": "^8.7.1",
|
|
36
|
+
"ids": "^1.0.0",
|
|
37
|
+
"inherits": "^2.0.4",
|
|
38
|
+
"lodash": "^4.17.21",
|
|
39
|
+
"lodash-es": "^4.17.21",
|
|
40
|
+
"lodash-unified": "^1.0.2",
|
|
41
|
+
"min-dash": "^3.8.1",
|
|
42
|
+
"min-dom": "^3.2.1",
|
|
43
|
+
"moment": "^2.29.1",
|
|
44
|
+
"naive-ui": "^2.30.0",
|
|
45
|
+
"sortablejs": "^1.15.0",
|
|
46
|
+
"spark-md5": "^3.0.2",
|
|
47
|
+
"tiny-svg": "^2.2.4",
|
|
48
|
+
"v-viewer": "^3.0.10",
|
|
49
|
+
"video.js": "^7.19.2",
|
|
50
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
51
|
+
"viewerjs": "^1.10.5",
|
|
52
|
+
"vue": "^3.2.0",
|
|
53
|
+
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
54
|
+
"xe-utils": "^3.5.4"
|
|
55
|
+
},
|
|
56
|
+
"browserslist": [
|
|
57
|
+
"defaults",
|
|
58
|
+
"not ie < 8",
|
|
59
|
+
"last 2 versions",
|
|
60
|
+
"> 1%",
|
|
61
|
+
"iOS 7",
|
|
62
|
+
"last 3 iOS versions"
|
|
63
|
+
],
|
|
64
|
+
"gitHead": "e67ff47bb324aa06f04761ae2c23991b72a7d07a"
|
|
65
|
+
}
|