form-engine-vue3
Version:
```json "dependencies": { "axios": "^0.21.1", "codemirror": "^5.62.2", "core-js": "^3.8.3", "element-plus": "^1.0.2-beta.33", "vue": "3.1.4", "vue-i18n": "^9.1.7", "vuedraggable": "^4.0.3" } "devDependencies": { "@vue/cli-plugin
26 lines (23 loc) • 835 B
Markdown
# 表单引擎 服务于 高校新平台
# 记录 项目在 vue-i18n 中 出现的 问题
```javascript
// version : 9.1.7
// 为了 修正 element-plus 中 对于 isRange 发生变化 不会 监听改变 dom,使用了 重绘的 方式
// 导致 了 vue-i18n 中 在 mounted 中 找不到 挂载的 $i18n 导致 程序崩溃
// 修正 位置 node_modules => vue-i18n => vue-i18n.esm-bundler => mounted方法
/* istanbul ignore if */
if (
(process.env.NODE_ENV !== 'production' || __VUE_I18N_PROD_DEVTOOLS__) &&
!false
) {
try {
this.$el.__VUE_I18N__ = this.$i18n.__composer
const emitter = (this.__v_emitter = createEmitter())
const _vueI18n = this.$i18n
_vueI18n.__enableEmitter && _vueI18n.__enableEmitter(emitter)
emitter.on('*', addTimelineEvent)
} catch (error) {
console.warn(error)
}
}
```