st-comp 0.0.136 → 0.0.138
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/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +338 -339
- package/es/{index-776a02be.js → index-1f3f4b73.js} +2230 -2218
- package/es/{index-86920308.cjs → index-a28c8425.cjs} +84 -79
- package/es/lua-2361444a.js +168 -0
- package/es/lua-7e5aa405.cjs +6 -0
- package/es/{python-5b7987de.cjs → python-3b195519.cjs} +1 -1
- package/es/{python-b27949fe.js → python-ed83fe84.js} +1 -1
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +134 -124
- package/lib/{index-73a5840c.js → index-7519bd85.js} +6820 -6809
- package/lib/lua-2361444a.js +168 -0
- package/lib/{python-bb104d23.js → python-88e9d658.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/MonacoEditor/index.vue +1 -0
- package/packages/VarietySearch/index.vue +6 -1
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { ref, onMounted, onUnmounted } from 'vue'
|
|
7
7
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
8
8
|
import 'monaco-editor/esm/vs/basic-languages/python/python.contribution';
|
|
9
|
+
import 'monaco-editor/esm/vs/basic-languages/lua/lua.contribution';
|
|
9
10
|
|
|
10
11
|
let editorInstance: any;
|
|
11
12
|
|
|
@@ -52,7 +52,12 @@ const commonOptionDict = computed(() => {
|
|
|
52
52
|
// 已选品种市场,仅展示匹配的
|
|
53
53
|
if (varietyMarket) {
|
|
54
54
|
const memo = varietyMarketDict.value.find(({ value }) => value === varietyMarket).memo;
|
|
55
|
-
|
|
55
|
+
// 按照memo的顺序进行数据排序
|
|
56
|
+
return memo.reduce((result, value) => {
|
|
57
|
+
const commonItem = config.value.commonOption.options.find((i) => i.value === value);
|
|
58
|
+
commonItem && result.push(commonItem);
|
|
59
|
+
return result;
|
|
60
|
+
}, []);
|
|
56
61
|
}
|
|
57
62
|
// 未选品种市场,展示全部
|
|
58
63
|
else {
|