@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.
@@ -2811,6 +2811,14 @@
2811
2811
  };
2812
2812
  const codeDsl = vue.computed(() => services?.codeBlockService.getCodeDsl());
2813
2813
  const paramsConfig = vue.ref(getParamItemsConfig(props.model[props.name]));
2814
+ vue.watch(
2815
+ () => props.model[props.name],
2816
+ (v, preV) => {
2817
+ if (v !== preV) {
2818
+ paramsConfig.value = getParamItemsConfig(v);
2819
+ }
2820
+ }
2821
+ );
2814
2822
  const selectConfig = {
2815
2823
  type: "select",
2816
2824
  text: "代码块",