st-comp 0.0.82 → 0.0.84

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.82",
4
+ "version": "0.0.84",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -60,7 +60,11 @@ const deleteTag = (index) => {
60
60
  };
61
61
  // 删除SQL[弹窗外]
62
62
  const deleteSQL = () => {
63
- data.value.sqlValue = null;
63
+ data.value = {
64
+ list: [],
65
+ sqlEnable: 0,
66
+ sqlValue: null,
67
+ };
64
68
  };
65
69
  // 添加因子
66
70
  const addFactor = () => {
@@ -93,7 +97,7 @@ const createSQL = () => {
93
97
  // 格式化因子sql语句
94
98
  sql = `(${sql})`;
95
99
  // 如果不是第一条因子sql
96
- if (index !== 0) sql = ` and ${sql}`;
100
+ if (index !== 0) sql = ` && ${sql}`;
97
101
  result += sql;
98
102
  return result;
99
103
  }, "");