Browse Source

feat: config

master
wangxiang 1 year ago
parent
commit
b5dde0b1e2
  1. 2
      src/components/AceEditor/src/AceEditor.tsx
  2. 0
      src/components/AceEditor/src/config.ts
  3. 2
      src/views/demo/editor/ace/index.vue
  4. 2
      src/views/demo/editor/ace/useAceEditor.vue
  5. 2
      src/views/demo/editor/ace/useAceEditorAdvanced.vue

2
src/components/AceEditor/src/AceEditor.tsx

@ -11,13 +11,13 @@ import { @@ -11,13 +11,13 @@ import {
computed,
nextTick
} from 'vue';
import './config';
import ResizeObserver from 'resize-observer-polyfill';
import { basicEmits } from './emits';
import { basicProps } from './props';
import type { AceEditorState, AceEditorMethods, AceEditorProps } from './types';
import { deepMerge } from '/@/utils';
import { useAppStore } from '/@/store/modules/app';
import './ace-config';
import { isFunction } from '/@/utils/is';
export default defineComponent({

0
src/components/AceEditor/src/ace-config.ts → src/components/AceEditor/src/config.ts

2
src/views/demo/editor/ace/index.vue

@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
state.content = (
await {
json: import('../../../../../package.json?raw'),
javascript: import('/@/components/AceEditor/src/ace-config.js?raw'),
javascript: import('/@/components/AceEditor/src/config.js?raw'),
html: import('../../../../../index.html?raw'),
yaml: import('../../../../../pnpm-lock.yaml?raw'),
}[lang]

2
src/views/demo/editor/ace/useAceEditor.vue

@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
state.content = (
await {
json: import('../../../../../package.json?raw'),
javascript: import('/@/components/AceEditor/src/ace-config.js?raw'),
javascript: import('/@/components/AceEditor/src/config.js?raw'),
html: import('../../../../../index.html?raw'),
yaml: import('../../../../../pnpm-lock.yaml?raw'),
}[lang]

2
src/views/demo/editor/ace/useAceEditorAdvanced.vue

@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
state.content = (
await {
json: import('../../../../../package.json?raw'),
javascript: import('/@/components/AceEditor/src/ace-config.js?raw'),
javascript: import('/@/components/AceEditor/src/config.js?raw'),
html: import('../../../../../index.html?raw'),
yaml: import('../../../../../pnpm-lock.yaml?raw'),
}[lang] || {}).default!;

Loading…
Cancel
Save