改了样式,修复了问题

This commit is contained in:
cjx 2024-10-30 17:00:36 +08:00
parent f5acbafaf4
commit 47f02d7ec5
4 changed files with 4 additions and 30 deletions

View File

@ -1,5 +1,6 @@
.heading{
color:rgb(97, 218, 251);
text-indent: 2em;
}
.id {

View File

@ -41,7 +41,7 @@ const List = (
return (
<>
<h3 className={Styles.heading}>&nbsp;</h3>
<h3 className={Styles.heading}></h3>
{list && (
<>

View File

@ -19,6 +19,7 @@ const List = (
) => {
const { list } = props.data;
const { t } = props.methods;
const { removeItem, execute } = props.methods;
const attrs = [
{
@ -72,10 +73,4 @@ const List = (
export default List;
function removeItem(id: any) {
throw new Error('Function not implemented.');
}
function execute() {
throw new Error('Function not implemented.');
}

View File

@ -54,29 +54,7 @@ const triggers: Trigger<EntityDict, 'essay', BackendRuntimeContext>[] = [
return 1;
},
},
//在删除之前先删除相关的comments
{
name: '删除之前删除相关的comments',
entity: 'essay',
action: 'remove',
when: "before",
fn: async ({ operation }, context, option) => {
const { filter } = operation;
const opRes = await context.operate(
'comment',
{
action: 'remove',
id: await generateNewIdAsync(),
data: {},
filter: {
essay: filter,
},
},
option
);
return opRes.oper?.remove;
},
} as RemoveTrigger<EntityDict,'essay',BackendRuntimeContext>,
];
export default triggers;