Skip to content

Commit 114783a

Browse files
authored
fix(datasource): fix static data button misalignment, visibility issues, delayed validation, and counter validation logic (opentiny#1507)
1 parent 413b8d0 commit 114783a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/plugins/datasource/src/DataSourceSettingRecordList.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default {
135135
}
136136
137137
if ((type === 'string' || item.type === 'number') && max !== 0 && max >= min) {
138-
rules.push({ min, max, message: `${type === 'string' ? '长度' : '大小'} 在 ${min} - ${max} 之间` })
138+
rules.push({ type, min, max, message: `${type === 'string' ? '长度' : '大小'} 在 ${min} - ${max} 之间` })
139139
}
140140
141141
res[name] = rules
@@ -312,6 +312,7 @@ export default {
312312
})
313313
}
314314
state.columns = newColumns
315+
state.validRules = genValidateRules(newColumns || [])
315316
})
316317
317318
watch(
@@ -534,7 +535,7 @@ export default {
534535
}
535536
536537
.datasource-record-list {
537-
width: 642px;
538+
max-width: 642px;
538539
:deep(.option-container) {
539540
display: flex;
540541
align-items: center;

0 commit comments

Comments
 (0)