● fix: 修复 Vite 8 前端编译及运行时错误
- main.js: 修复 createApp/mount 缺失导致 app 未定义 - chineseMedicineDialog: defineModel → props+emit 兼容 Vue 3.5 - el-form-nan-plugin: 修正 try/catch 括号匹配 - vite.config: CSS 压缩器切换为 esbuild
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-model="visible"
|
||||
:model-value="visible"
|
||||
@update:model-value="emit('update:visible', $event)"
|
||||
title="中医诊断"
|
||||
:width="width"
|
||||
:z-index="20"
|
||||
@@ -98,15 +99,17 @@ const props = defineProps({
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
visible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
|
||||
const emit = defineEmits(['ok-act'])
|
||||
|
||||
const visible = defineModel<boolean>('visible')
|
||||
const emit = defineEmits(['ok-act', 'update:visible'])
|
||||
const width = '500px'
|
||||
|
||||
const cancelAct = () => {
|
||||
visible.value = false
|
||||
emit('update:visible', false)
|
||||
}
|
||||
|
||||
function handleConditionChange() {
|
||||
@@ -175,7 +178,7 @@ const openAct = () => {
|
||||
loadSyndromeOptions()
|
||||
}
|
||||
const closedAct = () => {
|
||||
visible.value = false
|
||||
emit('update:visible', false)
|
||||
}
|
||||
onMounted(() => {
|
||||
loadConditionOptions()
|
||||
|
||||
Reference in New Issue
Block a user