diry3943542 1 éve
szülő
commit
d8569a637d
5 módosított fájl, 120 hozzáadás és 126 törlés
  1. 1 1
      lib/config.json
  2. 0 0
      lib/css/style.css
  3. 119 119
      lib/js/SFormLayout.js
  4. 0 0
      lib/js/index.js
  5. 0 6
      lib/js/index2.js

+ 1 - 1
lib/config.json

@@ -1 +1 @@
-{"_hash":1727666553896,"VITE_APP_API_BASE_URL":"http://192.168.200.14:2002","VITE_APP_API_FILE_URL":"/","VITE_APP_SOCKET_URL":"/","VITE_USER_NODE_ENV":"production"}
+{"_hash":1727674269889,"VITE_APP_API_BASE_URL":"http://192.168.200.14:2002","VITE_APP_API_FILE_URL":"/","VITE_APP_SOCKET_URL":"/","VITE_USER_NODE_ENV":"production"}

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
lib/css/style.css


+ 119 - 119
lib/js/SFormLayout.js

@@ -1,4 +1,4 @@
-import { defineComponent as Y, createVNode as p, computed as O, resolveComponent as G, openBlock as x, createElementBlock as H, normalizeStyle as F, withCtx as P, createElementVNode as B, toDisplayString as Z, renderSlot as R, createCommentVNode as T, Fragment as tt, renderList as et, createBlock as L, normalizeClass as at, createTextVNode as K } from "vue";
+import { defineComponent as Y, createVNode as m, computed as O, resolveComponent as G, openBlock as x, createElementBlock as H, normalizeStyle as F, withCtx as P, createElementVNode as B, toDisplayString as Z, renderSlot as R, createCommentVNode as T, Fragment as tt, renderList as et, createBlock as L, normalizeClass as at, createTextVNode as K } from "vue";
 import { c as U, _ as z, o as nt, a2 as X, P as g, ap as ct, a4 as D, a3 as ot, ac as dt, d as c, q as pt, t as mt, g as gt, m as ht, r as ut, i as ft, u as $t, aq as St, ar as bt, as as yt, at as vt, j as Ct, a1 as It, a9 as xt, l as wt, au as _t, av as Tt, U as zt, aw as Ht } from "./index2.js";
 import { P as Bt } from "./index18.js";
 function it(t) {
@@ -50,54 +50,54 @@ const rt = () => ({
       emit: n,
       attrs: o
     } = e;
-    const r = (d) => {
-      n("click", d), n("stepClick", t.stepIndex);
-    }, u = (d) => {
+    const r = (p) => {
+      n("click", p), n("stepClick", t.stepIndex);
+    }, u = (p) => {
       let {
         icon: s,
         title: a,
         description: f
-      } = d;
+      } = p;
       const {
         prefixCls: l,
-        stepNumber: C,
+        stepNumber: I,
         status: h,
-        iconPrefix: I,
-        icons: m,
+        iconPrefix: y,
+        icons: d,
         progressDot: $ = i.progressDot,
         stepIcon: _ = i.stepIcon
       } = t;
       let S;
-      const y = U(`${l}-icon`, `${I}icon`, {
-        [`${I}icon-${s}`]: s && it(s),
-        [`${I}icon-check`]: !s && h === "finish" && (m && !m.finish || !m),
-        [`${I}icon-cross`]: !s && h === "error" && (m && !m.error || !m)
-      }), b = p("span", {
+      const v = U(`${l}-icon`, `${y}icon`, {
+        [`${y}icon-${s}`]: s && it(s),
+        [`${y}icon-check`]: !s && h === "finish" && (d && !d.finish || !d),
+        [`${y}icon-cross`]: !s && h === "error" && (d && !d.error || !d)
+      }), b = m("span", {
         class: `${l}-icon-dot`
       }, null);
-      return $ ? typeof $ == "function" ? S = p("span", {
+      return $ ? typeof $ == "function" ? S = m("span", {
         class: `${l}-icon`
       }, [$({
         iconDot: b,
-        index: C - 1,
+        index: I - 1,
         status: h,
         title: a,
         description: f,
         prefixCls: l
-      })]) : S = p("span", {
+      })]) : S = m("span", {
         class: `${l}-icon`
-      }, [b]) : s && !it(s) ? S = p("span", {
+      }, [b]) : s && !it(s) ? S = m("span", {
         class: `${l}-icon`
-      }, [s]) : m && m.finish && h === "finish" ? S = p("span", {
+      }, [s]) : d && d.finish && h === "finish" ? S = m("span", {
         class: `${l}-icon`
-      }, [m.finish]) : m && m.error && h === "error" ? S = p("span", {
+      }, [d.finish]) : d && d.error && h === "error" ? S = m("span", {
         class: `${l}-icon`
-      }, [m.error]) : s || h === "finish" || h === "error" ? S = p("span", {
-        class: y
-      }, null) : S = p("span", {
+      }, [d.error]) : s || h === "finish" || h === "error" ? S = m("span", {
+        class: v
+      }, null) : S = m("span", {
         class: `${l}-icon`
-      }, [C]), _ && (S = _({
-        index: C - 1,
+      }, [I]), _ && (S = _({
+        index: I - 1,
         status: h,
         title: a,
         description: f,
@@ -105,54 +105,54 @@ const rt = () => ({
       })), S;
     };
     return () => {
-      var d, s, a, f;
+      var p, s, a, f;
       const {
         prefixCls: l,
-        itemWidth: C,
+        itemWidth: I,
         active: h,
-        status: I = "wait",
-        tailContent: m,
+        status: y = "wait",
+        tailContent: d,
         adjustMarginRight: $,
         disabled: _,
-        title: S = (d = i.title) === null || d === void 0 ? void 0 : d.call(i),
-        description: y = (s = i.description) === null || s === void 0 ? void 0 : s.call(i),
+        title: S = (p = i.title) === null || p === void 0 ? void 0 : p.call(i),
+        description: v = (s = i.description) === null || s === void 0 ? void 0 : s.call(i),
         subTitle: b = (a = i.subTitle) === null || a === void 0 ? void 0 : a.call(i),
-        icon: v = (f = i.icon) === null || f === void 0 ? void 0 : f.call(i),
+        icon: C = (f = i.icon) === null || f === void 0 ? void 0 : f.call(i),
         onClick: w,
         onStepClick: W
-      } = t, A = I || "wait", Q = U(`${l}-item`, `${l}-item-${A}`, {
-        [`${l}-item-custom`]: v,
+      } = t, A = y || "wait", Q = U(`${l}-item`, `${l}-item-${A}`, {
+        [`${l}-item-custom`]: C,
         [`${l}-item-active`]: h,
         [`${l}-item-disabled`]: _ === !0
       }), N = {};
-      C && (N.width = C), $ && (N.marginRight = $);
+      I && (N.width = I), $ && (N.marginRight = $);
       const M = {
         onClick: w || Dt
       };
       W && !_ && (M.role = "button", M.tabindex = 0, M.onClick = r);
-      const j = p("div", z(z({}, nt(o, ["__legacy"])), {}, {
+      const j = m("div", z(z({}, nt(o, ["__legacy"])), {}, {
         class: [Q, o.class],
         style: [o.style, N]
-      }), [p("div", z(z({}, M), {}, {
+      }), [m("div", z(z({}, M), {}, {
         class: `${l}-item-container`
-      }), [p("div", {
+      }), [m("div", {
         class: `${l}-item-tail`
-      }, [m]), p("div", {
+      }, [d]), m("div", {
         class: `${l}-item-icon`
       }, [u({
-        icon: v,
+        icon: C,
         title: S,
-        description: y
-      })]), p("div", {
+        description: v
+      })]), m("div", {
         class: `${l}-item-content`
-      }, [p("div", {
+      }, [m("div", {
         class: `${l}-item-title`
-      }, [S, b && p("div", {
+      }, [S, b && m("div", {
         title: typeof b == "string" ? b : void 0,
         class: `${l}-item-subtitle`
-      }, [b])]), y && p("div", {
+      }, [b])]), v && m("div", {
         class: `${l}-item-description`
-      }, [y])])])]);
+      }, [v])])])]);
       return t.itemRender ? t.itemRender(j) : j;
     };
   }
@@ -195,26 +195,26 @@ const Pt = Y({
       slots: i,
       emit: n
     } = e;
-    const o = (d) => {
+    const o = (p) => {
       const {
         current: s
       } = t;
-      s !== d && n("change", d);
-    }, r = (d, s, a) => {
+      s !== p && n("change", p);
+    }, r = (p, s, a) => {
       const {
         prefixCls: f,
         iconPrefix: l,
-        status: C,
+        status: I,
         current: h,
-        initial: I,
-        icons: m,
+        initial: y,
+        icons: d,
         stepIcon: $ = i.stepIcon,
         isInline: _,
         itemRender: S,
-        progressDot: y = i.progressDot
-      } = t, b = _ || y, v = c(c({}, d), {
+        progressDot: v = i.progressDot
+      } = t, b = _ || v, C = c(c({}, p), {
         class: ""
-      }), w = I + s, W = {
+      }), w = y + s, W = {
         active: w === h,
         stepNumber: w + 1,
         stepIndex: w,
@@ -223,40 +223,40 @@ const Pt = Y({
         iconPrefix: l,
         progressDot: b,
         stepIcon: $,
-        icons: m,
+        icons: d,
         onStepClick: o
       };
-      return C === "error" && s === h - 1 && (v.class = `${f}-next-error`), v.status || (w === h ? v.status = C : w < h ? v.status = "finish" : v.status = "wait"), _ && (v.icon = void 0, v.subTitle = void 0), a ? a(c(c({}, v), W)) : (S && (v.itemRender = (A) => S(v, A)), p(st, z(z(z({}, v), W), {}, {
+      return I === "error" && s === h - 1 && (C.class = `${f}-next-error`), C.status || (w === h ? C.status = I : w < h ? C.status = "finish" : C.status = "wait"), _ && (C.icon = void 0, C.subTitle = void 0), a ? a(c(c({}, C), W)) : (S && (C.itemRender = (A) => S(C, A)), m(st, z(z(z({}, C), W), {}, {
         __legacy: !1
       }), null));
-    }, u = (d, s) => r(c({}, d.props), s, (a) => pt(d, a));
+    }, u = (p, s) => r(c({}, p.props), s, (a) => pt(p, a));
     return () => {
-      var d;
+      var p;
       const {
         prefixCls: s,
         direction: a,
         type: f,
         labelPlacement: l,
-        iconPrefix: C,
+        iconPrefix: I,
         status: h,
-        size: I,
-        current: m,
+        size: y,
+        current: d,
         progressDot: $ = i.progressDot,
         initial: _,
         icons: S,
-        items: y,
+        items: v,
         isInline: b,
-        itemRender: v
-      } = t, w = Wt(t, ["prefixCls", "direction", "type", "labelPlacement", "iconPrefix", "status", "size", "current", "progressDot", "initial", "icons", "items", "isInline", "itemRender"]), W = f === "navigation", A = b || $, Q = b ? "horizontal" : a, N = b ? void 0 : I, M = A ? "vertical" : l, j = U(s, `${s}-${a}`, {
+        itemRender: C
+      } = t, w = Wt(t, ["prefixCls", "direction", "type", "labelPlacement", "iconPrefix", "status", "size", "current", "progressDot", "initial", "icons", "items", "isInline", "itemRender"]), W = f === "navigation", A = b || $, Q = b ? "horizontal" : a, N = b ? void 0 : y, M = A ? "vertical" : l, j = U(s, `${s}-${a}`, {
         [`${s}-${N}`]: N,
         [`${s}-label-${M}`]: Q === "horizontal",
         [`${s}-dot`]: !!A,
         [`${s}-navigation`]: W,
         [`${s}-inline`]: b
       });
-      return p("div", z({
+      return m("div", z({
         class: j
-      }, w), [y.filter((J) => J).map((J, lt) => r(J, lt)), dt((d = i.default) === null || d === void 0 ? void 0 : d.call(i)).map(u)]);
+      }, w), [v.filter((J) => J).map((J, lt) => r(J, lt)), dt((p = i.default) === null || p === void 0 ? void 0 : p.call(i)).map(u)]);
     };
   }
 }), Xt = (t) => {
@@ -892,10 +892,10 @@ var E;
   t.wait = "wait", t.process = "process", t.finish = "finish", t.error = "error";
 })(E || (E = {}));
 const V = (t, e) => {
-  const i = `${e.componentCls}-item`, n = `${t}IconColor`, o = `${t}TitleColor`, r = `${t}DescriptionColor`, u = `${t}TailColor`, d = `${t}IconBgColor`, s = `${t}IconBorderColor`, a = `${t}DotColor`;
+  const i = `${e.componentCls}-item`, n = `${t}IconColor`, o = `${t}TitleColor`, r = `${t}DescriptionColor`, u = `${t}TailColor`, p = `${t}IconBgColor`, s = `${t}IconBorderColor`, a = `${t}DotColor`;
   return {
     [`${i}-${t} ${i}-icon`]: {
-      backgroundColor: e[d],
+      backgroundColor: e[p],
       borderColor: e[s],
       [`> ${e.componentCls}-icon`]: {
         color: e[n],
@@ -1102,20 +1102,20 @@ const V = (t, e) => {
     fontSize: o,
     controlHeight: r,
     controlHeightLG: u,
-    colorTextLightSolid: d,
+    colorTextLightSolid: p,
     colorText: s,
     colorPrimary: a,
     colorTextLabel: f,
     colorTextDescription: l,
-    colorTextQuaternary: C,
+    colorTextQuaternary: I,
     colorFillContent: h,
-    controlItemBgActive: I,
-    colorError: m,
+    controlItemBgActive: y,
+    colorError: d,
     colorBgContainer: $,
     colorBorderSecondary: _
-  } = t, S = t.controlHeight, y = t.colorSplit, b = ht(t, {
+  } = t, S = t.controlHeight, v = t.colorSplit, b = ht(t, {
     // Steps variable default.less
-    processTailColor: y,
+    processTailColor: v,
     stepsNavArrowColor: i,
     stepsIconSize: S,
     stepsIconCustomSize: S,
@@ -1129,7 +1129,7 @@ const V = (t, e) => {
     stepsCurrentDotSize: u / 4,
     stepsNavContentMaxWidth: "auto",
     // Steps component less variable
-    processIconColor: d,
+    processIconColor: p,
     processTitleColor: s,
     processDescriptionColor: s,
     processIconBgColor: a,
@@ -1138,7 +1138,7 @@ const V = (t, e) => {
     waitIconColor: e ? i : f,
     waitTitleColor: l,
     waitDescriptionColor: l,
-    waitTailColor: y,
+    waitTailColor: v,
     waitIconBgColor: e ? $ : h,
     waitIconBorderColor: e ? i : "transparent",
     waitDotColor: i,
@@ -1146,21 +1146,21 @@ const V = (t, e) => {
     finishTitleColor: s,
     finishDescriptionColor: l,
     finishTailColor: a,
-    finishIconBgColor: e ? $ : I,
-    finishIconBorderColor: e ? a : I,
+    finishIconBgColor: e ? $ : y,
+    finishIconBorderColor: e ? a : y,
     finishDotColor: a,
-    errorIconColor: d,
-    errorTitleColor: m,
-    errorDescriptionColor: m,
-    errorTailColor: y,
-    errorIconBgColor: m,
-    errorIconBorderColor: m,
-    errorDotColor: m,
+    errorIconColor: p,
+    errorTitleColor: d,
+    errorDescriptionColor: d,
+    errorTailColor: v,
+    errorIconBgColor: d,
+    errorIconBorderColor: d,
+    errorDotColor: d,
     stepsNavActiveColor: a,
     stepsProgressSize: u,
     // Steps inline variable
     inlineDotSize: 6,
-    inlineTitleColor: C,
+    inlineTitleColor: I,
     inlineTailColor: _
   });
   return [Kt(b)];
@@ -1204,19 +1204,19 @@ const V = (t, e) => {
     const {
       prefixCls: r,
       direction: u,
-      configProvider: d
-    } = $t("steps", t), [s, a] = Vt(r), [, f] = St(), l = bt(), C = O(() => t.responsive && l.value.xs ? "vertical" : t.direction), h = O(() => d.getPrefixCls("", t.iconPrefix)), I = (y) => {
-      o("update:current", y), o("change", y);
-    }, m = O(() => t.type === "inline"), $ = O(() => m.value ? void 0 : t.percent), _ = (y) => {
+      configProvider: p
+    } = $t("steps", t), [s, a] = Vt(r), [, f] = St(), l = bt(), I = O(() => t.responsive && l.value.xs ? "vertical" : t.direction), h = O(() => p.getPrefixCls("", t.iconPrefix)), y = (v) => {
+      o("update:current", v), o("change", v);
+    }, d = O(() => t.type === "inline"), $ = O(() => d.value ? void 0 : t.percent), _ = (v) => {
       let {
         node: b,
-        status: v
-      } = y;
-      if (v === "process" && t.percent !== void 0) {
+        status: C
+      } = v;
+      if (C === "process" && t.percent !== void 0) {
         const w = t.size === "small" ? f.value.controlHeight : f.value.controlHeightLG;
-        return p("div", {
+        return m("div", {
           class: `${r.value}-progress-icon`
-        }, [p(Bt, {
+        }, [m(Bt, {
           type: "circle",
           percent: $.value,
           size: w,
@@ -1226,33 +1226,33 @@ const V = (t, e) => {
       }
       return b;
     }, S = O(() => ({
-      finish: p(yt, {
+      finish: m(yt, {
         class: `${r.value}-finish-icon`
       }, null),
-      error: p(vt, {
+      error: m(vt, {
         class: `${r.value}-error-icon`
       }, null)
     }));
     return () => {
-      const y = U({
+      const v = U({
         [`${r.value}-rtl`]: u.value === "rtl",
         [`${r.value}-with-progress`]: $.value !== void 0
-      }, i.class, a.value), b = (v, w) => v.description ? p(xt, {
-        title: v.description
+      }, i.class, a.value), b = (C, w) => C.description ? m(xt, {
+        title: C.description
       }, {
         default: () => [w]
       }) : w;
-      return s(p(Pt, z(z(z({
+      return s(m(Pt, z(z(z({
         icons: S.value
       }, i), nt(t, ["percent", "responsive"])), {}, {
         items: t.items,
-        direction: C.value,
+        direction: I.value,
         prefixCls: r.value,
         iconPrefix: h.value,
-        class: y,
-        onChange: I,
-        isInline: m.value,
-        itemRender: m.value ? b : void 0
+        class: v,
+        onChange: y,
+        isInline: d.value,
+        itemRender: d.value ? b : void 0
       }), c({
         stepIcon: _
       }, n)));
@@ -1354,11 +1354,11 @@ const V = (t, e) => {
   methods: {
     initStyle() {
       this.$nextTick(() => {
-        var r, u, d, s, a, f, l, C, h;
-        const t = ((u = (r = this.$refs) == null ? void 0 : r.step) == null ? void 0 : u.offsetHeight) || 0, e = ((s = (d = this.$refs) == null ? void 0 : d.tabs) == null ? void 0 : s.offsetHeight) || 0, i = ((f = (a = this.$refs) == null ? void 0 : a.footer) == null ? void 0 : f.offsetHeight) || 0, n = ((C = (l = this.$refs) == null ? void 0 : l.tools) == null ? void 0 : C.offsetHeight) || 0;
-        this.height = this.$refs.layout.offsetHeight + "px", this.layoutHeight = this.$refs.layout.offsetHeight - i - (t > 0 ? t + 16 : 0) - e - n + "px";
+        var r, u, p, s, a, f, l, I, h, y, d;
+        const t = ((u = (r = this.$refs) == null ? void 0 : r.step) == null ? void 0 : u.offsetHeight) || 0, e = ((s = (p = this.$refs) == null ? void 0 : p.tabs) == null ? void 0 : s.offsetHeight) || 0, i = ((f = (a = this.$refs) == null ? void 0 : a.footer) == null ? void 0 : f.offsetHeight) || 0, n = ((I = (l = this.$refs) == null ? void 0 : l.tools) == null ? void 0 : I.offsetHeight) || 0;
+        console.log("??", this.$refs.layout), this.height = ((h = this.$refs.layout) == null ? void 0 : h.offsetHeight) + "px", this.layoutHeight = ((y = this.$refs.layout) == null ? void 0 : y.offsetHeight) - i - (t > 0 ? t + 16 : 0) - e - n + "px";
         const o = !this.$slots.collapses || this.$slots.collapses && !this.showAnchor ? 0 : 220;
-        this.footerWitdh = ((h = this.$refs.formMain) == null ? void 0 : h.offsetWidth) - o + "px";
+        this.footerWitdh = ((d = this.$refs.formMain) == null ? void 0 : d.offsetWidth) - o + "px";
       });
     },
     isFunction(t) {
@@ -1419,13 +1419,13 @@ const V = (t, e) => {
   class: "collapses-nav"
 }, se = { class: "modal" };
 function le(t, e, i, n, o, r) {
-  const u = q, d = Ut, s = _t, a = Tt, f = G("close-outlined"), l = zt, C = G("arrow-left-outlined"), h = G("arrow-right-outlined"), I = G("save-outlined"), m = Ht;
+  const u = q, p = Ut, s = _t, a = Tt, f = G("close-outlined"), l = zt, I = G("arrow-left-outlined"), h = G("arrow-right-outlined"), y = G("save-outlined"), d = Ht;
   return x(), H("div", {
     class: "form-layout",
     ref: "layout",
     style: F({ height: o.height })
   }, [
-    p(m, { spinning: i.loading }, {
+    m(d, { spinning: i.loading }, {
       default: P(() => [
         i.title || i.subTitle || t.$slots.otherBtns ? (x(), H("div", Qt, [
           B("div", Jt, [
@@ -1441,7 +1441,7 @@ function le(t, e, i, n, o, r) {
           ], 512)) : T("", !0)
         ], 512)) : T("", !0),
         i.steps && i.steps.length ? (x(), H("div", ie, [
-          p(d, {
+          m(p, {
             current: o.stepActive,
             type: "navigation",
             size: "small"
@@ -1457,7 +1457,7 @@ function le(t, e, i, n, o, r) {
           }, 8, ["current"])
         ], 512)) : T("", !0),
         i.tabs && i.tabs.length ? (x(), H("div", ne, [
-          p(a, {
+          m(a, {
             "default-active-key": "1",
             onChange: r.handTabChange
           }, {
@@ -1509,7 +1509,7 @@ function le(t, e, i, n, o, r) {
             class: "btn"
           }, {
             default: P(() => [
-              p(f),
+              m(f),
               e[0] || (e[0] = K("取消 "))
             ]),
             _: 1
@@ -1521,7 +1521,7 @@ function le(t, e, i, n, o, r) {
             onClick: r.handPrev
           }, {
             default: P(() => [
-              p(C),
+              m(I),
               e[1] || (e[1] = K("上一步 "))
             ]),
             _: 1
@@ -1534,7 +1534,7 @@ function le(t, e, i, n, o, r) {
             onClick: r.handNext
           }, {
             default: P(() => [
-              p(h),
+              m(h),
               e[2] || (e[2] = K("下一步 "))
             ]),
             _: 1
@@ -1546,7 +1546,7 @@ function le(t, e, i, n, o, r) {
             onClick: r.save
           }, {
             default: P(() => [
-              p(I),
+              m(y),
               K(" " + Z(i.saveBtnText), 1)
             ]),
             _: 1
@@ -1558,7 +1558,7 @@ function le(t, e, i, n, o, r) {
     }, 8, ["spinning"])
   ], 4);
 }
-const pe = /* @__PURE__ */ wt(Yt, [["render", le], ["__scopeId", "data-v-b05d2988"]]);
+const pe = /* @__PURE__ */ wt(Yt, [["render", le], ["__scopeId", "data-v-b75bce21"]]);
 export {
   pe as default
 };

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
lib/js/index.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 6
lib/js/index2.js


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott