Skip to content

Commit 4998430

Browse files
committed
fix:调整生命周期间距
1 parent 7d98c1a commit 4998430

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

mockServer/src/services/model.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import DateStore from '@seald-io/nedb'
1414
import { getDatabasePath, getResponseData } from '../tool/Common'
1515

1616
const defaultModel = {
17-
id: 5,
1817
createdBy: '1',
1918
lastUpdatedBy: '1',
2019
tenantId: null,
@@ -310,9 +309,7 @@ const defaultModel = {
310309
]
311310
}
312311
],
313-
description: '111',
314-
created_at: '2026-01-27 10:41:10',
315-
updated_at: '2026-01-27 10:41:10'
312+
description: '111'
316313
}
317314

318315
export default class ModelService {
@@ -334,6 +331,8 @@ export default class ModelService {
334331
const newModel = {
335332
...defaultModel,
336333
id: mockId++,
334+
created_at: new Date().toISOString(),
335+
updated_at: new Date().toISOString(),
337336
...params
338337
}
339338

packages/common/component/LifeCycles.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export default {
277277
.life-cycle-tips {
278278
color: var(--te-component-common-text-color-weaken);
279279
margin: 4px 0 0;
280-
height: 16px;
280+
height: 30px;
281281
line-height: 16px;
282282
}
283283
.life-cycle-content-list {

packages/plugins/block/src/BlockSetting.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
</block-event>
6262
</div>
6363
</tiny-collapse-item>
64-
<tiny-collapse-item title="生命周期设置" name="lifeCycle">
65-
<div class="life-cycles-container">
64+
<tiny-collapse-item class="life-cycles-container" title="生命周期设置" name="lifeCycle">
65+
<div>
6666
<life-cycles :isPage="false" :bindLifeCycles="state.bindLifeCycles" @bind="bindLifeCycles"></life-cycles>
6767
</div>
6868
</tiny-collapse-item>
@@ -380,4 +380,9 @@ export default {
380380
padding: 0 12px 12px;
381381
}
382382
}
383+
.life-cycles-container {
384+
:deep(.tiny-collapse-item__content) {
385+
margin-bottom: 4px;
386+
}
387+
}
383388
</style>

packages/plugins/page/src/PageSetting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ export default {
501501
502502
.input-output {
503503
:deep(.tiny-collapse-item__content) {
504-
height: 80px;
504+
margin-bottom: 4px;
505505
}
506506
}
507507
</style>

0 commit comments

Comments
 (0)