Global configuration is the most powerful feature of HeyUI.
In the process of development, set a complete dictionary library. In business development, you only need to use the key of the dictionary.
Centralized configuration of autocomplete, tree and other complex components. In the specific page, we only need to use the config key to complete the call.
Our overall design is driven by data-driven interaction. In the interactive process of data, simple input inputs are removed, and most of them are dictionary selections.
For the dictionary used in the system, we have two ways to define the dictionary.
HeyUI.initDict({key: value}): Initialize Dictionary ObjectHeyUI.addDict(key, value) Add dictionaryCorrespondingly, we also provide methods for obtaining dictionary values.
HeyUI.getDict(key): Get dictionary valueIn some of the data shown, we need to use key/keys to get the corresponding text.
: Display Corresponding TextWe standardize the dictionary, controls can be driven by the dictionary's key, and the interaction is nothing more than to select different types of interaction through different amounts of data.
Radio, or SelectCheckbox, or Select(multiple)SelectSelect(filterable), or AutoCompleteAutoCompleteBy HeyUI configured globally for some parameters, specific reference configuration items: config.js
HeyUI.config(key, value): Set the configuration, which keycan be a path mode. Example:tree.defaultHeyUI.getOption(key): Get the configuration.Set the global dictionary key,value naming.
For system configuration, please refer to demo's tree-config.js。
For system configuration, please refer to demo's autocomplete-config.js。
These components, we have provided some parameters can be configured, please check the config.js
In practical applications, please refer to our demo system configuration. For details, please check the demo config。