mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-15 23:54:35 +08:00
完善ubrowser各项参数及UI
This commit is contained in:
@@ -195,6 +195,11 @@ export default {
|
||||
},
|
||||
insertText(text) {
|
||||
this.$refs.editor.repacleEditorSelection(text);
|
||||
this.$refs.editor.formatDocument();
|
||||
},
|
||||
replaceText(text) {
|
||||
this.$refs.editor.setEditorValue(text);
|
||||
this.$refs.editor.formatDocument();
|
||||
},
|
||||
handleComposer({ type, code }) {
|
||||
switch (type) {
|
||||
@@ -203,7 +208,7 @@ export default {
|
||||
case "insert":
|
||||
return this.insertText(code);
|
||||
case "apply":
|
||||
return this.$refs.editor.setEditorValue(code);
|
||||
return this.replaceText(code);
|
||||
}
|
||||
},
|
||||
// 保存
|
||||
|
||||
Reference in New Issue
Block a user