1.2.5 • Published 11h ago
retail-dashboard-v2
Licence
MIT
Version
1.2.5
Deps
3
Size
128 kB
Vulns
1
Weekly
0
@syman/retail-dashboard
零售管理仪表板组件包,基于 Vue 3 开发,支持 PC 端和移动端响应式设计。
特性
- 多模块支持 - 概览、TOP商品、员工业绩三大核心模块
- 响应式设计 - 自动适配 PC 端和移动端
- 现代化 UI - 基于 Element Plus 和 Vant 组件库
- 高性能 - 基于 Vue 3 Composition API
- 易于集成 - 支持按需引入和全局注册
安装
npm install @syman/retail-dashboard使用
全局注册
import { createApp } from 'vue'
import RetailDashboard from '@syman/retail-dashboard'
import ElementPlus from 'element-plus'
import Vant from 'vant'
const app = createApp(App)
app.use(ElementPlus)
app.use(Vant)
app.use(RetailDashboard)
app.mount('#app')按需引入
<template>
<RetailDashboard
:store-id="1"
:user-id="1"
/>
</template>
<script>
import { RetailDashboard } from '@syman/retail-dashboard'
export default {
components: {
RetailDashboard
}
}
</script>Props
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| storeId | String/Number | 1 | 店铺ID |
| userId | String/Number | 1 | 用户ID |
| platform | String | 'auto' | 平台类型:'auto'、'pc'、'mobile' |
| showTimeSelector | Boolean | true | 是否显示时间选择器 |
依赖
- Vue 3.0+
- Element Plus 2.0+
- Vant 4.0+
- Axios 1.11+
- Day.js 1.11+
许可证
MIT