mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:25:57 +00:00
refactor: set field required in sub-table should display required indicator in column header (#4972)
* refactor: set field required in sub-table should display required indicator in column header * fix: test * refactor: code improve * fix: test
This commit is contained in:
parent
638b17dee1
commit
176f3269ae
@ -2,9 +2,7 @@
|
||||
"version": "1.2.28-alpha",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"npmClientArgs": [
|
||||
"--ignore-engines"
|
||||
],
|
||||
"npmClientArgs": ["--ignore-engines"],
|
||||
"command": {
|
||||
"version": {
|
||||
"forcePublish": true,
|
||||
|
@ -66,20 +66,10 @@ export const TableColumnDecorator = (props) => {
|
||||
>
|
||||
<CollectionFieldContext.Provider value={collectionField}>
|
||||
<Designer fieldSchema={fieldSchema} uiSchema={uiSchema} collectionField={collectionField} />
|
||||
{/* <RecursionField name={columnSchema.name} schema={columnSchema}/> */}
|
||||
<div role="button">{field?.title || compile(uiSchema?.title)}</div>
|
||||
{/* <div
|
||||
onClick={() => {
|
||||
field.title = uid();
|
||||
// columnSchema.title = field.title = field.title;
|
||||
// refresh();
|
||||
// field.query(`.*.${fieldSchema.name}`).take((f) => {
|
||||
// f.componentProps.dateFormat = 'YYYY-MM-DD';
|
||||
// });
|
||||
}}
|
||||
>
|
||||
Edit
|
||||
</div> */}
|
||||
<span role="button">
|
||||
{fieldSchema?.required && <span className="ant-formily-item-asterisk">*</span>}
|
||||
<span>{field?.title || compile(uiSchema?.title)}</span>
|
||||
</span>
|
||||
</CollectionFieldContext.Provider>
|
||||
</SortableItem>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user