0.0.2 • Published 2 years ago

tiangong-notice v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

项目名

tiangong-notice

项目描述

基于vite+ts+vue3的公告栏组件

安装

npm install tiangong-notice --S

使用

在组件中导入noticeBar方法

import { noticeBar } from 'tiangong-notice';

初始化配置

//xxx.vue
noticeBar.init({
	SystemCode: SYSTEM_ENUM.PIMS,// 系统编码
	TenantId:TenantId, // 租户ID
	url: systemDomain as string, // 系统域名
	socketUrl: baseUrl as string, // socket服务地址,需要将系统域名的https替换成wss即可
	ssoToken: ssoToken, // 用户token
})

配置项

options参数

属性说明类型是否必须可选值默认值
SystemCode系统编码(sso)string————
TenantId租户 IDstringfalse/truetrue
url系统域名string————
socketUrlsocket 地址string——默认会使用url
draggable通知栏拖拽booleanfalse/truefalse
closeIcon是否显示关闭图标booleanfalse/truefalse
0.0.2

2 years ago

0.0.1

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago