@maxtropy/v-components 0.1.11-beta.7 → 0.1.11-beta.9

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.
@@ -23292,7 +23292,7 @@ function eF() {
23292
23292
  ir.closeAll = eF;
23293
23293
  ir._context = null;
23294
23294
  const jg = pp(ir, "$notify");
23295
- const tF = { class: "mx-button" }, nF = /* @__PURE__ */ pf('<div class="line line--left" data-v-3120470c></div><div class="line line--right" data-v-3120470c></div><div class="dot dot--top-left" data-v-3120470c></div><div class="dot dot--bottom-left" data-v-3120470c></div><div class="dot dot--top-right" data-v-3120470c></div><div class="dot dot--bottom-right" data-v-3120470c></div>', 6), oF = [
23295
+ const tF = { class: "mx-button" }, nF = /* @__PURE__ */ pf('<div class="line line--left" data-v-9f28b3b7></div><div class="line line--right" data-v-9f28b3b7></div><div class="dot dot--top-left" data-v-9f28b3b7></div><div class="dot dot--bottom-left" data-v-9f28b3b7></div><div class="dot dot--top-right" data-v-9f28b3b7></div><div class="dot dot--bottom-right" data-v-9f28b3b7></div>', 6), oF = [
23296
23296
  nF
23297
23297
  ], rF = /* @__PURE__ */ U({
23298
23298
  __name: "MxButton",
@@ -23345,7 +23345,7 @@ const Bt = (e, t) => {
23345
23345
  for (const [o, r] of t)
23346
23346
  n[o] = r;
23347
23347
  return n;
23348
- }, Vn = /* @__PURE__ */ Bt(rF, [["__scopeId", "data-v-3120470c"]]);
23348
+ }, Vn = /* @__PURE__ */ Bt(rF, [["__scopeId", "data-v-9f28b3b7"]]);
23349
23349
  Vn.install = (e) => {
23350
23350
  e.component(Vn.__name, Vn);
23351
23351
  };
@@ -26574,45 +26574,21 @@ const qP = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABQCAYAAADRAH3kAA
26574
26574
  ]));
26575
26575
  }
26576
26576
  });
26577
- const $P = { key: 0 }, dm = /* @__PURE__ */ U({
26577
+ const dm = /* @__PURE__ */ U({
26578
26578
  __name: "MxTableColumn",
26579
- props: {
26580
- type: {
26581
- type: String,
26582
- default: "default"
26583
- },
26584
- highlightCurrentRow: {
26585
- type: Boolean,
26586
- default: !1
26587
- }
26588
- },
26589
26579
  setup(e) {
26590
- const t = e;
26591
- return (n, o) => {
26592
- const r = Ee("mx-radio");
26593
- return w(), Z(s(mT), Re({ "class-name": " mx-table-column" }, n.$attrs, {
26594
- type: t.type,
26595
- "filter-class-name": "mx-table-column_filter"
26596
- }), rt({
26597
- default: L(() => [
26598
- t.type === "radio" ? (w(), P("div", $P, [
26599
- q(r)
26600
- ])) : J("", !0)
26601
- ]),
26602
- _: 2
26603
- }, [
26604
- xe(n.$slots, (a, l, i) => ({
26605
- name: l,
26606
- fn: L((u) => [
26607
- te(n.$slots, l, {
26608
- scope: u,
26609
- row: u.row,
26610
- index: u.$index
26611
- })
26612
- ])
26613
- }))
26614
- ]), 1040, ["type"]);
26615
- };
26580
+ return (t, n) => (w(), Z(s(mT), Re({ "class-name": " mx-table-column" }, t.$attrs, { "filter-class-name": "mx-table-column_filter" }), rt({ _: 2 }, [
26581
+ xe(t.$slots, (o, r, a) => ({
26582
+ name: r,
26583
+ fn: L((l) => [
26584
+ te(t.$slots, r, {
26585
+ scope: l,
26586
+ row: l.row,
26587
+ index: l.$index
26588
+ })
26589
+ ])
26590
+ }))
26591
+ ]), 1040));
26616
26592
  }
26617
26593
  });
26618
26594
  $r.install = (e) => {
@@ -26737,7 +26713,7 @@ const ta = /* @__PURE__ */ U({
26737
26713
  ]), 1040, ["class", "label-position", "label-width", "label-suffix"]));
26738
26714
  }
26739
26715
  });
