FcDesigner/src/config/base/advanced.js
2025-05-21 17:26:44 +08:00

62 lines
2.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// +-----------------------------------------------------------------------
// | 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'),
},
];
}