st-comp 0.0.194 → 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/es/ChartLayout.js +4 -4
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +270 -154
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -29
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +15 -15
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +24 -24
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +20 -20
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +17 -17
- package/es/Map.cjs +1 -1
- package/es/Map.js +102944 -1
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +69 -69
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +25 -25
- package/es/User.cjs +1 -1
- package/es/User.js +21 -21
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +22 -22
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +9 -9
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +1395 -1381
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +13 -13
- package/es/{_initCloneObject-95a1fe6e.cjs → _initCloneObject-1136ed17.cjs} +1 -1
- package/es/{_initCloneObject-25087817.js → _initCloneObject-64989891.js} +9 -9
- package/es/{base-f5b11441.js → base-62a70f61.js} +40 -40
- package/es/{config-provider-95d27ce2.js → config-provider-962c9213.js} +6 -6
- package/es/{config-provider-79c2df1b.cjs → config-provider-c629566a.cjs} +1 -1
- package/es/{debounce-06f59c68.js → debounce-ccdceb02.js} +9 -9
- package/es/{dropdown-7a853d45.js → dropdown-220099ea.js} +9 -9
- package/es/{dropdown-c2ef9062.cjs → dropdown-28ffc2a0.cjs} +1 -1
- package/es/{el-autocomplete-b7bcfb25.cjs → el-autocomplete-01985d09.cjs} +1 -1
- package/es/{el-autocomplete-e74d589c.js → el-autocomplete-a2dd1bb5.js} +15 -15
- package/es/{el-button-5973d99c.cjs → el-button-1cb4ce47.cjs} +1 -1
- package/es/{el-button-5a260464.js → el-button-639a79ee.js} +33 -33
- package/es/{el-dialog-a24f4f8f.cjs → el-dialog-10b4cda4.cjs} +1 -1
- package/es/{el-dialog-8d8f6443.js → el-dialog-43cb14a3.js} +15 -15
- package/es/{el-divider-4e1c0fb8.js → el-divider-2f300113.js} +1 -1
- package/es/{el-empty-deee6b39.js → el-empty-34086220.js} +5 -5
- package/es/{el-form-item-3167d76a.js → el-form-item-5425e443.js} +33 -33
- package/es/{el-form-item-8dc6aec8.cjs → el-form-item-6d81753f.cjs} +1 -1
- package/es/{el-input-06243b61.cjs → el-input-ebe964c2.cjs} +1 -1
- package/es/{el-input-03aad76d.js → el-input-f24248f2.js} +33 -33
- package/es/{el-input-number-12c09ac3.js → el-input-number-36036e60.js} +35 -35
- package/es/{el-input-number-854b2066.cjs → el-input-number-e3d58911.cjs} +1 -1
- package/es/{el-loading-86fdef94.js → el-loading-74b350d7.js} +5 -5
- package/es/{el-loading-a536daf8.cjs → el-loading-a6dd5081.cjs} +1 -1
- package/es/{el-menu-item-1172154b.js → el-menu-item-7d04ed7a.js} +22 -22
- package/es/{el-menu-item-6522d54c.cjs → el-menu-item-9a591f08.cjs} +1 -1
- package/es/{el-message-0aeea1a3.cjs → el-message-3517c44c.cjs} +1 -1
- package/es/{el-message-35d4e3ac.js → el-message-4e885359.js} +23 -23
- package/es/{el-message-box-f43b6e7a.js → el-message-box-1286fd77.js} +20 -20
- package/es/{el-message-box-2e7304ce.cjs → el-message-box-317e9f09.cjs} +1 -1
- package/es/{el-overlay-04659660.js → el-overlay-0310aac7.js} +47 -47
- package/es/{el-overlay-ef92f51f.cjs → el-overlay-ed457566.cjs} +1 -1
- package/es/{el-popconfirm-29d538b6.js → el-popconfirm-6235978c.js} +24 -24
- package/es/{el-popconfirm-58a1b946.cjs → el-popconfirm-d61782ad.cjs} +1 -1
- package/es/{el-popper-c9e0136d.cjs → el-popper-32eaad7d.cjs} +1 -1
- package/es/{el-popper-ee1f8186.js → el-popper-f38ba0a1.js} +126 -126
- package/es/{el-scrollbar-05815cf5.cjs → el-scrollbar-2cac7413.cjs} +1 -1
- package/es/{el-scrollbar-09769d9e.js → el-scrollbar-d8e60ed2.js} +48 -48
- package/es/{el-segmented-d454a924.cjs → el-segmented-bf42d915.cjs} +1 -1
- package/es/{el-segmented-916b982a.js → el-segmented-ee920d27.js} +8 -8
- package/es/{el-select-6d813c15.cjs → el-select-64816d07.cjs} +1 -1
- package/es/{el-select-8cb88e3c.js → el-select-bfade57c.js} +307 -307
- package/es/{el-table-column-762a20e0.cjs → el-table-column-00904cbd.cjs} +1 -1
- package/es/{el-table-column-0c899664.js → el-table-column-41685d02.js} +12 -12
- package/es/{el-tag-554c333b.js → el-tag-ada32d9e.js} +21 -21
- package/es/{el-tag-fe492a6d.cjs → el-tag-defe821c.cjs} +1 -1
- package/es/index-098c2447.cjs +1 -0
- package/es/{index-b07f58c9.js → index-0a8e1adb.js} +75 -60
- package/es/{index-5b62ea0e.js → index-3e26cc9f.js} +52 -52
- package/es/{index-cfeda35a.js → index-482f09b5.js} +1 -1
- package/es/{index-69a9bd75.js → index-492bd129.js} +2 -2
- package/es/{index-b7fd560c.js → index-6277c792.js} +12 -12
- package/es/{index-384ed4b0.js → index-787d3588.js} +3 -3
- package/es/{index-df06f32a.js → index-843be67c.js} +20 -20
- package/es/{index-34048a1d.js → index-89502796.js} +36 -36
- package/es/{index-77f4746b.cjs → index-9b9ef5dd.cjs} +1 -1
- package/es/{index-a9d4ef0f.cjs → index-b306360f.cjs} +1 -1
- package/es/{index-62573d45.cjs → index-bc26fe71.cjs} +1 -1
- package/es/{index-a8ee0e8c.js → index-bc8e277e.js} +1031 -1015
- package/es/{index-7e4e0bd3.cjs → index-d4910ece.cjs} +1 -1
- package/es/{index-fdb71325.cjs → index-d725fef6.cjs} +65 -65
- package/es/{index-ca7dbd47.cjs → index-ecf79ee2.cjs} +1 -1
- package/es/{python-0405c62e.cjs → python-c27ba105.cjs} +1 -1
- package/es/{python-791e6a42.js → python-ecde9ff2.js} +1 -1
- package/es/raf-41aed4d4.js +6 -0
- package/es/{scroll-9e2dd92b.js → scroll-7d352c1f.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-global-config-1923bb6f.js → use-global-config-2704a841.js} +16 -16
- package/es/{use-global-config-c2c5ca8f.cjs → use-global-config-878461f3.cjs} +1 -1
- package/es/{validator-866ea0bb.cjs → validator-027eff1b.cjs} +1 -1
- package/es/{validator-fd32f925.js → validator-61a65ac7.js} +1 -1
- package/es/{vnode-f9752526.js → vnode-c51c8aa3.js} +1 -1
- package/es/{zh-cn-d667062d.js → zh-cn-19fbf029.js} +2 -2
- package/es/{zh-cn-0fa1aa6d.cjs → zh-cn-6ee4b8df.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +173 -173
- package/lib/{index-db060de6.js → index-dac23ed6.js} +16515 -16356
- package/lib/{python-077c8efa.js → python-fdc6b946.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/index.vue +193 -15
- package/packages/MonacoEditor/index.vue +14 -1
- package/packages/MonacoEditor/tools.js +18 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +20 -8
- package/packages/VarietySearch/components/FactorScreen/tools.js +19 -0
- package/src/pages/CustomFunction/index.vue +2 -2
- package/src/pages/VarietySearch/index.vue +68 -19
- package/es/index-eab8a286.cjs +0 -1
- package/es/raf-fa761d02.js +0 -6
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { Close, Edit, DocumentCopy, Delete } from "@element-plus/icons-vue";
|
|
2
|
+
import { Close, Edit, DocumentCopy, Delete, Document } from "@element-plus/icons-vue";
|
|
3
3
|
import { ref, inject, onMounted, watch, reactive, nextTick } from "vue";
|
|
4
4
|
|
|
5
5
|
const { request } = inject("stConfig"); // 组件库全局配置
|
|
@@ -24,6 +24,14 @@ const ruleForm = reactive({
|
|
|
24
24
|
});
|
|
25
25
|
const submitLoading = ref(false);
|
|
26
26
|
|
|
27
|
+
const testVisible = ref(false);
|
|
28
|
+
const testLoading = ref(false);
|
|
29
|
+
const testResult = reactive({
|
|
30
|
+
result: null,
|
|
31
|
+
detail: "",
|
|
32
|
+
code: "",
|
|
33
|
+
});
|
|
34
|
+
|
|
27
35
|
// 自定义函数: 获取选项
|
|
28
36
|
const getCustomFunctionOptions = async () => {
|
|
29
37
|
const { body } = await request.post("/common/qt/querySearchFunctions");
|
|
@@ -50,7 +58,7 @@ const handleDelete = async (item) => {
|
|
|
50
58
|
await request.post("/common/qt/deleteSearchFunctionById", { id: item.id });
|
|
51
59
|
getCustomFunctionOptions();
|
|
52
60
|
};
|
|
53
|
-
// 自定义函数:
|
|
61
|
+
// 自定义函数: 新建, 编辑, 复制
|
|
54
62
|
const handleAddOrEdit = (item, isCopy) => {
|
|
55
63
|
switch (Boolean(item)) {
|
|
56
64
|
// 新建
|
|
@@ -78,7 +86,36 @@ const handleAddOrEdit = (item, isCopy) => {
|
|
|
78
86
|
}
|
|
79
87
|
visible.value = true;
|
|
80
88
|
};
|
|
81
|
-
// 自定义函数:
|
|
89
|
+
// 自定义函数: 测试
|
|
90
|
+
const handleTest = async () => {
|
|
91
|
+
try {
|
|
92
|
+
testLoading.value = true;
|
|
93
|
+
ruleForm.funcExpression = stMonacoEditorRef.value.getValue();
|
|
94
|
+
if (!ruleForm.funcExpression) return ElMessage.error("函数内容不可为空");
|
|
95
|
+
// 检测里面是否包含了变量的写法, 如果包含了则不支持测试功能
|
|
96
|
+
if (/\$\{[^}]*\}/.test(ruleForm.funcExpression)) return ElMessage.error("不支持包含变量用法的函数进行测试");
|
|
97
|
+
// 调用接口
|
|
98
|
+
const { body } = await request.post("/common/qt/testFactorSelect", { factorSelectExpr: ruleForm.funcExpression });
|
|
99
|
+
const { result, detail } = body;
|
|
100
|
+
Object.assign(testResult, { result, detail, code: ruleForm.funcExpression });
|
|
101
|
+
if (result === 1) {
|
|
102
|
+
ElMessage.success("测试通过");
|
|
103
|
+
} else {
|
|
104
|
+
ElMessage.error("测试未能通过");
|
|
105
|
+
testVisible.value = true;
|
|
106
|
+
}
|
|
107
|
+
} finally {
|
|
108
|
+
testLoading.value = false;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
// 自定义函数: 日志明细
|
|
112
|
+
const handleTestLog = () => {
|
|
113
|
+
if (testResult.result === null) {
|
|
114
|
+
return ElMessage.warning("请先进行测试, 等待测试完成后可查看日志");
|
|
115
|
+
}
|
|
116
|
+
testVisible.value = true;
|
|
117
|
+
};
|
|
118
|
+
// 自定义函数: 保存
|
|
82
119
|
const handleSubmit = async () => {
|
|
83
120
|
try {
|
|
84
121
|
submitLoading.value = true;
|
|
@@ -98,7 +135,8 @@ const handleSubmit = async () => {
|
|
|
98
135
|
// 自定义函数: 插入
|
|
99
136
|
const handleInsert = () => {
|
|
100
137
|
if (!customFunctionName.value) return ElMessage.error("请先选择自定义函数后, 再执行插入");
|
|
101
|
-
|
|
138
|
+
const { funcName, funcExpression } = customFunctionOptions.value.find((item) => item.funcName === customFunctionName.value);
|
|
139
|
+
emit("insert", funcName, funcExpression);
|
|
102
140
|
};
|
|
103
141
|
|
|
104
142
|
// 变量选择器: 打开
|
|
@@ -118,6 +156,11 @@ watch(
|
|
|
118
156
|
stMonacoEditorRef.value?.setValue(ruleForm.funcExpression);
|
|
119
157
|
stMonacoEditorRef.value?.resize();
|
|
120
158
|
});
|
|
159
|
+
// 重置测试结果
|
|
160
|
+
Object.assign(testResult, {
|
|
161
|
+
result: null,
|
|
162
|
+
detail: "",
|
|
163
|
+
});
|
|
121
164
|
break;
|
|
122
165
|
}
|
|
123
166
|
case false: {
|
|
@@ -131,7 +174,7 @@ watch(
|
|
|
131
174
|
|
|
132
175
|
<template>
|
|
133
176
|
<div class="custom-function">
|
|
134
|
-
<!-- 选择框 -->
|
|
177
|
+
<!-- 自定义函数: 选择框 -->
|
|
135
178
|
<el-select
|
|
136
179
|
v-model="customFunctionName"
|
|
137
180
|
:size="size"
|
|
@@ -173,7 +216,7 @@ watch(
|
|
|
173
216
|
</div>
|
|
174
217
|
</el-option>
|
|
175
218
|
</el-select>
|
|
176
|
-
<!-- 插入 -->
|
|
219
|
+
<!-- 自定义函数: 插入 -->
|
|
177
220
|
<el-button
|
|
178
221
|
type="primary"
|
|
179
222
|
:size="size"
|
|
@@ -181,7 +224,7 @@ watch(
|
|
|
181
224
|
>
|
|
182
225
|
插入
|
|
183
226
|
</el-button>
|
|
184
|
-
<!-- 新建 -->
|
|
227
|
+
<!-- 自定义函数: 新建 -->
|
|
185
228
|
<el-button
|
|
186
229
|
type="primary"
|
|
187
230
|
:size="size"
|
|
@@ -190,7 +233,7 @@ watch(
|
|
|
190
233
|
新建
|
|
191
234
|
</el-button>
|
|
192
235
|
|
|
193
|
-
<!--
|
|
236
|
+
<!-- 窗口: 新建编辑 -->
|
|
194
237
|
<el-dialog
|
|
195
238
|
modal-class="add-or-edit-dialog"
|
|
196
239
|
v-model="visible"
|
|
@@ -226,20 +269,37 @@ watch(
|
|
|
226
269
|
</div>
|
|
227
270
|
</div>
|
|
228
271
|
</template>
|
|
229
|
-
<!--
|
|
230
|
-
<div
|
|
231
|
-
<
|
|
232
|
-
|
|
233
|
-
v-model="ruleForm.funcName"
|
|
234
|
-
|
|
235
|
-
|
|
272
|
+
<!-- 函数名称 + 测试 -->
|
|
273
|
+
<div class="func-name">
|
|
274
|
+
<div class="left">
|
|
275
|
+
<span>函数名称:</span>
|
|
276
|
+
<el-input v-model="ruleForm.funcName" />
|
|
277
|
+
</div>
|
|
278
|
+
<div class="right">
|
|
279
|
+
<el-button
|
|
280
|
+
type="primary"
|
|
281
|
+
:loading="testLoading"
|
|
282
|
+
@click="handleTest"
|
|
283
|
+
>
|
|
284
|
+
测试
|
|
285
|
+
</el-button>
|
|
286
|
+
<el-button
|
|
287
|
+
:icon="Document"
|
|
288
|
+
@click="handleTestLog"
|
|
289
|
+
>
|
|
290
|
+
日志明细
|
|
291
|
+
</el-button>
|
|
292
|
+
</div>
|
|
236
293
|
</div>
|
|
294
|
+
<!-- 注意事项 -->
|
|
295
|
+
<div class="tip-box">Tip: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算</div>
|
|
237
296
|
<!-- 内容 -->
|
|
238
297
|
<st-monacoEditor
|
|
239
298
|
ref="stMonacoEditorRef"
|
|
240
299
|
:language="'lua'"
|
|
241
300
|
style="width: 968px; height: 400px"
|
|
242
301
|
/>
|
|
302
|
+
<!-- 底部 -->
|
|
243
303
|
<template #footer>
|
|
244
304
|
<div class="dialog-footer">
|
|
245
305
|
<el-button
|
|
@@ -252,6 +312,58 @@ watch(
|
|
|
252
312
|
</div>
|
|
253
313
|
</template>
|
|
254
314
|
</el-dialog>
|
|
315
|
+
<!-- 窗口: 日志明细 -->
|
|
316
|
+
<el-dialog
|
|
317
|
+
modal-class="log-dialog"
|
|
318
|
+
v-model="testVisible"
|
|
319
|
+
width="830"
|
|
320
|
+
align-center
|
|
321
|
+
append-to-body
|
|
322
|
+
draggable
|
|
323
|
+
overflow
|
|
324
|
+
:modal="false"
|
|
325
|
+
:modal-penetrable="true"
|
|
326
|
+
:show-close="false"
|
|
327
|
+
>
|
|
328
|
+
<template #header="{ titleId, titleClass }">
|
|
329
|
+
<div class="custom-header">
|
|
330
|
+
<div class="left">
|
|
331
|
+
<span
|
|
332
|
+
:id="titleId"
|
|
333
|
+
:class="titleClass"
|
|
334
|
+
>
|
|
335
|
+
日志明细
|
|
336
|
+
</span>
|
|
337
|
+
</div>
|
|
338
|
+
<!-- 关闭 -->
|
|
339
|
+
<div class="right">
|
|
340
|
+
<el-icon @click="testVisible = false"><Close /></el-icon>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</template>
|
|
344
|
+
<div class="content">
|
|
345
|
+
<!-- 代码 -->
|
|
346
|
+
<el-scrollbar
|
|
347
|
+
class="code"
|
|
348
|
+
height="600px"
|
|
349
|
+
>
|
|
350
|
+
<pre>{{ testResult.code }}</pre>
|
|
351
|
+
</el-scrollbar>
|
|
352
|
+
<!-- 分割线 -->
|
|
353
|
+
<el-divider direction="vertical" />
|
|
354
|
+
<!-- 日志 -->
|
|
355
|
+
<el-scrollbar height="600px">
|
|
356
|
+
<pre :class="testResult.result === 1 ? 'success-log' : 'error-log'">{{ testResult.result === 1 ? "测试通过 √" : testResult.detail }}</pre>
|
|
357
|
+
</el-scrollbar>
|
|
358
|
+
</div>
|
|
359
|
+
<!-- 底部 -->
|
|
360
|
+
<template #footer>
|
|
361
|
+
<div class="dialog-footer">
|
|
362
|
+
<el-button @click="testVisible = false"> 关闭 </el-button>
|
|
363
|
+
</div>
|
|
364
|
+
</template>
|
|
365
|
+
</el-dialog>
|
|
366
|
+
|
|
255
367
|
<!-- 变量选择器 -->
|
|
256
368
|
<st-varSelectDialog ref="stVarSelectDialogRef" />
|
|
257
369
|
</div>
|
|
@@ -292,6 +404,13 @@ watch(
|
|
|
292
404
|
}
|
|
293
405
|
}
|
|
294
406
|
}
|
|
407
|
+
.tip-box {
|
|
408
|
+
box-sizing: border-box;
|
|
409
|
+
padding: 4px 0 4px 8px;
|
|
410
|
+
margin-bottom: 4px;
|
|
411
|
+
border-left: 6px solid var(--el-color-info);
|
|
412
|
+
background-color: var(--el-color-info-light-5);
|
|
413
|
+
}
|
|
295
414
|
.add-or-edit-dialog {
|
|
296
415
|
.custom-header {
|
|
297
416
|
display: flex;
|
|
@@ -307,6 +426,65 @@ watch(
|
|
|
307
426
|
cursor: pointer;
|
|
308
427
|
}
|
|
309
428
|
}
|
|
429
|
+
.func-name {
|
|
430
|
+
display: flex;
|
|
431
|
+
align-items: center;
|
|
432
|
+
justify-content: space-between;
|
|
433
|
+
margin-bottom: 10px;
|
|
434
|
+
.left {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: 10px;
|
|
438
|
+
.el-input {
|
|
439
|
+
width: 300px;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
.log-dialog {
|
|
445
|
+
.custom-header {
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
justify-content: space-between;
|
|
449
|
+
.left,
|
|
450
|
+
.right {
|
|
451
|
+
display: flex;
|
|
452
|
+
align-items: center;
|
|
453
|
+
gap: 10px;
|
|
454
|
+
}
|
|
455
|
+
.el-icon {
|
|
456
|
+
cursor: pointer;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
.content {
|
|
460
|
+
display: flex;
|
|
461
|
+
background-color: var(--el-color-black);
|
|
462
|
+
.el-scrollbar {
|
|
463
|
+
flex: 1;
|
|
464
|
+
box-sizing: border-box;
|
|
465
|
+
padding: 8px;
|
|
466
|
+
}
|
|
467
|
+
.el-divider {
|
|
468
|
+
margin: 0;
|
|
469
|
+
height: 616px;
|
|
470
|
+
}
|
|
471
|
+
.code {
|
|
472
|
+
color: var(--el-color-info);
|
|
473
|
+
}
|
|
474
|
+
.success-log {
|
|
475
|
+
color: var(--el-color-success);
|
|
476
|
+
}
|
|
477
|
+
.error-log {
|
|
478
|
+
color: var(--el-color-danger);
|
|
479
|
+
}
|
|
480
|
+
pre {
|
|
481
|
+
margin: 0;
|
|
482
|
+
line-height: 1.5;
|
|
483
|
+
white-space: pre-wrap;
|
|
484
|
+
word-break: break-all;
|
|
485
|
+
word-wrap: break-word;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
310
488
|
}
|
|
311
489
|
</style>
|
|
312
490
|
|
|
@@ -4,6 +4,7 @@ import { ref, onMounted, onUnmounted, nextTick, inject } from "vue";
|
|
|
4
4
|
import * as monaco from "monaco-editor/esm/vs/editor/editor.api";
|
|
5
5
|
import "monaco-editor/esm/vs/basic-languages/python/python.contribution";
|
|
6
6
|
import "monaco-editor/esm/vs/basic-languages/lua/lua.contribution";
|
|
7
|
+
import { extractVariables } from "./tools";
|
|
7
8
|
|
|
8
9
|
const { request } = inject("stConfig"); // 组件库全局配置
|
|
9
10
|
|
|
@@ -95,7 +96,19 @@ const insertSelectedSuggestion = () => {
|
|
|
95
96
|
if (!props.suggestionEnable) return;
|
|
96
97
|
if (suggestionIndex.value === -1 || !suggestions.value[suggestionIndex.value]) return;
|
|
97
98
|
|
|
98
|
-
const
|
|
99
|
+
const { funcName, funcExpression } = suggestions.value[suggestionIndex.value];
|
|
100
|
+
let content = funcName;
|
|
101
|
+
const varArray = extractVariables(funcExpression);
|
|
102
|
+
if (varArray.length) {
|
|
103
|
+
const str = varArray.reduce((result, item, index, arry) => {
|
|
104
|
+
result += `${item}=`;
|
|
105
|
+
// 如果不是最后一个, 就需要加个逗号
|
|
106
|
+
if (index < arry.length - 1) result += ",";
|
|
107
|
+
return result;
|
|
108
|
+
}, "");
|
|
109
|
+
content = `${content}(${str})`;
|
|
110
|
+
}
|
|
111
|
+
|
|
99
112
|
const currentPosition = editorInstance.getPosition();
|
|
100
113
|
|
|
101
114
|
const model = editorInstance.getModel();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 从函数内容中提取变量名
|
|
3
|
+
* @param {string} content - 函数内容
|
|
4
|
+
* @returns {string[]} 变量名数组
|
|
5
|
+
*/
|
|
6
|
+
export const extractVariables = (content) => {
|
|
7
|
+
if (!content) return [];
|
|
8
|
+
|
|
9
|
+
const regex = /\$\{([^}]+)\}/g;
|
|
10
|
+
const variables = [];
|
|
11
|
+
let match;
|
|
12
|
+
|
|
13
|
+
while ((match = regex.exec(content)) !== null) {
|
|
14
|
+
variables.push(match[1]);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return [...new Set(variables)]; // 去重
|
|
18
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script setup name="FactorScreen">
|
|
3
3
|
import { nextTick, ref, watch } from "vue";
|
|
4
4
|
import { Close, Plus, CircleCloseFilled, InfoFilled } from "@element-plus/icons-vue";
|
|
5
|
-
import { handleVerifyScore, extractConditionDetails } from "./tools.js";
|
|
5
|
+
import { handleVerifyScore, extractConditionDetails, extractVariables } from "./tools.js";
|
|
6
6
|
import FactorDescription from "./FactorDescription.vue";
|
|
7
7
|
import MonacoEditor from "../../../MonacoEditor/index.vue";
|
|
8
8
|
|
|
@@ -228,16 +228,27 @@ const open = () => {
|
|
|
228
228
|
stVarSelectDialogRef.value.open(monacoEditorRef.value);
|
|
229
229
|
};
|
|
230
230
|
// 插入自定义函数
|
|
231
|
-
const handleInsertCustomFunction = (
|
|
231
|
+
const handleInsertCustomFunction = (funcName, funcExpression) => {
|
|
232
232
|
if (!monacoEditorRef.value) return ElMessage.error("未检测到编辑器实例");
|
|
233
|
+
// 生成基础插入内容 (如果内含${}, 需提取出来, 作为变量)
|
|
234
|
+
let content = funcName;
|
|
235
|
+
const varArray = extractVariables(funcExpression);
|
|
236
|
+
if (varArray.length) {
|
|
237
|
+
const str = varArray.reduce((result, item, index, arry) => {
|
|
238
|
+
result += `${item}=`;
|
|
239
|
+
// 如果不是最后一个, 就需要加个逗号
|
|
240
|
+
if (index < arry.length - 1) result += ",";
|
|
241
|
+
return result;
|
|
242
|
+
}, "");
|
|
243
|
+
content = `${content}(${str})`;
|
|
244
|
+
}
|
|
233
245
|
|
|
234
|
-
|
|
246
|
+
// 初始化光标和所在行位置
|
|
235
247
|
const editorIns = monacoEditorRef.value.getInstance();
|
|
236
248
|
const position = editorIns.getPosition();
|
|
237
249
|
const currentValue = monacoEditorRef.value.getValue();
|
|
238
250
|
const lines = currentValue.split("\n");
|
|
239
|
-
|
|
240
|
-
// 如果光标位置有效
|
|
251
|
+
// 执行插入操作
|
|
241
252
|
if (position.lineNumber <= lines.length) {
|
|
242
253
|
const lineIndex = position.lineNumber - 1;
|
|
243
254
|
const line = lines[lineIndex];
|
|
@@ -292,6 +303,10 @@ watch(
|
|
|
292
303
|
monacoEditorRef.value.setValue(data.value.factorSelectExpr);
|
|
293
304
|
monacoEditorRef.value.focusToEnd();
|
|
294
305
|
}
|
|
306
|
+
// 如果有模板内容, 直接切换到模板模式
|
|
307
|
+
if ((data.value.sqlEnable && data.value.sqlValue) || (!data.value.sqlEnable && data.value.list.length)) {
|
|
308
|
+
factorType.value = "模版";
|
|
309
|
+
}
|
|
295
310
|
});
|
|
296
311
|
break;
|
|
297
312
|
}
|
|
@@ -744,8 +759,5 @@ watch(
|
|
|
744
759
|
cursor: pointer;
|
|
745
760
|
}
|
|
746
761
|
}
|
|
747
|
-
:deep(.el-dialog__body) {
|
|
748
|
-
padding-top: 20px;
|
|
749
|
-
}
|
|
750
762
|
}
|
|
751
763
|
</style>
|
|
@@ -13,3 +13,22 @@ export const extractConditionDetails = (str) => {
|
|
|
13
13
|
const regex = /(条件(\d+))/g;
|
|
14
14
|
return str.match(regex) || [];
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 从函数内容中提取变量名
|
|
19
|
+
* @param {string} content - 函数内容
|
|
20
|
+
* @returns {string[]} 变量名数组
|
|
21
|
+
*/
|
|
22
|
+
export const extractVariables = (content) => {
|
|
23
|
+
if (!content) return [];
|
|
24
|
+
|
|
25
|
+
const regex = /\$\{([^}]+)\}/g;
|
|
26
|
+
const variables = [];
|
|
27
|
+
let match;
|
|
28
|
+
|
|
29
|
+
while ((match = regex.exec(content)) !== null) {
|
|
30
|
+
variables.push(match[1]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return [...new Set(variables)]; // 去重
|
|
34
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import { ref, onMounted, computed } from "vue";
|
|
3
|
+
import { inject, ref, onMounted, computed } from "vue";
|
|
4
4
|
import { getAlarDict, getAlarFreq, getAlarFactor } from "./api.js";
|
|
5
5
|
|
|
6
|
+
const { request } = inject("stConfig"); // 组件库全局配置
|
|
7
|
+
|
|
6
8
|
const varietySearchRef = ref(null);
|
|
7
9
|
const varietySearchData = ref({
|
|
8
10
|
varietyMarket: null,
|
|
@@ -22,41 +24,46 @@ const varietySearchData = ref({
|
|
|
22
24
|
});
|
|
23
25
|
const varietySearchConfig = ref({});
|
|
24
26
|
|
|
27
|
+
const data = ref();
|
|
28
|
+
|
|
25
29
|
// 前端筛选条件格式化成API接口入参
|
|
26
30
|
const apiParams = computed(() => {
|
|
27
31
|
return { ...(varietySearchRef.value?.formatData(varietySearchData.value) ?? {}) };
|
|
28
32
|
});
|
|
29
33
|
|
|
34
|
+
// 查询数据
|
|
35
|
+
const queryData = async () => {
|
|
36
|
+
const { body } = await request.post("/common/qt/getFeatureInfosByPage", { ...apiParams.value, pageNum: 1, pageSize: 20 });
|
|
37
|
+
data.value = body.list;
|
|
38
|
+
};
|
|
39
|
+
|
|
30
40
|
onMounted(async () => {
|
|
31
41
|
const dicAlar = await getAlarDict();
|
|
32
42
|
const dicCycle = await getAlarFreq();
|
|
33
43
|
const dicFactor = await getAlarFactor();
|
|
34
|
-
|
|
35
44
|
varietySearchConfig.value = {
|
|
36
45
|
// 品种市场 [选项: 接口获取 1000]
|
|
37
46
|
varietyMarket: {
|
|
38
47
|
show: true,
|
|
39
|
-
options: dicAlar[1000]
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
+
options: dicAlar[1000].map((item) => {
|
|
49
|
+
return {
|
|
50
|
+
...item,
|
|
51
|
+
label: item.dictName,
|
|
52
|
+
value: item.dictCode,
|
|
53
|
+
memo: item?.memo?.split(",")?.map(Number),
|
|
54
|
+
};
|
|
55
|
+
}),
|
|
48
56
|
},
|
|
49
57
|
// 常用选项 [选项: 接口获取 1003]
|
|
50
58
|
commonOption: {
|
|
51
59
|
show: true,
|
|
52
|
-
options: dicAlar[1003]
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}),
|
|
60
|
+
options: dicAlar[1003].map((item) => {
|
|
61
|
+
return {
|
|
62
|
+
...item,
|
|
63
|
+
label: item.dictName,
|
|
64
|
+
value: item.dictCode,
|
|
65
|
+
};
|
|
66
|
+
}),
|
|
60
67
|
},
|
|
61
68
|
// 上市板块 [选项: 接口获取 1030]
|
|
62
69
|
marketIds: {
|
|
@@ -106,5 +113,47 @@ onMounted(async () => {
|
|
|
106
113
|
/>
|
|
107
114
|
<el-divider content-position="left">格式化转为接口入参格式apiParams:</el-divider>
|
|
108
115
|
<div>{{ apiParams }}</div>
|
|
116
|
+
<el-divider content-position="left">结果内容, 分页为1, 页码为20:</el-divider>
|
|
117
|
+
<el-button @click="queryData">查询测试</el-button>
|
|
118
|
+
<el-table
|
|
119
|
+
class="alarm"
|
|
120
|
+
ref="multipleTableRef"
|
|
121
|
+
size="small"
|
|
122
|
+
:stripe="true"
|
|
123
|
+
:border="true"
|
|
124
|
+
:data="data"
|
|
125
|
+
>
|
|
126
|
+
<el-table-column
|
|
127
|
+
type="selection"
|
|
128
|
+
width="40"
|
|
129
|
+
fixed
|
|
130
|
+
/>
|
|
131
|
+
<el-table-column
|
|
132
|
+
label="编号"
|
|
133
|
+
prop="id"
|
|
134
|
+
width="80"
|
|
135
|
+
fixed
|
|
136
|
+
/>
|
|
137
|
+
<el-table-column
|
|
138
|
+
label="代码"
|
|
139
|
+
prop="code"
|
|
140
|
+
width="90"
|
|
141
|
+
sortable="custom"
|
|
142
|
+
fixed
|
|
143
|
+
show-overflow-tooltip
|
|
144
|
+
/>
|
|
145
|
+
<el-table-column
|
|
146
|
+
label="名称"
|
|
147
|
+
prop="featureName"
|
|
148
|
+
sortable="custom"
|
|
149
|
+
fixed
|
|
150
|
+
show-overflow-tooltip
|
|
151
|
+
/>
|
|
152
|
+
<el-table-column
|
|
153
|
+
label="市场"
|
|
154
|
+
prop="exchangeName"
|
|
155
|
+
width="70"
|
|
156
|
+
/>
|
|
157
|
+
</el-table>
|
|
109
158
|
</div>
|
|
110
159
|
</template>
|
package/es/index-eab8a286.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./base-ef747d02.cjs"),c=r.buildProps({size:{type:r.definePropType([Number,String])},color:{type:String}}),u=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),p=e.defineComponent({...u,props:c,setup(t){const a=t,l=r.useNamespace("icon"),n=e.computed(()=>{const{size:_,color:o}=a;return!_&&!o?{}:{fontSize:r.isUndefined(_)?void 0:r.addUnit(_),"--color":o}});return(_,o)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(l).b(),style:e.unref(n)},_.$attrs),[e.renderSlot(_.$slots,"default")],16))}});var s=r._export_sfc(p,[["__file","icon.vue"]]);const d=r.withInstall(s);/*! Element Plus Icons Vue v2.3.1 */var i=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),m=i,v=e.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),f=v,w=e.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),g=w,h=e.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),B=h,x=e.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),e.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),C=x,E=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),k=E,V=e.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),L=V,M=e.defineComponent({name:"Close",__name:"close",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),y=M,z=e.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),N=z,H=e.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),A=H,S=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),F=S,q=e.defineComponent({name:"DocumentCopy",__name:"document-copy",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),D=q,I=e.defineComponent({name:"Edit",__name:"edit",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),P=I,U=e.defineComponent({name:"Hide",__name:"hide",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),e.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),b=U,Z=e.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),R=Z,$=e.defineComponent({name:"Loading",__name:"loading",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Q=$,T=e.defineComponent({name:"Minus",__name:"minus",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),W=T,j=e.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),G=j,J=e.defineComponent({name:"More",__name:"more",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),K=J,O=e.defineComponent({name:"Plus",__name:"plus",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),X=O,Y=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),e2=Y,t2=e.defineComponent({name:"Right",__name:"right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),a2=t2,l2=e.defineComponent({name:"SortDown",__name:"sort-down",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),r2=l2,_2=e.defineComponent({name:"SortUp",__name:"sort-up",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),o2=_2,n2=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),c2=n2,u2=e.defineComponent({name:"UserFilled",__name:"user-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),p2=u2,s2=e.defineComponent({name:"View",__name:"view",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),d2=s2,i2=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),m2=i2;exports.ElIcon=d;exports.arrow_down_default=m;exports.arrow_left_default=f;exports.arrow_right_default=g;exports.arrow_up_default=B;exports.circle_check_default=C;exports.circle_close_default=L;exports.circle_close_filled_default=k;exports.close_default=y;exports.d_arrow_left_default=N;exports.d_arrow_right_default=A;exports.delete_default=F;exports.document_copy_default=D;exports.edit_default=P;exports.hide_default=b;exports.info_filled_default=R;exports.loading_default=Q;exports.minus_default=W;exports.more_default=K;exports.more_filled_default=G;exports.plus_default=X;exports.question_filled_default=e2;exports.right_default=a2;exports.sort_down_default=r2;exports.sort_up_default=o2;exports.success_filled_default=c2;exports.user_filled_default=p2;exports.view_default=d2;exports.warning_filled_default=m2;
|