vue-devui 1.6.32 → 1.6.34
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/auto-complete/index.es.js +131 -26
- package/auto-complete/index.umd.js +12 -12
- package/data-grid/index.es.js +131 -26
- package/data-grid/index.umd.js +18 -18
- package/date-picker-pro/index.es.js +131 -26
- package/date-picker-pro/index.umd.js +16 -16
- package/editable-select/index.es.js +131 -26
- package/editable-select/index.umd.js +16 -16
- package/editor-md/index.es.js +6 -2
- package/editor-md/index.umd.js +16 -15
- package/input/index.es.js +136 -31
- package/input/index.umd.js +22 -22
- package/locale/index.es.js +271 -0
- package/locale/index.umd.js +1 -0
- package/locale/package.json +8 -0
- package/nuxt/components/Locale.js +2 -0
- package/package.json +1 -1
- package/pagination/index.es.js +131 -26
- package/pagination/index.umd.js +11 -11
- package/search/index.es.js +136 -31
- package/search/index.umd.js +12 -12
- package/select/index.es.js +131 -26
- package/select/index.umd.js +21 -21
- package/splitter/index.es.js +136 -31
- package/splitter/index.umd.js +14 -14
- package/table/index.es.js +131 -26
- package/table/index.umd.js +10 -10
- package/time-picker/index.es.js +131 -26
- package/time-picker/index.umd.js +15 -15
- package/time-select/index.es.js +131 -26
- package/time-select/index.umd.js +18 -18
- package/tree/index.es.js +131 -26
- package/tree/index.umd.js +26 -26
- package/types/locale/index.d.ts +7 -4
- package/upload/index.es.js +131 -26
- package/upload/index.umd.js +3 -3
- package/vue-devui.es.js +138 -29
- package/vue-devui.umd.js +68 -67
package/editor-md/index.es.js
CHANGED
|
@@ -1491,7 +1491,11 @@ ToolBarHandler.file = (editor, params) => {
|
|
|
1491
1491
|
ToolBarHandler.code = (editor) => {
|
|
1492
1492
|
const cursor = editor.getCursor();
|
|
1493
1493
|
const selection = editor.getSelection();
|
|
1494
|
-
|
|
1494
|
+
if (selection.indexOf("\n") === -1) {
|
|
1495
|
+
editor.replaceSelection("`" + selection + "`");
|
|
1496
|
+
} else {
|
|
1497
|
+
editor.replaceSelection("```\n" + selection + "\n```");
|
|
1498
|
+
}
|
|
1495
1499
|
editor.focus();
|
|
1496
1500
|
if (selection === "") {
|
|
1497
1501
|
editor.setCursor(cursor.line, cursor.ch + 1);
|
|
@@ -1780,7 +1784,7 @@ function locale(key) {
|
|
|
1780
1784
|
file: "\u6587\u4EF6",
|
|
1781
1785
|
table: "\u8868\u683C",
|
|
1782
1786
|
link: "\u8D85\u94FE\u63A5",
|
|
1783
|
-
code: "\
|
|
1787
|
+
code: "\u4EE3\u7801",
|
|
1784
1788
|
codeblock: "\u4EE3\u7801\u5757",
|
|
1785
1789
|
blockquote: "\u5F15\u7528",
|
|
1786
1790
|
superscript: "\u4E0A\u6807",
|