修改更新欠费状态功能
This commit is contained in:
@@ -159,7 +159,9 @@ const props = defineProps({
|
||||
// schema 项配置
|
||||
item: { type: Object, required: true },
|
||||
// 字典映射表(来自父级 BasicForm)
|
||||
dictMap: { type: Object, default: () => ({}) }
|
||||
dictMap: { type: Object, default: () => ({}) },
|
||||
// 拉伸模式(固定每行 N 项的栅格布局):忽略 item.width,控件填满单元格
|
||||
stretch: { type: Boolean, default: false }
|
||||
})
|
||||
|
||||
const comp = computed(() => props.item.component || 'input')
|
||||
@@ -167,8 +169,11 @@ const placeholder = computed(() => props.item.placeholder)
|
||||
const valueKey = computed(() => props.item.valueKey || 'value')
|
||||
const labelKey = computed(() => props.item.labelKey || 'label')
|
||||
|
||||
// 控件宽度样式
|
||||
const controlStyle = computed(() => (props.item.width ? { width: props.item.width } : null))
|
||||
// 控件宽度样式(stretch 模式下填满单元格)
|
||||
const controlStyle = computed(() => {
|
||||
if (props.stretch) return { width: '100%' }
|
||||
return props.item.width ? { width: props.item.width } : null
|
||||
})
|
||||
|
||||
// 选项:静态 options 优先,其次字典
|
||||
const options = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user