@hh-admin/components
| Install | |
|---|---|
npm install @hh-admin/components |
|
| Latest Version: | 0.1.24 |
| Vue: | 3 |
| License: | Apache-2.0 |
| Last Updated: | Sep 24, 2026 |
| Links: | Gitee · npm |
@hh-admin/components
Shared Vue components for Hh Admin templates.
Usage
import ArcoVue from '@arco-design/web-vue'
import '@arco-design/web-vue/dist/arco.css'
import '@hh-admin/components/style.css'
app.use(ArcoVue)
You can import individual component entries when you do not want the root entry:
import { HhTable } from '@hh-admin/components/HhTable'
import { HhForm } from '@hh-admin/components/HhForm'
The package marks only CSS and SCSS files as side effects. Named imports from the root entry are expected to tree-shake in Vite/Rollup consumers, and child apps can use subpath imports for an explicit component-level boundary.
import { HhForm } from '@hh-admin/components'
import { HhForm as HhFormEntry } from '@hh-admin/components/HhForm'
HhButton automatically displays loading while an async click handler is
pending. Synchronous handlers are unchanged, and automatic loading can be
disabled per button.
<HhButton type="add" @click="save">保存</HhButton>
<HhButton type="export" :auto-loading="false" @click="startExport">导出</HhButton>
<HhButton type="search" :throttle="1000" @click="refresh">刷新</HhButton>
throttle uses leading execution without a trailing call. It is disabled when
the prop is omitted, 0, or negative.
HhTable supports the same behavior for its refresh action through
auto-refresh-loading and refresh-throttle. HhTreePanel keeps only the
latest remote result and accepts an optional search-debounce interval.
Table header cells can be styled consistently through header-style and
header-class. The configuration remains effective when columns are reordered,
hidden, fixed, or rendered again. Header text uses #333 by default and can be
overridden through header-style.color.
Columns are centered by default. Set align: 'left' or align: 'right' on an
individual column when a different alignment is needed.
Tables use the small size by default. Pass size="mini", size="medium", or
size="large" to select another initial size; later prop changes are also
applied to the internal table state.
Search-mode HhForm uses an adaptive compact layout when at most three fields
are visible. Each field takes six desktop grid columns, the action area fills
the remaining columns, and the fold button is hidden. Set
auto-search-layout="false" to keep a manually configured layout.
<HhTable
:columns="columns"
:data="tableData"
header-class="member-table-header"
:header-style="{ backgroundColor: '#f2f3f5' }"
/>
Components
HhButtonHhFlexHhDotHhEditorHhTagHhCellAvatarHhCellGenderHhCellStatusHhCellTagsHhCodeButtonHhCodeViewHhInputSearchHhPageLayoutHhFooterHhFormHhIconBoxHhTableHhTableSettingHhIconSelectorHhIframeHhEditTableHhOptionHhOptionItemHhThemeBtnHhTrendHhUpload
Related Packages
Schema-driven admin panel components for Inertia.js + Vue 3 — tables, blueprint...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.24 | ^3.5.18 | Apache-2.0 | |
| 0.1.23 | ^3.5.18 | Apache-2.0 | |
| 0.1.22 | ^3.5.18 | Apache-2.0 | |
| 0.1.21 | ^3.5.18 | Apache-2.0 | |
| 0.1.20 | ^3.5.18 | Apache-2.0 | |
| 0.1.19 | ^3.5.18 | Apache-2.0 | |
| 0.1.18 | ^3.5.18 | Apache-2.0 | |
| 0.1.17 | ^3.5.18 | Apache-2.0 | |
| 0.1.16 | ^3.5.18 | Apache-2.0 | |
| 0.1.15 | ^3.5.18 | Apache-2.0 | |
| 0.1.14 | ^3.5.18 | Apache-2.0 | |
| 0.1.13 | ^3.5.18 | Apache-2.0 | |
| 0.1.12 | ^3.5.18 | Apache-2.0 | |
| 0.1.11 | ^3.5.18 | Apache-2.0 | |
| 0.1.10 | ^3.5.18 | Apache-2.0 | |
| 0.1.9 | ^3.5.18 | Apache-2.0 | |
| 0.1.8 | ^3.5.18 | Apache-2.0 | |
| 0.1.7 | ^3.5.18 | Apache-2.0 | |
| 0.1.6 | ^3.5.18 | Apache-2.0 | |
| 0.1.5 | ^3.5.18 | Apache-2.0 | |
| 0.1.4 | ^3.5.18 | Apache-2.0 | |
| 0.1.3 | ^3.5.18 | Apache-2.0 | |
| 0.1.2 | ^3.5.18 | Apache-2.0 | |
| 0.1.1 | ^3.5.18 | Apache-2.0 | |
| 0.1.0 | ^3.5.18 | Apache-2.0 |