xichen-oa-form-design
Version:
基于vue3、ant-design-vue4的表单设计器,可视化开发表单
686 lines • 1.33 MB
JavaScript
var qv = Object.defineProperty;
var Hv = (n, r, e) => r in n ? qv(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
var Aa = (n, r, e) => (Hv(n, typeof r != "symbol" ? r + "" : r, e), e);
import { Empty as Qa, message as mn, Input as Bv, InputNumber as Vv, Select as Uv, Checkbox as $v, Radio as Wv, Rate as Kv, Slider as Yv, Switch as Gv, Cascader as Xv } from "ant-design-vue";
import { UploadOutlined as ac, CloudUploadOutlined as Jv, PlusOutlined as Tr, MinusCircleOutlined as Zv, CopyOutlined as lc, CloseCircleFilled as Qr, MinusOutlined as go, SaveOutlined as Qv, ChromeOutlined as e0, CreditCardOutlined as t0, CodeOutlined as n0, DeleteOutlined as ds, UndoOutlined as r0, RedoOutlined as o0, CloseOutlined as i0, QuestionCircleOutlined as mh, CaretDownOutlined as a0, CaretRightOutlined as l0, BorderInnerOutlined as s0, BorderHorizontalOutlined as u0, BorderVerticleOutlined as c0 } from "@ant-design/icons-vue";
import { isEmpty as ut, omit as sc, remove as gt, cloneDeep as $a, merge as fs } from "lodash-es";
import { resolveComponent as Q, openBlock as $, createElementBlock as be, normalizeStyle as it, createBlock as oe, withCtx as V, createVNode as H, createTextVNode as He, toDisplayString as Qe, createCommentVNode as ge, normalizeClass as pt, createElementVNode as ne, resolveDynamicComponent as Eo, mergeProps as Gn, Fragment as kt, renderList as At, defineComponent as Sn, onMounted as mo, onBeforeUnmount as vh, ref as ue, watch as mt, nextTick as ni, h as d0, unref as ft, renderSlot as co, createSlots as f0, withModifiers as nn, withDirectives as zn, vShow as Xn, markRaw as uc, shallowRef as yh, getCurrentInstance as ps, computed as Xt, pushScopeId as Po, popScopeId as Ro, readonly as bh, getCurrentScope as p0, onScopeDispose as h0, reactive as Hr, inject as wh, provide as g0, useSlots as m0, vModelText as v0, Teleport as y0, withKeys as b0 } from "vue";
import cc from "vuedraggable-es";
const _t = (n, r) => {
const e = n.__vccOpts || n;
for (const [a, u] of r)
e[a] = u;
return e;
}, w0 = { name: "KUploadFile", components: { UploadOutlined: ac, CloudUploadOutlined: Jv }, props: ["record", "value", "config", "parentDisabled", "dynamicData", "parentConfig"], data: () => ({ fileList: [] }), computed: { optionsData() {
try {
return JSON.parse(this.record.options.data);
} catch (n) {
return console.error(n), {};
}
} }, watch: { value: { handler(n) {
ut(n) || this.parentConfig === "batch" || this.setFileList();
} } }, mounted() {
ut(this.value) || this.value === "null" || this.value === "[]" || this.setFileList();
}, methods: { setFileList() {
if (typeof this.value == "string")
try {
if (this.record.options.singleData) {
const n = this.record.options.getFileDetail || this.config.getFileDetail;
n ? n(JSON.parse(this.value)).then((r) => {
ut(r) ? this.fileList = JSON.parse(this.value).map((e) => ({ type: e, name: e, status: "done", thumbUrl: e, uid: e, url: e })) : this.fileList = r.map((e) => ({ type: e.suffix, name: e.name, status: "done", thumbUrl: e.thumbnail, uid: e.id, url: e.downloadPath }));
}) : this.fileList = JSON.parse(this.value).map((r) => ({ type: r, name: r, status: "done", thumbUrl: r, uid: r, url: r }));
} else
this.fileList = JSON.parse(this.value);
this.handleSelectChange();
} catch {
this.handleSelectChange();
}
else if (this.record.options.singleData) {
const n = this.record.options.getFileDetail || this.config.getFileDetail;
n ? n(this.value).then((r) => {
ut(r) ? this.fileList = this.value.map((e) => ({ type: e, name: e, status: "done", thumbUrl: e, uid: e, url: e })) : this.fileList = r.map((e) => ({ type: e.suffix, name: e.name, status: "done", thumbUrl: e.thumbnail, uid: e.id, url: e.downloadPath }));
}) : this.fileList = this.value.map((r) => ({ type: r, name: r, status: "done", thumbUrl: r, uid: r, url: r }));
} else
this.fileList = this.value;
}, handleSelectChange() {
setTimeout(() => {
const n = this.fileList.map((r) => {
if (r.response !== void 0) {
const e = r.response;
return this.record.options.singleData ? e.data || "" : { type: r.type, name: r.name, status: r.status, uid: r.uid || Date.now(), url: e.data || "" };
}
return this.record.options.singleData ? r.url || "" : { type: "file", name: r.name, status: r.status, uid: r.uid, url: r.url || "" };
});
this.$emit("change", n), this.$emit("input", n);
}, 10);
}, handlePreview(n) {
const r = this.record.options.downloadWay, e = this.record.options.dynamicFun;
r === "a" ? this.downloadFile(n.response ? n.response.data : n.url, n.name) : r === "ajax" ? this.getBlob(n.response.data || n.thumbUrl).then((a) => {
this.saveAs(a, n.name);
}) : r === "dynamic" && this.dynamicData[e](n);
}, getBlob: (n) => new Promise((r) => {
const e = new XMLHttpRequest();
e.open("GET", n, !0), e.responseType = "blob", e.onload = () => {
e.status === 200 && r(e.response);
}, e.send();
}), saveAs(n, r) {
if (window.navigator.msSaveOrOpenBlob)
navigator.msSaveBlob(n, r);
else {
const e = document.createElement("a"), a = document.querySelector("body");
e.href = window.URL.createObjectURL(n), e.download = r, e.style.display = "none", a.appendChild(e), e.click(), a.removeChild(e), window.URL.revokeObjectURL(e.href);
}
}, async downloadFile(n, r) {
let e = null, a = null;
try {
const u = await fetch(n);
if (!u.ok)
throw new Error("网络响应不正常");
const i = await u.blob();
a = window.URL.createObjectURL(i), e = document.createElement("a"), e.href = a, e.download = r || n.substring(n.lastIndexOf("/") + 1), document.body.appendChild(e), e.click();
} catch (u) {
throw console.error("下载文件时出错:", u), u;
} finally {
e && document.body.removeChild(e), a && window.URL.revokeObjectURL(a);
}
}, remove() {
this.handleSelectChange();
}, beforeUpload(n, r) {
r.length + this.fileList.length > this.record.options.limit && (this.$message.warning(`最大上传数量为${this.record.options.limit}`), r.splice(this.record.options.limit - this.fileList.length));
}, handleChange(n) {
n.file.status === "done" ? (this.fileList = n.fileList, n.file.response.code === 200 ? this.handleSelectChange() : (this.fileList.pop(), this.$message.error("文件上传失败"))) : n.file.status === "error" && this.$message.error("文件上传失败");
} } }, x0 = { class: "ant-upload-drag-icon" }, k0 = ne("p", { class: "ant-upload-text" }, "单击或拖动文件到此区域", -1), dc = _t(w0, [["render", function(n, r, e, a, u, i) {
const m = Q("upload-outlined"), f = Q("a-button"), l = Q("a-upload"), s = Q("cloud-upload-outlined"), p = Q("a-upload-dragger");
return $(), be("div", { style: it({ width: e.record.options.width }) }, [e.record.options.drag ? ($(), oe(p, { key: 1, class: pt({ "hide-upload-drag": !(u.fileList.length < e.record.options.limit) }), disabled: e.record.options.disabled || e.parentDisabled, name: e.config.uploadFileName || e.record.options.fileName, headers: e.config.uploadFileHeaders || e.record.options.headers, data: e.config.uploadFileData || i.optionsData, action: e.config.uploadFile || e.record.options.action, multiple: e.record.options.multiple, ":fileList": u.fileList, "onUpdate::fileList": r[1] || (r[1] = (g) => u.fileList = g), onPreview: i.handlePreview, onChange: i.handleChange, remove: i.remove, beforeUpload: i.beforeUpload }, { default: V(() => [ne("p", x0, [H(s)]), k0]), _: 1 }, 8, ["class", "disabled", "name", "headers", "data", "action", "multiple", ":fileList", "onPreview", "onChange", "remove", "beforeUpload"])) : ($(), oe(l, { key: 0, disabled: e.record.options.disabled || e.parentDisabled, name: e.config.uploadFileName || e.record.options.fileName, headers: e.config.uploadFileHeaders || e.record.options.headers, data: e.config.uploadFileData || i.optionsData, action: e.config.uploadFile || e.record.options.action, multiple: e.record.options.multiple, fileList: u.fileList, "onUpdate:fileList": r[0] || (r[0] = (g) => u.fileList = g), onPreview: i.handlePreview, onChange: i.handleChange, onRemove: i.remove, beforeUpload: i.beforeUpload }, { default: V(() => [u.fileList.length < e.record.options.limit ? ($(), oe(f, { key: 0, disabled: e.record.options.disabled || e.parentDisabled }, { default: V(() => [H(m), He(Qe(e.record.options.placeholder), 1)]), _: 1 }, 8, ["disabled"])) : ge("", !0)]), _: 1 }, 8, ["disabled", "name", "headers", "data", "action", "multiple", "fileList", "onPreview", "onChange", "onRemove", "beforeUpload"]))], 4);
}]]), C0 = ["disabled"], _0 = { class: "ant-upload-text" }, S0 = ["src"], fc = _t({ name: "KUploadImg", components: { UploadOutlined: ac, PlusOutlined: Tr }, props: ["record", "value", "config", "parentDisabled", "parentConfig"], data: () => ({ fileList: [], previewVisible: !1, previewImageUrl: "", urlOrId: "url" }), computed: { optionsData() {
try {
return JSON.parse(this.record.options.data);
} catch (n) {
return console.error(n), {};
}
} }, watch: { value: { handler(n) {
ut(n) || this.parentConfig === "batch" || this.setFileList();
} } }, mounted() {
ut(this.value) || this.value === "null" || this.value === "[]" || this.setFileList();
}, methods: { setFileList() {
if (typeof this.value == "string")
try {
if (this.record.options.singleData) {
const n = this.record.options.getFileDetail || this.config.getFileDetail;
n ? n(JSON.parse(this.value)).then((r) => {
ut(r) ? this.fileList = JSON.parse(this.value).map((e) => ({ type: e, name: e, status: "done", thumbUrl: e, uid: e, url: e })) : this.fileList = r.map((e) => ({ type: e.suffix, name: e.name, status: "done", thumbUrl: e.thumbnail, uid: e.id, url: e.downloadPath }));
}) : this.fileList = JSON.parse(this.value).map((r) => ({ type: r, name: r, status: "done", thumbUrl: r, uid: r, url: r }));
} else
this.fileList = JSON.parse(this.value);
this.handleSelectChange();
} catch {
this.handleSelectChange();
}
else if (this.record.options.singleData) {
const n = this.record.options.getFileDetail || this.config.getFileDetail;
n ? n(this.value).then((r) => {
ut(r) ? this.fileList = this.value.map((e) => ({ type: e, name: e, status: "done", thumbUrl: e, uid: e, url: e })) : this.fileList = r.map((e) => ({ type: e.suffix, name: e.name, status: "done", thumbUrl: e.thumbnail, uid: e.id, url: e.downloadPath }));
}) : this.fileList = this.value.map((r) => ({ type: r, name: r, status: "done", thumbUrl: r, uid: r, url: r }));
} else
this.fileList = this.value;
}, handleSelectChange() {
setTimeout(() => {
const n = this.fileList.map((r) => {
if (r.response !== void 0) {
const e = r.response;
return this.record.options.singleData ? e.data || "" : { type: r.type, name: r.name, status: r.status, uid: r.uid, url: e.data || "" };
}
return this.record.options.singleData ? r.url || "" : { type: r.type, name: r.name, status: r.status, uid: r.uid, url: r.url || "" };
});
this.$emit("change", n), this.$emit("input", n);
}, 10);
}, handlePreview(n) {
this.previewImageUrl = n.response ? n.response.data : n.url, this.previewVisible = !0;
}, handleCancel() {
this.previewVisible = !1;
}, remove() {
this.handleSelectChange();
}, beforeUpload(n, r) {
r.length + this.fileList.length > this.record.options.limit && (this.$message.warning(`最大上传数量为${this.record.options.limit}`), r.splice(this.record.options.limit - this.fileList.length));
}, handleChange(n) {
n.file.status === "done" ? (this.fileList = n.fileList, n.file.response.code === 200 ? this.handleSelectChange() : (this.fileList.pop(), this.$message.error("图片上传失败"))) : n.file.status === "error" && this.$message.error("图片上传失败");
} } }, [["render", function(n, r, e, a, u, i) {
const m = Q("upload-outlined"), f = Q("a-button"), l = Q("plus-outlined"), s = Q("a-upload"), p = Q("a-modal");
return $(), be("div", { style: it({ width: e.record.options.width }), class: "upload-img-box-9136076486841527" }, [H(s, { name: e.config.uploadImageName || e.record.options.fileName, headers: e.config.uploadImageHeaders || e.record.options.headers, data: e.config.uploadImageData || i.optionsData, action: e.config.uploadImage || e.record.options.action, multiple: e.record.options.multiple, listType: e.record.options.listType, disabled: e.record.options.disabled || e.parentDisabled, fileList: u.fileList, accept: "image/gif, image/jpeg, image/png", onChange: i.handleChange, onPreview: i.handlePreview, onRemove: i.remove, beforeUpload: i.beforeUpload }, { default: V(() => [e.record.options.listType !== "picture-card" && u.fileList.length < e.record.options.limit ? ($(), oe(f, { key: 0, disabled: e.record.options.disabled || e.parentDisabled }, { default: V(() => [H(m), He(" " + Qe(e.record.options.placeholder), 1)]), _: 1 }, 8, ["disabled"])) : ge("", !0), e.record.options.listType === "picture-card" && u.fileList.length < e.record.options.limit ? ($(), be("div", { key: 1, disabled: e.record.options.disabled || e.parentDisabled }, [H(l), ne("div", _0, Qe(e.record.options.placeholder), 1)], 8, C0)) : ge("", !0)]), _: 1 }, 8, ["name", "headers", "data", "action", "multiple", "listType", "disabled", "fileList", "onChange", "onPreview", "onRemove", "beforeUpload"]), H(p, { open: u.previewVisible, footer: null, onCancel: i.handleCancel }, { default: V(() => [ne("img", { alt: "example", style: { width: "100%" }, src: u.previewImageUrl }, null, 8, S0)]), _: 1 }, 8, ["open", "onCancel"])], 4);
}]]);
var qn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function zo(n) {
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}
var xh = { exports: {} };
xh.exports = function() {
var n = 1e3, r = 6e4, e = 36e5, a = "millisecond", u = "second", i = "minute", m = "hour", f = "day", l = "week", s = "month", p = "quarter", g = "year", c = "date", y = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
var N = ["th", "st", "nd", "rd"], j = w % 100;
return "[" + w + (N[(j - 20) % 10] || N[j] || N[0]) + "]";
} }, S = function(w, N, j) {
var W = String(w);
return !W || W.length >= N ? w : "" + Array(N + 1 - W.length).join(j) + w;
}, M = { s: S, z: function(w) {
var N = -w.utcOffset(), j = Math.abs(N), W = Math.floor(j / 60), q = j % 60;
return (N <= 0 ? "+" : "-") + S(W, 2, "0") + ":" + S(q, 2, "0");
}, m: function w(N, j) {
if (N.date() < j.date())
return -w(j, N);
var W = 12 * (j.year() - N.year()) + (j.month() - N.month()), q = N.clone().add(W, s), B = j - q < 0, J = N.clone().add(W + (B ? -1 : 1), s);
return +(-(W + (j - q) / (B ? q - J : J - q)) || 0);
}, a: function(w) {
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
}, p: function(w) {
return { M: s, y: g, w: l, d: f, D: c, h: m, m: i, s: u, ms: a, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
}, u: function(w) {
return w === void 0;
} }, _ = "en", T = {};
T[_] = C;
var A = "$isDayjsObject", O = function(w) {
return w instanceof P || !(!w || !w[A]);
}, I = function w(N, j, W) {
var q;
if (!N)
return _;
if (typeof N == "string") {
var B = N.toLowerCase();
T[B] && (q = B), j && (T[B] = j, q = B);
var J = N.split("-");
if (!q && J.length > 1)
return w(J[0]);
} else {
var re = N.name;
T[re] = N, q = re;
}
return !W && q && (_ = q), q || !W && _;
}, z = function(w, N) {
if (O(w))
return w.clone();
var j = typeof N == "object" ? N : {};
return j.date = w, j.args = arguments, new P(j);
}, L = M;
L.l = I, L.i = O, L.w = function(w, N) {
return z(w, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
};
var P = function() {
function w(j) {
this.$L = I(j.locale, null, !0), this.parse(j), this.$x = this.$x || j.x || {}, this[A] = !0;
}
var N = w.prototype;
return N.parse = function(j) {
this.$d = function(W) {
var q = W.date, B = W.utc;
if (q === null)
return /* @__PURE__ */ new Date(NaN);
if (L.u(q))
return /* @__PURE__ */ new Date();
if (q instanceof Date)
return new Date(q);
if (typeof q == "string" && !/Z$/i.test(q)) {
var J = q.match(b);
if (J) {
var re = J[2] - 1 || 0, me = (J[7] || "0").substring(0, 3);
return B ? new Date(Date.UTC(J[1], re, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, me)) : new Date(J[1], re, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, me);
}
}
return new Date(q);
}(j), this.init();
}, N.init = function() {
var j = this.$d;
this.$y = j.getFullYear(), this.$M = j.getMonth(), this.$D = j.getDate(), this.$W = j.getDay(), this.$H = j.getHours(), this.$m = j.getMinutes(), this.$s = j.getSeconds(), this.$ms = j.getMilliseconds();
}, N.$utils = function() {
return L;
}, N.isValid = function() {
return this.$d.toString() !== y;
}, N.isSame = function(j, W) {
var q = z(j);
return this.startOf(W) <= q && q <= this.endOf(W);
}, N.isAfter = function(j, W) {
return z(j) < this.startOf(W);
}, N.isBefore = function(j, W) {
return this.endOf(W) < z(j);
}, N.$g = function(j, W, q) {
return L.u(j) ? this[W] : this.set(q, j);
}, N.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, N.valueOf = function() {
return this.$d.getTime();
}, N.startOf = function(j, W) {
var q = this, B = !!L.u(W) || W, J = L.p(j), re = function(Pe, je) {
var Fe = L.w(q.$u ? Date.UTC(q.$y, je, Pe) : new Date(q.$y, je, Pe), q);
return B ? Fe : Fe.endOf(f);
}, me = function(Pe, je) {
return L.w(q.toDate()[Pe].apply(q.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(je)), q);
}, Oe = this.$W, ce = this.$M, Z = this.$D, he = "set" + (this.$u ? "UTC" : "");
switch (J) {
case g:
return B ? re(1, 0) : re(31, 11);
case s:
return B ? re(1, ce) : re(0, ce + 1);
case l:
var ve = this.$locale().weekStart || 0, we = (Oe < ve ? Oe + 7 : Oe) - ve;
return re(B ? Z - we : Z + (6 - we), ce);
case f:
case c:
return me(he + "Hours", 0);
case m:
return me(he + "Minutes", 1);
case i:
return me(he + "Seconds", 2);
case u:
return me(he + "Milliseconds", 3);
default:
return this.clone();
}
}, N.endOf = function(j) {
return this.startOf(j, !1);
}, N.$set = function(j, W) {
var q, B = L.p(j), J = "set" + (this.$u ? "UTC" : ""), re = (q = {}, q[f] = J + "Date", q[c] = J + "Date", q[s] = J + "Month", q[g] = J + "FullYear", q[m] = J + "Hours", q[i] = J + "Minutes", q[u] = J + "Seconds", q[a] = J + "Milliseconds", q)[B], me = B === f ? this.$D + (W - this.$W) : W;
if (B === s || B === g) {
var Oe = this.clone().set(c, 1);
Oe.$d[re](me), Oe.init(), this.$d = Oe.set(c, Math.min(this.$D, Oe.daysInMonth())).$d;
} else
re && this.$d[re](me);
return this.init(), this;
}, N.set = function(j, W) {
return this.clone().$set(j, W);
}, N.get = function(j) {
return this[L.p(j)]();
}, N.add = function(j, W) {
var q, B = this;
j = Number(j);
var J = L.p(W), re = function(ce) {
var Z = z(B);
return L.w(Z.date(Z.date() + Math.round(ce * j)), B);
};
if (J === s)
return this.set(s, this.$M + j);
if (J === g)
return this.set(g, this.$y + j);
if (J === f)
return re(1);
if (J === l)
return re(7);
var me = (q = {}, q[i] = r, q[m] = e, q[u] = n, q)[J] || 1, Oe = this.$d.getTime() + j * me;
return L.w(Oe, this);
}, N.subtract = function(j, W) {
return this.add(-1 * j, W);
}, N.format = function(j) {
var W = this, q = this.$locale();
if (!this.isValid())
return q.invalidDate || y;
var B = j || "YYYY-MM-DDTHH:mm:ssZ", J = L.z(this), re = this.$H, me = this.$m, Oe = this.$M, ce = q.weekdays, Z = q.months, he = q.meridiem, ve = function(je, Fe, nt, De) {
return je && (je[Fe] || je(W, B)) || nt[Fe].slice(0, De);
}, we = function(je) {
return L.s(re % 12 || 12, je, "0");
}, Pe = he || function(je, Fe, nt) {
var De = je < 12 ? "AM" : "PM";
return nt ? De.toLowerCase() : De;
};
return B.replace(x, function(je, Fe) {
return Fe || function(nt) {
switch (nt) {
case "YY":
return String(W.$y).slice(-2);
case "YYYY":
return L.s(W.$y, 4, "0");
case "M":
return Oe + 1;
case "MM":
return L.s(Oe + 1, 2, "0");
case "MMM":
return ve(q.monthsShort, Oe, Z, 3);
case "MMMM":
return ve(Z, Oe);
case "D":
return W.$D;
case "DD":
return L.s(W.$D, 2, "0");
case "d":
return String(W.$W);
case "dd":
return ve(q.weekdaysMin, W.$W, ce, 2);
case "ddd":
return ve(q.weekdaysShort, W.$W, ce, 3);
case "dddd":
return ce[W.$W];
case "H":
return String(re);
case "HH":
return L.s(re, 2, "0");
case "h":
return we(1);
case "hh":
return we(2);
case "a":
return Pe(re, me, !0);
case "A":
return Pe(re, me, !1);
case "m":
return String(me);
case "mm":
return L.s(me, 2, "0");
case "s":
return String(W.$s);
case "ss":
return L.s(W.$s, 2, "0");
case "SSS":
return L.s(W.$ms, 3, "0");
case "Z":
return J;
}
return null;
}(je) || J.replace(":", "");
});
}, N.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, N.diff = function(j, W, q) {
var B, J = this, re = L.p(W), me = z(j), Oe = (me.utcOffset() - this.utcOffset()) * r, ce = this - me, Z = function() {
return L.m(J, me);
};
switch (re) {
case g:
B = Z() / 12;
break;
case s:
B = Z();
break;
case p:
B = Z() / 3;
break;
case l:
B = (ce - Oe) / 6048e5;
break;
case f:
B = (ce - Oe) / 864e5;
break;
case m:
B = ce / e;
break;
case i:
B = ce / r;
break;
case u:
B = ce / n;
break;
default:
B = ce;
}
return q ? B : L.a(B);
}, N.daysInMonth = function() {
return this.endOf(s).$D;
}, N.$locale = function() {
return T[this.$L];
}, N.locale = function(j, W) {
if (!j)
return this.$L;
var q = this.clone(), B = I(j, W, !0);
return B && (q.$L = B), q;
}, N.clone = function() {
return L.w(this.$d, this);
}, N.toDate = function() {
return new Date(this.valueOf());
}, N.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, N.toISOString = function() {
return this.$d.toISOString();
}, N.toString = function() {
return this.$d.toUTCString();
}, w;
}(), F = P.prototype;
return z.prototype = F, [["$ms", a], ["$s", u], ["$m", i], ["$H", m], ["$W", f], ["$M", s], ["$y", g], ["$D", c]].forEach(function(w) {
F[w[1]] = function(N) {
return this.$g(N, w[0], w[1]);
};
}), z.extend = function(w, N) {
return w.$i || (w(N, P, z), w.$i = !0), z;
}, z.locale = I, z.isDayjs = O, z.unix = function(w) {
return z(1e3 * w);
}, z.en = T[_], z.Ls = T, z.p = {}, z;
}();
const Ft = zo(xh.exports);
var kh = { exports: {} };
kh.exports = function(n, r) {
r.prototype.weekday = function(e) {
var a = this.$locale().weekStart || 0, u = this.$W, i = (u < a ? u + 7 : u) - a;
return this.$utils().u(e) ? i : this.subtract(i, "day").add(e, "day");
};
};
const Ch = zo(kh.exports);
var _h = { exports: {} };
_h.exports = function(n, r, e) {
var a = r.prototype, u = function(s) {
return s && (s.indexOf ? s : s.s);
}, i = function(s, p, g, c, y) {
var b = s.name ? s : s.$locale(), x = u(b[p]), C = u(b[g]), S = x || C.map(function(_) {
return _.slice(0, c);
});
if (!y)
return S;
var M = b.weekStart;
return S.map(function(_, T) {
return S[(T + (M || 0)) % 7];
});
}, m = function() {
return e.Ls[e.locale()];
}, f = function(s, p) {
return s.formats[p] || function(g) {
return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, y, b) {
return y || b.slice(1);
});
}(s.formats[p.toUpperCase()]);
}, l = function() {
var s = this;
return { months: function(p) {
return p ? p.format("MMMM") : i(s, "months");
}, monthsShort: function(p) {
return p ? p.format("MMM") : i(s, "monthsShort", "months", 3);
}, firstDayOfWeek: function() {
return s.$locale().weekStart || 0;
}, weekdays: function(p) {
return p ? p.format("dddd") : i(s, "weekdays");
}, weekdaysMin: function(p) {
return p ? p.format("dd") : i(s, "weekdaysMin", "weekdays", 2);
}, weekdaysShort: function(p) {
return p ? p.format("ddd") : i(s, "weekdaysShort", "weekdays", 3);
}, longDateFormat: function(p) {
return f(s.$locale(), p);
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
};
a.localeData = function() {
return l.bind(this)();
}, e.localeData = function() {
var s = m();
return { firstDayOfWeek: function() {
return s.weekStart || 0;
}, weekdays: function() {
return e.weekdays();
}, weekdaysShort: function() {
return e.weekdaysShort();
}, weekdaysMin: function() {
return e.weekdaysMin();
}, months: function() {
return e.months();
}, monthsShort: function() {
return e.monthsShort();
}, longDateFormat: function(p) {
return f(s, p);
}, meridiem: s.meridiem, ordinal: s.ordinal };
}, e.months = function() {
return i(m(), "months");
}, e.monthsShort = function() {
return i(m(), "monthsShort", "months", 3);
}, e.weekdays = function(s) {
return i(m(), "weekdays", null, null, s);
}, e.weekdaysShort = function(s) {
return i(m(), "weekdaysShort", "weekdays", 3, s);
}, e.weekdaysMin = function(s) {
return i(m(), "weekdaysMin", "weekdays", 2, s);
};
};
const Sh = zo(_h.exports);
Ft.extend(Ch), Ft.extend(Sh);
const O0 = { class: "" }, pc = _t({ props: ["record", "value", "parentDisabled"], data: () => ({ dateValue: void 0 }), computed: { date: { get() {
return !this.value || this.record.options.range && this.value.length === 0 ? void 0 : this.record.options.range ? this.value.map((n) => Ft(n).format(this.record.options.format)) : Ft(this.value).format(this.record.options.format);
}, set(n) {
} } }, watch: { date: { handler(n) {
this.dateValue = n;
}, immediate: !0, deep: !0 } }, methods: { handleSelectChange(n) {
let r;
this.dateValue = n, r = !n || this.record.options.range && n.length === 0 ? "" : this.record.options.range ? n.map((e) => e) : n, this.$emit("change", r), this.$emit("input", r);
} } }, [["render", function(n, r, e, a, u, i) {
const m = Q("a-date-picker"), f = Q("a-range-picker");
return $(), be("div", O0, [e.record.type === "date" && e.record.options.format === "YYYY-MM" && e.record.options.range === !1 ? ($(), oe(m, { key: 0, style: it(`width:${e.record.options.width}`), picker: "month", disabled: e.record.options.disabled || e.parentDisabled, allowClear: e.record.options.clearable, placeholder: e.record.options.placeholder, valueFormat: e.record.options.format, onChange: i.handleSelectChange, value: u.dateValue, "onUpdate:value": r[0] || (r[0] = (l) => u.dateValue = l) }, null, 8, ["style", "disabled", "allowClear", "placeholder", "valueFormat", "onChange", "value"])) : e.record.type === "date" && e.record.options.range === !1 ? ($(), oe(m, { key: 1, style: it(`width:${e.record.options.width}`), disabled: e.record.options.disabled || e.parentDisabled, "show-time": e.record.options.showTime, allowClear: e.record.options.clearable, placeholder: e.record.options.placeholder, valueFormat: e.record.options.format, onChange: i.handleSelectChange, value: u.dateValue }, null, 8, ["style", "disabled", "show-time", "allowClear", "placeholder", "valueFormat", "onChange", "value"])) : e.record.type === "date" && e.record.options.range === !0 ? ($(), oe(f, { key: 2, style: it(`width:${e.record.options.width}`), "show-time": e.record.options.showTime, disabled: e.record.options.disabled || e.parentDisabled, allowClear: e.record.options.clearable, placeholder: e.record.options.rangePlaceholder, valueFormat: e.record.options.format, onChange: i.handleSelectChange, value: u.dateValue }, null, 8, ["style", "show-time", "disabled", "allowClear", "placeholder", "valueFormat", "onChange", "value"])) : ge("", !0)]);
}]]);
Ft.extend(Ch), Ft.extend(Sh);
const T0 = { class: "" }, hc = _t({ props: ["record", "value", "parentDisabled"], computed: { time: { get() {
return this.value ? Ft(this.value, this.record.options.format) : void 0;
}, set(n) {
this.$emit("update:value", n);
} } }, methods: { handleSelectChange(n) {
let r;
r = n ? Ft(n).format(this.record.options.format) : "", this.$emit("change", r), this.$emit("input", r);
} } }, [["render", function(n, r, e, a, u, i) {
const m = Q("a-time-picker");
return $(), be("div", T0, [H(m, { style: it(`width:${e.record.options.width}`), disabled: e.record.options.disabled || e.parentDisabled, allowClear: e.record.options.clearable, placeholder: e.record.options.placeholder, format: e.record.options.format, onChange: i.handleSelectChange, value: i.time }, null, 8, ["style", "disabled", "allowClear", "placeholder", "format", "onChange", "value"])]);
}]]), M0 = { name: "KFormItem", components: { UploadImg: fc, UploadFile: dc, KDatePicker: pc, KTimePicker: hc }, props: ["record", "domains", "index", "value", "parentDisabled", "dynamicData", "config", "recordKey"], computed: { componentItem() {
return mc[this.record.type];
}, componentOption() {
return sc(this.record.options, ["defaultValue", "disabled"]);
} }, methods: { handleChange(n) {
let r = n;
n.target && (r = n.target.value), this.domains[this.index][this.record.model] = r, this.$emit("input", r);
} } }, A0 = { class: "slider" }, I0 = { key: 0, class: "number" }, L0 = ["textContent"], E0 = ["innerHTML"], j0 = { key: 3 }, D0 = { name: "KBatch", components: { KFormModelItem: _t(M0, [["render", function(n, r, e, a, u, i) {
const m = Q("a-textarea"), f = Q("a-radio-group"), l = Q("a-checkbox-group"), s = Q("a-slider"), p = Q("a-input-number"), g = Q("a-form-item");
return ["input", "textarea", "date", "time", "number", "radio", "checkbox", "select", "rate", "switch", "slider", "uploadImg", "uploadFile", "cascader", "treeSelect"].includes(e.record.type) ? ($(), oe(g, { key: 0, name: `${e.recordKey}.${e.index}.${e.record.model}`, rules: e.record.rules }, { default: V(() => [e.record.type === "textarea" ? ($(), oe(m, { key: 0, style: it(`width:${e.record.options.width}`), autoSize: { minRows: e.record.options.minRows, maxRows: e.record.options.maxRows }, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, allowClear: e.record.options.clearable, maxLength: e.record.options.maxLength, rows: 4, value: e.value, onChange: r[0] || (r[0] = (c) => i.handleChange(c.target.value)) }, null, 8, ["style", "autoSize", "disabled", "placeholder", "allowClear", "maxLength", "value"])) : e.record.type === "radio" ? ($(), oe(f, { key: 1, options: e.record.options.options, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, value: e.value, checked: e.value, onChange: r[1] || (r[1] = (c) => i.handleChange(c.target.value)) }, null, 8, ["options", "disabled", "placeholder", "value", "checked"])) : e.record.type === "checkbox" ? ($(), oe(l, { key: 2, options: e.record.options.options, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, value: e.value, onChange: i.handleChange }, null, 8, ["options", "disabled", "placeholder", "value", "onChange"])) : e.record.type === "slider" ? ($(), be("div", { key: 3, style: it(`width:${e.record.options.width}`), class: "slider-box" }, [ne("div", A0, [H(s, { disabled: e.record.options.disabled || e.parentDisabled, min: e.record.options.min, max: e.record.options.max, step: e.record.options.step, value: e.value, onChange: i.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])]), e.record.options.showInput ? ($(), be("div", I0, [H(p, { style: { width: "100%" }, disabled: e.record.options.disabled || e.parentDisabled, min: e.record.options.min, max: e.record.options.max, step: e.record.options.step, value: e.value, onChange: i.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])])) : ge("", !0)], 4)) : ($(), oe(Eo(i.componentItem), Gn({ key: 4, style: `width:${e.record.options.width}` }, i.componentOption, { min: e.record.options.min || e.record.options.min === 0 ? e.record.options.min : -1 / 0, max: e.record.options.max || e.record.options.max === 0 ? e.record.options.max : 1 / 0, count: e.record.options.max, precision: e.record.options.precision > 50 || !e.record.options.precision && e.record.options.precision !== 0 ? null : e.record.options.precision, record: e.record, config: e.config, disabled: e.record.options.disabled || e.parentDisabled, parentDisabled: e.record.options.disabled || e.parentDisabled, allowClear: e.record.options.clearable, dynamicData: e.dynamicData, filterOption: !!e.record.options.showSearch && ((c, y) => y.label.toLowerCase().indexOf(c.toLowerCase()) >= 0), treeData: e.record.options.dynamic ? e.dynamicData[e.record.options.dynamicKey] ? e.dynamicData[e.record.options.dynamicKey] : [] : e.record.options.options, options: e.record.options.options, mode: e.record.options.multiple ? "multiple" : "", checked: e.value, value: e.value, onChange: r[2] || (r[2] = (c) => i.handleChange(c)), parentConfig: "batch" }), null, 16, ["style", "min", "max", "count", "precision", "record", "config", "disabled", "parentDisabled", "allowClear", "dynamicData", "filterOption", "treeData", "options", "mode", "checked", "value"]))]), _: 1 }, 8, ["name", "rules"])) : e.record.type === "text" ? ($(), oe(g, { key: 1 }, { default: V(() => [ne("div", { style: it({ textAlign: e.record.options.textAlign }) }, [ne("label", { class: pt({ "ant-form-item-required": e.record.options.showRequiredMark }), style: it({ fontFamily: e.record.options.fontFamily, fontSize: e.record.options.fontSize, color: e.record.options.color }), textContent: Qe(e.record.label) }, null, 14, L0)], 4)]), _: 1 })) : e.record.type === "html" ? ($(), be("div", { key: 2, innerHTML: e.record.options.defaultValue }, null, 8, E0)) : ($(), be("div", j0));
}], ["__scopeId", "data-v-6320b672"]]), PlusOutlined: Tr, MinusCircleOutlined: Zv, CopyOutlined: lc }, props: ["record", "value", "dynamicData", "config", "parentDisabled"], data: () => ({ dynamicValidateForm: { domains: [] } }), computed: { listLength() {
return this.record.list.filter((n) => !n.options.hidden).length;
}, columns() {
const n = [];
return this.record.options.hideSequence || n.push({ title: "序号", dataIndex: "sequence_index_number", width: "60px", align: "center", customRender: ({ text: r, record: e, index: a }) => a + 1 }), n.push(...this.record.list.filter((r) => !r.options.hidden).map((r, e) => ({ title: r.label, dataIndex: r.key, width: e === this.record.list.length - 1 ? "" : "190px" }))), n.push({ title: "操作", dataIndex: "dynamic-opr-button", fixed: "right", width: "80px", align: "center" }), n;
}, disabled() {
return this.record.options.disabled || this.parentDisabled;
} }, watch: { value: { handler(n) {
n.options.defaultValue && (this.dynamicValidateForm.domains = n.options.defaultValue);
}, immediate: !0, deep: !0 } }, methods: { getValue(n, r, e) {
if (e)
return n[r][e];
}, getItemRecord(n, r, e, a) {
let u = this.getValue(r, e, a);
return this.handleInput(u, e, a), n;
}, validationSubform: () => !0, resetForm() {
this.$refs.dynamicValidateFormTest.resetFields();
}, removeDomain(n) {
const r = this.dynamicValidateForm.domains.indexOf(n);
r !== -1 && this.dynamicValidateForm.domains.splice(r, 1);
}, copyDomain(n) {
const r = {};
this.record.list.forEach((e) => {
r[e.model] = n[e.model];
}), this.dynamicValidateForm.domains.push({ ...r, key: Date.now() }), this.handleInput();
}, addDomain() {
const n = {};
this.record.list.forEach((r) => {
n[r.model] = r.options.defaultValue;
}), this.dynamicValidateForm.domains.push({ ...n, key: Date.now() }), this.handleInput();
}, handleInput(n, r, e) {
this.$emit("change", this.dynamicValidateForm.domains), this.$emit("batchChange", n, `${this.record.model}.${r}.${e}`);
} } }, N0 = { class: "table-wrapper" }, P0 = _t(D0, [["render", function(n, r, e, a, u, i) {
const m = Q("MinusCircleOutlined"), f = Q("CopyOutlined"), l = Q("KFormModelItem"), s = Q("a-table"), p = Q("plus-outlined"), g = Q("a-button");
return $(), be("div", N0, [H(s, { class: "batch-table", pagination: !1, rowKey: (c) => c.key, columns: i.columns, dataSource: u.dynamicValidateForm.domains, bordered: "", scroll: { x: 190 * i.listLength + 80 + (e.record.options.hideSequence ? 0 : 60), y: 400 } }, { bodyCell: V(({ column: c, record: y, index: b }) => [c.dataIndex === "dynamic-opr-button" ? ($(), be(kt, { key: 0 }, [i.disabled ? ge("", !0) : ($(), oe(m, { key: 0, title: "删除该行", class: "dynamic-opr-button", type: "minus-circle-o", onClick: (x) => i.removeDomain(y) }, null, 8, ["onClick"])), i.disabled ? ge("", !0) : ($(), oe(f, { key: 1, title: "复制添加", type: "copy-o", class: "dynamic-opr-button", onClick: (x) => i.copyDomain(y) }, null, 8, ["onClick"]))], 64)) : ge("", !0), ($(!0), be(kt, null, At(e.record.list, (x) => ($(), be(kt, { key: x.key + "1" }, [x.key === c.dataIndex ? ($(), oe(l, { key: 0, record: i.getItemRecord(x, u.dynamicValidateForm.domains, b, c.dataIndex), config: e.config, parentDisabled: i.disabled, index: b, domains: u.dynamicValidateForm.domains, dynamicData: e.dynamicData, value: i.getValue(u.dynamicValidateForm.domains, b, c.dataIndex), onInput: (C) => i.handleInput(C, b, x.model), recordKey: e.record.key }, null, 8, ["record", "config", "parentDisabled", "index", "domains", "dynamicData", "value", "onInput", "recordKey"])) : ge("", !0)], 64))), 128))]), _: 1 }, 8, ["rowKey", "columns", "dataSource", "scroll"]), H(g, { type: "dashed", disabled: i.disabled, onClick: i.addDomain, style: { "margin-top": "8px" } }, { default: V(() => [H(p), He(" 增加 ")]), _: 1 }, 8, ["disabled", "onClick"])]);
}], ["__scopeId", "data-v-1bccd081"]]), R0 = { name: "KFormItem", components: { UploadImg: fc, UploadFile: dc, KDatePicker: pc, KTimePicker: hc }, props: ["record", "domains", "index", "value", "parentDisabled", "dynamicData", "config"], computed: { componentItem() {
return mc[this.record.type];
}, componentOption() {
return sc(this.record.options, ["defaultValue", "disabled"]);
} }, methods: { handleChange(n) {
let r = n;
n.target && (r = n.target.value), this.$emit("input", r);
} } }, z0 = { class: "slider" }, F0 = { key: 0, class: "number" }, q0 = ["textContent"], H0 = ["innerHTML"], B0 = { key: 3 }, V0 = { name: "KBatch", components: { KFormModelItem: _t(R0, [["render", function(n, r, e, a, u, i) {
const m = Q("a-textarea"), f = Q("a-radio-group"), l = Q("a-checkbox-group"), s = Q("a-slider"), p = Q("a-input-number"), g = Q("a-form-model-item");
return ["input", "textarea", "date", "time", "number", "radio", "checkbox", "select", "rate", "switch", "slider", "uploadImg", "uploadFile", "cascader", "treeSelect"].includes(e.record.type) ? ($(), oe(g, { key: 0, prop: `domains.${e.record.model}`, rules: e.record.rules }, { default: V(() => [e.record.type === "textarea" ? ($(), oe(m, { key: 0, style: it(`width:${e.record.options.width}`), autoSize: { minRows: e.record.options.minRows, maxRows: e.record.options.maxRows }, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, allowClear: e.record.options.clearable, maxLength: e.record.options.maxLength, rows: 4, value: e.value, onChange: r[0] || (r[0] = (c) => i.handleChange(c.target.value)) }, null, 8, ["style", "autoSize", "disabled", "placeholder", "allowClear", "maxLength", "value"])) : e.record.type === "radio" ? ($(), oe(f, { key: 1, options: e.record.options.options, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, value: e.value, checked: e.value, onChange: r[1] || (r[1] = (c) => i.handleChange(c.target.value)) }, null, 8, ["options", "disabled", "placeholder", "value", "checked"])) : e.record.type === "checkbox" ? ($(), oe(l, { key: 2, options: e.record.options.options, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, value: e.value, onChange: i.handleChange }, null, 8, ["options", "disabled", "placeholder", "value", "onChange"])) : e.record.type === "slider" ? ($(), be("div", { key: 3, style: it(`width:${e.record.options.width}`), class: "slider-box" }, [ne("div", z0, [H(s, { disabled: e.record.options.disabled || e.parentDisabled, min: e.record.options.min, max: e.record.options.max, step: e.record.options.step, value: e.value, onChange: i.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])]), e.record.options.showInput ? ($(), be("div", F0, [H(p, { style: { width: "100%" }, disabled: e.record.options.disabled || e.parentDisabled, min: e.record.options.min, max: e.record.options.max, step: e.record.options.step, value: e.value, onChange: i.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])])) : ge("", !0)], 4)) : ($(), oe(Eo(i.componentItem), Gn({ key: 4, style: `width:${e.record.options.width !== "100%" ? e.record.options.width : "120px"}` }, i.componentOption, { min: e.record.options.min || e.record.options.min === 0 ? e.record.options.min : -1 / 0, max: e.record.options.max || e.record.options.max === 0 ? e.record.options.max : 1 / 0, count: e.record.options.max, precision: e.record.options.precision > 50 || !e.record.options.precision && e.record.options.precision !== 0 ? null : e.record.options.precision, record: e.record, config: e.config, disabled: e.record.options.disabled || e.parentDisabled, parentDisabled: e.record.options.disabled || e.parentDisabled, allowClear: e.record.options.clearable, dynamicData: e.dynamicData, filterOption: !!e.record.options.showSearch && ((c, y) => y.label.toLowerCase().indexOf(c.toLowerCase()) >= 0), treeData: e.record.options.dynamic ? e.dynamicData[e.record.options.dynamicKey] ? e.dynamicData[e.record.options.dynamicKey] : [] : e.record.options.options, options: e.record.options.options, mode: e.record.options.multiple ? "multiple" : "", checked: e.value, value: e.value, onChange: r[2] || (r[2] = (c) => i.handleChange(c)) }), null, 16, ["style", "min", "max", "count", "precision", "record", "config", "disabled", "parentDisabled", "allowClear", "dynamicData", "filterOption", "treeData", "options", "mode", "checked", "value"]))]), _: 1 }, 8, ["prop", "rules"])) : e.record.type === "text" ? ($(), oe(g, { key: 1 }, { default: V(() => [ne("div", { style: it({ textAlign: e.record.options.textAlign }) }, [ne("label", { class: pt({ "ant-form-item-required": e.record.options.showRequiredMark }), style: it({ fontFamily: e.record.options.fontFamily, fontSize: e.record.options.fontSize, color: e.record.options.color }), textContent: Qe(e.record.label) }, null, 14, q0)], 4)]), _: 1 })) : e.record.type === "html" ? ($(), be("div", { key: 2, innerHTML: e.record.options.defaultValue }, null, 8, H0)) : ($(), be("div", B0));
}], ["__scopeId", "data-v-017f6de0"]]) }, props: ["record", "value", "dynamicData", "config", "parentDisabled"], data: () => ({ dynamicValidateForm: { domains: [] } }), computed: { disabled() {
return this.record.options.disabled || this.parentDisabled;
} }, watch: { value: { handler(n) {
const r = n.columns || [];
r.length || this.record.columns.forEach((e) => {
const a = {};
e.list.forEach((u) => u.model && (a[u.model] = null)), a.checked = !1, a.value = e.value, a.label = e.label, r.push(a);
}), this.dynamicValidateForm.domains = r;
}, immediate: !0, deep: !0 } }, mounted() {
this.handleInput();
}, methods: { validationSubform() {
let n;
return this.$refs.dynamicValidateForm.validate((r) => {
n = r;
}), n;
}, resetForm() {
this.$refs.dynamicValidateForm.resetFields();
}, onCheckboxChange(n, r) {
this.dynamicValidateForm.domains[r].checked = n.target.checked, this.handleInput();
}, onRadioChange(n, r) {
this.dynamicValidateForm.domains.forEach((e) => e.checked = !1), this.dynamicValidateForm.domains[r].checked = n.target.checked, this.handleInput();
}, handleInput() {
this.$emit("change", this.dynamicValidateForm.domains);
} } }, U0 = _t(V0, [["render", function(n, r, e, a, u, i) {
const m = Q("a-checkbox"), f = Q("a-radio"), l = Q("a-form-model-item"), s = Q("KFormModelItem"), p = Q("a-form-model");
return $(), oe(p, { class: "select-input-list-box", ref: "dynamicValidateForm", layout: "inline", model: u.dynamicValidateForm }, { default: V(() => [($(!0), be(kt, null, At(e.record.columns, (g, c) => ($(), be("div", { key: c }, [H(l, null, { default: V(() => [e.record.options.multiple ? ($(), oe(m, { key: 0, onChange: (y) => i.onCheckboxChange(y, c), checked: u.dynamicValidateForm.domains[c].checked }, { default: V(() => [He(Qe(g.label), 1)]), _: 2 }, 1032, ["onChange", "checked"])) : ($(), oe(f, { key: 1, onChange: (y) => i.onRadioChange(y, c), checked: u.dynamicValidateForm.domains[c].checked }, { default: V(() => [He(Qe(g.label), 1)]), _: 2 }, 1032, ["onChange", "checked"]))]), _: 2 }, 1024), ($(!0), be(kt, null, At(g.list, (y, b) => ($(), be("span", { key: b }, [($(), oe(s, { key: y.key + "1", record: y, config: e.config, parentDisabled: i.disabled, domains: u.dynamicValidateForm.domains[c], dynamicData: e.dynamicData, modelValue: u.dynamicValidateForm.domains[c][y.model], "onUpdate:modelValue": (x) => u.dynamicValidateForm.domains[c][y.model] = x, onInput: i.handleInput }, null, 8, ["record", "config", "parentDisabled", "domains", "dynamicData", "modelValue", "onUpdate:modelValue", "onInput"]))]))), 128))]))), 128))]), _: 1 }, 8, ["model"]);
}]]);
var Oh, $0 = { exports: {} };
/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
typeof self < "u", Oh = function() {
return function(n) {
var r = {};
function e(a) {
if (r[a])
return r[a].exports;
var u = r[a] = { i: a, l: !1, exports: {} };
return n[a].call(u.exports, u, u.exports, e), u.l = !0, u.exports;
}
return e.m = n, e.c = r, e.d = function(a, u, i) {
e.o(a, u) || Object.defineProperty(a, u, { configurable: !1, enumerable: !0, get: i });
}, e.n = function(a) {
var u = a && a.__esModule ? function() {
return a.default;
} : function() {
return a;
};
return e.d(u, "a", u), u;
}, e.o = function(a, u) {
return Object.prototype.hasOwnProperty.call(a, u);
}, e.p = "", e(e.s = 109);
}([function(n, r, e) {
Object.defineProperty(r, "__esModule", { value: !0 });
var a = e(17), u = e(18), i = e(19), m = e(45), f = e(46), l = e(47), s = e(48), p = e(49), g = e(12), c = e(32), y = e(33), b = e(31), x = e(1), C = { Scope: x.Scope, create: x.create, find: x.find, query: x.query, register: x.register, Container: a.default, Format: u.default, Leaf: i.default, Embed: s.default, Scroll: m.default, Block: l.default, Inline: f.default, Text: p.default, Attributor: { Attribute: g.default, Class: c.default, Style: y.default, Store: b.default } };
r.default = C;
}, function(n, r, e) {
var a, u = this && this.__extends || (a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, y) {
c.__proto__ = y;
} || function(c, y) {
for (var b in y)
y.hasOwnProperty(b) && (c[b] = y[b]);
}, function(c, y) {
function b() {
this.constructor = c;
}
a(c, y), c.prototype = y === null ? Object.create(y) : (b.prototype = y.prototype, new b());
});
Object.defineProperty(r, "__esModule", { value: !0 });
var i = function(c) {
function y(b) {
var x = this;
return b = "[Parchment] " + b, (x = c.call(this, b) || this).message = b, x.name = x.constructor.name, x;
}
return u(y, c), y;
}(Error);
r.ParchmentError = i;
var m, f = {}, l = {}, s = {}, p = {};
function g(c, y) {
var b;
if (y === void 0 && (y = m.ANY), typeof c == "string")
b = p[c] || f[c];
else if (c in