diff --git a/src/api/quickcommand.js b/src/api/quickcommand.js deleted file mode 100644 index 1374487..0000000 --- a/src/api/quickcommand.js +++ /dev/null @@ -1,24 +0,0 @@ -import { Dialog } from 'quasar' -import inputBox from "../components/InputBox" - -let showInputBox = (labels = [], title = "", hints = []) => { - return new Promise((reslove, reject) => { - Dialog.create({ - component: inputBox, - componentProps: { - labels: labels, - title: title, - hints: hints - } - }).onOk(results => { - reslove(Array.from(results)) - }).onCancel(() => { - console.log('取消') - }).onDismiss(() => { - console.log('对话框被关闭') - }) - }) -}; -export default { - showInputBox, -}; diff --git a/src/components/MonocaEditor.vue b/src/components/MonocaEditor.vue index e1746d3..cc0c3b8 100644 --- a/src/components/MonocaEditor.vue +++ b/src/components/MonocaEditor.vue @@ -5,7 +5,7 @@