@fast-crud/editor-code 1.26.4 → 1.26.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.26.5](https://github.com/fast-crud/fast-crud/compare/v1.26.4...v1.26.5) (2025-08-21)
7
+
8
+ ### Performance Improvements
9
+
10
+ * editor-code 支持blur事件 ([4de8e5d](https://github.com/fast-crud/fast-crud/commit/4de8e5dd55e68cf4cbd1c4e284eeae05ec95580c))
11
+
6
12
  ## [1.26.4](https://github.com/fast-crud/fast-crud/compare/v1.26.3...v1.26.4) (2025-08-14)
7
13
 
8
14
  **Note:** Version bump only for package @fast-crud/editor-code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fast-crud/editor-code",
3
- "version": "1.26.4",
3
+ "version": "1.26.5",
4
4
  "private": false,
5
5
  "main": "./dist/editor-code.umd.js",
6
6
  "module": "./dist/editor-code.mjs",
@@ -26,7 +26,7 @@
26
26
  "monaco-yaml": "^5.3.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@fast-crud/fast-crud": "^1.26.4",
29
+ "@fast-crud/fast-crud": "^1.26.5",
30
30
  "@ls-lint/ls-lint": "^2.0.1",
31
31
  "@rollup/plugin-commonjs": "^25.0.3",
32
32
  "@rollup/plugin-strip": "^3.0.2",
@@ -75,5 +75,5 @@
75
75
  "vue-eslint-parser": "^9.3.1",
76
76
  "vue-tsc": "^1.8.8"
77
77
  },
78
- "gitHead": "1ae5bbf7a7096cd0437831d58ed647ef73233ecf"
78
+ "gitHead": "104adea81461c91456cb6f02f56f25ce7585753a"
79
79
  }
@@ -83,7 +83,7 @@ onUnmounted(() => {
83
83
  disposeEditor();
84
84
  });
85
85
 
86
- const emits = defineEmits(["update:modelValue", "change", "ready"]);
86
+ const emits = defineEmits(["update:modelValue", "change", "ready", "blur"]);
87
87
 
88
88
  const emitValue = lodashDebounce((value: any) => {
89
89
  emits("update:modelValue", value);
@@ -115,6 +115,11 @@ async function createEditor(ctx: EditorCodeCtx) {
115
115
 
116
116
  instanceRef = instance;
117
117
  ctx.instance = instance;
118
+
119
+ instance.onDidBlurEditorText(() => {
120
+ emits("blur", ctx);
121
+ });
122
+
118
123
  emits("ready", ctx);
119
124
  return instance;
120
125
  }