-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input_table组件识别字段上配置的description属性,columns中为字段配置的description属性移除
- Loading branch information
1 parent
18f77b1
commit 09c5286
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: 殷亮辉 [email protected] | ||
* @Date: 2023-11-15 09:50:22 | ||
* @LastEditors: 殷亮辉 [email protected] | ||
* @LastEditTime: 2024-06-11 15:38:16 | ||
* @LastEditTime: 2024-06-14 06:31:33 | ||
*/ | ||
|
||
import { getFormBody } from './converter/amis/form'; | ||
|
@@ -226,7 +226,8 @@ function getInputTableCell(field, showAsInlineEditMode) { | |
return { | ||
"type": "steedos-field", | ||
"config": Object.assign({}, field, { | ||
label: false | ||
label: false, | ||
description: null | ||
}), | ||
// quickEdit: { | ||
// "type": "steedos-field", | ||
|
@@ -243,7 +244,8 @@ function getInputTableCell(field, showAsInlineEditMode) { | |
return { | ||
"type": "steedos-field", | ||
"config": Object.assign({}, field, { | ||
label: false | ||
label: false, | ||
description: null | ||
}), | ||
inInputTable: true, | ||
"static": true, | ||
|
@@ -1497,7 +1499,8 @@ export const getAmisInputTableSchema = async (props) => { | |
} | ||
return value; | ||
}, | ||
"required": props.required | ||
"required": props.required, | ||
"description": props.description | ||
}; | ||
if (buttonsForColumnOperations.length) { | ||
inputTableSchema.columns.unshift({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: 殷亮辉 [email protected] | ||
* @Date: 2023-11-15 09:50:22 | ||
* @LastEditors: 殷亮辉 [email protected] | ||
* @LastEditTime: 2024-01-21 10:56:30 | ||
* @LastEditTime: 2024-06-14 06:22:22 | ||
*/ | ||
import './AmisInputTable.less'; | ||
import { getAmisInputTableSchema, i18next } from '@steedos-widgets/amis-lib' | ||
|
@@ -12,7 +12,7 @@ export const AmisInputTable = async (props) => { | |
// columns内存在inlineEditMode属性, 控制字段级的內联模式;存在wrap属性,控制列表单元格是否换行,规则与列表视图相同 | ||
const { $schema, fields, name, id, data, columns, amis, className, tableClassName, headerToolbar, footerToolbar, | ||
inlineEditMode, strictMode, dialog, primaryKey, showOperation, fieldPrefix, autoGeneratePrimaryKeyValue, mode, | ||
disabledOn, disabled, visibleOn, visible, hiddenOn, hidden, enableDialog, enableTree } = props; | ||
disabledOn, disabled, visibleOn, visible, hiddenOn, hidden, enableDialog, enableTree, description } = props; | ||
const extendProps = {}; | ||
if (props.disabledOn || props.disabled) { | ||
extendProps["addable"] = false; | ||
|