26740
- const eR = {}, tR = {
26716
+ const $P = {}, eR = {
26741
26717
  viewBox: "64 64 896 896",
26742
26718
  focusable: "false",
26743
26719
  "data-icon": "info-circle",
@@ -26745,14 +26721,14 @@ const eR = {}, tR = {
26745
26721
  height: "1em",
26746
26722
  fill: "currentColor",
26747
26723
  "aria-hidden": "true"
26748
- }, nR = /* @__PURE__ */ R("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1), oR = /* @__PURE__ */ R("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" }, null, -1), rR = [
26749
- nR,
26750
- oR
26724
+ }, tR = /* @__PURE__ */ R("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1), nR = /* @__PURE__ */ R("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" }, null, -1), oR = [
26725
+ tR,
26726
+ nR
26751
26727
  ];
26752
- function aR(e, t) {
26753
- return w(), P("svg", tR, rR);
26728
+ function rR(e, t) {
26729
+ return w(), P("svg", eR, oR);
26754
26730
  }
26755
- const lR = /* @__PURE__ */ Bt(eR, [["render", aR]]), sR = (e) => e, iR = sR([String, Object, Function]), fm = /* @__PURE__ */ U({
26731
+ const aR = /* @__PURE__ */ Bt($P, [["render", rR]]), lR = (e) => e, sR = lR([String, Object, Function]), fm = /* @__PURE__ */ U({
26756
26732
  __name: "MxFormItem",
26757
26733
  props: {
26758
26734
  label: {
@@ -26760,7 +26736,7 @@ const lR = /* @__PURE__ */ Bt(eR, [["render", aR]]), sR = (e) => e, iR = sR([Str
26760
26736
  default: ""
26761
26737
  },
26762
26738
  icon: {
26763
- type: iR,
26739
+ type: sR,
26764
26740
  default: !1
26765
26741
  }
26766
26742
  },
@@ -26784,7 +26760,7 @@ const lR = /* @__PURE__ */ Bt(eR, [["render", aR]]), sR = (e) => e, iR = sR([Str
26784
26760
  qe(se(e.label) + " ", 1),
26785
26761
  e.icon || n.$slots.icon ? (w(), Z(r, { key: 0 }, {
26786
26762
  default: L(() => [
26787
- e.icon === !0 ? (w(), Z(lR, {
26763
+ e.icon === !0 ? (w(), Z(aR, {
26788
26764
  key: 0,
26789
26765
  color: "#FAAD14"
26790
26766
  })) : (w(), Z(tt(e.icon), { key: 1 }))
@@ -26848,14 +26824,14 @@ const Yu = fm, tf = {
26848
26824
  MxPagination: ea,
26849
26825
  MxForm: ta,
26850
26826
  MxFormItem: Yu
26851
- }, uR = (e) => {
26827
+ }, iR = (e) => {
26852
26828
  for (const t in tf)
26853
26829
  e.component(t, tf[t]);
26854
- }, cR = (e, t) => {
26855
- uR(e);
26856
- }, dR = {
26830
+ }, uR = (e, t) => {
26831
+ iR(e);
26832
+ }, cR = {
26857
26833
  // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
26858
- install: cR
26834
+ install: uR
26859
26835
  }, nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26860
26836
  __proto__: null,
26861
26837
  AuthorizedPermission: Lr,
@@ -26895,7 +26871,7 @@ const Yu = fm, tf = {
26895
26871
  SwitchStaff: Mr,
26896
26872
  SystemContent: Kr,
26897
26873
  UserContent: Dr,
26898
- default: dR,
26874
+ default: cR,
26899
26875
  useIntegratedAuthorityList: is,
26900
26876
  usePermission: zF,
26901
26877
  useStaffTitle: _g
@@ -26904,40 +26880,40 @@ function Fa(e) {
26904
26880
  let t = e;
26905
26881
  return $f(e) || an(e) || zl(e) ? t = { message: t, customClass: "mx-message" } : Object.prototype.toString.call(e) === "[object Object]" && (t.type === "info" && (t.icon = Ql(us)), t.customClass = e.customClass ? `mx-message ${e.customClass}` : "mx-message"), t;
26906
26882
  }
26907
- const No = (e = {}, t) => Yn(Fa(e), t), fR = (e, t) => Yn.info(Fa(e), t), pR = (e, t) => Yn.success(Fa(e), t), vR = (e, t) => Yn.warning(Fa(e), t), gR = (e, t) => Yn.error(Fa(e), t);
26908
- No.info = fR;
26909
- No.success = pR;
26910
- No.warning = vR;
26911
- No.error = gR;
26883
+ const No = (e = {}, t) => Yn(Fa(e), t), dR = (e, t) => Yn.info(Fa(e), t), fR = (e, t) => Yn.success(Fa(e), t), pR = (e, t) => Yn.warning(Fa(e), t), vR = (e, t) => Yn.error(Fa(e), t);
26884
+ No.info = dR;
26885
+ No.success = fR;
26886
+ No.warning = pR;
26887
+ No.error = vR;
26912
26888
  No.closeAll = Yn.closeAll;
26913
26889
  No._context = Yn._context;
26914
- const mR = (e, t) => (e.install = (n) => {
26890
+ const gR = (e, t) => (e.install = (n) => {
26915
26891
  e._context = n._context, n.config.globalProperties[t] = e;
26916
- }, e), xR = mR(No, "$mxMessage"), hR = (e, t) => (e.install = (n) => {
26892
+ }, e), MR = gR(No, "$mxMessage"), mR = (e, t) => (e.install = (n) => {
26917
26893
  e._context = n._context, n.config.globalProperties[t] = e;
26918
- }, e), AR = hR(Ko, "$mxMessageBox"), TR = AR;
26919
- function yR(e) {
26894
+ }, e), hR = mR(Ko, "$mxMessageBox"), xR = hR;
26895
+ function AR(e) {
26920
26896
  let t = {};
26921
26897
  return typeof e == "string" || an(e) ? t = { message: e, customClass: "mx-notification" } : Object.prototype.toString.call(e) === "[object Object]" && (t = { ...e }, t.customClass = `mx-notification ${e.customClass}`, e.type === "info" && (t.icon = Ql(us), t.type = null)), {
26922
26898
  ...t
26923
26899
  };
26924
26900
  }
26925
26901
  const pm = function(e = {}) {
26926
- return jg(yR(e));
26902
+ return jg(AR(e));
26927
26903
  };
26928
26904
  pm.closeAll = jg.closeAll;
26929
- const OR = pm, bR = 100, FR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26905
+ const TR = pm, yR = 100, OR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26930
26906
  __proto__: null,
26931
- MAGIC_NUM: bR
26907
+ MAGIC_NUM: yR
26932
26908
  }, Symbol.toStringTag, { value: "Module" }));
26933
- function CR() {
26909
+ function bR() {
26934
26910
  return window.__MICRO_APP_ENVIRONMENT__ ? vm() + "/" + window.__MICRO_APP_NAME__ : window.__MICRO_APP_BASE_APPLICATION__ ? window.location.pathname.split("/").slice(0, 3).join("/") : "";
26935
26911
  }
26936
26912
  function vm() {
26937
26913
  return window.__MICRO_APP_ENVIRONMENT__ ? window.__MICRO_APP_BASE_ROUTE__ ?? "" : window.__MICRO_APP_BASE_APPLICATION__ ? "/" + window.location.pathname.split("/")[1] : "";
26938
26914
  }
26939
- function PR() {
26940
- const e = CR();
26915
+ function FR() {
26916
+ const e = bR();
26941
26917
  if (!e)
26942
26918
  return;
26943
26919
  const t = vm();
@@ -26978,16 +26954,16 @@ function PR() {
26978
26954
  a && (n.preventDefault(), window.open(a, r.getAttribute("target") ?? "_self"));
26979
26955
  });
26980
26956
  }
26981
- function wR(e) {
26957
+ function CR(e) {
26982
26958
  for (const t in nf)
26983
26959
  e.component(t, nf[t]);
26984
26960
  }
26985
- const RR = { install: wR };
26961
+ const PR = { install: CR };
26986
26962
  export {
26987
26963
  Lr as AuthorizedPermission,
26988
26964
  Qr as BasicLayout,
26989
26965
  Nr as BreadCrumb,
26990
- FR as Const,
26966
+ OR as Const,
26991
26967
  xr as HeadNavigation,
26992
26968
  Vn as MxButton,
26993
26969
  Pr as MxCheckbox,
@@ -27001,9 +26977,9 @@ export {
27001
26977
  ta as MxForm,
27002
26978
  Yu as MxFormItem,
27003
26979
  Sr as MxInput,
27004
- xR as MxMessage,
27005
- TR as MxMessageBox,
27006
- OR as MxNotification,
26980
+ MR as MxMessage,
26981
+ xR as MxMessageBox,
26982
+ TR as MxNotification,
27007
26983
  zu as MxOption,
27008
26984
  Hu as MxOptionGroup,
27009
26985
  ea as MxPagination,
@@ -27025,14 +27001,14 @@ export {
27025
27001
  Mr as SwitchStaff,
27026
27002
  Kr as SystemContent,
27027
27003
  Dr as UserContent,
27028
- RR as default,
27029
- CR as getBase,
27004
+ PR as default,
27005
+ bR as getBase,
27030
27006
  VF as getIntegratedAuthorityCurrent,
27031
27007
  QF as getMenuCurrent,
27032
27008
  vm as getMicroAppBaseRoute,
27033
27009
  KF as getSystemConfig,
27034
27010
  as as getTenantCurrent,
27035
- PR as microAppRewrite,
27011
+ FR as microAppRewrite,
27036
27012
  DF as refreshCurrrent,
27037
27013
  ls as useCurrent,
27038
27014
  is as useIntegratedAuthorityList,