@mc-markets/ui 1.1.2 → 1.1.4

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.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ import { default as MForm } from './components/Form/Form.vue';
5
5
  import { default as MFormItem } from './components/FormItem/FormItem.vue';
6
6
  import { default as MTooltip } from './components/Tooltip/Tooltip.vue';
7
7
  import { default as MSelect } from './components/Select/Select.vue';
8
+ import { default as MOption } from './components/Option/Option.vue';
9
+ import { default as MOptionGroup } from './components/OptionGroup/OptionGroup.vue';
8
10
  import { default as MPagination } from './components/Pagination/Pagination.vue';
9
11
  import { default as MRadio } from './components/Radio/Radio.vue';
10
12
  import { default as MRadioGroup } from './components/RadioGroup/RadioGroup.vue';
@@ -69,6 +71,6 @@ export const MTeleport: any;
69
71
  export const MConfigProvider: any;
70
72
  declare function install(app: any): void;
71
73
  import * as ElementPlusComponents from 'element-plus';
72
- export { MIcon, MButton, MInput, MForm, MFormItem, MTooltip, MSelect, MPagination, MRadio, MRadioGroup, MRadioButton, MSwitch, MTag, MAlert, MDialog, MNotification, MMessage, MNotifiMessage, MDatePicker, MEmpty, MTable, MTableColumn, MBanner, MTabs, MTabPane, MTabCard, MTabCardItem, MBreadcrumb, Message, NotifiMessage };
74
+ export { MIcon, MButton, MInput, MForm, MFormItem, MTooltip, MSelect, MOption, MOptionGroup, MPagination, MRadio, MRadioGroup, MRadioButton, MSwitch, MTag, MAlert, MDialog, MNotification, MMessage, MNotifiMessage, MDatePicker, MEmpty, MTable, MTableColumn, MBanner, MTabs, MTabPane, MTabCard, MTabCardItem, MBreadcrumb, Message, NotifiMessage };
73
75
  export { addOverrideClass, addComponentOverride, applyGlobalOverride, forceRefreshStyles, createOverrideComponent } from './utils/styleUtils.js';
