0.0.3 • Published 5 years ago

@joyui/qt-notify v0.0.3

Weekly downloads
12
License
ISC
Repository
-
Last release
5 years ago

QTNotify

  • Nodejs >= v10.20.1

Install

yarn add @joyui/qt-notify
# npm install --save @joyui/qt-notify

Usage

declare module "@joyui/qt-notify";
import QTNotify from '@joyui/qt-notify';

const content = [
  '<div>错误码: 1000011</div>',
  '<div>追踪ID: xaf001c</div>',
  '<div>可能原因: 时间格式错误</div>',
  '<div>建议措施: 我的建议</div>',
];
QTNotify.error({
  title: '我是标题',
  content: content.join(''),
});

Options

弹层内容展示优先级:node, content

interface Options {
  duration?: number;    // 弹层显示时间
  className?: string;
  node?: HTMLElement;
  title?: string;
  content?: string;
  selector?: string;
  focusOpen?: boolean;  // 鼠标悬浮到弹层时禁止隐藏, 默认为 true
}

Build

yarn build

refs

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago