Commit ed5e4986200ed786a901f342f9133a9ed5a829eb

Authored by ww
1 parent 3f287cbe

feat: add topMsg method

@@ -12521,14 +12521,21 @@ class UseLayUi { @@ -12521,14 +12521,21 @@ class UseLayUi {
12521 UseLayUi.msg(msg, { ...options, icon: 5 }) 12521 UseLayUi.msg(msg, { ...options, icon: 5 })
12522 } 12522 }
12523 12523
12524 - static topSuccessMsg(msg = '操作成功', options) { 12524 + static topMsg(msg, options, icon) {
12525 const { layer } = layui 12525 const { layer } = layui
12526 - layer.msg(`<div style="padding: 20px; display: flex; align-items: center;"><i class="layui-layer-ico layui-layer-ico6" style="width: 30px;height: 30px;"></i><span style="margin-left: 5px">${msg}</span></div>`, { ...options, type: 1, icon: 6, time: 2000, }) 12526 + layer.msg(`<div style="padding: 20px; display: flex; align-items: center;"><i class="layui-layer-ico layui-layer-ico6" style="width: 30px;height: 30px;"></i><span style="margin-left: 5px">${msg}</span></div>`, { ...options, type: 1, icon, time: 2000, })
  12527 + }
  12528 +
  12529 + static topSuccessMsg(msg = '操作成功', options) {
  12530 + this.topMsg(msg, options, 6)
12527 } 12531 }
12528 12532
12529 static topErrorMsg(msg = '操作失败', options) { 12533 static topErrorMsg(msg = '操作失败', options) {
12530 - const { layer } = layui  
12531 - layer.msg(`<div style="padding: 20px; display: flex; align-items: center;"><i class="layui-layer-ico layui-layer-ico5" style="width: 30px;height: 30px;"></i><span style="margin-left: 5px">${msg}</span></div>`, { ...options, type: 1, icon: 5, time: 2000, }) 12534 + this.topMsg(msg, options, 5)
  12535 + }
  12536 +
  12537 + static topInfoMsg(msg = '提示', options) {
  12538 + this.topMsg(msg, options, 0)
12532 } 12539 }
12533 } 12540 }
12534 12541
@@ -14520,9 +14527,9 @@ class HandleDynamicEffect { @@ -14520,9 +14527,9 @@ class HandleDynamicEffect {
14520 videoPlay() { 14527 videoPlay() {
14521 const basicAttr = Sidebar.prototype.enumCellBasicAttribute 14528 const basicAttr = Sidebar.prototype.enumCellBasicAttribute
14522 const enumAccessMode = HandleDynamicEffect.enumVideoAccessMode 14529 const enumAccessMode = HandleDynamicEffect.enumVideoAccessMode
14523 -  
14524 const videoPlayConfig = { 14530 const videoPlayConfig = {
14525 controls: true, 14531 controls: true,
  14532 + autoPlay: true,
14526 // bigPlayButton: true, 14533 // bigPlayButton: true,
14527 // textTrackDisplay: false, 14534 // textTrackDisplay: false,
14528 // posterImage: false, 14535 // posterImage: false,