diff --git a/package-lock.json b/package-lock.json index cb37adb..977e5eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@idealworld/formula-editor", - "version": "0.5.4", + "version": "0.5.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@idealworld/formula-editor", - "version": "0.5.4", + "version": "0.5.6", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "^6.9.1", diff --git a/package.json b/package.json index 8d00b71..8a05bea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@idealworld/formula-editor", - "version": "0.5.5", + "version": "0.5.7", "description": "A relatively complete formula editor", "scripts": { "build": "rimraf dist && vue-tsc && vite build", diff --git a/src/components/Editor.vue b/src/components/Editor.vue index e1cee84..76d3223 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -190,7 +190,7 @@ function watchFormulaResult(_formulaResult: FormulaResult) { emit('update:checkPass', _formulaResult.pass) } -function getFormuleWithLabel() { +function getFormulaWithLabel() { const reg = new RegExp('(await )?\\' + props.entrance + '\\.(\\w+\\.\\w+)', 'g') let _value = formulaResult.value let labelNameConf: LabelNameConf = {} @@ -244,7 +244,7 @@ async function getResultVal() { } defineExpose({ - getFormuleWithLabel, + getFormulaWithLabel, getResultVal })