xichen-oa-form-design
Version:
基于vue3、ant-design-vue4的表单设计器,可视化开发表单
686 lines • 1.38 MB
JavaScript
var Ov = Object.defineProperty;
var Tv = (t, r, e) => r in t ? Ov(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
var za = (t, r, e) => (Tv(t, typeof r != "symbol" ? r + "" : r, e), e);
import { Empty as ul, message as xn, Cascader as Mv, Switch as Av, Slider as Ev, Rate as Lv, Radio as Iv, Checkbox as Nv, Select as jv, InputNumber as Dv, Input as Pv } from "ant-design-vue";
import { CloudUploadOutlined as Rv, UploadOutlined as Ec, PlusOutlined as jr, CopyOutlined as Lc, MinusCircleOutlined as zv, CloseCircleFilled as ao, MinusOutlined as wo, CloseOutlined as Fv, RedoOutlined as qv, UndoOutlined as Hv, DeleteOutlined as As, CodeOutlined as Bv, CreditCardOutlined as Uv, ChromeOutlined as Vv, SaveOutlined as $v, QuestionCircleOutlined as Uh, BorderVerticleOutlined as Wv, BorderHorizontalOutlined as Kv, BorderInnerOutlined as Yv, CaretRightOutlined as Gv, CaretDownOutlined as Xv } from "@ant-design/icons-vue";
import { isEmpty as pt, omit as Ic, remove as wt, cloneDeep as tl, merge as Es } from "lodash-es";
import { resolveComponent as Q, createElementBlock as be, openBlock as W, normalizeStyle as st, createBlock as re, withCtx as U, createCommentVNode as ge, createVNode as H, createTextVNode as He, toDisplayString as et, normalizeClass as yt, createElementVNode as ne, resolveDynamicComponent as qo, mergeProps as ar, Fragment as Ot, renderList as Nt, defineComponent as En, h as Zv, onMounted as xo, onBeforeUnmount as Vh, ref as se, watch as Ct, nextTick as hi, unref as mt, renderSlot as mo, createSlots as Jv, withModifiers as un, withDirectives as Yn, vShow as lr, markRaw as Nc, shallowRef as $h, getCurrentInstance as Ls, computed as rn, pushScopeId as Vo, popScopeId as $o, readonly as Wh, getCurrentScope as Qv, onScopeDispose as e1, reactive as Gr, inject as Kh, provide as t1, useSlots as n1, vModelText as r1, Teleport as o1, withKeys as i1 } from "vue";
import jc from "vuedraggable-es";
const At = (t, r) => {
const e = t.__vccOpts || t;
for (const [i, l] of r)
e[i] = l;
return e;
}, a1 = { name: "KUploadFile", components: { UploadOutlined: Ec, CloudUploadOutlined: Rv }, props: ["record", "value", "config", "parentDisabled", "dynamicData", "parentConfig"], data: () => ({ fileList: [] }), computed: { optionsData() {
try {
return JSON.parse(this.record.options.data);
} catch (t) {
return console.error(t), {};
}
} }, watch: { value: { handler(t) {
pt(t) || this.parentConfig === "batch" || this.setFileList();
} } }, mounted() {
pt(this.value) || this.value === "null" || this.value === "[]" || this.setFileList();
}, methods: { setFileList() {
if (typeof this.value == "string")
try {
if (this.record.options.singleData) {
const t = this.record.options.getFileDetail || this.config.getFileDetail;
t ? t(JSON.parse(this.value)).then((r) => {
pt(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 t = this.record.options.getFileDetail || this.config.getFileDetail;
t ? t(this.value).then((r) => {
pt(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 t = 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", t), this.$emit("input", t);
}, 10);
}, handlePreview(t) {
const r = this.record.options.downloadWay, e = this.record.options.dynamicFun;
r === "a" ? this.downloadFile(t.response ? t.response.data : t.url, t.name) : r === "ajax" ? this.getBlob(t.response.data || t.thumbUrl).then((i) => {
this.saveAs(i, t.name);
}) : r === "dynamic" && this.dynamicData[e](t);
}, getBlob: (t) => new Promise((r) => {
const e = new XMLHttpRequest();
e.open("GET", t, !0), e.responseType = "blob", e.onload = () => {
e.status === 200 && r(e.response);
}, e.send();
}), saveAs(t, r) {
if (window.navigator.msSaveOrOpenBlob)
navigator.msSaveBlob(t, r);
else {
const e = document.createElement("a"), i = document.querySelector("body");
e.href = window.URL.createObjectURL(t), e.download = r, e.style.display = "none", i.appendChild(e), e.click(), i.removeChild(e), window.URL.revokeObjectURL(e.href);
}
}, async downloadFile(t, r) {
let e = null, i = null;
try {
const l = await fetch(t);
if (!l.ok)
throw new Error("网络响应不正常");
const o = await l.blob();
i = window.URL.createObjectURL(o), e = document.createElement("a"), e.href = i, e.download = r || t.substring(t.lastIndexOf("/") + 1), document.body.appendChild(e), e.click();
} catch (l) {
throw console.error("下载文件时出错:", l), l;
} finally {
e && document.body.removeChild(e), i && window.URL.revokeObjectURL(i);
}
}, remove() {
this.handleSelectChange();
}, beforeUpload(t, 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(t) {
t.file.status === "done" ? (this.fileList = t.fileList, t.file.response.code === 200 ? this.handleSelectChange() : (this.fileList.pop(), this.$message.error("文件上传失败"))) : t.file.status === "error" && this.$message.error("文件上传失败");
} } }, l1 = { class: "ant-upload-drag-icon" }, s1 = ne("p", { class: "ant-upload-text" }, "单击或拖动文件到此区域", -1), Dc = At(a1, [["render", function(t, r, e, i, l, o) {
const f = Q("upload-outlined"), d = Q("a-button"), s = Q("a-upload"), c = Q("cloud-upload-outlined"), u = Q("a-upload-dragger");
return W(), be("div", { style: st({ width: e.record.options.width }) }, [e.record.options.drag ? (W(), re(u, { key: 1, class: yt({ "hide-upload-drag": !(l.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 || o.optionsData, action: e.config.uploadFile || e.record.options.action, multiple: e.record.options.multiple, ":fileList": l.fileList, "onUpdate::fileList": r[1] || (r[1] = (h) => l.fileList = h), onPreview: o.handlePreview, onChange: o.handleChange, remove: o.remove, beforeUpload: o.beforeUpload }, { default: U(() => [ne("p", l1, [H(c)]), s1]), _: 1 }, 8, ["class", "disabled", "name", "headers", "data", "action", "multiple", ":fileList", "onPreview", "onChange", "remove", "beforeUpload"])) : (W(), re(s, { 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 || o.optionsData, action: e.config.uploadFile || e.record.options.action, multiple: e.record.options.multiple, fileList: l.fileList, "onUpdate:fileList": r[0] || (r[0] = (h) => l.fileList = h), onPreview: o.handlePreview, onChange: o.handleChange, onRemove: o.remove, beforeUpload: o.beforeUpload }, { default: U(() => [l.fileList.length < e.record.options.limit ? (W(), re(d, { key: 0, disabled: e.record.options.disabled || e.parentDisabled }, { default: U(() => [H(f), He(et(e.record.options.placeholder), 1)]), _: 1 }, 8, ["disabled"])) : ge("", !0)]), _: 1 }, 8, ["disabled", "name", "headers", "data", "action", "multiple", "fileList", "onPreview", "onChange", "onRemove", "beforeUpload"]))], 4);
}]]), u1 = ["disabled"], c1 = { class: "ant-upload-text" }, d1 = ["src"], Pc = At({ name: "KUploadImg", components: { UploadOutlined: Ec, PlusOutlined: jr }, props: ["record", "value", "config", "parentDisabled", "parentConfig"], data: () => ({ fileList: [], previewVisible: !1, previewImageUrl: "", urlOrId: "url" }), computed: { optionsData() {
try {
return JSON.parse(this.record.options.data);
} catch (t) {
return console.error(t), {};
}
} }, watch: { value: { handler(t) {
pt(t) || this.parentConfig === "batch" || this.setFileList();
} } }, mounted() {
pt(this.value) || this.value === "null" || this.value === "[]" || this.setFileList();
}, methods: { setFileList() {
if (typeof this.value == "string")
try {
if (this.record.options.singleData) {
const t = this.record.options.getFileDetail || this.config.getFileDetail;
t ? t(JSON.parse(this.value)).then((r) => {
pt(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 t = this.record.options.getFileDetail || this.config.getFileDetail;
t ? t(this.value).then((r) => {
pt(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 t = 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", t), this.$emit("input", t);
}, 10);
}, handlePreview(t) {
this.previewImageUrl = t.response ? t.response.data : t.url, this.previewVisible = !0;
}, handleCancel() {
this.previewVisible = !1;
}, remove() {
this.handleSelectChange();
}, beforeUpload(t, 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(t) {
t.file.status === "done" ? (this.fileList = t.fileList, t.file.response.code === 200 ? this.handleSelectChange() : (this.fileList.pop(), this.$message.error("图片上传失败"))) : t.file.status === "error" && this.$message.error("图片上传失败");
} } }, [["render", function(t, r, e, i, l, o) {
const f = Q("upload-outlined"), d = Q("a-button"), s = Q("plus-outlined"), c = Q("a-upload"), u = Q("a-modal");
return W(), be("div", { style: st({ width: e.record.options.width }), class: "upload-img-box-9136076486841527" }, [H(c, { name: e.config.uploadImageName || e.record.options.fileName, headers: e.config.uploadImageHeaders || e.record.options.headers, data: e.config.uploadImageData || o.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: l.fileList, accept: "image/gif, image/jpeg, image/png", onChange: o.handleChange, onPreview: o.handlePreview, onRemove: o.remove, beforeUpload: o.beforeUpload }, { default: U(() => [e.record.options.listType !== "picture-card" && l.fileList.length < e.record.options.limit ? (W(), re(d, { key: 0, disabled: e.record.options.disabled || e.parentDisabled }, { default: U(() => [H(f), He(" " + et(e.record.options.placeholder), 1)]), _: 1 }, 8, ["disabled"])) : ge("", !0), e.record.options.listType === "picture-card" && l.fileList.length < e.record.options.limit ? (W(), be("div", { key: 1, disabled: e.record.options.disabled || e.parentDisabled }, [H(s), ne("div", c1, et(e.record.options.placeholder), 1)], 8, u1)) : ge("", !0)]), _: 1 }, 8, ["name", "headers", "data", "action", "multiple", "listType", "disabled", "fileList", "onChange", "onPreview", "onRemove", "beforeUpload"]), H(u, { open: l.previewVisible, footer: null, onCancel: o.handleCancel }, { default: U(() => [ne("img", { alt: "example", style: { width: "100%" }, src: l.previewImageUrl }, null, 8, d1)]), _: 1 }, 8, ["open", "onCancel"])], 4);
}]]);
var Xn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Wo(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Yh = { exports: {} };
Yh.exports = function() {
var t = 1e3, r = 6e4, e = 36e5, i = "millisecond", l = "second", o = "minute", f = "hour", d = "day", s = "week", c = "month", u = "quarter", h = "year", p = "date", v = "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 $ = String(w);
return !$ || $.length >= N ? w : "" + Array(N + 1 - $.length).join(j) + w;
}, M = { s: S, z: function(w) {
var N = -w.utcOffset(), j = Math.abs(N), $ = Math.floor(j / 60), q = j % 60;
return (N <= 0 ? "+" : "-") + S($, 2, "0") + ":" + S(q, 2, "0");
}, m: function w(N, j) {
if (N.date() < j.date())
return -w(j, N);
var $ = 12 * (j.year() - N.year()) + (j.month() - N.month()), q = N.clone().add($, c), B = j - q < 0, J = N.clone().add($ + (B ? -1 : 1), c);
return +(-($ + (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: c, y: h, w: s, d, D: p, h: f, m: o, s: l, ms: i, Q: u }[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 D || !(!w || !w[A]);
}, E = function w(N, j, $) {
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 le = N.name;
T[le] = N, q = le;
}
return !$ && q && (_ = q), q || !$ && _;
}, z = function(w, N) {
if (O(w))
return w.clone();
var j = typeof N == "object" ? N : {};
return j.date = w, j.args = arguments, new D(j);
}, I = M;
I.l = E, I.i = O, I.w = function(w, N) {
return z(w, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
};
var D = function() {
function w(j) {
this.$L = E(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($) {
var q = $.date, B = $.utc;
if (q === null)
return /* @__PURE__ */ new Date(NaN);
if (I.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 le = J[2] - 1 || 0, pe = (J[7] || "0").substring(0, 3);
return B ? new Date(Date.UTC(J[1], le, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, pe)) : new Date(J[1], le, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, pe);
}
}
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 I;
}, N.isValid = function() {
return this.$d.toString() !== v;
}, N.isSame = function(j, $) {
var q = z(j);
return this.startOf($) <= q && q <= this.endOf($);
}, N.isAfter = function(j, $) {
return z(j) < this.startOf($);
}, N.isBefore = function(j, $) {
return this.endOf($) < z(j);
}, N.$g = function(j, $, q) {
return I.u(j) ? this[$] : this.set(q, j);
}, N.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, N.valueOf = function() {
return this.$d.getTime();
}, N.startOf = function(j, $) {
var q = this, B = !!I.u($) || $, J = I.p(j), le = function(je, Me) {
var ze = I.w(q.$u ? Date.UTC(q.$y, Me, je) : new Date(q.$y, Me, je), q);
return B ? ze : ze.endOf(d);
}, pe = function(je, Me) {
return I.w(q.toDate()[je].apply(q.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Me)), q);
}, Ce = this.$W, ce = this.$M, X = this.$D, de = "set" + (this.$u ? "UTC" : "");
switch (J) {
case h:
return B ? le(1, 0) : le(31, 11);
case c:
return B ? le(1, ce) : le(0, ce + 1);
case s:
var he = this.$locale().weekStart || 0, ve = (Ce < he ? Ce + 7 : Ce) - he;
return le(B ? X - ve : X + (6 - ve), ce);
case d:
case p:
return pe(de + "Hours", 0);
case f:
return pe(de + "Minutes", 1);
case o:
return pe(de + "Seconds", 2);
case l:
return pe(de + "Milliseconds", 3);
default:
return this.clone();
}
}, N.endOf = function(j) {
return this.startOf(j, !1);
}, N.$set = function(j, $) {
var q, B = I.p(j), J = "set" + (this.$u ? "UTC" : ""), le = (q = {}, q[d] = J + "Date", q[p] = J + "Date", q[c] = J + "Month", q[h] = J + "FullYear", q[f] = J + "Hours", q[o] = J + "Minutes", q[l] = J + "Seconds", q[i] = J + "Milliseconds", q)[B], pe = B === d ? this.$D + ($ - this.$W) : $;
if (B === c || B === h) {
var Ce = this.clone().set(p, 1);
Ce.$d[le](pe), Ce.init(), this.$d = Ce.set(p, Math.min(this.$D, Ce.daysInMonth())).$d;
} else
le && this.$d[le](pe);
return this.init(), this;
}, N.set = function(j, $) {
return this.clone().$set(j, $);
}, N.get = function(j) {
return this[I.p(j)]();
}, N.add = function(j, $) {
var q, B = this;
j = Number(j);
var J = I.p($), le = function(ce) {
var X = z(B);
return I.w(X.date(X.date() + Math.round(ce * j)), B);
};
if (J === c)
return this.set(c, this.$M + j);
if (J === h)
return this.set(h, this.$y + j);
if (J === d)
return le(1);
if (J === s)
return le(7);
var pe = (q = {}, q[o] = r, q[f] = e, q[l] = t, q)[J] || 1, Ce = this.$d.getTime() + j * pe;
return I.w(Ce, this);
}, N.subtract = function(j, $) {
return this.add(-1 * j, $);
}, N.format = function(j) {
var $ = this, q = this.$locale();
if (!this.isValid())
return q.invalidDate || v;
var B = j || "YYYY-MM-DDTHH:mm:ssZ", J = I.z(this), le = this.$H, pe = this.$m, Ce = this.$M, ce = q.weekdays, X = q.months, de = q.meridiem, he = function(Me, ze, nt, Ie) {
return Me && (Me[ze] || Me($, B)) || nt[ze].slice(0, Ie);
}, ve = function(Me) {
return I.s(le % 12 || 12, Me, "0");
}, je = de || function(Me, ze, nt) {
var Ie = Me < 12 ? "AM" : "PM";
return nt ? Ie.toLowerCase() : Ie;
};
return B.replace(x, function(Me, ze) {
return ze || function(nt) {
switch (nt) {
case "YY":
return String($.$y).slice(-2);
case "YYYY":
return I.s($.$y, 4, "0");
case "M":
return Ce + 1;
case "MM":
return I.s(Ce + 1, 2, "0");
case "MMM":
return he(q.monthsShort, Ce, X, 3);
case "MMMM":
return he(X, Ce);
case "D":
return $.$D;
case "DD":
return I.s($.$D, 2, "0");
case "d":
return String($.$W);
case "dd":
return he(q.weekdaysMin, $.$W, ce, 2);
case "ddd":
return he(q.weekdaysShort, $.$W, ce, 3);
case "dddd":
return ce[$.$W];
case "H":
return String(le);
case "HH":
return I.s(le, 2, "0");
case "h":
return ve(1);
case "hh":
return ve(2);
case "a":
return je(le, pe, !0);
case "A":
return je(le, pe, !1);
case "m":
return String(pe);
case "mm":
return I.s(pe, 2, "0");
case "s":
return String($.$s);
case "ss":
return I.s($.$s, 2, "0");
case "SSS":
return I.s($.$ms, 3, "0");
case "Z":
return J;
}
return null;
}(Me) || J.replace(":", "");
});
}, N.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, N.diff = function(j, $, q) {
var B, J = this, le = I.p($), pe = z(j), Ce = (pe.utcOffset() - this.utcOffset()) * r, ce = this - pe, X = function() {
return I.m(J, pe);
};
switch (le) {
case h:
B = X() / 12;
break;
case c:
B = X();
break;
case u:
B = X() / 3;
break;
case s:
B = (ce - Ce) / 6048e5;
break;
case d:
B = (ce - Ce) / 864e5;
break;
case f:
B = ce / e;
break;
case o:
B = ce / r;
break;
case l:
B = ce / t;
break;
default:
B = ce;
}
return q ? B : I.a(B);
}, N.daysInMonth = function() {
return this.endOf(c).$D;
}, N.$locale = function() {
return T[this.$L];
}, N.locale = function(j, $) {
if (!j)
return this.$L;
var q = this.clone(), B = E(j, $, !0);
return B && (q.$L = B), q;
}, N.clone = function() {
return I.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 = D.prototype;
return z.prototype = F, [["$ms", i], ["$s", l], ["$m", o], ["$H", f], ["$W", d], ["$M", c], ["$y", h], ["$D", p]].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, D, z), w.$i = !0), z;
}, z.locale = E, z.isDayjs = O, z.unix = function(w) {
return z(1e3 * w);
}, z.en = T[_], z.Ls = T, z.p = {}, z;
}();
const $t = Wo(Yh.exports);
var Gh = { exports: {} };
Gh.exports = function(t, r) {
r.prototype.weekday = function(e) {
var i = this.$locale().weekStart || 0, l = this.$W, o = (l < i ? l + 7 : l) - i;
return this.$utils().u(e) ? o : this.subtract(o, "day").add(e, "day");
};
};
const Xh = Wo(Gh.exports);
var Zh = { exports: {} };
Zh.exports = function(t, r, e) {
var i = r.prototype, l = function(c) {
return c && (c.indexOf ? c : c.s);
}, o = function(c, u, h, p, v) {
var b = c.name ? c : c.$locale(), x = l(b[u]), C = l(b[h]), S = x || C.map(function(_) {
return _.slice(0, p);
});
if (!v)
return S;
var M = b.weekStart;
return S.map(function(_, T) {
return S[(T + (M || 0)) % 7];
});
}, f = function() {
return e.Ls[e.locale()];
}, d = function(c, u) {
return c.formats[u] || function(h) {
return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, v, b) {
return v || b.slice(1);
});
}(c.formats[u.toUpperCase()]);
}, s = function() {
var c = this;
return { months: function(u) {
return u ? u.format("MMMM") : o(c, "months");
}, monthsShort: function(u) {
return u ? u.format("MMM") : o(c, "monthsShort", "months", 3);
}, firstDayOfWeek: function() {
return c.$locale().weekStart || 0;
}, weekdays: function(u) {
return u ? u.format("dddd") : o(c, "weekdays");
}, weekdaysMin: function(u) {
return u ? u.format("dd") : o(c, "weekdaysMin", "weekdays", 2);
}, weekdaysShort: function(u) {
return u ? u.format("ddd") : o(c, "weekdaysShort", "weekdays", 3);
}, longDateFormat: function(u) {
return d(c.$locale(), u);
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
};
i.localeData = function() {
return s.bind(this)();
}, e.localeData = function() {
var c = f();
return { firstDayOfWeek: function() {
return c.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(u) {
return d(c, u);
}, meridiem: c.meridiem, ordinal: c.ordinal };
}, e.months = function() {
return o(f(), "months");
}, e.monthsShort = function() {
return o(f(), "monthsShort", "months", 3);
}, e.weekdays = function(c) {
return o(f(), "weekdays", null, null, c);
}, e.weekdaysShort = function(c) {
return o(f(), "weekdaysShort", "weekdays", 3, c);
}, e.weekdaysMin = function(c) {
return o(f(), "weekdaysMin", "weekdays", 2, c);
};
};
const Jh = Wo(Zh.exports);
$t.extend(Xh), $t.extend(Jh);
const f1 = { class: "" }, Rc = At({ 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((t) => $t(t).format(this.record.options.format)) : $t(this.value).format(this.record.options.format);
}, set(t) {
} } }, watch: { date: { handler(t) {
this.dateValue = t;
}, immediate: !0, deep: !0 } }, methods: { handleSelectChange(t) {
let r;
this.dateValue = t, r = !t || this.record.options.range && t.length === 0 ? "" : this.record.options.range ? t.map((e) => e) : t, this.$emit("change", r), this.$emit("input", r);
} } }, [["render", function(t, r, e, i, l, o) {
const f = Q("a-date-picker"), d = Q("a-range-picker");
return W(), be("div", f1, [e.record.type === "date" && e.record.options.format === "YYYY-MM" && e.record.options.range === !1 ? (W(), re(f, { key: 0, style: st(`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: o.handleSelectChange, value: l.dateValue, "onUpdate:value": r[0] || (r[0] = (s) => l.dateValue = s) }, null, 8, ["style", "disabled", "allowClear", "placeholder", "valueFormat", "onChange", "value"])) : e.record.type === "date" && e.record.options.range === !1 ? (W(), re(f, { key: 1, style: st(`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: o.handleSelectChange, value: l.dateValue }, null, 8, ["style", "disabled", "show-time", "allowClear", "placeholder", "valueFormat", "onChange", "value"])) : e.record.type === "date" && e.record.options.range === !0 ? (W(), re(d, { key: 2, style: st(`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: o.handleSelectChange, value: l.dateValue }, null, 8, ["style", "show-time", "disabled", "allowClear", "placeholder", "valueFormat", "onChange", "value"])) : ge("", !0)]);
}]]);
$t.extend(Xh), $t.extend(Jh);
const p1 = { class: "" }, zc = At({ props: ["record", "value", "parentDisabled"], computed: { time: { get() {
return this.value ? $t(this.value, this.record.options.format) : void 0;
}, set(t) {
this.$emit("update:value", t);
} } }, methods: { handleSelectChange(t) {
let r;
r = t ? $t(t).format(this.record.options.format) : "", this.$emit("change", r), this.$emit("input", r);
} } }, [["render", function(t, r, e, i, l, o) {
const f = Q("a-time-picker");
return W(), be("div", p1, [H(f, { style: st(`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: o.handleSelectChange, value: o.time }, null, 8, ["style", "disabled", "allowClear", "placeholder", "format", "onChange", "value"])]);
}]]), h1 = { name: "KFormItem", components: { UploadImg: Pc, UploadFile: Dc, KDatePicker: Rc, KTimePicker: zc }, props: ["record", "domains", "index", "value", "parentDisabled", "dynamicData", "config", "recordKey"], computed: { componentItem() {
return qc[this.record.type];
}, componentOption() {
return Ic(this.record.options, ["defaultValue", "disabled"]);
} }, methods: { handleChange(t) {
let r = t;
t.target && (r = t.target.value), this.domains[this.index][this.record.model] = r, this.$emit("input", r);
} } }, g1 = { class: "slider" }, m1 = { key: 0, class: "number" }, v1 = ["textContent"], y1 = ["innerHTML"], b1 = { key: 3 }, w1 = { name: "KBatch", components: { KFormModelItem: At(h1, [["render", function(t, r, e, i, l, o) {
const f = Q("a-textarea"), d = Q("a-radio-group"), s = Q("a-checkbox-group"), c = Q("a-slider"), u = Q("a-input-number"), h = Q("a-form-item");
return ["input", "textarea", "date", "time", "number", "radio", "checkbox", "select", "rate", "switch", "slider", "uploadImg", "uploadFile", "cascader", "treeSelect"].includes(e.record.type) ? (W(), re(h, { key: 0, name: `${e.recordKey}.${e.index}.${e.record.model}`, rules: e.record.rules }, { default: U(() => [e.record.type === "textarea" ? (W(), re(f, { key: 0, style: st(`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] = (p) => o.handleChange(p.target.value)) }, null, 8, ["style", "autoSize", "disabled", "placeholder", "allowClear", "maxLength", "value"])) : e.record.type === "radio" ? (W(), re(d, { 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] = (p) => o.handleChange(p.target.value)) }, null, 8, ["options", "disabled", "placeholder", "value", "checked"])) : e.record.type === "checkbox" ? (W(), re(s, { key: 2, options: e.record.options.options, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, value: e.value, onChange: o.handleChange }, null, 8, ["options", "disabled", "placeholder", "value", "onChange"])) : e.record.type === "slider" ? (W(), be("div", { key: 3, style: st(`width:${e.record.options.width}`), class: "slider-box" }, [ne("div", g1, [H(c, { 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: o.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])]), e.record.options.showInput ? (W(), be("div", m1, [H(u, { 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: o.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])])) : ge("", !0)], 4)) : (W(), re(qo(o.componentItem), ar({ key: 4, style: `width:${e.record.options.width}` }, o.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 && ((p, v) => v.label.toLowerCase().indexOf(p.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] = (p) => o.handleChange(p)), 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" ? (W(), re(h, { key: 1 }, { default: U(() => [ne("div", { style: st({ textAlign: e.record.options.textAlign }) }, [ne("label", { class: yt({ "ant-form-item-required": e.record.options.showRequiredMark }), style: st({ fontFamily: e.record.options.fontFamily, fontSize: e.record.options.fontSize, color: e.record.options.color }), textContent: et(e.record.label) }, null, 14, v1)], 4)]), _: 1 })) : e.record.type === "html" ? (W(), be("div", { key: 2, innerHTML: e.record.options.defaultValue }, null, 8, y1)) : (W(), be("div", b1));
}], ["__scopeId", "data-v-6320b672"]]), PlusOutlined: jr, MinusCircleOutlined: zv, CopyOutlined: Lc }, props: ["record", "value", "dynamicData", "config", "parentDisabled"], data: () => ({ dynamicValidateForm: { domains: [] } }), computed: { listLength() {
return this.record.list.filter((t) => !t.options.hidden).length;
}, columns() {
const t = [];
return this.record.options.hideSequence || t.push({ title: "序号", dataIndex: "sequence_index_number", width: "60px", align: "center", customRender: ({ text: r, record: e, index: i }) => i + 1 }), t.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" }))), t.push({ title: "操作", dataIndex: "dynamic-opr-button", fixed: "right", width: "80px", align: "center" }), t;
}, disabled() {
return this.record.options.disabled || this.parentDisabled;
} }, watch: { value: { handler(t) {
t.options.defaultValue && (this.dynamicValidateForm.domains = t.options.defaultValue);
}, immediate: !0, deep: !0 } }, methods: { getValue(t, r, e) {
if (e)
return t[r][e];
}, getItemRecord(t, r, e, i) {
let l = this.getValue(r, e, i);
return this.handleInput(l, e, i), t;
}, validationSubform: () => !0, resetForm() {
this.$refs.dynamicValidateFormTest.resetFields();
}, removeDomain(t) {
const r = this.dynamicValidateForm.domains.indexOf(t);
r !== -1 && this.dynamicValidateForm.domains.splice(r, 1);
}, copyDomain(t) {
const r = {};
this.record.list.forEach((e) => {
r[e.model] = t[e.model];
}), this.dynamicValidateForm.domains.push({ ...r, key: Date.now() }), this.handleInput();
}, addDomain() {
const t = {};
this.record.list.forEach((r) => {
t[r.model] = r.options.defaultValue;
}), this.dynamicValidateForm.domains.push({ ...t, key: Date.now() }), this.handleInput();
}, handleInput(t, r, e) {
this.$emit("change", this.dynamicValidateForm.domains), this.$emit("batchChange", t, `${this.record.model}.${r}.${e}`);
} } }, x1 = { class: "table-wrapper" }, k1 = At(w1, [["render", function(t, r, e, i, l, o) {
const f = Q("MinusCircleOutlined"), d = Q("CopyOutlined"), s = Q("KFormModelItem"), c = Q("a-table"), u = Q("plus-outlined"), h = Q("a-button");
return W(), be("div", x1, [H(c, { class: "batch-table", pagination: !1, rowKey: (p) => p.key, columns: o.columns, dataSource: l.dynamicValidateForm.domains, bordered: "", scroll: { x: 190 * o.listLength + 80 + (e.record.options.hideSequence ? 0 : 60), y: 400 } }, { bodyCell: U(({ column: p, record: v, index: b }) => [p.dataIndex === "dynamic-opr-button" ? (W(), be(Ot, { key: 0 }, [o.disabled ? ge("", !0) : (W(), re(f, { key: 0, title: "删除该行", class: "dynamic-opr-button", type: "minus-circle-o", onClick: (x) => o.removeDomain(v) }, null, 8, ["onClick"])), o.disabled ? ge("", !0) : (W(), re(d, { key: 1, title: "复制添加", type: "copy-o", class: "dynamic-opr-button", onClick: (x) => o.copyDomain(v) }, null, 8, ["onClick"]))], 64)) : ge("", !0), (W(!0), be(Ot, null, Nt(e.record.list, (x) => (W(), be(Ot, { key: x.key + "1" }, [x.key === p.dataIndex ? (W(), re(s, { key: 0, record: o.getItemRecord(x, l.dynamicValidateForm.domains, b, p.dataIndex), config: e.config, parentDisabled: o.disabled, index: b, domains: l.dynamicValidateForm.domains, dynamicData: e.dynamicData, value: o.getValue(l.dynamicValidateForm.domains, b, p.dataIndex), onInput: (C) => o.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(h, { type: "dashed", disabled: o.disabled, onClick: o.addDomain, style: { "margin-top": "8px" } }, { default: U(() => [H(u), He(" 增加 ")]), _: 1 }, 8, ["disabled", "onClick"])]);
}], ["__scopeId", "data-v-1bccd081"]]), C1 = { name: "KFormItem", components: { UploadImg: Pc, UploadFile: Dc, KDatePicker: Rc, KTimePicker: zc }, props: ["record", "domains", "index", "value", "parentDisabled", "dynamicData", "config"], computed: { componentItem() {
return qc[this.record.type];
}, componentOption() {
return Ic(this.record.options, ["defaultValue", "disabled"]);
} }, methods: { handleChange(t) {
let r = t;
t.target && (r = t.target.value), this.$emit("input", r);
} } }, _1 = { class: "slider" }, S1 = { key: 0, class: "number" }, O1 = ["textContent"], T1 = ["innerHTML"], M1 = { key: 3 }, A1 = { name: "KBatch", components: { KFormModelItem: At(C1, [["render", function(t, r, e, i, l, o) {
const f = Q("a-textarea"), d = Q("a-radio-group"), s = Q("a-checkbox-group"), c = Q("a-slider"), u = Q("a-input-number"), h = 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) ? (W(), re(h, { key: 0, prop: `domains.${e.record.model}`, rules: e.record.rules }, { default: U(() => [e.record.type === "textarea" ? (W(), re(f, { key: 0, style: st(`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] = (p) => o.handleChange(p.target.value)) }, null, 8, ["style", "autoSize", "disabled", "placeholder", "allowClear", "maxLength", "value"])) : e.record.type === "radio" ? (W(), re(d, { 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] = (p) => o.handleChange(p.target.value)) }, null, 8, ["options", "disabled", "placeholder", "value", "checked"])) : e.record.type === "checkbox" ? (W(), re(s, { key: 2, options: e.record.options.options, disabled: e.record.options.disabled || e.parentDisabled, placeholder: e.record.options.placeholder, value: e.value, onChange: o.handleChange }, null, 8, ["options", "disabled", "placeholder", "value", "onChange"])) : e.record.type === "slider" ? (W(), be("div", { key: 3, style: st(`width:${e.record.options.width}`), class: "slider-box" }, [ne("div", _1, [H(c, { 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: o.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])]), e.record.options.showInput ? (W(), be("div", S1, [H(u, { 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: o.handleChange }, null, 8, ["disabled", "min", "max", "step", "value", "onChange"])])) : ge("", !0)], 4)) : (W(), re(qo(o.componentItem), ar({ key: 4, style: `width:${e.record.options.width !== "100%" ? e.record.options.width : "120px"}` }, o.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 && ((p, v) => v.label.toLowerCase().indexOf(p.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] = (p) => o.handleChange(p)) }), 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" ? (W(), re(h, { key: 1 }, { default: U(() => [ne("div", { style: st({ textAlign: e.record.options.textAlign }) }, [ne("label", { class: yt({ "ant-form-item-required": e.record.options.showRequiredMark }), style: st({ fontFamily: e.record.options.fontFamily, fontSize: e.record.options.fontSize, color: e.record.options.color }), textContent: et(e.record.label) }, null, 14, O1)], 4)]), _: 1 })) : e.record.type === "html" ? (W(), be("div", { key: 2, innerHTML: e.record.options.defaultValue }, null, 8, T1)) : (W(), be("div", M1));
}], ["__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(t) {
const r = t.columns || [];
r.length || this.record.columns.forEach((e) => {
const i = {};
e.list.forEach((l) => l.model && (i[l.model] = null)), i.checked = !1, i.value = e.value, i.label = e.label, r.push(i);
}), this.dynamicValidateForm.domains = r;
}, immediate: !0, deep: !0 } }, mounted() {
this.handleInput();
}, methods: { validationSubform() {
let t;
return this.$refs.dynamicValidateForm.validate((r) => {
t = r;
}), t;
}, resetForm() {
this.$refs.dynamicValidateForm.resetFields();
}, onCheckboxChange(t, r) {
this.dynamicValidateForm.domains[r].checked = t.target.checked, this.handleInput();
}, onRadioChange(t, r) {
this.dynamicValidateForm.domains.forEach((e) => e.checked = !1), this.dynamicValidateForm.domains[r].checked = t.target.checked, this.handleInput();
}, handleInput() {
this.$emit("change", this.dynamicValidateForm.domains);
} } }, E1 = At(A1, [["render", function(t, r, e, i, l, o) {
const f = Q("a-checkbox"), d = Q("a-radio"), s = Q("a-form-model-item"), c = Q("KFormModelItem"), u = Q("a-form-model");
return W(), re(u, { class: "select-input-list-box", ref: "dynamicValidateForm", layout: "inline", model: l.dynamicValidateForm }, { default: U(() => [(W(!0), be(Ot, null, Nt(e.record.columns, (h, p) => (W(), be("div", { key: p }, [H(s, null, { default: U(() => [e.record.options.multiple ? (W(), re(f, { key: 0, onChange: (v) => o.onCheckboxChange(v, p), checked: l.dynamicValidateForm.domains[p].checked }, { default: U(() => [He(et(h.label), 1)]), _: 2 }, 1032, ["onChange", "checked"])) : (W(), re(d, { key: 1, onChange: (v) => o.onRadioChange(v, p), checked: l.dynamicValidateForm.domains[p].checked }, { default: U(() => [He(et(h.label), 1)]), _: 2 }, 1032, ["onChange", "checked"]))]), _: 2 }, 1024), (W(!0), be(Ot, null, Nt(h.list, (v, b) => (W(), be("span", { key: b }, [(W(), re(c, { key: v.key + "1", record: v, config: e.config, parentDisabled: o.disabled, domains: l.dynamicValidateForm.domains[p], dynamicData: e.dynamicData, modelValue: l.dynamicValidateForm.domains[p][v.model], "onUpdate:modelValue": (x) => l.dynamicValidateForm.domains[p][v.model] = x, onInput: o.handleInput }, null, 8, ["record", "config", "parentDisabled", "domains", "dynamicData", "modelValue", "onUpdate:modelValue", "onInput"]))]))), 128))]))), 128))]), _: 1 }, 8, ["model"]);
}]]);
var Qh, L1 = { exports: {} };
/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
typeof self < "u", Qh = function() {
return function(t) {
var r = {};
function e(i) {
if (r[i])
return r[i].exports;
var l = r[i] = { i, l: !1, exports: {} };
return t[i].call(l.exports, l, l.exports, e), l.l = !0, l.exports;
}
return e.m = t, e.c = r, e.d = function(i, l, o) {
e.o(i, l) || Object.defineProperty(i, l, { configurable: !1, enumerable: !0, get: o });
}, e.n = function(i) {
var l = i && i.__esModule ? function() {
return i.default;
} : function() {
return i;
};
return e.d(l, "a", l), l;
}, e.o = function(i, l) {
return Object.prototype.hasOwnProperty.call(i, l);
}, e.p = "", e(e.s = 109);
}([function(t, r, e) {
Object.defineProperty(r, "__esModule", { value: !0 });
var i = e(17), l = e(18), o = e(19), f = e(45), d = e(46), s = e(47), c = e(48), u = e(49), h = e(12), p = e(32), v = 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: i.default, Format: l.default, Leaf: o.default, Embed: c.default, Scroll: f.default, Block: s.default, Inline: d.default, Text: u.default, Attributor: { Attribute: h.default, Class: p.default, Style: v.default, Store: b.default } };
r.default = C;
}, function(t, r, e) {
var i, l = this && this.__extends || (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, v) {
p.__proto__ = v;
} || function(p, v) {
for (var b in v)
v.hasOwnProperty(b) && (p[b] = v[b]);
}, function(p, v) {
function b() {
this.constructor = p;
}
i(p, v), p.prototype = v === null ? Object.create(v) : (b.prototype = v.prototype, new b());
});
Object.defineProperty(r, "__esModule", { value: !0 });
var o = function(p) {
function v(b) {
var x = this;
return b = "[Parchment] " + b, (x = p.call(this, b) || this).message = b, x.name = x.constructor.name, x;
}
return l(v, p), v;
}(Error);
r.ParchmentError = o;
var f, d = {}, s = {}, c = {}, u = {};
function h(p, v) {
var b;
if (v === void 0 && (v = f.ANY), typeof p == "string")
b = u[p] || d[p];
else if (p instance