yc-vep-ui 0.3.9 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isRef as p, isVNode as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onMounted as b, onUnmounted as x, openBlock as S, reactive as C, readonly as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as ee, resolveDynamicComponent as k, setBlockTracking as te, shallowRef as A, toDisplayString as j, toRaw as M, toValue as N, unref as P, useAttrs as ne, useCssVars as re, useModel as ie, watch as F, watchEffect as ae, withCtx as I, withDirectives as oe, withKeys as se, withModifiers as ce } from "vue";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isRef as p, isVNode as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onMounted as b, onUnmounted as x, openBlock as S, reactive as C, readonly as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as ee, resolveDynamicComponent as k, setBlockTracking as A, shallowRef as te, toDisplayString as j, toRaw as M, toValue as N, unref as P, useAttrs as ne, useCssVars as re, useModel as ie, watch as F, watchEffect as ae, withCtx as I, withDirectives as oe, withKeys as se, withModifiers as ce } from "vue";
2
2
  import { AiEditor as le } from "aieditor";
3
3
  //#region \0rolldown/runtime.js
4
4
  var ue = Object.defineProperty, L = (e, t) => {
@@ -36,7 +36,7 @@ var ue = Object.defineProperty, L = (e, t) => {
36
36
  fn: I(() => [a("div", { style: y(i.value) }, [e.icon ? (S(), n(l, { key: 0 }, {
37
37
  default: I(() => [(S(), n(k(e.icon), { color: "#2563eb" }))]),
38
38
  _: 1
39
- })) : r("", !0), o[0] || (te(-1, !0), (o[0] = a("h4", null, [c(j(e.title), 1)])).cacheIndex = 0, te(1), o[0])], 4)]),
39
+ })) : r("", !0), o[0] || (A(-1, !0), (o[0] = a("h4", null, [c(j(e.title), 1)])).cacheIndex = 0, A(1), o[0])], 4)]),
40
40
  key: "0"
41
41
  } : void 0]), 1040, ["class"]);
42
42
  };
