Overview
This document summarizes all reactive states, computed properties, core methods, and feature flags accessible via inject('$global') or $tService.
Global Configuration
Contains basic application settings, usually supporting persistence.
$globalConfig: The raw global configuration object.$gPlatform: Current component library platform type.$gTheme: Current theme name.$gThemeScheme: Current theme color scheme (Light/Dark).$gT3D: 3D effect enabled state (Advanced component Tui3DPanel).$gMaskBlur: Global mask blur effect enabled state.$gMenuTrigger: Menu trigger method (Click/Hover).$gFloaterTo: Floating component mount target.$gResizeBy: Size monitoring mode (Self/Root).$gTransition: View transition animation enabled state.$gSound: System sound effects enabled state.$gBackground: Background rendering mode.$gAdaptive: Adaptive layout mode.$gVersion: Current framework version number.
Runtime State
Dynamic states automatically maintained during system runtime.
$globalState: The raw global runtime state object.$gMaximize: Current view maximization state.$gFullScreen: Current fullscreen state.$gSiderCollapse: Sidebar collapse state.$gClickTarget: Last clicked DOM target.$gClickCounter: Global continuous click counter.$gEscCounter: Global ESC key counter.$gResizeCounter: Global size change counter.$gPortletCounter: Global module load counter.$optResizeCounter: Optimized size change counter (combined with adaptive state).
Interaction Services
Used to invoke interactive components like popups, messages, and loading animations.
Message & Notification
$tMessage: Message prompt service.$tMessageCloseAll: Closes all message prompts.$tNotify: Notification service.$tNotifyCloseAll: Closes all notifications.$tToast: Lightweight prompt (Toast) service.$tToastClose: Closes Toast.$tFlash: Flash/Strong alert service.$tFlashClose: Closes Flash.$tAttentionDispatcher: Attention dispatcher service.$tAttentionDispatcherClose: Closes the dispatcher.
Mask & Loading
$tMask: Global mask service.$tMaskClose: Closes the mask.$tLoading: Global loading (Spinner) service.$tLoadingClose: Closes loading.
Popup & Control Panel
$tPopover: Popover service.$tPopoverCloaseAll: Closes all popovers.controlPanelToggle: Toggles control panel display/hide.$controlPanel: Control panel configuration object.
Core System Functions
Core low-level system configurations and tools.
$tBus: Global Event Bus.$tState/state: Complete global reactive state tree.$globalParams: Global CSS variable parameter configuration.$viewTrans: View transition animation configuration.$deviceInfo: Current device hardware info (type, resolution, orientation).$locale: Internationalization language pack configuration.proxy: Current component instance proxy.
Router & Navigation
Route operations and page navigation enhancements.
routerTransition: Route navigation method with transition animation.updateRouteQuery: Updates route Query parameters.getRouteQuery: Retrieves route Query parameters.softReload: Application soft reload (resets state without page refresh).hardReload: Application hard reload (refreshes browser).
Admin Features
Available only when isActAdminFeatures is enabled.
$ADMIN: Complete Admin module state object.$AUserInfo: Current user information.$AUserInfoSto: User information storage location configuration.$ATabs: Multi-tab list.$AMenu: System menu tree.$APermission: User permission list.$ARouterInited: Dynamic route initialization state.$ARouterRegister: Dynamic route component registry.$AKeepAlive: Page cache (KeepAlive) list.$ADict: Global dictionary data.logout: User logout method.tabAdd/tabRemove: Tab add/remove methods.keepAliveAdd/keepAliveRemove: Cache add/remove methods.
Module Configuration
Detailed configuration items for sub-modules.
$attentionConfig: Message notification module configuration.$aMessage,$aNotification,$aToast,$aFlash,$aDispatcher(Corresponding computed properties).- Availability:ScifiBaseAdminPrime
$adaptiveConfig: Adaptive layout module configuration.$adptReady,$adptInited,$aResizeCounter(Corresponding computed properties).
$backgroundConfig: Background module configuration.$spinnerConfig: Loading animation module configuration.$t3dConfig: 3D module configuration.$popoverConfig: Popover module configuration.$themePalette: Current theme palette data.$data: General data object.$mapData,$chartData(Corresponding computed properties).
Utility Functions
themeToggle: Toggles theme (with animation).maximizeToggle: Toggles maximization state.toggleSider: Toggles sidebar collapse.initI18n/i18n: Internationalization initialization and translation functions.getSysLang: Retrieves system language.initBG/resetBG: Initializes/Resets background.initSpinner: Initializes loader.resetAdaptiveConfig: Resets adaptive configuration.tStoreCrypto: Local storage encryption tool.openEnc/openDec: Encryption/Decryption methods.audio: Audio playback tool.initDebug: Initializes debug mode.
Feature Flags
Indicates the set of features enabled in the current environment.
isActAdvFeatures: Whether advanced features are enabled.isActEchartsFeatures: Whether Echarts chart features are enabled.isActAdminFeatures: Whether admin features are enabled.- Availability:ScifiBaseAdminPrime