|  | @@ -2,7 +2,7 @@
 | 
	
		
			
				|  |  |    <component :is="'el-form'" v-bind="_formOptions" ref="proFormRef" :model="formModel">
 | 
	
		
			
				|  |  |      <el-row :gutter="5">
 | 
	
		
			
				|  |  |        <template v-for="item in itemsOptions" :key="item.prop">
 | 
	
		
			
				|  |  | -        <el-col :span="item.span || 24" g v-if="show(item.show)">
 | 
	
		
			
				|  |  | +        <el-col :span="item.span || 24" v-if="show(item.show)">
 | 
	
		
			
				|  |  |            <component :is="'el-form-item'" v-bind="item">
 | 
	
		
			
				|  |  |              <template #label>
 | 
	
		
			
				|  |  |                <el-space :size="4">
 | 
	
	
		
			
				|  | @@ -46,7 +46,7 @@
 | 
	
		
			
				|  |  |              <template v-else-if="item.compOptions.elTagName === 'imgs-upload-s3'">
 | 
	
		
			
				|  |  |                <ImgsS3 v-model="formModel[item.prop]" v-bind="$attrs" />
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  | -            <Item v-else :item="item" :form-model="formModel" />
 | 
	
		
			
				|  |  | +            <Item v-else :item="item" :form-model="formModel" :change="item.change" />
 | 
	
		
			
				|  |  |            </component>
 | 
	
		
			
				|  |  |          </el-col>
 | 
	
		
			
				|  |  |        </template>
 | 
	
	
		
			
				|  | @@ -96,8 +96,8 @@ const props = withDefaults(defineProps<ProFormProps>(), {
 | 
	
		
			
				|  |  |  const show = (showFunction: any) => {
 | 
	
		
			
				|  |  |    if (!showFunction) return true
 | 
	
		
			
				|  |  |    if (typeof showFunction == 'function') {
 | 
	
		
			
				|  |  | -    // 直接调用 showFunction 函数,并传入 formModel.value
 | 
	
		
			
				|  |  | -    return showFunction(formModel.value)
 | 
	
		
			
				|  |  | +    // 直接调用 showFunction 函数,并传入 formModel,方便修改参数
 | 
	
		
			
				|  |  | +    return showFunction(formModel)
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |    // 如果 showFunction 不是函数,直接返回 true 显示该表单项
 | 
	
		
			
				|  |  |    return true
 | 
	
	
		
			
				|  | @@ -213,5 +213,5 @@ defineExpose({
 | 
	
		
			
				|  |  |  })
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  <style scoped lang="scss">
 | 
	
		
			
				|  |  | -@import './index.scss';
 | 
	
		
			
				|  |  | +@import './index';
 | 
	
		
			
				|  |  |  </style>
 |