vue-devui 1.6.32 → 1.6.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/editor-md/index.es.js +6 -2
- package/editor-md/index.umd.js +16 -15
- package/package.json +1 -1
- package/vue-devui.es.js +7 -3
- package/vue-devui.umd.js +4 -3
package/package.json
CHANGED
package/vue-devui.es.js
CHANGED
|
@@ -35579,7 +35579,11 @@ ToolBarHandler.file = (editor, params) => {
|
|
|
35579
35579
|
ToolBarHandler.code = (editor) => {
|
|
35580
35580
|
const cursor = editor.getCursor();
|
|
35581
35581
|
const selection = editor.getSelection();
|
|
35582
|
-
|
|
35582
|
+
if (selection.indexOf("\n") === -1) {
|
|
35583
|
+
editor.replaceSelection("`" + selection + "`");
|
|
35584
|
+
} else {
|
|
35585
|
+
editor.replaceSelection("```\n" + selection + "\n```");
|
|
35586
|
+
}
|
|
35583
35587
|
editor.focus();
|
|
35584
35588
|
if (selection === "") {
|
|
35585
35589
|
editor.setCursor(cursor.line, cursor.ch + 1);
|
|
@@ -35868,7 +35872,7 @@ function locale(key) {
|
|
|
35868
35872
|
file: "\u6587\u4EF6",
|
|
35869
35873
|
table: "\u8868\u683C",
|
|
35870
35874
|
link: "\u8D85\u94FE\u63A5",
|
|
35871
|
-
code: "\
|
|
35875
|
+
code: "\u4EE3\u7801",
|
|
35872
35876
|
codeblock: "\u4EE3\u7801\u5757",
|
|
35873
35877
|
blockquote: "\u5F15\u7528",
|
|
35874
35878
|
superscript: "\u4E0A\u6807",
|
|
@@ -54534,7 +54538,7 @@ const installs = [
|
|
|
54534
54538
|
VirtualListInstall
|
|
54535
54539
|
];
|
|
54536
54540
|
var vueDevui = {
|
|
54537
|
-
version: "1.6.
|
|
54541
|
+
version: "1.6.33",
|
|
54538
54542
|
install(app) {
|
|
54539
54543
|
installs.forEach((p) => app.use(p));
|
|
54540
54544
|
}
|