@antv/dumi-theme-antv 0.6.0 → 0.6.1
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.
|
@@ -347,7 +347,7 @@ export var CodeEditor = function CodeEditor(_ref) {
|
|
|
347
347
|
{
|
|
348
348
|
var _code = function _code(spec) {
|
|
349
349
|
if (!full) return "(".concat(spec, ")");
|
|
350
|
-
return "import { Chart } from '@antv/g2';\n
|
|
350
|
+
return "import { Chart } from '@antv/g2';\n\n const chart = new Chart({container:'container'});\n\n chart.options(".concat(spec, ");\n\n chart.render();\n ");
|
|
351
351
|
};
|
|
352
352
|
return format(parseFunction(_code(JSON.stringify(spec, withFunction))), {
|
|
353
353
|
plugins: [parserBabel]
|
|
@@ -412,7 +412,7 @@ export var CodeEditor = function CodeEditor(_ref) {
|
|
|
412
412
|
language: languageOf(tab),
|
|
413
413
|
value: valueOf(tab),
|
|
414
414
|
defaultValue: defaultOf(tab),
|
|
415
|
-
path: tab,
|
|
415
|
+
path: "".concat(tab, "_").concat(relativePath || exampleId),
|
|
416
416
|
loading: /*#__PURE__*/React.createElement(Loading, null),
|
|
417
417
|
options: {
|
|
418
418
|
readOnly: tab === EDITOR_TABS.DATA || tab === EDITOR_TABS.SPEC,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/dumi-theme-antv",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "AntV website theme based on dumi2.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dumi",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@docsearch/css": "^3.8.0",
|
|
50
50
|
"@docsearch/react": "^3.8.0",
|
|
51
51
|
"@monaco-editor/react": "^4.6.0",
|
|
52
|
-
"@petercatai/assistant": "^2.0.
|
|
52
|
+
"@petercatai/assistant": "^2.0.24",
|
|
53
53
|
"@stackblitz/sdk": "^1.11.0",
|
|
54
54
|
"antd": "^4.24.16",
|
|
55
55
|
"classnames": "^2.5.1",
|