Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: graph node terminal not work
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Mar 14, 2024
1 parent f07ff40 commit 18cb0d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
5 changes: 0 additions & 5 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,18 @@ declare module 'vue' {
AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'];
ALayout: typeof import('@arco-design/web-vue')['Layout'];
ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'];
ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'];
ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'];
ALink: typeof import('@arco-design/web-vue')['Link'];
AList: typeof import('@arco-design/web-vue')['List'];
AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'];
AMenu: typeof import('@arco-design/web-vue')['Menu'];
AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'];
AModal: typeof import('@arco-design/web-vue')['Modal'];
AOption: typeof import('@arco-design/web-vue')['Option'];
APagination: typeof import('@arco-design/web-vue')['Pagination'];
AProgress: typeof import('@arco-design/web-vue')['Progress'];
ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'];
AResult: typeof import('@arco-design/web-vue')['Result'];
ASelect: typeof import('@arco-design/web-vue')['Select'];
ASpace: typeof import('@arco-design/web-vue')['Space'];
ASpin: typeof import('@arco-design/web-vue')['Spin'];
AStatistic: typeof import('@arco-design/web-vue')['Statistic'];
ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'];
ASwitch: typeof import('@arco-design/web-vue')['Switch'];
ATable: typeof import('@arco-design/web-vue')['Table'];
Expand Down
22 changes: 2 additions & 20 deletions src/components/ace-editor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,24 +313,6 @@
};
const setLanguageTools = () => {
langTools.setCompleters();
// langTools.addCompleter({
// identifierRegexps: [identifer],
// getCompletions(
// editor: any,
// session: any,
// pos: Position,
// prefix: any,
// callback: any
// ) {
// const wordRange = editor.session.getTextRange({
// start: { row: 0, column: 0 },
// end: pos
// });
// const valuePath = getValuePath(wordRange) || '';
// const list = getCompletionList(valuePath);
// callback(null, list);
// }
// });
};
const handleInput = (val) => {
emits('change', val);
Expand Down Expand Up @@ -396,6 +378,7 @@
() => props.readOnly,
(newVal) => {
aceEditor?.setOption('readOnly', newVal);
aceEditor?.setOption('useWorker', !newVal);
},
{ immediate: false }
);
Expand All @@ -417,7 +400,6 @@
emits('input', val);
emits('update:modelValue', val);
clearDiffRowDecoration(args);
console.log('editor=====', val);
});
aceEditor.on('blur', function (args: any) {
const val = aceEditor.getValue();
Expand All @@ -428,7 +410,7 @@
// maxLines: Infinity,
// minLines: 10,
wrap: true,
useWorker: true,
useWorker: !props.readOnly,
showPrintMargin: false,
fontSize: 14,
readOnly: props.readOnly,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
const renderExecHtml = () => {
if (!executable) return '';
return `<li code="exec" class="iconfont icon-terminal">
<span class="m-l-3">${i18n.global.t(
<span class="m-l-3" code="exec">${i18n.global.t(
'applications.instance.tab.term'
)}</span>
</li>`;
Expand Down

0 comments on commit 18cb0d3

Please sign in to comment.