sun-form-v3 1.0.94 → 1.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-0uHaNbAY.js → index-CKOWn9ta.js} +1 -1
- package/dist/{index-DjnpS_nN.js → index-COY4ZzZo.js} +1 -1
- package/dist/{index-C5p41SA4.js → index-CRe7mlio.js} +1 -1
- package/dist/{index-hn1cb6ui.js → index-D62T4a6W.js} +1 -1
- package/dist/{index-B2sOA6Dw.js → index-mUiSTJoV.js} +31 -4
- package/dist/{index-CCitDq_n.js → index-pvDKBz_X.js} +1 -1
- package/dist/{index-C7OcHL5P.js → index-yoPZClGY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +7 -2
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
-
import { c } from "./index-
|
2
|
+
import { c } from "./index-mUiSTJoV.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-mUiSTJoV.js";
|
3
3
|
const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-mUiSTJoV.js";
|
3
3
|
const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as x, resolveComponent as s, openBlock as k, createElementBlock as T, Fragment as E, createVNode as e, unref as l, withCtx as a, createTextVNode as _, isRef as L, createElementVNode as f, toDisplayString as h, createCommentVNode as D, pushScopeId as B, popScopeId as J } from "vue";
|
2
|
-
import { _ as R } from "./index-
|
2
|
+
import { _ as R } from "./index-mUiSTJoV.js";
|
3
3
|
const I = (c) => (B("data-v-75dc2686"), c = c(), J(), c), W = /* @__PURE__ */ I(() => /* @__PURE__ */ f("span", null, "复杂表头配置", -1)), q = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex h-full flex-col"
|
@@ -76542,7 +76542,7 @@ const PXe = {
|
|
76542
76542
|
}
|
76543
76543
|
}, d = async () => {
|
76544
76544
|
let p = r.value.formType;
|
76545
|
-
if (
|
76545
|
+
if (p === "Detail" || p === "Update")
|
76546
76546
|
try {
|
76547
76547
|
if (!r.value.apiSetDetail.apiurl)
|
76548
76548
|
return;
|
@@ -76645,7 +76645,7 @@ const PXe = {
|
|
76645
76645
|
]);
|
76646
76646
|
};
|
76647
76647
|
}
|
76648
|
-
}), LXe = /* @__PURE__ */ uu(kXe, [["__scopeId", "data-v-
|
76648
|
+
}), LXe = /* @__PURE__ */ uu(kXe, [["__scopeId", "data-v-f8ada729"]]), FXe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
76649
76649
|
__proto__: null,
|
76650
76650
|
default: LXe
|
76651
76651
|
}, Symbol.toStringTag, { value: "Module" })), jXe = /* @__PURE__ */ Object.assign({ name: "widget-homepage" }, {
|
@@ -86611,8 +86611,24 @@ function fwt(e, t, n) {
|
|
86611
86611
|
l.props.style.height = "100%";
|
86612
86612
|
let u = n.getChosenInitData(r.datatable);
|
86613
86613
|
e.forEach((y) => {
|
86614
|
+
(y.dataSource || y.dict) && (y.controlType = "select");
|
86614
86615
|
let _ = n.getChosenInitData(r[y.controlType]), x = _.props;
|
86615
|
-
if (x.required = !0, x.label = y.comment, x.zdname = y.fieldName,
|
86616
|
+
if (x.required = !0, x.label = y.comment, x.zdname = y.fieldName, y.dataSource && y.dataSourceShowField && y.dataSourceRealField && (x.apiSet = {
|
86617
|
+
method: "post",
|
86618
|
+
apiurl: "/common/" + y.dataSource.replace("tb_", "") + "/list",
|
86619
|
+
params: [],
|
86620
|
+
headers: [],
|
86621
|
+
contentType: "JSON",
|
86622
|
+
paramsFormat: "",
|
86623
|
+
headersFormat: "",
|
86624
|
+
successFormat: `return res.data.map(e => {
|
86625
|
+
return {
|
86626
|
+
label:e.${y.dataSourceShowField},
|
86627
|
+
value:e.${y.dataSourceRealField}
|
86628
|
+
}
|
86629
|
+
})`,
|
86630
|
+
errorFormat: ""
|
86631
|
+
}), !y.isPrimary && y.fieldName != "createdAt" && y.fieldName != "updatedAt" && (l.widgetList.push(_), y.isCreate || i.push(_.id), y.isUpdate || o.push(_.id)), y.isTable) {
|
86616
86632
|
let S = n.getTableCompInitData("datatableitem", r.datatableitem, 2);
|
86617
86633
|
S.props.label = y.comment, S.props.zdname = y.fieldName, u.widgetList.push(S);
|
86618
86634
|
}
|
@@ -86753,6 +86769,17 @@ class che {
|
|
86753
86769
|
immediate: !0
|
86754
86770
|
});
|
86755
86771
|
}
|
86772
|
+
/**
|
86773
|
+
* 异步事件处理函数
|
86774
|
+
* @param {Object} params - 事件处理函数的参数对象
|
86775
|
+
* @param {any} [params.value=null] - 事件相关的值
|
86776
|
+
* @param {string} params.eventType - 事件类型
|
86777
|
+
* @param {Object} params.widget - 事件相关的组件
|
86778
|
+
* @param {Function} params.cb - 回调函数,用于处理事件处理结果
|
86779
|
+
* @param {Object} params.tableItemData - 表格项数据
|
86780
|
+
* @param {Object} params.tableColumn - 表格列信息
|
86781
|
+
* @param {boolean} params.showInDesign - 设计模式下是否显示
|
86782
|
+
*/
|
86756
86783
|
async eventHandle({
|
86757
86784
|
value: t = null,
|
86758
86785
|
eventType: n,
|
@@ -90488,7 +90515,7 @@ const h8 = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
|
|
90488
90515
|
},
|
90489
90516
|
setup(e) {
|
90490
90517
|
const n = Object.fromEntries(
|
90491
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-
|
90518
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-D62T4a6W.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-yoPZClGY.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BU3xx_sm.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-BYSQOsYK.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-DIwhu60e.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DVgKDMax.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-XP0bVDnU.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-Bb57DL9x.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-eJQFWCeP.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-pvDKBz_X.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-CRe7mlio.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-BVfC-7wG.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-CKOWn9ta.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-COY4ZzZo.js") })).map(([p, g]) => {
|
90492
90519
|
const y = p.match(/\/([^/]+)\/index\.vue$/);
|
90493
90520
|
return [y ? y[1] : null, b0e(g)];
|
90494
90521
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-mUiSTJoV.js";
|
3
3
|
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
-
import { e as E, i as M } from "./index-
|
2
|
+
import { e as E, i as M } from "./index-mUiSTJoV.js";
|
3
3
|
const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|