MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / clearData

Function clearData

public/iframe/lib/js/commonFun.js:749–755  ·  view source on GitHub ↗
(property)

Source from the content-addressed store, hash-verified

747 return id;
748 },
749 clearData(property) {
750 // 当组件是api或者SSE 删除组件的数据
751 property.option.data.forEach(item => {
752 item.data = []
753 item.data = new Array(property.dataMaxLength).fill({ name: '', value: null, })
754 })
755 },
756 allTemplate2NotGroupAllTemplate(allTemplateList) {
757 // 将有组关系的allTemplate转换为没有组的allTemplate
758 const previewTemplateList = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected