1.1.0 • Published 1 year ago

vite-plugin-bullet-msg v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

vite-plugin-bullet-msg

vite-plugin-bullet-msg

get the target str from your code to dispaly in screen like bullet-chat

  • get the target str and then send event by ws, client will create dom with the msg
bulletMsgPlugin({
  wsProtocol: 'vite-hmr', // ws protocol
  wsPath: 'xxx', // link
  targetKey: 'TODO',
  rootPath: __dirname,
  duration: 50, // 动画时长 s
})
  • or U can handle the target data yourself
bulletMsgPlugin({
  wsProtocol: 'vite-hmr', // ws protocol
  wsPath: 'xxx', // link
  targetKey: 'TODO',
  rootPath: __dirname,
  duration: 50, // 动画时长 s
  dataHandler: (data) => {
    // U can create a Vue instance to show your data in browser
    console.log(data)
  }
})
1.1.0

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago