@tmagic/form 1.7.8-beta.4 → 1.7.9
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.
|
@@ -26,6 +26,7 @@ var Col_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComp
|
|
|
26
26
|
const display$1 = computed(() => display(mForm, props.config.display, props));
|
|
27
27
|
const changeHandler = (v, eventData) => emit("change", v, eventData);
|
|
28
28
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
29
|
+
const type = computed(() => props.config.type);
|
|
29
30
|
return (_ctx, _cache) => {
|
|
30
31
|
return withDirectives((openBlock(), createBlock(unref(TMagicCol), { span: __props.span }, {
|
|
31
32
|
default: withCtx(() => [createVNode(Container_default, {
|
|
@@ -52,7 +53,7 @@ var Col_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComp
|
|
|
52
53
|
"disabled"
|
|
53
54
|
])]),
|
|
54
55
|
_: 1
|
|
55
|
-
}, 8, ["span"])), [[vShow, display$1.value &&
|
|
56
|
+
}, 8, ["span"])), [[vShow, display$1.value && type.value !== "hidden"]]);
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
});
|
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -4407,6 +4407,7 @@
|
|
|
4407
4407
|
const display$2 = (0, vue.computed)(() => display(mForm, props.config.display, props));
|
|
4408
4408
|
const changeHandler = (v, eventData) => emit("change", v, eventData);
|
|
4409
4409
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
4410
|
+
const type = (0, vue.computed)(() => props.config.type);
|
|
4410
4411
|
return (_ctx, _cache) => {
|
|
4411
4412
|
return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_tmagic_design.TMagicCol), { span: __props.span }, {
|
|
4412
4413
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(Container_default, {
|
|
@@ -4433,7 +4434,7 @@
|
|
|
4433
4434
|
"disabled"
|
|
4434
4435
|
])]),
|
|
4435
4436
|
_: 1
|
|
4436
|
-
}, 8, ["span"])), [[vue.vShow, display$2.value &&
|
|
4437
|
+
}, 8, ["span"])), [[vue.vShow, display$2.value && type.value !== "hidden"]]);
|
|
4437
4438
|
};
|
|
4438
4439
|
}
|
|
4439
4440
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.7.
|
|
2
|
+
"version": "1.7.9",
|
|
3
3
|
"name": "@tmagic/form",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"vue": "^3.5.24",
|
|
54
54
|
"typescript": "^5.9.3",
|
|
55
|
-
"@tmagic/utils": "1.7.
|
|
56
|
-
"@tmagic/
|
|
57
|
-
"@tmagic/
|
|
55
|
+
"@tmagic/utils": "1.7.9",
|
|
56
|
+
"@tmagic/form-schema": "1.7.9",
|
|
57
|
+
"@tmagic/design": "1.7.9"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"typescript": {
|
package/src/containers/Col.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<TMagicCol v-show="display &&
|
|
2
|
+
<TMagicCol v-show="display && type !== 'hidden'" :span="span">
|
|
3
3
|
<Container
|
|
4
4
|
:model="model"
|
|
5
5
|
:lastValues="lastValues"
|
|
@@ -52,4 +52,6 @@ const mForm = inject<FormState | undefined>('mForm');
|
|
|
52
52
|
const display = computed(() => displayFunction(mForm, props.config.display, props));
|
|
53
53
|
const changeHandler = (v: any, eventData: ContainerChangeEventData) => emit('change', v, eventData);
|
|
54
54
|
const onAddDiffCount = () => emit('addDiffCount');
|
|
55
|
+
|
|
56
|
+
const type = computed(() => (props.config as any).type);
|
|
55
57
|
</script>
|