fix(client): fix checkbox unchecked display (#1508)
* fix(client): fix checkbox unchecked display * fix(client): revert global option back
This commit is contained in:
parent
757d409131
commit
acc5656490
@ -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,
|
||||
|
@ -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": "单选框",
|
||||
|
@ -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' }} />;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user