tsv2-library 1.0.61-alpha.144 → 1.0.61-alpha.145

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.
@@ -232,6 +232,7 @@ export interface DialogProps {
232
232
  * @defaultValue true
233
233
  */
234
234
  autoZIndex?: boolean | undefined;
235
+ maskClass?: string | string[];
235
236
  /**
236
237
  * Position of the dialog.
237
238
  * @defaultValue center
@@ -31012,6 +31012,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
31012
31012
  blockScroll: { type: Boolean, default: false },
31013
31013
  baseZIndex: { default: 0 },
31014
31014
  autoZIndex: { type: Boolean, default: true },
31015
+ maskClass: {},
31015
31016
  position: { default: "center" },
31016
31017
  maximizable: { type: Boolean, default: false },
31017
31018
  breakpoints: { default: void 0 },
@@ -31035,8 +31036,17 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
31035
31036
  emits: ["update:visible", "hide", "afterHide", "show", "maximize", "unmaximize", "dragend"],
31036
31037
  setup(__props) {
31037
31038
  return (_ctx, _cache) => {
31039
+ var _a;
31038
31040
  return openBlock(), createBlock(unref(script$13), mergeProps(_ctx.$props, {
31039
31041
  pt: {
31042
+ mask: {
31043
+ class: [
31044
+ ...(_a = unref(DialogPreset)) == null ? void 0 : _a.mask({ props: { modal: true } }).class,
31045
+ ...Array.isArray(_ctx.$props.maskClass) ? _ctx.$props.maskClass : [_ctx.$props.maskClass],
31046
+ // Override z-index to prevent overlay component in form become hidden
31047
+ { "!z-[1101]": _ctx.$props.autoZIndex }
31048
+ ]
31049
+ },
31040
31050
  root: {
31041
31051
  class: [
31042
31052
  ...unref(DialogPreset).root({ state: {} }).class,
@@ -66742,7 +66752,6 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
66742
66752
  return openBlock(), createBlock(unref(script$13), {
66743
66753
  ref_key: "dialogForm",
66744
66754
  ref: dialogForm,
66745
- "auto-z-index": props.autoZIndex,
66746
66755
  class: normalizeClass(props.class),
66747
66756
  closable: _ctx.closable,
66748
66757
  draggable: false,
@@ -66881,7 +66890,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
66881
66890
  })
66882
66891
  ]),
66883
66892
  _: 3
66884
- }, 8, ["auto-z-index", "class", "closable", "header", "pt", "visible"]);
66893
+ }, 8, ["class", "closable", "header", "pt", "visible"]);
66885
66894
  };
66886
66895
  }
66887
66896
  });