matrix_components 2.0.304 → 2.0.305

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.
@@ -47183,13 +47183,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47183
47183
  },
47184
47184
  setup(__props) {
47185
47185
  useCssVars((_ctx) => ({
47186
- "6a27e210": __props.modalColor,
47187
- "6fe0df44": _height.value,
47188
- "e33f457c": dialogPosition.value.left,
47189
- "0cd9f0ba": dialogPosition.value.top,
47190
- "50c65741": tbPadding.value,
47191
- "2cb5ad29": lrPadding.value,
47192
- "af790b8e": _centerHeight.value
47186
+ "03d1e268": __props.modalColor,
47187
+ "66b60ff0": _height.value,
47188
+ "82142824": dialogPosition.value.left,
47189
+ "6941dc8e": dialogPosition.value.top,
47190
+ "31dbe626": tbPadding.value,
47191
+ "79fd3a56": lrPadding.value,
47192
+ "212479e5": _centerHeight.value
47193
47193
  }));
47194
47194
  const asyncDom = computed(() => {
47195
47195
  var _a2;
@@ -47221,6 +47221,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47221
47221
  const props = __props;
47222
47222
  const componentRef = ref$1(null);
47223
47223
  const currentOption = reactive({ ...props.option });
47224
+ const currentTitle = ref$1(props.title);
47224
47225
  const currentWidth = ref$1(props.width);
47225
47226
  const currentHeight = ref$1(props.height);
47226
47227
  const currentX = ref$1(props.x);
@@ -47311,11 +47312,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47311
47312
  },
47312
47313
  { deep: true }
47313
47314
  );
47315
+ watch(
47316
+ () => props.title,
47317
+ (newVal) => {
47318
+ currentTitle.value = newVal;
47319
+ },
47320
+ { immediate: true }
47321
+ );
47314
47322
  onMounted(() => {
47315
47323
  if (props.dialogInstance) {
47316
47324
  const instance = props.dialogInstance;
47317
47325
  instance.updateOption = (newOption) => {
47318
- Object.assign(currentOption, newOption);
47326
+ if (newOption.title !== void 0) {
47327
+ currentTitle.value = newOption.title;
47328
+ }
47329
+ const { title, ...otherOptions } = newOption;
47330
+ Object.assign(currentOption, otherOptions);
47319
47331
  };
47320
47332
  instance.close = () => {
47321
47333
  closeDialog();
@@ -47453,7 +47465,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47453
47465
  ...props.headerEvents,
47454
47466
  close: closeDialog
47455
47467
  })), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
47456
- createTextVNode(toDisplayString(props.title), 1)
47468
+ createTextVNode(toDisplayString(currentTitle.value), 1)
47457
47469
  ], 64))
47458
47470
  ]),
47459
47471
  createElementVNode("div", _hoisted_4$1, [