mc-plus 1.0.39 → 1.0.41

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mc-plus",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Components library for Vue 3.X by Meta Compass",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,28 +0,0 @@
1
- import { defineComponent as e, ref as o, watch as t, createElementBlock as a, createCommentVNode as r, openBlock as s, createBlock as l, Teleport as d, createVNode as i, Transition as m, withCtx as c, normalizeClass as f, createElementVNode as u, renderSlot as n, nextTick as p } from "vue";
2
- import { M as v } from "./mc-overlay-unPNM2RL.js";
3
- import { M as w } from "./mc-modal-header-BXLmfVq5.js";
4
- import { M as h } from "./mc-footer-D-q92WeC.js";
5
- import { b as y } from "./hooks-DQBM4MPn.js";
6
- import { _, w as b } from "./utils-BmNJhgNi.js";
7
- const $ = { key: 0, class: "mc-drawer-container" }, g = { class: "mc-drawer-header" }, k = { class: "mc-drawer-content-wrapper" }, x = { class: "mc-drawer-content" }, B = b(_(e({ name: "McDrawer", __name: "mc-drawer", props: { modelValue: { type: Boolean }, title: {}, size: { default: "medium" }, maskClosable: { type: Boolean, default: true }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" }, showBorder: { type: Boolean, default: true } }, emits: ["update:modelValue", "close"], setup(e2, { expose: _2, emit: b2 }) {
8
- const B2 = e2, C = o(false), j = o(false), M = o(false), V = async () => {
9
- C.value = true, j.value = true, await p(), M.value = true;
10
- }, z = async () => {
11
- M.value = false, await p(), j.value = false, await p(), C.value = false, S("close"), S("update:modelValue", false);
12
- };
13
- t(() => B2.modelValue, (e3, o2) => {
14
- !o2 && e3 ? V() : z();
15
- }, { immediate: true, flush: "post" });
16
- const S = b2, D = () => {
17
- B2.maskClosable && z();
18
- }, I = () => {
19
- z();
20
- }, R = o(), q = o();
21
- return y(q, ({ height: e3 }) => {
22
- const o2 = R.value;
23
- o2 && (o2.style.paddingBottom = `${e3}px`);
24
- }), _2({ ref: R, open: V, close: z }), (e3, o2) => C.value ? (s(), a("div", $, [(s(), l(d, { to: e3.portCssSelector }, [i(m, { name: "mc-drawer-overlay" }, { default: c(() => [i(v, { visible: j.value, fixed: e3.fixed, onClick: D }, { default: c(() => [i(m, { name: "mc-drawer-content" }, { default: c(() => [M.value ? (s(), a("div", { key: 0, class: f(["mc-drawer", [`mc-drawer-${e3.size}`]]), ref_key: "_ref", ref: R }, [u("div", g, [n(e3.$slots, "header", {}, () => [i(w, { title: e3.title, "show-border": e3.showBorder, onClose: I }, { default: c(() => [n(e3.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), u("div", k, [u("div", x, [n(e3.$slots, "default", {}, void 0, true)])]), u("div", { class: "mc-drawer-footer", ref_key: "footerRef", ref: q }, [n(e3.$slots, "footer", {}, () => [i(h, null, { left: c(() => [n(e3.$slots, "footer-left", {}, void 0, true)]), right: c(() => [n(e3.$slots, "footer-right", {}, void 0, true)]), "right-button-group": c(() => [n(e3.$slots, "footer-right-button-group", {}, void 0, true)]), desc: c(() => [n(e3.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512)], 2)) : r("", true)]), _: 3 })]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : r("", true);
25
- } }), [["__scopeId", "data-v-d4b703b1"]]));
26
- export {
27
- B as M
28
- };