Skip to main content

ACL

Container Attributes

All component configurations support Container properties at the first level.

Component Properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️The className of the component
styleobjectThe style of the component
unitstringitemUnits of selectors
mapping{ value: string, label: string | number }{ value: 'value', label: 'label' }The mapping relationship of value is the default { value, label },If other keys are provided, they will be saved together
useOriginValueboolfalseGiven mapping: { value: 'id', label: 'name' }, When useOriginValue is true, value would be [{ id: 'xxx',name: 'xxx' }], When useOriginValue is false, value would be [{ value: 'xxx',label: xxx' }],
stringEqualbooltrueWhen comparing options, whether to convert to string for comparison
idListUrlstringIf idListUrl is provided, it means that this ACL uses the server side lazy loading form to load data. First, use idListUrl to get the id of all data. Then, when the scroll bar scrolls down, then send a request to obtain detailed data through the dataUrl attribute according to the id of the display window.
dataUrlstringWhen idListUrl is not provided, the ACL obtains all data at once through dataUrl; when idListUrl is provided, the ACL obtains detailed data of certain rows based on id through dataUrl
dataSourcedataSourceYou can also specify the data source of formEntity as the data source of the ACL. When using this property, the idListUrl and dataUrl properties will be ignored.
dataResponseKeyPathstring✔️Take a certain subdata in response data as the data source.
translateDataResponsestring✔️Transform the obtained data, using the eval expression, this refers to the obtained data.
dataFiltersConditionalListPropertyPropType(DataFilters)✔️Fixed filter conditions hidden by requesting data source cannot be changed through the interface
dataExclusionArray<string>✔️Exclude some data from the data returned by the API
multipleboolfalseExclude some data from the data returned by the API
columnDefsarrayDefinition of columns in ACL table, supporting ag-grid's columnDefs
placeholderstringplaceholder of input element
supportImportboolfalseWhether the import is supported
maxSizePerReqnumber1000Maximum number of rows per request during import
supportExportboolfalseWhether export is supported, exportColumns must be configured when true
exportColumnsArray<{ value: string, label: string }>columns exported when exported
transformKeystringWhen converting the field, there is no primary key mapping.value in Excel, but there is a conversion field. Use the conversion field call to convert the request address to get the primary key.
transformUrlstringConvert request address, fixed post, fixed body format{ key: <Convert fields>, values: Array<Convert field values> }
AgTablePropsobjectThe attribute passed to AgTable, supporting all attributes of ag-grid

All the remaining componentsProps will be passed to the component root element (Select).

dataSource

NameTypeDefaultSupports Variable PatternDescription
tokenstringFormEntity token.
pbcTokenstringPBC token.
listUrlstringGet the address of the detailed data of the list.
listIdsUrlstringGet the address of all data ids in the list.
listByIdsUrlstringGet the address of the detailed data based on id.

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component