Commit a9a5c3b838242da4f6e8d332ef599663d54d583d

Authored by ww
1 parent 4fbc553a

fix: topMessage usage icon error

... ... @@ -5179,6 +5179,12 @@ DataFormatPanel.prototype.addDataFont = function (container) {
5179 5179 const act = currentNodeData.act ?? []
5180 5180 const event = currentNodeData.event ?? []
5181 5181 const actionType = {}
  5182 +
  5183 + const hasExistEl = $(`.layui-form[lay-filter="${CONTAINER_FILTER}"]`).find('input[type="checkbox"]')
  5184 + $(hasExistEl).each((i) => {
  5185 + $(hasExistEl[i]).attr('disabled', true)
  5186 + })
  5187 +
5182 5188 for (const item of act) {
5183 5189 const flag = !item.condition || !item.condition?.length
5184 5190 $(`.interaction__container input[name="${item.type}"]`).attr('disabled', flag)
... ... @@ -5189,6 +5195,7 @@ DataFormatPanel.prototype.addDataFont = function (container) {
5189 5195 $(`.interaction__container input[name="${item.type}"]`).attr('disabled', flag)
5190 5196 actionType[item.type] = item.enabled
5191 5197 }
  5198 +
5192 5199 form.val(CONTAINER_FILTER, actionType)
5193 5200 }
5194 5201
... ... @@ -12530,7 +12537,7 @@ class UseLayUi {
12530 12537
12531 12538 static topMsg(msg, options, icon) {
12532 12539 const { layer } = layui
12533   - 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, })
  12540 + layer.msg(`<div style="padding: 20px; display: flex; align-items: center;"><i class="layui-layer-ico layui-layer-ico${icon}" style="width: 30px;height: 30px;"></i><span style="margin-left: 5px">${msg}</span></div>`, { ...options, type: 1, icon, time: 2000, })
12534 12541 }
12535 12542
12536 12543 static topSuccessMsg(msg = '操作成功', options) {
... ...