@truenewx/tnxvue3 3.0.0-alpha.24 → 3.0.0-alpha.25
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": "@truenewx/tnxvue3",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.25",
|
|
4
4
|
"description": "互联网技术解决方案:Vue3扩展支持",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"vue-router": "~4.4.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@truenewx/tnxcore": "3.0.0-alpha.
|
|
27
|
+
"@truenewx/tnxcore": "3.0.0-alpha.14",
|
|
28
28
|
"@element-plus/icons-vue": "2.3.1",
|
|
29
29
|
"async-validator": "4.2.5",
|
|
30
30
|
"mitt": "3.0.1"
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span v-if="item">{{ item.caption }}</span>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
export default {
|
|
7
|
-
name: 'TnxelEnumView',
|
|
8
|
-
props: {
|
|
9
|
-
type: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
subtype: String,
|
|
14
|
-
itemKey: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
app: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => window.tnx.componentDefaultApp, // 设置为方法以延时加载,确保更改的值生效
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
data() {
|
|
24
|
-
return {
|
|
25
|
-
item: null,
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
mounted() {
|
|
29
|
-
window.tnx.app.rpc.loadEnumType(this.type, this.subtype, enumType => {
|
|
30
|
-
this.item = enumType.items.find(item => item.key === this.itemKey);
|
|
31
|
-
}, {
|
|
32
|
-
app: this.app,
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
methods: {}
|
|
36
|
-
}
|
|
37
|
-
</script>
|
|
38
|
-
|
|
39
|
-
<style scoped>
|
|
40
|
-
|
|
41
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<span v-if="item">{{ item.caption }}</span>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
export default {
|
|
7
|
+
name: 'TnxelEnumView',
|
|
8
|
+
props: {
|
|
9
|
+
type: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
subtype: String,
|
|
14
|
+
itemKey: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
app: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: () => window.tnx.componentDefaultApp, // 设置为方法以延时加载,确保更改的值生效
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
item: null,
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
mounted() {
|
|
29
|
+
window.tnx.app.rpc.loadEnumType(this.type, this.subtype, enumType => {
|
|
30
|
+
this.item = enumType.items.find(item => item.key === this.itemKey);
|
|
31
|
+
}, {
|
|
32
|
+
app: this.app,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
methods: {}
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<style scoped>
|
|
40
|
+
|
|
41
|
+
</style>
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
<DocumentCopy v-else-if="value === 'DocumentCopy'"/>
|
|
25
25
|
<Download v-else-if="value === 'Download'"/>
|
|
26
26
|
<Edit v-else-if="value === 'Edit'"/>
|
|
27
|
+
<Finished v-else-if="value === 'Finished'"/>
|
|
27
28
|
<Folder v-else-if="value === 'Folder'"/>
|
|
28
29
|
<HomeFilled v-else-if="value === 'HomeFilled'"/>
|
|
29
30
|
<InfoFilled v-else-if="value === 'InfoFilled'"/>
|
|
@@ -82,6 +83,7 @@ import {
|
|
|
82
83
|
DocumentCopy,
|
|
83
84
|
Download,
|
|
84
85
|
Edit,
|
|
86
|
+
Finished,
|
|
85
87
|
Folder,
|
|
86
88
|
HomeFilled,
|
|
87
89
|
InfoFilled,
|
|
@@ -139,6 +141,7 @@ const components = {
|
|
|
139
141
|
DocumentCopy,
|
|
140
142
|
Download,
|
|
141
143
|
Edit,
|
|
144
|
+
Finished,
|
|
142
145
|
Folder,
|
|
143
146
|
HomeFilled,
|
|
144
147
|
InfoFilled,
|