Dictionary Data
XinAdmin provides complete dictionary data management, supporting dynamic rendering of tags, badges, or text based on dictionary codes in frontend components.
Data Structure
Dictionary Type (sys_dict)
Dictionary Item (sys_dict_item)
DictTag Component
The DictTag component renders corresponding tags, badges, or text based on dictionary code and value.
Location
Usage
Props
Dictionary State Management
XinAdmin uses Zustand to manage dictionary data with the following features:
Initialize Dictionary
Get Dictionary Item
Get Options List
API Reference
Get All Dictionaries
Request
Response
Dictionary Management API
Automatically generated using CRUD annotations: