disguise-ui 0.3.4 → 0.3.5

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.
@@ -0,0 +1,15 @@
1
+ import { t as e } from "./user-avatar-info-CwXzoLlH.js";
2
+ import { createBlock as t, defineComponent as n, guardReactiveProps as r, normalizeProps as i, openBlock as a } from "vue";
3
+ // src/components/table-entity/cells/avatar-cell.vue
4
+ var o = /* @__PURE__ */ n({
5
+ __name: "avatar-cell",
6
+ props: {
7
+ row: { default: () => ({}) },
8
+ value: { default: null }
9
+ },
10
+ setup(n) {
11
+ let o = n;
12
+ return (n, s) => (a(), t(e, i(r(o.row)), null, 16));
13
+ }
14
+ });
15
+ export { o as default };
@@ -1,13 +1,13 @@
1
- import { i as e, r as t, t as n } from "./picture-cell-C6BLbwEb.js";
1
+ import { i as e, r as t, t as n } from "./picture-cell--GGQKBgi.js";
2
2
  import { t as r } from "./modal-CHOpDVLd.js";
3
- import { a as i, d as a, i as o, l as s, o as c, r as l, t as u, u as d } from "./i18n-D9LSb_U5.js";
3
+ import { a as i, d as a, i as o, l as s, o as c, r as l, t as u, u as d } from "./i18n-DyM4J6Tt.js";
4
4
  import { t as f } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
- import { t as p } from "./use-image-url-Df54pSFh.js";
6
- import { t as m } from "./user-avatar-info-COmJGI9K.js";
5
+ import { t as p } from "./use-image-url-CWM0aE7u.js";
6
+ import { t as m } from "./user-avatar-info-CwXzoLlH.js";
7
7
  import { t as h } from "./use-file-type-rNstoxXw.js";
8
- import { t as g } from "./file-upload-n4pZizh3.js";
9
- import { r as _ } from "./use-multiple-file-upload-CBOycBu3.js";
10
- import { t as v } from "./picture-upload-C_10NZsL.js";
8
+ import { t as g } from "./file-upload-BYq_ZBPv.js";
9
+ import { r as _ } from "./use-multiple-file-upload-Vt01wSm6.js";
10
+ import { t as v } from "./picture-upload-BQeS_ojB.js";
11
11
  import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, guardReactiveProps as A, h as j, isRef as M, mergeModels as N, mergeProps as P, nextTick as ee, normalizeClass as F, normalizeProps as I, normalizeStyle as L, onUnmounted as te, openBlock as R, reactive as ne, ref as z, renderList as B, renderSlot as V, resolveComponent as re, resolveDirective as H, resolveDynamicComponent as U, shallowReactive as ie, toDisplayString as W, toHandlers as ae, toValue as oe, unref as G, useModel as K, useSlots as se, vModelSelect as ce, vModelText as le, watch as q, withCtx as J, withDirectives as ue, withKeys as de, withModifiers as fe } from "vue";
12
12
  import { ElButton as Y, ElCard as X, ElCascader as pe, ElCheckbox as me, ElCheckboxGroup as he, ElCol as ge, ElDatePicker as _e, ElDrawer as ve, ElDropdown as ye, ElDropdownItem as be, ElDropdownMenu as xe, ElForm as Se, ElFormItem as Ce, ElIcon as Z, ElImageViewer as we, ElInput as Te, ElInputNumber as Ee, ElMessage as Q, ElMessageBox as De, ElOption as $, ElPagination as Oe, ElPopover as ke, ElProgress as Ae, ElRadio as je, ElRadioGroup as Me, ElRow as Ne, ElSelect as Pe, ElSelectV2 as Fe, ElSwitch as Ie, ElTabPane as Le, ElTable as Re, ElTableColumn as ze, ElTableV2 as Be, ElTabs as Ve, ElTooltip as He, ElUpload as Ue, TableV2FixedDir as We } from "element-plus";
13
13
  import Ge from "dayjs";
@@ -1545,7 +1545,7 @@ function gi(e, t = "name") {
1545
1545
  }).filter(Boolean);
1546
1546
  }
1547
1547
  // src/components/table-entity/utils/column-slots.ts
1548
- var _i = O(() => Promise.resolve().then(() => Zr)), vi = O(() => import("./picture-cell-C6BLbwEb.js").then((e) => e.n)), yi = O(() => import("./avatar-cell-B9VByweR.js")), { resolveImageUrl: bi } = p();
1548
+ var _i = O(() => Promise.resolve().then(() => Zr)), vi = O(() => import("./picture-cell--GGQKBgi.js").then((e) => e.n)), yi = O(() => import("./avatar-cell-DPusmm1x.js")), { resolveImageUrl: bi } = p();
1549
1549
  function xi(e) {
1550
1550
  return e == null || e === "" ? [] : (Array.isArray(e) ? e : typeof e == "string" ? e.split(",") : [e]).map((e) => e && typeof e == "object" ? e.fileUrl ?? e.url : e).map((e) => bi(e)).filter(Boolean);
1551
1551
  }
@@ -3902,7 +3902,7 @@ var Fo = {
3902
3902
  },
3903
3903
  emits: ["update:modelValue"],
3904
3904
  setup(e, { emit: t }) {
3905
- let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-C1cpwWWY.js")), s = O(() => import("./picture-upload-DFIHyqTp.js")), c = O(() => Promise.resolve().then(() => So)), l = b(() => r.context ?? {
3905
+ let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-D02tRF4e.js")), s = O(() => import("./picture-upload-CmNsacpE.js")), c = O(() => Promise.resolve().then(() => So)), l = b(() => r.context ?? {
3906
3906
  mode: "create",
3907
3907
  values: {}
3908
3908
  }), d = Po(() => r.field, l), f = b(() => ({
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./modal-CHOpDVLd.js";
2
- import { n as t } from "./i18n-D9LSb_U5.js";
2
+ import { n as t } from "./i18n-DyM4J6Tt.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
- import { t as r } from "./use-image-url-Df54pSFh.js";
5
- import { n as i, t as ee } from "./use-multiple-file-upload-CBOycBu3.js";
4
+ import { t as r } from "./use-image-url-CWM0aE7u.js";
5
+ import { n as i, t as ee } from "./use-multiple-file-upload-Vt01wSm6.js";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as te, createVNode as d, defineComponent as f, h as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderList as v, resolveComponent as ne, resolveDynamicComponent as y, toDisplayString as b, toRefs as re, unref as x, withCtx as S } from "vue";
7
7
  import { ElIcon as C, ElTooltip as w, ElUpload as ie } from "element-plus";
8
8
  import { Delete as T, Download as E, Upload as ae, View as D } from "@element-plus/icons-vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./file-upload-n4pZizh3.js";
1
+ import { t as e } from "./file-upload-BYq_ZBPv.js";
2
2
  // src/components/file-upload/index.ts
3
3
  var t = e;
4
4
  export { t as default };
@@ -74,6 +74,7 @@ var S = {
74
74
  ariaLabel: "User information",
75
75
  clickToViewDetail: "Click to view details",
76
76
  empty: "N/A",
77
+ nameEmpty: "No name",
77
78
  fieldId: "User ID"
78
79
  }
79
80
  },
@@ -354,6 +355,7 @@ var S = {
354
355
  ariaLabel: "用户信息",
355
356
  clickToViewDetail: "点击查看详情",
356
357
  empty: "暂无",
358
+ nameEmpty: "暂无姓名",
357
359
  fieldId: "用户 ID"
358
360
  },
359
361
  importDialog: {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-D9LSb_U5.js";
1
+ import { t as e } from "./i18n-DyM4J6Tt.js";
2
2
  import { t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
3
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeStyle as f, openBlock as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, withCtx as y } from "vue";
4
4
  import { ElEmpty as b, ElIcon as x, ElImage as S, ElTooltip as C } from "element-plus";
@@ -1,7 +1,7 @@
1
- import { t as e } from "./i18n-D9LSb_U5.js";
1
+ import { t as e } from "./i18n-DyM4J6Tt.js";
2
2
  import { t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
- import { t as n } from "./use-image-url-Df54pSFh.js";
4
- import { n as r, t as i } from "./use-multiple-file-upload-CBOycBu3.js";
3
+ import { t as n } from "./use-image-url-CWM0aE7u.js";
4
+ import { n as r, t as i } from "./use-multiple-file-upload-Vt01wSm6.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as ee, normalizeClass as te, normalizeStyle as m, onBeforeUnmount as ne, openBlock as h, reactive as g, ref as _, renderList as re, renderSlot as v, toDisplayString as y, toRefs as b, unref as x, useSlots as S, watch as ie, withCtx as C, withModifiers as w } from "vue";
6
6
  import { ElButton as T, ElDialog as ae, ElIcon as E, ElImageViewer as D, ElMessage as O, ElProgress as k, ElUpload as A } from "element-plus";
7
7
  import { Close as j, Download as oe, Plus as M, ZoomIn as N } from "@element-plus/icons-vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./picture-upload-C_10NZsL.js";
1
+ import { t as e } from "./picture-upload-BQeS_ojB.js";
2
2
  // src/components/picture-upload/index.ts
3
3
  var t = e;
4
4
  export { e as PictureUpload, t as default };
@@ -1,4 +1,4 @@
1
- import { c as e } from "./i18n-D9LSb_U5.js";
1
+ import { c as e } from "./i18n-DyM4J6Tt.js";
2
2
  // src/composables/use-image-url.ts
3
3
  var t = () => {
4
4
  function t(t) {
@@ -1,5 +1,5 @@
1
- import { n as e, s as t } from "./i18n-D9LSb_U5.js";
2
- import { t as n } from "./use-image-url-Df54pSFh.js";
1
+ import { n as e, s as t } from "./i18n-DyM4J6Tt.js";
2
+ import { t as n } from "./use-image-url-CWM0aE7u.js";
3
3
  import { t as r } from "./use-file-type-rNstoxXw.js";
4
4
  import { computed as i, ref as a, watch as o } from "vue";
5
5
  import { ElMessage as s } from "element-plus";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./i18n-D9LSb_U5.js";
2
- import { t } from "./use-image-url-Df54pSFh.js";
1
+ import { n as e } from "./i18n-DyM4J6Tt.js";
2
+ import { t } from "./use-image-url-CWM0aE7u.js";
3
3
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, markRaw as d, mergeModels as f, mergeProps as p, nextTick as ee, normalizeClass as m, openBlock as h, ref as g, renderList as te, renderSlot as _, resolveDynamicComponent as ne, toDisplayString as v, unref as y, useModel as re, useSlots as ie, watch as b, watchEffect as ae, withCtx as x } from "vue";
4
4
  import { ElAvatar as S, ElDrawer as oe, ElTooltip as se } from "element-plus";
5
5
  import { Badge as ce, Briefcase as le, Building2 as ue, Cake as de, CalendarDays as fe, Image as pe, Mail as me, Mars as C, Phone as he, User as ge, Venus as _e } from "lucide-vue-next";
@@ -246,7 +246,7 @@ var ve = { class: "inline-block max-w-full" }, ye = [
246
246
  "src",
247
247
  "class"
248
248
  ])])]),
