fix(plugin-formula): remove showUnchecked option (#1730)

This commit is contained in:
Junyi 2023-04-21 09:23:53 +07:00 committed by GitHub
parent 604a85b74c
commit 673c246eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,16 +7,16 @@ import { NAMESPACE } from '../locale';
const booleanReactions = [ // const booleanReactions = [
{ // {
dependencies: ['dataType'], // dependencies: ['dataType'],
fulfill: { // fulfill: {
state: { // state: {
display: '{{$deps[0] === "boolean" ? "visible" : "none"}}', // display: '{{$deps[0] === "boolean" ? "visible" : "none"}}',
}, // },
}, // },
} // }
]; // ];
const numberReactions = [ const numberReactions = [
{ {
@ -97,14 +97,14 @@ export default {
required: true, required: true,
default: 'double', default: 'double',
}, },
'uiSchema.x-component-props.showUnchecked': { // 'uiSchema.x-component-props.showUnchecked': {
type: 'boolean', // type: 'boolean',
title: '{{t("Display X when unchecked")}}', // title: '{{t("Display X when unchecked")}}',
default: false, // default: false,
'x-decorator': 'FormItem', // 'x-decorator': 'FormItem',
'x-component': 'Checkbox', // 'x-component': 'Checkbox',
'x-reactions': booleanReactions // 'x-reactions': booleanReactions
}, // },
'uiSchema.x-component-props.step': { 'uiSchema.x-component-props.step': {
type: 'string', type: 'string',
title: '{{t("Precision")}}', title: '{{t("Precision")}}',