@fecp/mobile 1.1.2 → 1.1.3
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.
|
@@ -51,13 +51,13 @@ const _sfc_main = {
|
|
|
51
51
|
const formReadonly = inject("formReadonly");
|
|
52
52
|
const dicListMap = inject("dicListMap");
|
|
53
53
|
const formItemDisabled = computed(() => {
|
|
54
|
-
if (formDisabled.value) {
|
|
54
|
+
if (formDisabled == null ? void 0 : formDisabled.value) {
|
|
55
55
|
return formDisabled.value;
|
|
56
56
|
}
|
|
57
57
|
return props.disabled;
|
|
58
58
|
});
|
|
59
59
|
const formItemReadonly = computed(() => {
|
|
60
|
-
if (formReadonly.value) {
|
|
60
|
+
if (formReadonly == null ? void 0 : formReadonly.value) {
|
|
61
61
|
return formReadonly.value;
|
|
62
62
|
}
|
|
63
63
|
return props.readonly;
|
|
@@ -84,6 +84,7 @@ const _sfc_main = {
|
|
|
84
84
|
return parseRule(props.fieldType, attrs);
|
|
85
85
|
});
|
|
86
86
|
return (_ctx, _cache) => {
|
|
87
|
+
var _a;
|
|
87
88
|
return openBlock(), createBlock(resolveDynamicComponent(unref(formItem)), mergeProps(_ctx.$attrs, {
|
|
88
89
|
modelValue: unref(compValue),
|
|
89
90
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(compValue) ? compValue.value = $event : null),
|
|
@@ -92,7 +93,7 @@ const _sfc_main = {
|
|
|
92
93
|
disabled: unref(formItemDisabled),
|
|
93
94
|
readonly: unref(formItemReadonly),
|
|
94
95
|
placeholder: unref(formItemReadonly) ? "" : __props.placeholder,
|
|
95
|
-
dicList: unref(dicListMap)[unref(attrs).dicKey]
|
|
96
|
+
dicList: (_a = unref(dicListMap)) == null ? void 0 : _a[unref(attrs).dicKey]
|
|
96
97
|
}), null, 16, ["modelValue", "rules", "required", "disabled", "readonly", "placeholder", "dicList"]);
|
|
97
98
|
};
|
|
98
99
|
}
|
|
@@ -53,13 +53,13 @@ const _sfc_main = {
|
|
|
53
53
|
const formReadonly = vue.inject("formReadonly");
|
|
54
54
|
const dicListMap = vue.inject("dicListMap");
|
|
55
55
|
const formItemDisabled = vue.computed(() => {
|
|
56
|
-
if (formDisabled.value) {
|
|
56
|
+
if (formDisabled == null ? void 0 : formDisabled.value) {
|
|
57
57
|
return formDisabled.value;
|
|
58
58
|
}
|
|
59
59
|
return props.disabled;
|
|
60
60
|
});
|
|
61
61
|
const formItemReadonly = vue.computed(() => {
|
|
62
|
-
if (formReadonly.value) {
|
|
62
|
+
if (formReadonly == null ? void 0 : formReadonly.value) {
|
|
63
63
|
return formReadonly.value;
|
|
64
64
|
}
|
|
65
65
|
return props.readonly;
|
|
@@ -86,6 +86,7 @@ const _sfc_main = {
|
|
|
86
86
|
return formRule.parseRule(props.fieldType, attrs);
|
|
87
87
|
});
|
|
88
88
|
return (_ctx, _cache) => {
|
|
89
|
+
var _a;
|
|
89
90
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(formItem)), vue.mergeProps(_ctx.$attrs, {
|
|
90
91
|
modelValue: vue.unref(compValue),
|
|
91
92
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(compValue) ? compValue.value = $event : null),
|
|
@@ -94,7 +95,7 @@ const _sfc_main = {
|
|
|
94
95
|
disabled: vue.unref(formItemDisabled),
|
|
95
96
|
readonly: vue.unref(formItemReadonly),
|
|
96
97
|
placeholder: vue.unref(formItemReadonly) ? "" : __props.placeholder,
|
|
97
|
-
dicList: vue.unref(dicListMap)[vue.unref(attrs).dicKey]
|
|
98
|
+
dicList: (_a = vue.unref(dicListMap)) == null ? void 0 : _a[vue.unref(attrs).dicKey]
|
|
98
99
|
}), null, 16, ["modelValue", "rules", "required", "disabled", "readonly", "placeholder", "dicList"]);
|
|
99
100
|
};
|
|
100
101
|
}
|