62 lines
2.4 KiB
JavaScript
62 lines
2.4 KiB
JavaScript
|
// +-----------------------------------------------------------------------
|
|||
|
// | FormCreate商业版 [ 让表单设计更简单 ]
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Copyright (c) 2018~2025 https://form-create.com All rights reserved.
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Licensed FormCreate商业版并不是自由软件,未经授权不得使用、修改或移除版权信息
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Author: FormCreate Team <admin@form-create.com>
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
export default function advanced({t}) {
|
|||
|
return [
|
|||
|
{
|
|||
|
type: 'ComputedConfig',
|
|||
|
field: 'value',
|
|||
|
value: '',
|
|||
|
props: {
|
|||
|
type: 'linkage',
|
|||
|
btn: t('computed.value.btn'),
|
|||
|
title: t('computed.value.title'),
|
|||
|
name: t('computed.value.name'),
|
|||
|
},
|
|||
|
title: t('computed.value.title'),
|
|||
|
}, {
|
|||
|
type: 'ComputedConfig',
|
|||
|
field: 'hidden',
|
|||
|
value: '',
|
|||
|
props: {
|
|||
|
btn: t('computed.hidden.btn'),
|
|||
|
title: t('computed.hidden.title'),
|
|||
|
name: t('computed.hidden.name'),
|
|||
|
invertLabel: t('props.show'),
|
|||
|
validLabel: t('props.hide'),
|
|||
|
},
|
|||
|
title: t('computed.hidden.title'),
|
|||
|
}, {
|
|||
|
type: 'ComputedConfig',
|
|||
|
field: '$required',
|
|||
|
value: '',
|
|||
|
props: {
|
|||
|
btn: t('computed.required.btn'),
|
|||
|
title: t('computed.required.title'),
|
|||
|
name: t('computed.required.name'),
|
|||
|
invertLabel: t('validate.modes.notRequired'),
|
|||
|
validLabel: t('validate.modes.required'),
|
|||
|
},
|
|||
|
title: t('computed.required.title'),
|
|||
|
}, {
|
|||
|
type: 'ComputedConfig',
|
|||
|
field: 'props.disabled',
|
|||
|
value: '',
|
|||
|
props: {
|
|||
|
btn: t('computed.disabled.btn'),
|
|||
|
title: t('computed.disabled.title'),
|
|||
|
name: t('computed.disabled.name'),
|
|||
|
invertLabel: t('props.enable'),
|
|||
|
validLabel: t('props.disabled'),
|
|||
|
},
|
|||
|
title: t('computed.disabled.title'),
|
|||
|
},
|
|||
|
];
|
|||
|
}
|