|
|
|
@ -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(); |
|
|
|
|
const _exports = { |
|
|
|
|
getData: (entityId, entityType) => _CACHE.getData(entityId, entityType), |
|
|
|
|
setData, |
|
|
|
|
clear, |
|
|
|
|
openChooseDialog: chooseLabelData |
|
|
|
|
}; |
|
|
|
|
exports('datalabel', _exports) |
|
|
|
|