@vc-shell/framework 1.0.44 → 1.0.45
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.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"main": "./dist/framework.js",
|
|
5
5
|
"module": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|
|
30
30
|
"development": "vite build --watch -m development",
|
|
31
|
-
"watch": "vite build --watch"
|
|
31
|
+
"watch": "vite build --watch",
|
|
32
|
+
"type-check": "vue-tsc --noEmit"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@popperjs/core": "^2.11.0",
|
|
@@ -50,8 +51,8 @@
|
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
52
53
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
53
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
54
|
-
"@vc-shell/config-generator": "^1.0.
|
|
54
|
+
"@vc-shell/api-client-generator": "^1.0.45",
|
|
55
|
+
"@vc-shell/config-generator": "^1.0.45",
|
|
55
56
|
"@vue-macros/volar": "^0.5.7",
|
|
56
57
|
"sass": "^1.49.0",
|
|
57
58
|
"typescript": "^4.6.2",
|
|
@@ -67,5 +68,5 @@
|
|
|
67
68
|
"access": "public",
|
|
68
69
|
"registry": "https://registry.npmjs.org/"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "f62c07e94d9486d3228c70855385cc7fad68274d"
|
|
71
72
|
}
|
|
@@ -65,7 +65,10 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<!-- Status icon cell -->
|
|
68
|
-
<div
|
|
68
|
+
<div
|
|
69
|
+
v-else-if="cell.type === 'status-icon'"
|
|
70
|
+
class="tw-flex tw-justify-center"
|
|
71
|
+
>
|
|
69
72
|
<VcStatusIcon :status="value"></VcStatusIcon>
|
|
70
73
|
</div>
|
|
71
74
|
|
|
@@ -102,12 +105,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
102
105
|
});
|
|
103
106
|
|
|
104
107
|
const locale = window.navigator.language;
|
|
105
|
-
const value = computed(() =>
|
|
106
|
-
(props.cell.field || props.cell.id)
|
|
108
|
+
const value = computed(() => {
|
|
109
|
+
return (props.cell.field || props.cell.id)
|
|
107
110
|
.split(".")
|
|
108
|
-
.reduce(
|
|
109
|
-
(p
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
);
|
|
111
|
+
.reduce((p: { [x: string]: unknown }, c: string) => {
|
|
112
|
+
if (p && Array.isArray(p) && p.length) {
|
|
113
|
+
return (p && p[0][c]) || null;
|
|
114
|
+
}
|
|
115
|
+
return (p && p[c]) || null;
|
|
116
|
+
}, props.item);
|
|
117
|
+
});
|
|
113
118
|
</script>
|