74
76
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/index.js"],"names":[],"mappings":"AA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BAAsD;AACtD,8BAA0D;AAC1D,kCAAkE;AAClE,+BAA4D;AAC5D,4BAAsD;AACtD,wBAA8C;AAC9C,8BAA0D;AAC1D,0BAAkD;AAClD,yBAAgD;AAChD,+BAA4D;AAC5D,2BAAoD;AACpD,kCAAkE;AAClE,yBAAgD;AAChD,6BAAwD;AACxD,0BAAkD;AAClD,4BAAsD;AACtD,2BAAoD;AACpD,2BAAoD;AACpD,4BAAsD;AACtD,yBAAgD;AAChD,0BAAkD;AAClD,gCAA8D;AAC9D,4BAAsD;AACtD,kCAAkE;AAhIlE,yCAwCC;kBA5JiB,4BAA4B;oBAC1B,gCAAgC;mBACjC,8BAA8B;kBAC/B,4BAA4B;sBACxB,oCAAoC;qBACrC,kCAAkC;oBACnC,gCAAgC;oBAChC,gCAAgC;yBAC3B,0CAA0C;wBAC3C,wCAAwC;mBAC7C,8BAA8B;wBACzB,wCAAwC;yBACvC,0CAA0C;oBAC/C,gCAAgC;iBACnC,0BAA0B;mBACxB,8BAA8B;oBAC7B,gCAAgC;0BAC1B,4CAA4C;qBACpC,kCAAkC;2BACtB,8CAA8C;wBACpE,wCAAwC;mBAC7C,8BAA8B;mBAC9B,8BAA8B;yBACxB,oCAAoC;oBACzC,gCAAgC;kBAClC,4BAA4B;qBACzB,+BAA+B;qBAC/B,kCAAkC;yBAC9B,sCAAsC;wBACvC,wCAAwC;uCA/BzB,cAAc;wBAoBnB,kCAAkC;8BACtB,8CAA8C"}
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ var Q = (e, t, n) => t in e ? fe(e, t, { enumerable: !0, configurable: !0, writa
10
10
  Y.call(t, n) && Q(e, n, t[n]);
11
11
  return e;
12
12
  }, E = (e, t) => _e(e, ge(t));
13
- var D = (e, t) => {
13
+ var G = (e, t) => {
14
14
  var n = {};
15
15
  for (var s in e)
16
16
  X.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
@@ -37,7 +37,7 @@ var H = (e, t, n) => new Promise((s, o) => {
37
37
  });
38
38
  import * as ee from "element-plus";
39
39
  import { computed as h, createElementBlock as c, openBlock as i, mergeProps as $, renderSlot as m, createBlock as f, createSlots as v, renderList as _, withCtx as p, ref as O, useAttrs as R, unref as I, normalizeProps as U, guardReactiveProps as q, createCommentVNode as C, createElementVNode as y, Fragment as j, normalizeClass as T, mergeModels as K, useModel as be, createVNode as L, Teleport as te, TransitionGroup as se, resolveDynamicComponent as ne, toDisplayString as x, useSlots as ve, watch as V, normalizeStyle as oe, createTextVNode as ae, provide as re, onMounted as le, nextTick as he, withDirectives as ye, vShow as $e, inject as ie, onUnmounted as Me } from "vue";
40
- import { ElButton as Ce, ElInput as ke, ElForm as we, ElFormItem as Se, ElTooltip as Te, ElSelect as Ie, ElOption as Be, ElOptionGroup as Oe, ElPagination as Ee, ElRadio as xe, ElRadioGroup as Pe, ElRadioButton as je, ElSwitch as Ae, ElTag as Ne, ElAlert as Le, ElDialog as Ve, ElNotification as Re, ElDatePicker as ze, ElEmpty as Fe, ElTable as De, ElTableColumn as Ge } from "element-plus/es";
40
+ import { ElButton as Ce, ElInput as ke, ElForm as we, ElFormItem as Se, ElTooltip as Te, ElSelect as Ie, ElOption as Be, ElOptionGroup as Oe, ElPagination as Ee, ElRadio as xe, ElRadioGroup as Pe, ElRadioButton as je, ElSwitch as Ae, ElTag as Ne, ElAlert as Le, ElDialog as Ve, ElNotification as Re, ElDatePicker as ze, ElEmpty as Fe, ElTable as Ge, ElTableColumn as De } from "element-plus/es";
41
41
  import "element-plus/es/components/base/style/index";
42
42
  import "element-plus/es/components/button/style/index";
43
43
  import "element-plus/es/components/input/style/index";
@@ -364,7 +364,7 @@ const Ye = /* @__PURE__ */ Object.assign({
364
364
  return t.popperClass ? `${o} ${t.popperClass}`.trim() : o;
365
365
  }), s = h(() => {
366
366
  const r = t, { popperClass: o } = r;
367
- return D(r, ["popperClass"]);
367
+ return G(r, ["popperClass"]);
368
368
  });
369
369
  return (o, a) => {
370
370
  const r = Pe;
@@ -507,7 +507,7 @@ const Ye = /* @__PURE__ */ Object.assign({
507
507
  },
508
508
  setup(e) {
509
509
  const t = e, n = R(), s = h(() => {
510
- const l = n, { useCustomIcon: a } = l, r = D(l, ["useCustomIcon"]);
510
+ const l = n, { useCustomIcon: a } = l, r = G(l, ["useCustomIcon"]);
511
511
  return E(w({}, r), {
512
512
  type: t.type
513
513
  // 确保 type 属性正确传递给 el-alert
@@ -856,7 +856,7 @@ function Ft(e, t, n, s, o, a) {
856
856
  })
857
857
  ]);
858
858
  }
859
- const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.assign({
859
+ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Gt = /* @__PURE__ */ Object.assign({
860
860
  name: "MDatePicker"
861
861
  }, {
862
862
  __name: "DatePicker",
@@ -889,7 +889,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
889
889
  ]), 1040, ["popper-class", "class"]);
890
890
  };
891
891
  }
892
- }), Gt = [
892
+ }), Dt = [
893
893
  "404",
894
894
  "billing",
895
895
  "cart",
@@ -913,13 +913,13 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
913
913
  image: {
914
914
  type: String,
915
915
  default: "orders",
916
- validator: (e) => e.includes("/") || e.includes("http") ? !0 : Gt.includes(e)
916
+ validator: (e) => e.includes("/") || e.includes("http") ? !0 : Dt.includes(e)
917
917
  }
918
918
  },
919
919
  setup(e) {
920
920
  const t = e, n = R(), s = h(() => {
921
921
  const l = n, { image: a } = l;
922
- return D(l, ["image"]);
922
+ return G(l, ["image"]);
923
923
  }), o = h(() => {
924
924
  const { image: a } = t;
925
925
  return a.includes("/") || a.includes("http") ? a : `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/empty/${a}.png`;
@@ -942,7 +942,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
942
942
  __name: "Table",
943
943
  setup(e) {
944
944
  return (t, n) => {
945
- const s = De;
945
+ const s = Ge;
946
946
  return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
947
947
  _(t.$slots, (o, a) => ({
948
948
  name: a,
@@ -959,7 +959,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
959
959
  __name: "TableColumn",
960
960
  setup(e) {
961
961
  return (t, n) => {
962
- const s = Ge;
962
+ const s = De;
963
963
  return i(), f(s, $(t.$attrs, { class: "m-table-column" }), v({ _: 2 }, [
964
964
  _(t.$slots, (o, a) => ({
965
965
  name: a,
@@ -1418,11 +1418,11 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
1418
1418
  ]));
1419
1419
  }
1420
1420
  }), ys = /* @__PURE__ */ S(hs, [["__scopeId", "data-v-bfa840fa"]]);
1421
- function G(e) {
1421
+ function D(e) {
1422
1422
  e && e.classList && e.classList.add("mc-ui-override");
1423
1423
  }
1424
1424
  function $s(e) {
1425
- e && e.$el && G(e.$el);
1425
+ e && e.$el && D(e.$el);
1426
1426
  }
1427
1427
  function Ms() {
1428
1428
  typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
@@ -1454,21 +1454,21 @@ function Cs(e = '[class*="el-"]') {
1454
1454
  function ks(e) {
1455
1455
  return E(w({}, e), {
1456
1456
  mounted() {
1457
- G(this.$el), e.mounted && e.mounted.call(this);
1457
+ D(this.$el), e.mounted && e.mounted.call(this);
1458
1458
  },
1459
1459
  updated() {
1460
- G(this.$el), e.updated && e.updated.call(this);
1460
+ D(this.$el), e.updated && e.updated.call(this);
1461
1461
  }
1462
1462
  });
1463
1463
  }
1464
1464
  const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1465
1465
  __proto__: null,
1466
1466
  addComponentOverride: $s,
1467
- addOverrideClass: G,
1467
+ addOverrideClass: D,
1468
1468
  applyGlobalOverride: Ms,
1469
1469
  createOverrideComponent: ks,
1470
1470
  forceRefreshStyles: Cs
1471
- }, Symbol.toStringTag, { value: "Module" })), J = [Z, We, He, Ze, Je, Ye, Ke, et, tt, st, nt, ot, at, rt, ct, pt, ft, bt, ce, ue, Dt, qt, Wt, Ht, Yt, as, is, ps, de, ys], Ss = [
1471
+ }, Symbol.toStringTag, { value: "Module" })), J = [Z, We, He, Ze, Je, Ye, Ke, et, tt, st, nt, ot, at, rt, ct, pt, ft, bt, ce, ue, Gt, qt, Wt, Ht, Yt, as, is, ps, de, ys], Ss = [
1472
1472
  { id: "global-message-container", component: ce },
1473
1473
  { id: "global-notification-container", component: ue }
1474
1474
  ];
@@ -1584,7 +1584,7 @@ export {
1584
1584
  pn as MCheckTag,
1585
1585
  bn as MColorPicker,
1586
1586
  Ln as MConfigProvider,
1587
- Dt as MDatePicker,
1587
+ Gt as MDatePicker,
1588
1588
  gn as MDateTimePicker,
1589
1589
  ft as MDialog,
1590
1590
  qt as MEmpty,
@@ -1601,6 +1601,8 @@ export {
1601
1601
  an as MMessageBox,
1602
1602
  ue as MNotifiMessage,
1603
1603
  bt as MNotification,
1604
+ et as MOption,
1605
+ tt as MOptionGroup,
1604
1606
  st as MPagination,
1605
1607
  xn as MProgress,
1606
1608
  nt as MRadio,
@@ -1629,7 +1631,7 @@ export {
1629
1631
  ht as Message,
1630
1632
  sn as NotifiMessage,
1631
1633
  $s as addComponentOverride,
1632
- G as addOverrideClass,
1634
+ D as addOverrideClass,
1633
1635
  Ms as applyGlobalOverride,
1634
1636
  nn as checkComponentRegistration,
1635
1637
  ks as createOverrideComponent,