fix: bugs

This commit is contained in:
xingyu
2022-11-28 16:50:53 +08:00
parent dec05a6c40
commit 005a3e6ab0
20 changed files with 113 additions and 95 deletions

View File

@ -75,7 +75,18 @@
v-if="actionType === 'detail'"
:schema="allSchemas.detailSchema"
:data="detailData"
/>
>
<template #tags="{ row }">
<el-tag
:disable-transitions="true"
:key="index"
v-for="(tag, index) in row.tags"
:index="index"
>
{{ tag }}
</el-tag>
</template>
</Descriptions>
<!-- 操作按钮 -->
<template #footer>
<!-- 按钮保存 -->

View File

@ -15,7 +15,7 @@ export const rules = reactive({
const crudSchemas = reactive<VxeCrudSchema>({
primaryKey: 'id',
primaryType: 'seq',
primaryTitle: '敏感词编号', // TODO 星语:如果长度超过 4 个字符,会导致表格列宽度不够,需要优化
primaryTitle: '敏感词编号',
action: true,
columns: [
{
@ -25,7 +25,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
},
{
title: '标签',
field: 'tags', // TODO 星语:如果是数组的话,是不是使用 el tag 展示呀?
field: 'tags',
table: {
slots: {
default: 'tags_default'