249
- s("div", A, [s("div", j, [_(e.$slots, "drawer-name", {}, () => [s("strong", Ce, v(z.value || "暂无姓名"), 1)]), Ue.value ? (h(), o("span", {
249
+ s("div", A, [s("div", j, [_(e.$slots, "drawer-name", {}, () => [s("strong", Ce, v(z.value || y(F)("components.userAvatarInfo.nameEmpty")), 1)]), Ue.value ? (h(), o("span", {
250
250
  key: 0,
251
251
  class: m(["px-2.5 py-0.5 text-xs font-medium leading-5 rounded-xl", U.value ? "text-pink-600 bg-pink-600/10" : "text-blue-600 bg-blue-600/10"])
252
252
  }, v(W.value), 3)) : a("", !0)]), s("div", we, [B.value ? (h(), o("span", Te, v(y(F)("components.userAvatarInfo.fieldId")) + ": " + v(B.value), 1)) : a("", !0), X.value ? (h(), o("span", Ee, v(X.value), 1)) : a("", !0)])])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disguise-ui",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Disguise:可独立使用的后台列表、表单和上传组件",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,31 +0,0 @@
1
- import { t as e } from "./user-avatar-info-COmJGI9K.js";
2
- import { computed as t, createBlock as n, defineComponent as r, openBlock as i } from "vue";
3
- // src/components/table-entity/cells/avatar-cell.vue
4
- var a = /* @__PURE__ */ r({
5
- __name: "avatar-cell",
6
- props: {
7
- row: { default: () => ({}) },
8
- value: { default: null }
9
- },
10
- setup(r) {
11
- let a = r, o = t(() => a.row?.userId), s = t(() => a.row?.nickName ?? ""), c = t(() => a.row?.userName ?? ""), l = t(() => a.row?.avatar ?? ""), u = t(() => a.row?.sex ?? ""), d = t(() => a.row?.deptName ?? a.row?.dept?.deptName ?? "");
12
- return (t, r) => (i(), n(e, {
13
- "user-id": o.value,
14
- "nick-name": s.value,
15
- name: c.value,
16
- src: l.value,
17
- avatar: l.value,
18
- sex: u.value,
19
- "dept-name": d.value
20
- }, null, 8, [
21
- "user-id",
22
- "nick-name",
23
- "name",
24
- "src",
25
- "avatar",
26
- "sex",
27
- "dept-name"
28
- ]));
29
- }
30
- });
31
- export { a as default };