1、标签清除功能

master
xiong_cl 7 months ago
parent 2350100a3e
commit 0d39e3800b
  1. 12
      shandan-common/src/main/resources/static/js/common/layui/extend/datalabel.js

@ -301,11 +301,23 @@ layui.define(['globalTree'], function (exports) {
} }
} }
function clear() {
for (let component of _CACHE.values()) {
if (component.isOther()) {
component.delete();
_CACHE.delete(component.id)
}else {
component.clear();
}
}
}
renderLabelSetComponent(); renderLabelSetComponent();
const _exports = { const _exports = {
getData: (entityId, entityType) => _CACHE.getData(entityId, entityType), getData: (entityId, entityType) => _CACHE.getData(entityId, entityType),
setData, setData,
clear,
openChooseDialog: chooseLabelData openChooseDialog: chooseLabelData
}; };
exports('datalabel', _exports) exports('datalabel', _exports)