diry3943542 1 سال پیش
والد
کامیت
958bd075cd
6فایلهای تغییر یافته به همراه358 افزوده شده و 333 حذف شده
  1. 1 1
      lib/config.json
  2. 0 0
      lib/css/style.css
  3. 42 40
      lib/js/SUserSelect.js
  4. 0 0
      lib/js/index.js
  5. 309 286
      lib/js/index2.js
  6. 6 6
      lib/js/todo.js

+ 1 - 1
lib/config.json

@@ -1 +1 @@
-{"_hash":1724998613071,"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":1724999693755,"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"}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
lib/css/style.css


+ 42 - 40
lib/js/SUserSelect.js

@@ -1,4 +1,4 @@
-var Me = (e, n, t) => new Promise((o, a) => {
+var Fe = (e, n, t) => new Promise((o, a) => {
   var f = (r) => {
     try {
       l(t.next(r));
@@ -14,11 +14,11 @@ var Me = (e, n, t) => new Promise((o, a) => {
   }, l = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(f, d);
   l((t = t.apply(e, n)).next());
 });
-import { defineComponent as ee, ref as W, createVNode as b, shallowRef as Y, watch as de, computed as J, onMounted as Ge, Fragment as ye, nextTick as $e, onBeforeUpdate as ft, onBeforeUnmount as Ee, watchEffect as Be, getCurrentInstance as Ue, resolveComponent as we, resolveDirective as pt, withDirectives as vt, openBlock as ie, createElementBlock as se, withCtx as Q, createTextVNode as me, createElementVNode as N, toDisplayString as q, withModifiers as gt, renderList as Fe, normalizeClass as ht, createCommentVNode as mt } from "vue";
+import { defineComponent as ee, ref as W, createVNode as b, shallowRef as Y, watch as de, computed as J, onMounted as Be, Fragment as ye, nextTick as $e, onBeforeUpdate as ft, onBeforeUnmount as Ee, watchEffect as Oe, getCurrentInstance as Ue, resolveComponent as we, resolveDirective as pt, withDirectives as vt, openBlock as ie, createElementBlock as se, withCtx as Q, createTextVNode as me, createElementVNode as N, toDisplayString as q, withModifiers as gt, renderList as Ve, normalizeClass as ht, createCommentVNode as mt } from "vue";
 import { g as bt, l as xt, a as yt } from "./common.js";
-import { g as $t, f as St, _ as p, J as Xe, I as Se, a3 as Ct, $ as Ke, P as te, A as wt, c as ae, m as G, a as D, o as k, be as Ve, j as ve, k as _t, l as Ye, N as Ze, bf as je, aY as It, B as Je, aD as zt, E as oe, b6 as be, aJ as Rt, b5 as Et, i as At, X as Pt, bg as Bt, bh as Ot, aN as Tt, bi as Ht } from "./index2.js";
-import { u as Qe, F as pe, N as We } from "./FormItemContext.js";
-import { B as qe, g as Oe, a as ue } from "./statusUtils.js";
+import { g as $t, f as St, _ as p, J as Xe, I as Se, a3 as Ct, $ as Ke, P as te, A as wt, c as ae, m as G, a as D, o as k, be as je, j as ve, k as _t, l as Ye, N as Ze, bf as We, aY as It, B as Je, aD as zt, E as oe, b6 as be, aJ as Rt, b5 as Et, i as At, X as Pt, bg as Bt, bh as Ot, aN as Tt, bi as Ht } from "./index2.js";
+import { u as Qe, F as pe, N as De } from "./FormItemContext.js";
+import { B as qe, g as Te, a as ue } from "./statusUtils.js";
 import { i as Nt } from "./isPlainObject.js";
 import { M as Mt } from "./index7.js";
 const Ft = (e) => ({
@@ -34,7 +34,7 @@ const Ft = (e) => ({
   "&:placeholder-shown": {
     textOverflow: "ellipsis"
   }
-}), Te = (e) => ({
+}), He = (e) => ({
   borderColor: e.inputBorderHoverColor,
   borderInlineEndWidth: e.lineWidth
 }), Ae = (e) => ({
@@ -49,7 +49,7 @@ const Ft = (e) => ({
   boxShadow: "none",
   cursor: "not-allowed",
   opacity: 1,
-  "&:hover": p({}, Te(Se(e, {
+  "&:hover": p({}, He(Se(e, {
     inputBorderHoverColor: e.colorBorder
   })))
 }), ke = (e) => {
@@ -126,7 +126,7 @@ const Ft = (e) => ({
   borderRadius: e.borderRadius,
   transition: `all ${e.motionDurationMid}`
 }, Ft(e.colorTextPlaceholder)), {
-  "&:hover": p({}, Te(e)),
+  "&:hover": p({}, He(e)),
   "&:focus, &-focused": p({}, Ae(e)),
   "&-disabled, &[disabled]": p({}, Vt(e)),
   "&-borderless": {
@@ -503,7 +503,7 @@ const Ft = (e) => ({
   return {
     [`${n}-affix-wrapper`]: p(p(p(p(p({}, nt(e)), {
       display: "inline-flex",
-      [`&:not(${n}-affix-wrapper-disabled):hover`]: p(p({}, Te(e)), {
+      [`&:not(${n}-affix-wrapper-disabled):hover`]: p(p({}, He(e)), {
         zIndex: 1,
         [`${n}-search-with-button &`]: {
           zIndex: 0
@@ -770,7 +770,7 @@ const Kt = (e) => {
       }
     }
   };
-}, He = $t("Input", (e) => {
+}, Ne = $t("Input", (e) => {
   const n = Xt(e);
   return [
     Wt(n),
@@ -784,7 +784,7 @@ const Kt = (e) => {
     St(n)
   ];
 }), ce = (e) => e != null && (Array.isArray(e) ? Ke(e).length : !0);
-function Ne(e) {
+function Me(e) {
   return ce(e.prefix) || ce(e.suffix) || ce(e.allowClear);
 }
 function xe(e) {
@@ -993,7 +993,7 @@ const Yt = () => ({
         value: v,
         hidden: P
       });
-      if (Ne({
+      if (Me({
         prefix: g,
         suffix: T,
         allowClear: c
@@ -1172,7 +1172,7 @@ const Qt = ee({
         }, V, !xe({
           addonAfter: H,
           addonBefore: I
-        }) && !Ne({
+        }) && !Me({
           prefix: U,
           suffix: K,
           allowClear: s
@@ -1205,7 +1205,7 @@ const Qt = ee({
       }
       return null;
     };
-    return Ge(() => {
+    return Be(() => {
       process.env.NODE_ENV === "test" && e.autofocus && v();
     }), () => {
       const {
@@ -1238,8 +1238,8 @@ const Qt = ee({
   onResize: {
     type: Function
   },
-  onCompositionstart: Ve(),
-  onCompositionend: Ve(),
+  onCompositionstart: je(),
+  onCompositionend: je(),
   valueModifiers: Object
 });
 var qt = function(e, n) {
@@ -1263,7 +1263,7 @@ const L = ee({
       expose: a,
       emit: f
     } = n;
-    const d = W(), l = Qe(), r = pe.useInject(), u = J(() => Oe(r.status, e.status)), {
+    const d = W(), l = Qe(), r = pe.useInject(), u = J(() => Te(r.status, e.status)), {
       direction: v,
       prefixCls: h,
       size: c,
@@ -1271,7 +1271,7 @@ const L = ee({
     } = ve("input", e), {
       compactSize: P,
       compactItemClassnames: B
-    } = _t(h, v), g = J(() => P.value || c.value), [T, R] = He(h), A = Ye();
+    } = _t(h, v), g = J(() => P.value || c.value), [T, R] = Ne(h), A = Ye();
     a({
       focus: (m) => {
         var z;
@@ -1297,7 +1297,7 @@ const L = ee({
         !((m = d.value) === null || m === void 0) && m.input && ((z = d.value) === null || z === void 0 ? void 0 : z.input.getAttribute("type")) === "password" && (!((F = d.value) === null || F === void 0) && F.input.hasAttribute("value")) && ((V = d.value) === null || V === void 0 || V.input.removeAttribute("value"));
       }));
     };
-    Ge(() => {
+    Be(() => {
       I();
     }), ft(() => {
       _.value.forEach((m) => clearTimeout(m));
@@ -1324,7 +1324,7 @@ const L = ee({
         addonAfter: ge = (F = t.addonAfter) === null || F === void 0 ? void 0 : F.call(t),
         addonBefore: le = (V = t.addonBefore) === null || V === void 0 ? void 0 : V.call(t),
         id: he = (U = l.id) === null || U === void 0 ? void 0 : U.value
-      } = e, re = qt(e, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), dt = (s || ne) && b(ye, null, [ne, s && w]), X = h.value, ut = Ne({
+      } = e, re = qt(e, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), dt = (s || ne) && b(ye, null, [ne, s && w]), X = h.value, ut = Me({
         prefix: S,
         suffix: ne
       }) || !!s, ct = t.clearIcon || (() => b(Ze, null, null));
@@ -1340,13 +1340,13 @@ const L = ee({
         prefix: S,
         suffix: dt,
         allowClear: O,
-        addonAfter: ge && b(je, null, {
-          default: () => [b(We, null, {
+        addonAfter: ge && b(We, null, {
+          default: () => [b(De, null, {
             default: () => [ge]
           })]
         }),
-        addonBefore: le && b(je, null, {
-          default: () => [b(We, null, {
+        addonBefore: le && b(We, null, {
+          default: () => [b(De, null, {
             default: () => [le]
           })]
         }),
@@ -1405,7 +1405,7 @@ const L = ee({
     pe.useProvide(l, {
       isFormItemInput: !1
     });
-    const r = J(() => d("input")), [u, v] = He(r), h = J(() => {
+    const r = J(() => d("input")), [u, v] = Ne(r), h = J(() => {
       const c = a.value;
       return {
         [`${c}`]: !0,
@@ -1545,9 +1545,9 @@ const it = ee({
       }), t);
     };
   }
-}), De = (e) => e != null && (Array.isArray(e) ? Ke(e).length : !0);
+}), Le = (e) => e != null && (Array.isArray(e) ? Ke(e).length : !0);
 function tn(e) {
-  return De(e.addonBefore) || De(e.addonAfter);
+  return Le(e.addonBefore) || Le(e.addonAfter);
 }
 const nn = ["text", "input"], on = ee({
   compatConfig: {
@@ -1641,7 +1641,7 @@ const nn = ["text", "input"], on = ee({
           value: u,
           disabled: e.disabled
         });
-      const M = G(`${l}-affix-wrapper`, `${l}-affix-wrapper-textarea-with-clear-btn`, ue(`${l}-affix-wrapper`, Oe(R, P), A), {
+      const M = G(`${l}-affix-wrapper`, `${l}-affix-wrapper-textarea-with-clear-btn`, ue(`${l}-affix-wrapper`, Te(R, P), A), {
         [`${l}-affix-wrapper-rtl`]: h === "rtl",
         [`${l}-affix-wrapper-borderless`]: !c,
         // className will go to addon wrapper
@@ -1745,7 +1745,7 @@ const Ie = 0, ze = 1, Re = 2, dn = ee({
       } catch (y) {
       }
     }, h = W(), c = W();
-    Be(() => {
+    Oe(() => {
       const y = e.autoSize || e.autosize;
       y ? (h.value = y.minRows, c.value = y.maxRows) : (h.value = void 0, c.value = void 0);
     });
@@ -1819,7 +1819,7 @@ const Ie = 0, ze = 1, Re = 2, dn = ee({
 function st(e, n) {
   return [...e || ""].slice(0, n).join("");
 }
-function Le(e, n, t, o) {
+function Ge(e, n, t, o) {
   let a = t;
   return e ? a = st(t, o) : [...n || ""].length < t.length && [...t || ""].length > o && (a = n), a;
 }
@@ -1837,11 +1837,11 @@ const un = ee({
       emit: a
     } = n;
     var f;
-    const d = Qe(), l = pe.useInject(), r = J(() => Oe(l.status, e.status)), u = Y((f = e.value) !== null && f !== void 0 ? f : e.defaultValue), v = Y(), h = Y(""), {
+    const d = Qe(), l = pe.useInject(), r = J(() => Te(l.status, e.status)), u = Y((f = e.value) !== null && f !== void 0 ? f : e.defaultValue), v = Y(), h = Y(""), {
       prefixCls: c,
       size: E,
       direction: P
-    } = ve("input", e), [B, g] = He(c), T = Ye(), R = J(() => e.showCount === "" || e.showCount || !1), A = J(() => Number(e.maxlength) > 0), M = Y(!1), x = Y(), y = Y(0), i = (s) => {
+    } = ve("input", e), [B, g] = Ne(c), T = Ye(), R = J(() => e.showCount === "" || e.showCount || !1), A = J(() => Number(e.maxlength) > 0), M = Y(!1), x = Y(), y = Y(0), i = (s) => {
       M.value = !0, x.value = h.value, y.value = s.currentTarget.selectionStart, a("compositionstart", s);
     }, _ = (s) => {
       var w;
@@ -1849,7 +1849,7 @@ const un = ee({
       let O = s.currentTarget.value;
       if (A.value) {
         const j = y.value >= e.maxlength + 1 || y.value === ((w = x.value) === null || w === void 0 ? void 0 : w.length);
-        O = Le(j, x.value, O, e.maxlength);
+        O = Ge(j, x.value, O, e.maxlength);
       }
       O !== h.value && (C(O), fe(s.currentTarget, s, F, O)), a("compositionend", s);
     }, I = Ue();
@@ -1888,7 +1888,7 @@ const un = ee({
       if (u.value !== w) {
         if (A.value) {
           const O = s.target, j = O.selectionStart >= e.maxlength + 1 || O.selectionStart === w.length || !O.selectionStart;
-          w = Le(j, h.value, w, e.maxlength);
+          w = Ge(j, h.value, w, e.maxlength);
         }
         fe(s.currentTarget, s, F, w), C(w);
       }
@@ -1926,7 +1926,7 @@ const un = ee({
       focus: H,
       blur: $,
       resizableTextArea: v
-    }), Be(() => {
+    }), Oe(() => {
       let s = Pe(u.value);
       !M.value && A.value && (e.value === null || e.value === void 0) && (s = st(s, e.maxlength)), h.value = s;
     }), () => {
@@ -2025,7 +2025,7 @@ const fn = {
       } = e;
       g || (d.value = !d.value, f("update:visible", d.value));
     };
-    Be(() => {
+    Oe(() => {
       e.visible !== void 0 && (d.value = !!e.visible);
     });
     const r = Y();
@@ -2127,7 +2127,7 @@ const gn = { class: "s-user-select-common" }, hn = { class: "modal-container" },
       r.value = !1, t("change:modelValue", v.value.filter(($) => $.selected));
     }, x = ($, C) => {
       u.value = C.node, h.value = 1, c.value = 0, v.value = [], l.value = !0, y($);
-    }, y = ($) => Me(this, null, function* () {
+    }, y = ($) => Fe(this, null, function* () {
       const C = {
         pageNum: h.value,
         pageSize: 20,
@@ -2145,7 +2145,9 @@ const gn = { class: "s-user-select-common" }, hn = { class: "modal-container" },
     }, _ = ({ target: { offsetHeight: $, scrollHeight: C, scrollTop: m } }) => {
       l.value || $ + m >= C - 20 && h.value <= c.value && (h.value++, y([u.value.id]));
     }, I = ($) => xt($), H = ($) => yt($);
-    return ($, C) => {
+    return Be(() => {
+      console.log("选择用户组件 - 查看主题色:", window.$utils.env.VITE_APP_THEME.theme);
+    }), ($, C) => {
       const m = it, z = Je, F = we("s-tree"), V = we("DownOutlined"), U = Ot, K = Tt, s = Ht, w = we("CloseCircleOutlined"), O = Mt, j = pt("removeAriaHidden");
       return vt((ie(), se("div", gn, [
         b(m, {
@@ -2254,7 +2256,7 @@ const gn = { class: "s-user-select-common" }, hn = { class: "modal-container" },
                       class: "user-list",
                       onScroll: _
                     }, [
-                      (ie(!0), se(ye, null, Fe(v.value, (S) => (ie(), se("div", {
+                      (ie(!0), se(ye, null, Ve(v.value, (S) => (ie(), se("div", {
                         class: ht(["item", { select: !!S.selected }]),
                         key: S.id,
                         onClick: (ne) => i(S)
@@ -2285,7 +2287,7 @@ const gn = { class: "s-user-select-common" }, hn = { class: "modal-container" },
                       class: "user-list select-list",
                       onScroll: _
                     }, [
-                      (ie(!0), se(ye, null, Fe(v.value.filter((S) => S.selected), (S) => (ie(), se("div", {
+                      (ie(!0), se(ye, null, Ve(v.value.filter((S) => S.selected), (S) => (ie(), se("div", {
                         class: "item",
                         key: S.id
                       }, [

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
lib/js/index.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 309 - 286
lib/js/index2.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 6 - 6
lib/js/todo.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است