mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 21:42:32 +08:00
fix(仪表板): 开启首选项后禁用默认值,但规则中依然显示
This commit is contained in:
@@ -351,7 +351,7 @@ const handleFieldIdChange = (val: EnumValue) => {
|
||||
})
|
||||
.finally(() => {
|
||||
loading.value = false
|
||||
if (disabledFirstItem.value) {
|
||||
if (disabledFirstItem.value && config.value.defaultValueCheck) {
|
||||
time = setTimeout(() => {
|
||||
clearTimeout(time)
|
||||
setDefaultValueFirstItem()
|
||||
@@ -504,7 +504,7 @@ watch(
|
||||
if (!val) {
|
||||
nextTick(() => {
|
||||
selectValue.value = undefined
|
||||
if (!config.value.defaultValueFirstItem) return
|
||||
if (!config.value.defaultValueFirstItem || !config.value.defaultValueCheck) return
|
||||
setDefaultValueFirstItem()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ const del = (index, child) => {
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
width: fit-content;
|
||||
|
||||
.logic-left {
|
||||
box-sizing: border-box;
|
||||
|
||||
Reference in New Issue
Block a user