st-comp 0.0.195 → 0.0.196

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.195",
4
+ "version": "0.0.196",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -303,6 +303,10 @@ watch(
303
303
  monacoEditorRef.value.setValue(data.value.factorSelectExpr);
304
304
  monacoEditorRef.value.focusToEnd();
305
305
  }
306
+ // 如果有模板内容, 直接切换到模板模式
307
+ if ((data.value.sqlEnable && data.value.sqlValue) || (!data.value.sqlEnable && data.value.list.length)) {
308
+ factorType.value = "模版";
309
+ }
306
310
  });
307
311
  break;
308
312
  }