Skip to content

Commit

Permalink
feat: 删除名称列标签
Browse files Browse the repository at this point in the history
  • Loading branch information
etchnight committed Mar 6, 2024
1 parent 786765e commit eb264eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/TableColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:label="props.child.label"
resizable="true"
header-align="center"
v-if="props.child.children.length == 0"
v-if="props.child.children.length === 0"
>
<!--单元格内容-->
<template #default="scope">
Expand Down Expand Up @@ -44,5 +44,4 @@ import { Head } from "./Table.vue";
const props = defineProps<{
child: Head;
}>();
</script>
6 changes: 5 additions & 1 deletion src/components/TableData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,12 @@ const submit = async () => {
splitFlag: "",
};
for (const nameBlockObj of nameAndChildBlocks) {
let name = nameBlockObj.nameBlock.content;
for (let tag of props.tag_concept) {
name = name.replace(`#${tag.tag.value}#`, "");
}
let data: Data = {
name: nameBlockObj.nameBlock.content,
name: name,
};
for (let prop of propList) {
let propBlock = getPropBlock(nameBlockObj, prop.value);
Expand Down

0 comments on commit eb264eb

Please sign in to comment.