st-comp 0.0.161 → 0.0.162

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.161",
4
+ "version": "0.0.162",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -12,6 +12,7 @@ const dialogRight = ref((window.innerWidth - 1000) / 2 > 0 ? (window.innerWidth
12
12
 
13
13
  const editorRef = ref(null); // 编辑器Ref
14
14
  const visible = ref(false);
15
+ const zIndex = ref(0)
15
16
 
16
17
  const varName = ref(null);
17
18
  const varList = ref([]);
@@ -89,12 +90,13 @@ const handleInsetVarContent = (configList) => {
89
90
  };
90
91
 
91
92
  onMounted(async () => {
92
- const { body } = await stConfig.request.post('/common/conf/queryAllBackVariables', { useCase: "2" });
93
+ const { body } = await stConfig.request.post('/common/conf/queryAllBackVariables', { useCase: "1" });
93
94
  varList.value = body;
94
95
  });
95
96
  defineExpose({
96
- open: (editor) => {
97
+ open: (editor, newZIndex) => {
97
98
  editorRef.value = editor;
99
+ zIndex.value = newZIndex
98
100
  visible.value = true;
99
101
  // 支持拖拽
100
102
  const dragArea = document.querySelector("body");
@@ -126,7 +128,7 @@ defineExpose({
126
128
  v-show="visible"
127
129
  class="var-select-dialog"
128
130
  ref="dialogRef"
129
- :style="{ right: `${dialogRight}px`, top: `${dialogTop}px` }"
131
+ :style="{ right: `${dialogRight}px`, top: `${dialogTop}px`, zIndex }"
130
132
  >
131
133
  <div class="custom-header">
132
134
  <div class="left">
@@ -240,9 +242,10 @@ defineExpose({
240
242
  box-sizing: border-box;
241
243
  box-shadow: var(--el-box-shadow-light);
242
244
  background-color: var(--el-bg-color);
243
- z-index: 2006;
245
+ z-index: 3000;
244
246
  position: fixed;
245
247
  .custom-header {
248
+ z-index: 4000;
246
249
  display: flex;
247
250
  align-items: center;
248
251
  justify-content: space-between;
@@ -234,7 +234,9 @@ const handleDeleteTag = (aciton, index) => {
234
234
 
235
235
  // 打开变量选择器
236
236
  const open = () => {
237
- scriptSelectRef.value.open(monacoEditorRef.value);
237
+ const zIndex = document.getElementsByClassName('factor-dialog')?.[0]?.style?.zIndex;
238
+ console.log(zIndex)
239
+ scriptSelectRef.value.open(monacoEditorRef.value, zIndex);
238
240
  }
239
241
  </script>
240
242
 
@@ -303,6 +305,7 @@ const open = () => {
303
305
  </div>
304
306
  <!-- 因子筛选弹窗 -->
305
307
  <el-dialog
308
+ modal-class="factor-dialog"
306
309
  v-model="visible"
307
310
  width="1000"
308
311
  align-center