@tmagic/form 1.2.9 → 1.2.10
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,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.
|
|
2
|
+
"version": "1.2.10",
|
|
3
3
|
"name": "@tmagic/form",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@element-plus/icons-vue": "^2.0.9",
|
|
39
|
-
"@tmagic/design": "1.2.
|
|
40
|
-
"@tmagic/utils": "1.2.
|
|
39
|
+
"@tmagic/design": "1.2.10",
|
|
40
|
+
"@tmagic/utils": "1.2.10",
|
|
41
41
|
"lodash-es": "^4.17.21",
|
|
42
42
|
"sortablejs": "^1.14.0",
|
|
43
43
|
"vue": "^3.2.37"
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
:size="size"
|
|
49
49
|
:is="tagName"
|
|
50
50
|
:model="model"
|
|
51
|
+
:last-values="lastValues"
|
|
51
52
|
:config="config"
|
|
52
53
|
:name="name"
|
|
53
54
|
:disabled="disabled"
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
:size="size"
|
|
67
68
|
:is="tagName"
|
|
68
69
|
:model="model"
|
|
70
|
+
:last-values="lastValues"
|
|
69
71
|
:config="config"
|
|
70
72
|
:name="name"
|
|
71
73
|
:disabled="disabled"
|
|
@@ -193,7 +195,7 @@
|
|
|
193
195
|
v-for="item in items"
|
|
194
196
|
:key="key(item)"
|
|
195
197
|
:model="name || name === 0 ? model[name] : model"
|
|
196
|
-
:last-values="name || name === 0 ? lastValues[name] : lastValues"
|
|
198
|
+
:last-values="name || name === 0 ? lastValues[name] || {} : lastValues"
|
|
197
199
|
:is-compare="isCompare"
|
|
198
200
|
:config="item"
|
|
199
201
|
:size="size"
|
|
@@ -258,7 +260,6 @@ const mForm = inject<FormState | undefined>('mForm');
|
|
|
258
260
|
const expand = ref(false);
|
|
259
261
|
|
|
260
262
|
const name = computed(() => props.config.name || '');
|
|
261
|
-
|
|
262
263
|
// 是否展示两个版本的对比内容
|
|
263
264
|
const showDiff = computed(() => {
|
|
264
265
|
if (!props.isCompare) return false;
|