refactor: 升级Vue SFC深度选择器语法为::v-deep

本次提交将项目中所有使用`::deep`的CSS深度选择器统一替换为Vue 3官方推荐的`::v-deep`语法,修复了旧版语法在新版本Vue生态中的兼容性问题,同时修正了部分组件的响应式表单定义方式,将`reactive`配合`Object.assign`的写法调整为更符合Vue 3组合式API规范的`ref`响应式状态写法,整体优化了代码的可维护性和兼容性。
This commit is contained in:
zhangtao
2026-05-11 15:46:18 +08:00
parent 4112942a14
commit 80d4f18e8b
64 changed files with 510 additions and 501 deletions
+2 -2
View File
@@ -567,7 +567,7 @@ onUnmounted(() => {
flex-direction: column;
min-height: 0;
::deep(.el-card__body) {
::v-deep(.el-card__body) {
display: flex;
flex: 1;
flex-direction: column;
@@ -607,7 +607,7 @@ onUnmounted(() => {
flex-direction: column;
min-height: 0;
::deep(.el-card__body) {
::v-deep(.el-card__body) {
display: flex;
flex: 1;
flex-direction: column;
@@ -633,14 +633,14 @@ async function handleBatchDelete() {
</script>
<style lang="scss" scoped>
.resource-monitor-page ::deep(.resource-monitor-card.el-card > .el-card__body) {
.resource-monitor-page ::v-deep(.resource-monitor-card.el-card > .el-card__body) {
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
}
::deep(.el-breadcrumb__item) {
::v-deep(.el-breadcrumb__item) {
&.is-link {
color: var(--el-color-primary);
cursor: pointer;