style: 统一使用!前缀替代方括号的宽度类名

修改模板文件中的宽度类名,从w-[380px]和w-40统一改为!w-380px和!w-40
修复模板中条件判断的语法格式问题
This commit is contained in:
piexlMax(奇淼
2025-09-03 16:29:52 +08:00
parent daabca4768
commit 6bf848d53f
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ getDataSourceFunc()
</template>
<el-date-picker
v-model="searchInfo.createdAtRange"
class="w-[380px]"
class="!w-380px"
type="datetimerange"
range-separator="至"
start-placeholder="开始时间"
@@ -158,7 +158,7 @@ getDataSourceFunc()
>
<el-table-column type="selection" width="55" />
{{ if .GvaModel }}
<el-table-column sortable align="left" label="日期" prop="CreatedAt" {{- if .IsTree }} min-{{- end -}}width="180">
<el-table-column sortable align="left" label="日期" prop="CreatedAt" {{ if .IsTree -}} min-{{- end -}}width="180">
<template #default="scope">{{ "{{ formatDate(scope.row.CreatedAt) }}" }}</template>
</el-table-column>
{{ end }}