ronds-metadata 1.3.88 → 1.3.89
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.
|
@@ -4,13 +4,17 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
/*
|
|
5
5
|
* @Author: wangxian
|
|
6
6
|
* @Date: 2023-09-08 10:02:20
|
|
7
|
-
* @LastEditTime: 2024-
|
|
7
|
+
* @LastEditTime: 2024-09-06 09:18:26
|
|
8
8
|
*/
|
|
9
|
-
import Editor, { useMonaco } from '@monaco-editor/react';
|
|
9
|
+
import Editor, { useMonaco, loader } from '@monaco-editor/react';
|
|
10
|
+
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
10
11
|
import React from 'react';
|
|
11
12
|
// 引入所需的语言库
|
|
12
13
|
import 'monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js';
|
|
13
14
|
import './index.less';
|
|
15
|
+
loader.config({
|
|
16
|
+
monaco: monaco
|
|
17
|
+
});
|
|
14
18
|
var CodeEdit = function CodeEdit(props) {
|
|
15
19
|
var value = props.value,
|
|
16
20
|
width = props.width,
|
|
@@ -24,7 +24,7 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
|
24
24
|
extraInfo = props.extraInfo,
|
|
25
25
|
onChange = props.onChange,
|
|
26
26
|
disabled = props.disabled;
|
|
27
|
-
var _React$useState = React.useState('
|
|
27
|
+
var _React$useState = React.useState('origin'),
|
|
28
28
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
29
29
|
view = _React$useState2[0],
|
|
30
30
|
setView = _React$useState2[1];
|
package/es/config.js
CHANGED
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
/*
|
|
3
3
|
* @Author: wangxian
|
|
4
4
|
* @Date: 2021-09-18 14:15:04
|
|
5
|
-
* @LastEditTime: 2024-
|
|
5
|
+
* @LastEditTime: 2024-09-06 10:39:27
|
|
6
6
|
*/
|
|
7
7
|
import { BehaviorSubject, map, distinctUntilChanged } from 'rxjs';
|
|
8
8
|
import { setLocale } from './comps/locales/index';
|