2025-09-26 17:22:28 +08:00
|
|
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-fb6ca218"], { "01e1": function (e, l, t) { "use strict"; t("d9a8") }, "0e0e": function (e, l, t) { "use strict"; t("26fd") }, "1d22": function (e, l, t) { "use strict"; var a = t("7a23"), o = t("7902"), c = { __name: "FormMessage", props: { formList: { default: [[]], type: Array }, rules: { default: {}, type: Object }, labelWidth: { default: "100px", type: String }, disabled: { type: Boolean, default: !1 }, modelValue: { type: Object, default: {} } }, emits: ["update:modelValue", "change"], setup(e, { expose: l, emit: t }) { const c = e, r = Object(a["ref"])(), d = Object(a["ref"])({}), n = e => { r.value.validate(l => { if (!l) return !1; e(d.value) }) }, p = () => { d.value = {}, r.value.resetFields() }, u = e => { t("change", d.value) }; return Object(a["watch"])(() => c.modelValue, e => { d.value = e, console.log(e, "===newVal") }, { immediate: !0, deep: !0 }), Object(a["watch"])(() => d.value, e => { t("update:modelValue", e), console.log(e, "===newVal111") }, { immediate: !0, deep: !0 }), l({ submit: n, reset: p }), (l, t) => { const n = Object(a["resolveComponent"])("el-input-number"), p = Object(a["resolveComponent"])("el-radio"), i = Object(a["resolveComponent"])("el-radio-group"), b = Object(a["resolveComponent"])("el-switch"), s = Object(a["resolveComponent"])("el-date-picker"), m = Object(a["resolveComponent"])("el-time-picker"), j = Object(a["resolveComponent"])("el-form-item"), O = Object(a["resolveComponent"])("el-form"); return Object(a["openBlock"])(), Object(a["createBlock"])(O, { ref_key: "elform", ref: r, model: d.value, disabled: e.disabled, "label-width": c.labelWidth, rules: c.rules, inline: !0, "label-position": "right" }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(c.formList, (e, t) => (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", { class: "form-row", key: t, style: Object(a["normalizeStyle"])({ width: "[object Object]" === Object.prototype.toString.call(e) ? e.width : "" }) }, [Array.isArray(e) ? (Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], { key: 0 }, Object(a["renderList"])(e, (t, c) => (Object(a["openBlock"])(), Object(a["createBlock"])(j, { key: c, prop: t.prop, label: t.label, "label-width": t.labelWidth, style: Object(a["normalizeStyle"])({ width: e.width }) }, { default: Object(a["withCtx"])(() => ["input" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["d"], { key: 0, type: t.lx, rows: t.rows || 4, width: "100%", clearable: "", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, placeholder: "请输入" + t.label, disabled: t.disabled }, null, 8, ["type", "rows", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : "number" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(n, { key: 1, onChange: u, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, style: { width: "100%" }, min: t.min || 0, max: t.max || 1e3 }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : "select" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["f"], { key: 2, onChange: u, filterable: "", multiple: t.multiple, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, dictEnum: t.options, width: "100%", clearable: "", placeholder: "请选择" + t.label }, null, 8, ["multiple", "modelValue", "onUpdate:modelValue", "dictEnum", "placeholder"])) : "Sex" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["g"], { key: 3, sex: d.value[t.prop], "onUpdate:sex": e => d.value[t.prop] = e, width: "100%", clearable: "", placeholder: "请选择" + t.label }, null, 8, ["sex", "onUpdate:sex", "placeholder"])) : "other" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["e"], { key: 4, dictEnum: t.lx, width: "100%", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, clearable: "", filterable: "" }, null, 8,
|