fix(client): fix checkbox unchecked display (#1508)

* fix(client): fix checkbox unchecked display

* fix(client): revert global option back
This commit is contained in:
Junyi 2023-02-28 23:58:10 +08:00 committed by GitHub
parent 757d409131
commit acc5656490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 11 deletions

View File

@ -18,13 +18,6 @@ export const checkbox: IField = {
hasDefaultValue: true,
properties: {
...defaultProps,
showUnchecked: {
type: 'boolean',
title: '{{t("Display X when unchecked")}}',
default: false,
'x-decorator': 'FormItem',
'x-component': 'Checkbox',
}
},
filterable: {
operators: operators.boolean,

View File

@ -189,7 +189,7 @@ export default {
"Formula.js supports most Microsoft Excel formula functions.": "Formula.js 支持大部分 Mircrosoft Excel 公式。",
"Choices": "选择类型",
"Checkbox": "勾选",
"Display X when unchecked": "未勾选时显示 X",
"Display <icon></icon> when unchecked": "未勾选时显示 <icon></icon>",
"Single select": "下拉菜单(单选)",
"Multiple select": "下拉菜单(多选)",
"Radio group": "单选框",

View File

@ -25,9 +25,6 @@ export const Checkbox: ComposedCheckbox = connect(
},
),
mapReadPretty((props) => {
if (!isValid(props.value)) {
return null;
}
if (props.value) {
return <CheckOutlined style={{ color: '#52c41a' }} />;
}