st-comp 0.0.166 → 0.0.167

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.166",
4
+ "version": "0.0.167",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -4,7 +4,6 @@ import { nextTick, ref, watch } from "vue";
4
4
  import { Plus, CircleCloseFilled, InfoFilled } from "@element-plus/icons-vue";
5
5
  import { handleVerifyScore, extractConditionDetails } from "./tools.js";
6
6
  import FactorDescription from "./FactorDescription.vue";
7
- import ScriptSelect from "./ScriptSelect.vue";
8
7
  import MonacoEditor from "../../../MonacoEditor/index.vue"
9
8
 
10
9
  const props = defineProps({
@@ -29,7 +28,7 @@ const data = defineModel("data", {
29
28
  });
30
29
 
31
30
  const monacoEditorRef = ref();
32
- const scriptSelectRef = ref();
31
+ const stVarSelectDialogRef = ref();
33
32
  // 弹窗开关
34
33
  const visible = ref(false);
35
34
  const visibleDescriptions = ref(false);
@@ -55,7 +54,7 @@ const dialogForm = ref({
55
54
 
56
55
  watch(() => [factorType.value, visible.value], () => {
57
56
  if (factorType.value === '模版' || visible.value === false) {
58
- scriptSelectRef.value.close();
57
+ stVarSelectDialogRef.value.close();
59
58
  }
60
59
  }, { deep: true })
61
60
 
@@ -236,7 +235,7 @@ const handleDeleteTag = (aciton, index) => {
236
235
  const open = () => {
237
236
  const zIndex = document.getElementsByClassName('factor-dialog')?.[0]?.style?.zIndex;
238
237
  console.log(zIndex)
239
- scriptSelectRef.value.open(monacoEditorRef.value, zIndex);
238
+ stVarSelectDialogRef.value.open(monacoEditorRef.value, zIndex);
240
239
  }
241
240
  </script>
242
241
 
@@ -605,7 +604,7 @@ const open = () => {
605
604
  :data="config.factorDescriptions?.filter((item) => [1, 3].includes(item.type))"
606
605
  />
607
606
  <!-- 变量选择器 -->
608
- <ScriptSelect ref="scriptSelectRef" />
607
+ <st-varSelectDialog ref="stVarSelectDialogRef" />
609
608
  </template>
610
609
 
611
610
  <style lang="scss" scoped>