1.0.4 • Published 5 months ago

zhyx-ui-func v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

公共业务模块组件共用

打包

npm run lib

发布到 npm

安装

npm i zhyx-ui-func -S

使用

# 全局引入:
import ZhyxUiCommon from 'zhyx-ui-func';
Vue.use(ZhyxUiCommon);

# 按需引入
import {ZhyxDeskhead} From "zhyx-ui-func";
Vue.component(ZhyxDeskhead.name,ZhyxDeskhead)
Vue.component(ZhyxMessage.name,ZhyxMessage)

zhyx-deskhead:顶部公用组件

<template>
    <zhyx-deskhead :has-msg="false"></zhyx-deskhead>
</template>

组件参数

参数类型必选默认描述
hasMsgBooleantrue是否有消息按钮
hasRefreshBooleantrue是否存在刷新按钮
titleString标题文本
refreshTypeStringnormal刷新方式:normal:常规刷新;custom:自定义刷新
msgTypeStringinstant消息数量的更新类型:instant: 实时接受消息数量; once:非实时,只获取一次;time:根据时间定时刷新
  • 此处的常规刷新(normal):依赖于项目的 contentIsNeedRefresh 值切换
1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago