@web-utils/component 3.4.2 → 3.4.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.
@@ -17,8 +17,9 @@ var a = (t, e, l) => new Promise((i, n) => {
17
17
  import d from "element-ui/lib/dialog";
18
18
  import { dialogDrag as u } from "@web-utils/vue/directives/dialog-drag";
19
19
  import { getComputedHeight as h, isDef as f } from "@web-utils/core";
20
- import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
21
- const g = {
20
+ import m from "../emulate-form/index.mjs";
21
+ import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
22
+ const y = {
22
23
  props: {
23
24
  /**
24
25
  * 对话框是否可见
@@ -86,12 +87,13 @@ const g = {
86
87
  default: "76vh"
87
88
  }
88
89
  }
89
- }, y = {
90
+ }, v = {
90
91
  name: "ElementDialog",
92
+ components: { EmulateForm: m },
91
93
  directives: {
92
94
  dialogDrag: u
93
95
  },
94
- mixins: [...d.mixins || d.default.mixins, g],
96
+ mixins: [...d.mixins || d.default.mixins, y],
95
97
  props: {
96
98
  /**
97
99
  * 对话框标题
@@ -271,7 +273,7 @@ const g = {
271
273
  }
272
274
  }
273
275
  };
274
- var v = function() {
276
+ var C = function() {
275
277
  var e = this, l = e._self._c;
276
278
  return l("Transition", { attrs: { name: "dialog-fade" }, on: { "after-enter": e.afterEnter, "after-leave": e.afterLeave } }, [l("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }, { name: "dialog-drag", rawName: "v-dialog-drag:[fullScreen]", value: { onMove: e.updatePopper }, expression: "{ onMove: updatePopper }", arg: e.fullScreen }], staticClass: "el-dialog__wrapper", on: { click: function(i) {
277
279
  return i.target !== i.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
@@ -290,16 +292,16 @@ var v = function() {
290
292
  e.customClass
291
293
  ], style: e.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": e.title || "dialog" } }, [l("div", { staticClass: "el-dialog__header" }, [e._t("title", function() {
292
294
  return [l("span", { staticClass: "el-dialog__title" }, [e._v(e._s(e.title))])];
293
- }), l("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? l("ElButton", { staticClass: "header-button", attrs: { type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l("ElButton", { staticClass: "header-button header-dialog-close", attrs: { "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
294
- }, C = [], _ = /* @__PURE__ */ m(
295
- y,
295
+ }), l("div", { staticClass: "header-button-wrapper" }, [l("EmulateForm", [e._t("header-button"), e.showFullScreen ? l("ElButton", { staticClass: "header-button", attrs: { disabled: !1, type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l("ElButton", { staticClass: "header-button header-dialog-close", attrs: { disabled: !1, "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)], 1)], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
296
+ }, _ = [], b = /* @__PURE__ */ g(
296
297
  v,
297
298
  C,
299
+ _,
298
300
  !1,
299
301
  null,
300
302
  null
301
303
  );
302
- const T = _.exports;
304
+ const F = b.exports;
303
305
  export {
304
- T as default
306
+ F as default
305
307
  };
@@ -0,0 +1,25 @@
1
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const e = {
3
+ provide() {
4
+ return {
5
+ elForm: {
6
+ disabled: !1
7
+ }
8
+ };
9
+ },
10
+ render() {
11
+ return null;
12
+ }
13
+ }, r = null, l = null;
14
+ var o = /* @__PURE__ */ n(
15
+ e,
16
+ r,
17
+ l,
18
+ !1,
19
+ null,
20
+ null
21
+ );
22
+ const t = o.exports;
23
+ export {
24
+ t as default
25
+ };