mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:57:20 +00:00
chore: add aria label for workflow table (#2995)
This commit is contained in:
parent
5b9695e720
commit
81cea6b596
@ -1,9 +1,10 @@
|
||||
import { ISchema, useForm } from '@formily/react';
|
||||
import { useActionContext, useRecord, useResourceActionContext, useResourceContext } from '@nocobase/client';
|
||||
import { message } from 'antd';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useActionContext, useRecord, useResourceActionContext, useResourceContext } from '@nocobase/client';
|
||||
import { NAMESPACE } from '../locale';
|
||||
// import { triggers } from '../triggers';
|
||||
import React from 'react';
|
||||
import { executionSchema } from './executions';
|
||||
|
||||
const collection = {
|
||||
@ -289,7 +290,13 @@ export const workflowSchema: ISchema = {
|
||||
type: 'number',
|
||||
'x-decorator': 'OpenDrawer',
|
||||
'x-decorator-props': {
|
||||
component: 'a',
|
||||
component: function Com(props) {
|
||||
const record = useRecord();
|
||||
return React.createElement('a', {
|
||||
'aria-label': `executed-${record.title}`,
|
||||
...props,
|
||||
});
|
||||
},
|
||||
},
|
||||
'x-component': 'CollectionField',
|
||||
'x-read-pretty': true,
|
||||
|
Loading…
Reference in New Issue
Block a user