|
@@ -16,8 +16,8 @@
|
|
@dragend.stop="e => tabDraggable(item, e, 'dragend')"
|
|
@dragend.stop="e => tabDraggable(item, e, 'dragend')"
|
|
@dragover.prevent
|
|
@dragover.prevent
|
|
>
|
|
>
|
|
- <i class="ma-svg-icon" v-if="item._type === 'api'" :class="['request-method-' + item.method]" />
|
|
+ <magic-text-icon v-if="item._type === 'api'" v-model="item.method" style="margin-top: -4px"/>
|
|
- <i class="ma-svg-icon" v-if="item._type !== 'api'" :class="['icon-function']" />
|
|
+ <magic-text-icon v-if="item._type !== 'api'" value="function" style="margin-top: -4px"/>
|
|
{{item.displayName || item.name}}<i class="ma-icon ma-icon-lock" v-if="item.lock === '1'" />
|
|
{{item.displayName || item.name}}<i class="ma-icon ma-icon-lock" v-if="item.lock === '1'" />
|
|
<span v-show="!item.id || item.script !== item.ext.tmpScript">*</span>
|
|
<span v-show="!item.id || item.script !== item.ext.tmpScript">*</span>
|
|
<i class="ma-icon ma-icon-close" @click.stop="close(item.id || item.tmp_id)"/>
|
|
<i class="ma-icon ma-icon-close" @click.stop="close(item.id || item.tmp_id)"/>
|
|
@@ -81,10 +81,12 @@ import RequestParameter from '@/scripts/editor/request-parameter.js';
|
|
import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands'
|
|
import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands'
|
|
import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js'
|
|
import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js'
|
|
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js'
|
|
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js'
|
|
|
|
+import MagicTextIcon from "@/components/common/magic-text-icon";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'MagicScriptEditor',
|
|
name: 'MagicScriptEditor',
|
|
components: {
|
|
components: {
|
|
|
|
+ MagicTextIcon,
|
|
MagicDialog,
|
|
MagicDialog,
|
|
MagicHistory
|
|
MagicHistory
|
|
},
|
|
},
|
|
@@ -968,11 +970,6 @@ export default {
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
padding-right: 3px;
|
|
padding-right: 3px;
|
|
}
|
|
}
|
|
-.ma-wrapper .ma-tab .ma-svg-icon{
|
|
|
|
- height: 16px;
|
|
|
|
- margin-left: 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
.ma-hot-key {
|
|
.ma-hot-key {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 50%;
|
|
top: 50%;
|