@@ -1023,7 +1023,7 @@ var Ot = { style: {
1023
1023
  ],
1024
1024
  setup(a, { expose: o, emit: s }) {
1025
1025
  re((e) => ({ v57cec5bb: P(ee) / 2 }));
1026
- let u = s, d = a, { fields: f, labelWidth: p = "100px", valueWidth: h = "auto", omitFields: _ = [], rules: b = C({}), labelPosition: x = "top", valueModel: w = "default", column: ee = 24 } = d, te = T(0), A = T(), N = t(() => d.modelValue !== void 0), ne = C({}), ie = t(() => N.value ? d.modelValue : d.model || ne), F = t({
1026
+ let u = s, d = a, { fields: f, labelWidth: p = "100px", valueWidth: h = "auto", omitFields: _ = [], rules: b = C({}), labelPosition: x = "top", valueModel: w = "default", column: ee = 24 } = d, A = T(0), te = T(), N = t(() => d.modelValue !== void 0), ne = C({}), ie = t(() => N.value ? d.modelValue : d.model || ne), F = t({
1027
1027
  get: () => ie.value,
1028
1028
  set: (e) => {
1029
1029
  N.value && u("update:modelValue", e);
@@ -1040,13 +1040,13 @@ var Ot = { style: {
1040
1040
  }), e;
1041
1041
  });
1042
1042
  async function se() {
1043
- await A.value?.validate().catch(() => !1) && u("submit", M(ie.value));
1043
+ await te.value?.validate().catch(() => !1) && u("submit", M(ie.value));
1044
1044
  }
1045
1045
  function ce() {
1046
1046
  let e = {};
1047
1047
  Object.keys(ie.value).forEach((t) => {
1048
1048
  _.includes(t) || (e[t] = void 0);
1049
- }), Object.assign(ie.value, e), te.value += 1, u("reset", M(ie.value));
1049
+ }), Object.assign(ie.value, e), A.value += 1, u("reset", M(ie.value));
1050
1050
  }
1051
1051
  function le() {
1052
1052
  return M(ie.value);
@@ -1055,11 +1055,11 @@ var Ot = { style: {
1055
1055
  Object.assign(ie.value, e);
1056
1056
  }
1057
1057
  function L() {
1058
- A.value?.clearValidate();
1058
+ te.value?.clearValidate();
1059
1059
  }
1060
1060
  async function de() {
1061
1061
  return new Promise((e) => {
1062
- A.value?.validate((t, n) => e(n));
1062
+ te.value?.validate((t, n) => e(n));
1063
1063
  });
1064
1064
  }
1065
1065
  return o({
@@ -1072,7 +1072,7 @@ var Ot = { style: {
1072
1072
  let o = O("el-input"), s = O("el-form-item"), u = O("el-form"), d = O("el-button");
1073
1073
  return S(), i(e, null, [l(u, g({
1074
1074
  ref_key: "uiFormRef",
1075
- ref: A,
1075
+ ref: te,
1076
1076
  model: F.value
1077
1077
  }, t.$attrs, {
1078
1078
  rules: oe.value,
@@ -1085,7 +1085,7 @@ var Ot = { style: {
1085
1085
  "validate-on-rule-change": !1
1086
1086
  }), {
1087
1087
  default: I(() => [(S(!0), i(e, null, E(ae.value, (r, a) => (S(), n(s, {
1088
- key: `${r.prop}-${a}-${te.value}`,
1088
+ key: `${r.prop}-${a}-${A.value}`,
1089
1089
  label: r.label,
1090
1090
  "label-width": P(p),
1091
1091
  "value-width": P(h),
@@ -1104,7 +1104,7 @@ var Ot = { style: {
1104
1104
  "onUpdate:modelValue": (e) => F.value[r.prop] = e
1105
1105
  }, { ref_for: !0 }, P(V)(r, F.value).props, {
1106
1106
  clearable: !0,
1107
- key: `${r.prop}-${te.value}`,
1107
+ key: `${r.prop}-${A.value}`,
1108
1108
  style: { display: "inline-block" },
1109
1109
  class: { underline: P(w) === "underline" }
1110
1110
  }), null, 16, [
@@ -1128,7 +1128,7 @@ var Ot = { style: {
1128
1128
  },
1129
1129
  class: { underline: P(w) === "underline" },
1130
1130
  clearable: !0,
1131
- key: `${e.prop}-${te.value}`
1131
+ key: `${e.prop}-${A.value}`
1132
1132
  }), null, 16, [
1133
1133
  "modelValue",
1134
1134
  "onUpdate:modelValue",
@@ -1681,7 +1681,7 @@ var vn = /* @__PURE__ */ u({
1681
1681
  method: "GET",
1682
1682
  headers: v
1683
1683
  }).then((e) => e.json());
1684
- y.staffData = e.data || [], e.data?.[0] && te(e.data?.[0]);
1684
+ y.staffData = e.data || [], e.data?.[0] && A(e.data?.[0]);
1685
1685
  }
1686
1686
  async function k(e) {
1687
1687
  return fetch(hn + "/user/pageQueryUser", {
@@ -1690,7 +1690,7 @@ var vn = /* @__PURE__ */ u({
1690
1690
  body: JSON.stringify(e)
1691
1691
  }).then((e) => e.json());
1692
1692
  }
1693
- async function te(e, t) {
1693
+ async function A(e, t) {
1694
1694
  let n = !!e?.data?.code, r = e?.data?.code || e?.code;
1695
1695
  return !r || e?.data?.account ? t?.([]) : (y.loading = !0, k({
1696
1696
  page: 1,
@@ -1705,7 +1705,7 @@ var vn = /* @__PURE__ */ u({
1705
1705
  n ? e.data.children = _n([...r, ...e.data.children || []], "code") : e.children = _n([...r, ...e.children || []], "code"), y.loading = !1;
1706
1706
  }), t?.(e?.children || []));
1707
1707
  }
1708
- function A(e, { data: t }) {
1708
+ function te(e, { data: t }) {
1709
1709
  let n = y.searchData?.length > 0;
1710
1710
  return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
1711
1711
  width: "14px",
@@ -1803,8 +1803,8 @@ var vn = /* @__PURE__ */ u({
1803
1803
  data: w.value,
1804
1804
  props: { label: "fullName" },
1805
1805
  "highlight-current": !0,
1806
- "render-content": A,
1807
- load: te,
1806
+ "render-content": te,
1807
+ load: A,
1808
1808
  onCheck: re,
1809
1809
  "show-checkbox": "",
1810
1810
  "check-strictly": "",
@@ -2146,7 +2146,7 @@ function Hn(e, t) {
2146
2146
  table: "table",
2147
2147
  total: "total"
2148
2148
  }
2149
- }), r = A([]), i = C({
2149
+ }), r = te([]), i = C({
2150
2150
  total: 0,
2151
2151
  page: 1,
2152
2152
  pageSize: 10
@@ -2319,7 +2319,7 @@ function Zn(e) {
2319
2319
  return Bn.post("/dictionary/mergeDictionaryValue", e);
2320
2320
  }
2321
2321
  function Qn(e) {
2322
- let { page: t = 1, pageSize: n = 10 } = e || {}, r = A([]), i = A([]), { loading: a, execute: o } = Vn("/dictionary/pageQueryDictionaryValue", {
2322
+ let { page: t = 1, pageSize: n = 10 } = e || {}, r = te([]), i = te([]), { loading: a, execute: o } = Vn("/dictionary/pageQueryDictionaryValue", {
2323
2323
  method: "POST",
2324
2324
  defaultParams: {
2325
2325
  dictionaryCode: e.code,
@@ -4234,9 +4234,9 @@ function xi(e) {
4234
4234
  //#endregion
4235
4235
  //#region src/hooks/useUser.ts
4236
4236
  function Si() {
4237
- let e = localStorage.getItem("TOKEN"), t = C(M(xi(e)) || {});
4237
+ let e = localStorage.getItem("TOKEN"), t = C(xi(e) || {});
4238
4238
  function n() {
4239
- return M(xi(e));
4239
+ return xi(e);
4240
4240
  }
4241
4241
  return {
4242
4242
  userInfo: t,
@@ -4266,7 +4266,7 @@ function Ti(e) {
4266
4266
  nextActivityVisible: !1,
4267
4267
  buttonList: [],
4268
4268
  currentHandlers: "",
4269
- current: r.account,
4269
+ current: r?.account || "",
4270
4270
  activityName: ""
4271
4271
  }), l = C({
4272
4272
  processInfo: {
@@ -4655,8 +4655,8 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
4655
4655
  SoftwareReleaseProcess: "软件释放流程"
4656
4656
  }, { btnActiveMaps: d, toFlowchart: f } = Ei({ processCode: s }), { processInfoRef: p, readScopeRef: m, remindRef: h, disabled: g, formData: _, states: v, confirmFields: y, baseFields: b, buttonClick: x, onConfirmSubmit: C } = Ti(o);
4657
4657
  return (t, o) => {
4658
- let w = O("el-button"), T = O("yc-form"), k = O("yc-card"), te = O("el-card"), A = O("el-dialog"), M = ee("sticky");
4659
- return S(), i(e, null, [l(te, { class: "ml-30 mr-30" }, {
4658
+ let w = O("el-button"), T = O("yc-form"), k = O("yc-card"), A = O("el-card"), te = O("el-dialog"), M = ee("sticky");
4659
+ return S(), i(e, null, [l(A, { class: "ml-30 mr-30" }, {
4660
4660
  default: I(() => [
4661
4661
  oe((S(), i("div", ji, [P(v).buttonList.length ? (S(), i("div", Mi, [(S(!0), i(e, null, E(P(v).buttonList, (e) => (S(), n(w, {
4662
4662
  key: e.code,
@@ -4708,7 +4708,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
4708
4708
  }, null, 8, ["form-data", "disabled"])
4709
4709
  ]),
4710
4710
  _: 3
4711
- }), l(A, {
4711
+ }), l(te, {
4712
4712
  modelValue: P(v).confirmVisible,
4713
4713
  "onUpdate:modelValue": o[0] ||= (e) => P(v).confirmVisible = e,
4714
4714
  "destroy-on-close": "",
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-D-OGEn3a.js";
1
+ import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-D4Whf0ic.js";
2
2
  export { i as useDictionary, t as useFetch, e as useRoute, n as useRouter, a as useTable, r as useUser };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-D-OGEn3a.js";
1
+ import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-D4Whf0ic.js";
2
2
  export { e as UiCard, o as UiDescriptions, c as UiDialog, p as UiEditor, r as UiFilter, h as UiForm, a as UiInfiniteScroll, u as UiStaffSelect, m as UiTable, t as UiTree, i as UiUpload, s as YcApproval, d as default, d as ycPlugin, f as getHostVue, n as hooks, l as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [