el-plus-crud 0.0.62 → 0.0.63
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.63](https://github.com/KDJack/el-plus-crud/compare/v0.0.62...v0.0.63) (2023-08-31)
|
|
6
|
+
|
|
5
7
|
### [0.0.62](https://github.com/KDJack/el-plus-crud/compare/v0.0.61...v0.0.62) (2023-08-29)
|
|
6
8
|
|
|
7
9
|
### [0.0.61](https://github.com/KDJack/el-plus-crud/compare/v0.0.60...v0.0.61) (2023-08-29)
|
package/dist/el-plus-crud.mjs
CHANGED
|
@@ -5831,6 +5831,8 @@ const Xi = /* @__PURE__ */ He(H2, [["__scopeId", "data-v-e79c62e8"]]), K2 = /* @
|
|
|
5831
5831
|
const l = d, o = Ce("globalData"), p = Ce("format"), g = _(l.modelValue);
|
|
5832
5832
|
s("update:modelValue", g);
|
|
5833
5833
|
const h = Je([]), m = _(""), M = me(() => {
|
|
5834
|
+
if (l.desc.icolor)
|
|
5835
|
+
return typeof l.desc.icolor == "function" ? { background: l.desc.icolor(l.formData) || "#909399" } : { background: l.desc.icolor || "#909399" };
|
|
5834
5836
|
const a = h.find((v) => (v.value || v.v) == g.value) || {};
|
|
5835
5837
|
return { background: a.c || a.color || "#909399" };
|
|
5836
5838
|
});
|
|
@@ -5857,7 +5859,7 @@ const Xi = /* @__PURE__ */ He(H2, [["__scopeId", "data-v-e79c62e8"]]), K2 = /* @
|
|
|
5857
5859
|
]));
|
|
5858
5860
|
}
|
|
5859
5861
|
});
|
|
5860
|
-
const ea = /* @__PURE__ */ He(q2, [["__scopeId", "data-v-
|
|
5862
|
+
const ea = /* @__PURE__ */ He(q2, [["__scopeId", "data-v-e321331e"]]), X2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ea }, Symbol.toStringTag, { value: "Module" })), ey = { class: "el-plus-form-switch" }, ty = {
|
|
5861
5863
|
name: "ElPlusFormSwitch",
|
|
5862
5864
|
inheritAttrs: !1,
|
|
5863
5865
|
typeName: "switch",
|
|
@@ -6813,7 +6815,7 @@ const dD = ["innerHTML"], gD = {
|
|
|
6813
6815
|
}, {
|
|
6814
6816
|
default: Q(() => [
|
|
6815
6817
|
(D(), W(Yi(ee._type), le({
|
|
6816
|
-
style: { "min-width": "80px", width: "100%" },
|
|
6818
|
+
style: { "min-width": "80px", width: "100%", flex: "1" },
|
|
6817
6819
|
formData: o.modelValue,
|
|
6818
6820
|
disabled: ee._disabled ?? w.disabled ?? !1,
|
|
6819
6821
|
readonly: w.readonly ?? !1
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<el-col v-for="(formItem, y) in formList" :key="index + '-' + y + '-' + formItem.field" :xs="24" :sm="24" :md="formItem.colspan && formItem.colspan >= column ? 24 : column >= 2 ? 12 : 24" :lg="formItem.colspan && formItem.colspan >= column ? 24 : Math.floor((24 / column) * (formItem.colspan || 1))" :xl="formItem.colspan && formItem.colspan >= column ? 24 : Math.floor((24 / column) * (formItem.colspan || 1))">
|
|
8
8
|
<div v-if="formItem._vif" class="el-plus-form-column-panel" :style="{ 'justify-content': isTable ? 'flex-end' : 'flex-start' }">
|
|
9
9
|
<el-form-item style="min-height: 40px; display: flex" :label="showLabel && formItem.showLabel !== false ? formItem._label : null" :label-width="formItem.labelWidth || labelWidth || (isDialog ? '100px' : '120px')" :prop="formItem.field" :style="{ width: formItem._attrs?.width || formItem.width || (isTable ? '150px' : '100%') }">
|
|
10
|
-
<component style="min-width: 80px; width: 100
|
|
10
|
+
<component style="min-width: 80px; width: 100%; flex: 1" :is="formItem._type" :formData="props.modelValue" :disabled="formItem._disabled ?? disabled ?? false" :readonly="readonly ?? false" v-bind="formItem._attrs" :desc="formItem" :ref="setComponentRef" :field="formItem.field" v-model="props.modelValue[formItem.field || '']" :isTable="isTable" @validateThis="() => handelValidateThis(formItem.field || '')"></component>
|
|
11
11
|
<div class="el-plus-form-tip" v-if="formItem._tip" v-html="formItem._tip" />
|
|
12
12
|
</el-form-item>
|
|
13
13
|
</div>
|
|
@@ -770,6 +770,7 @@ defineExpose({ submit: handleSubmitForm, getData: getFormData, validate: validat
|
|
|
770
770
|
color: #909399;
|
|
771
771
|
line-height: 1.5em;
|
|
772
772
|
margin-top: 3px;
|
|
773
|
+
margin-left: 12px;
|
|
773
774
|
}
|
|
774
775
|
|
|
775
776
|
.el-plus-form-tip code {
|
|
@@ -37,6 +37,12 @@ const formatValue = ref('' as any)
|
|
|
37
37
|
|
|
38
38
|
// icon 样式
|
|
39
39
|
const iconStyle = computed(() => {
|
|
40
|
+
if (props.desc.icolor) {
|
|
41
|
+
if (typeof props.desc.icolor === 'function') {
|
|
42
|
+
return { background: props.desc.icolor(props.formData) || '#909399' }
|
|
43
|
+
}
|
|
44
|
+
return { background: props.desc.icolor || '#909399' }
|
|
45
|
+
}
|
|
40
46
|
const optionsItem = options.find((item: any) => (item.value || item.v) == currentValue.value) || {}
|
|
41
47
|
return { background: optionsItem.c || optionsItem.color || '#909399' }
|
|
42
48
|
})
|