mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2025-09-17 19:53:02 +08:00
版本升级到3.0.4:
1. 新增必填校验自定义提示属性requiredHint; 2. 当容器被设置隐藏时,同步清除容器内所有字段的校验规则; 3. 设计器、渲染器新增两个API方法:getFieldWidgets()、getContainerWidgets(); 4. field-list-api属性允许传递请求头信息; 5. 修复异步请求时setFormData()函数可能失效的问题; 6. 修复其他部分bug。
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<el-form-item :label="i18nt('designer.setting.requiredHint')">
|
||||
<el-input type="text" v-model="optionModel.requiredHint"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import i18n from "@/utils/i18n"
|
||||
import propertyMixin from "@/components/form-designer/setting-panel/property-editor/propertyMixin"
|
||||
|
||||
export default {
|
||||
name: "requiredHint-editor",
|
||||
mixins: [i18n, propertyMixin],
|
||||
props: {
|
||||
designer: Object,
|
||||
selectedWidget: Object,
|
||||
optionModel: Object,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -24,6 +24,7 @@ const COMMON_PROPERTIES = {
|
||||
'labelHidden' : 'labelHidden-editor',
|
||||
'rows' : 'rows-editor',
|
||||
'required' : 'required-editor',
|
||||
'requiredHint' : 'requiredHint-editor',
|
||||
'validation' : 'validation-editor',
|
||||
'validationHint' : 'validationHint-editor',
|
||||
'readonly' : 'readonly-editor',
|
||||
|
Reference in New Issue
Block a user