Skip to content

Commit

Permalink
input_table组件识别字段上配置的description属性,columns中为字段配置的description属性移除
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Jun 13, 2024
1 parent 18f77b1 commit 09c5286
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions packages/@steedos-widgets/amis-lib/src/lib/input_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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",
Expand All @@ -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,
Expand Down Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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;
Expand Down

0 comments on commit 09c5286

Please sign in to comment.