@tmagic/editor 1.3.0-alpha.23 → 1.3.0-alpha.24

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.
@@ -2802,6 +2802,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2802
2802
  };
2803
2803
  const codeDsl = computed(() => services?.codeBlockService.getCodeDsl());
2804
2804
  const paramsConfig = ref(getParamItemsConfig(props.model[props.name]));
2805
+ watch(
2806
+ () => props.model[props.name],
2807
+ (v, preV) => {
2808
+ if (v !== preV) {
2809
+ paramsConfig.value = getParamItemsConfig(v);
2810
+ }
2811
+ }
2812
+ );
2805
2813
  const selectConfig = {
2806
2814
  type: "select",
2807
2815
  text: "代码块",