sun-form-v3 1.0.111 → 1.0.112
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-Bo6zmGb6.js → index-3L0Fw4_g.js} +1 -1
- package/dist/{index-jtbWVpP5.js → index-B7IjCAoY.js} +44 -38
- package/dist/{index-CfMcrNr6.js → index-Bh16RjWJ.js} +1 -1
- package/dist/{index-CuSra5OV.js → index-CIHsF6XJ.js} +1 -1
- package/dist/{index-KDhC5Ui8.js → index-DWKTt0Cc.js} +1 -1
- package/dist/{index-D2SkyZSC.js → index-JD_yMSaO.js} +1 -1
- package/dist/{index-7D4cXSE3.js → index-UQgUqYxf.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 +10 -10
- 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-B7IjCAoY.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|
@@ -78228,10 +78228,13 @@ const YZe = {
|
|
78228
78228
|
resultCb: ({ funRes: x, httpRes: E, errRes: C }) => {
|
78229
78229
|
o.value = !1;
|
78230
78230
|
},
|
78231
|
-
paramCb: (x) => ({
|
78231
|
+
paramCb: (x) => (console.log("params", x), console.log("result", y), {
|
78232
78232
|
...x,
|
78233
78233
|
...y
|
78234
|
-
})
|
78234
|
+
}),
|
78235
|
+
otherCb: () => {
|
78236
|
+
o.value = !1;
|
78237
|
+
}
|
78235
78238
|
});
|
78236
78239
|
} catch {
|
78237
78240
|
o.value = !1;
|
@@ -78349,7 +78352,7 @@ const YZe = {
|
|
78349
78352
|
]);
|
78350
78353
|
};
|
78351
78354
|
}
|
78352
|
-
}), JZe = /* @__PURE__ */ Tl(ZZe, [["__scopeId", "data-v-
|
78355
|
+
}), JZe = /* @__PURE__ */ Tl(ZZe, [["__scopeId", "data-v-baf40510"]]), QZe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
78353
78356
|
__proto__: null,
|
78354
78357
|
default: JZe
|
78355
78358
|
}, Symbol.toStringTag, { value: "Module" })), eJe = /* @__PURE__ */ Object.assign({ name: "widget-homepage" }, {
|
@@ -88917,54 +88920,57 @@ class ige {
|
|
88917
88920
|
widget: n = null,
|
88918
88921
|
resultCb: r = null,
|
88919
88922
|
paramCb: i = null,
|
88920
|
-
headerCb: o = null
|
88923
|
+
headerCb: o = null,
|
88924
|
+
otherCb: a = null
|
88921
88925
|
}) {
|
88922
88926
|
if (!this.showMode)
|
88923
88927
|
return;
|
88924
|
-
let
|
88925
|
-
if (!
|
88928
|
+
let s = n.props[t];
|
88929
|
+
if (!s || !s.apiurl)
|
88926
88930
|
return;
|
88927
|
-
let
|
88928
|
-
if (
|
88929
|
-
|
88930
|
-
}),
|
88931
|
-
|
88932
|
-
}), i && (
|
88933
|
-
let
|
88934
|
-
${
|
88935
|
-
})()`),
|
88936
|
-
var
|
88937
|
-
if (
|
88931
|
+
let l = {}, u = {}, c = s.method;
|
88932
|
+
if (s.contentType == "FormData" && (c == "post" || c == "put" || c == "patch") && (c += "FormData"), s.contentType == "file" && (c += "File"), s.params.length && s.params.forEach((p) => {
|
88933
|
+
l[p.label] = p.value;
|
88934
|
+
}), s.headers && s.headers.length && s.headers.forEach((p) => {
|
88935
|
+
u[p.label] = p.value;
|
88936
|
+
}), i && (l = i(l)), o && (u = o(u)), s.paramsFormat) {
|
88937
|
+
let p = new Function("params", "widget", "app", `return (async function(){
|
88938
|
+
${s.paramsFormat}
|
88939
|
+
})()`), h = this.$utils.clone(l, !0);
|
88940
|
+
var f = await p(h, n, this);
|
88941
|
+
if (f && typeof this.$utils.isPlainObject(f) && (l = f), f === !1) {
|
88942
|
+
a && a();
|
88938
88943
|
return;
|
88944
|
+
}
|
88939
88945
|
}
|
88940
|
-
if (
|
88941
|
-
let
|
88942
|
-
${
|
88943
|
-
})()`),
|
88944
|
-
var
|
88945
|
-
if (
|
88946
|
+
if (s.headersFormat) {
|
88947
|
+
let p = new Function("headers", "widget", "app", `return (async function(){
|
88948
|
+
${s.headersFormat}
|
88949
|
+
})()`), h = this.$utils.clone(u, !0);
|
88950
|
+
var f = await p(h, n, this);
|
88951
|
+
if (f && typeof this.$utils.isPlainObject(f) && (u = f), f === !1)
|
88946
88952
|
return;
|
88947
88953
|
}
|
88948
|
-
let
|
88949
|
-
|
88950
|
-
if (
|
88951
|
-
let
|
88952
|
-
${
|
88953
|
-
})()`)(
|
88954
|
+
let d = {};
|
88955
|
+
s.isQuery && (d = l), this.$http[c](s.apiurl, l, u, d).then(async (p) => {
|
88956
|
+
if (s.successFormat) {
|
88957
|
+
let y = await new Function("res", "widget", "app", `return (async function(){
|
88958
|
+
${s.successFormat}
|
88959
|
+
})()`)(p, n, this);
|
88954
88960
|
r && r({
|
88955
|
-
funRes:
|
88956
|
-
httpRes:
|
88961
|
+
funRes: y,
|
88962
|
+
httpRes: p
|
88957
88963
|
});
|
88958
88964
|
} else
|
88959
88965
|
r && r({
|
88960
88966
|
funRes: null,
|
88961
|
-
httpRes:
|
88967
|
+
httpRes: p
|
88962
88968
|
});
|
88963
|
-
}).catch(async (
|
88964
|
-
|
88965
|
-
${
|
88966
|
-
})()`)(
|
88967
|
-
errRes:
|
88969
|
+
}).catch(async (p) => {
|
88970
|
+
s.errorFormat && new Function("error", "widget", "app", `return (async function(){
|
88971
|
+
${s.errorFormat}
|
88972
|
+
})()`)(p, n, this), r && r({
|
88973
|
+
errRes: p
|
88968
88974
|
});
|
88969
88975
|
});
|
88970
88976
|
}
|
@@ -92865,7 +92871,7 @@ const LH = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
|
|
92865
92871
|
},
|
92866
92872
|
setup(e) {
|
92867
92873
|
const n = Object.fromEntries(
|
92868
|
-
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-cascader/index.vue": () => import("./index-vN8Pef9j.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-
|
92874
|
+
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-cascader/index.vue": () => import("./index-vN8Pef9j.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-Bh16RjWJ.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-DWKTt0Cc.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-j-KEXzR8.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-B0fldwhm.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-UQgUqYxf.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-JD_yMSaO.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-3L0Fw4_g.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-CIHsF6XJ.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
|
92869
92875
|
const y = p.match(/\/([^/]+)\/index\.vue$/);
|
92870
92876
|
return [y ? y[1] : null, d_e(h)];
|
92871
92877
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as x, resolveComponent as m, openBlock as H, createElementBlock as T, Fragment as A, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as L, createElementVNode as V, toDisplayString as k, createCommentVNode as R } from "vue";
|
2
|
-
import { _ as $ } from "./index-
|
2
|
+
import { _ as $ } from "./index-B7IjCAoY.js";
|
3
3
|
const J = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex h-full flex-col"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as S, ref as C, resolveComponent as p, openBlock as U, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as g, unref as i, isRef as J, createElementVNode as f } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-B7IjCAoY.js";
|
3
3
|
const E = { class: "h-full flex flex-col" }, H = { class: "flex-1 overflow-hidden" }, B = {
|
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 v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, 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-B7IjCAoY.js";
|
3
3
|
const R = { class: "flex-wrap flex" }, S = ["onClick"], T = { 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" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-B7IjCAoY.js";
|
3
3
|
const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-B7IjCAoY.js";
|
3
3
|
const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|