提交 97f55799 编写于 作者: J Jason Song 提交者: GitHub

Merge pull request #395 from lepdou/search_item

bugfix:filter items not effect text model
...@@ -345,7 +345,7 @@ directive_module.directive('apollonspanel', ...@@ -345,7 +345,7 @@ directive_module.directive('apollonspanel',
function parseModel2Text(namespace) { function parseModel2Text(namespace) {
if (namespace.items.length == 0) { if (namespace.sourceItems.length == 0) {
namespace.itemCnt = MIN_ROW_SIZE; namespace.itemCnt = MIN_ROW_SIZE;
return ""; return "";
} }
...@@ -360,7 +360,7 @@ directive_module.directive('apollonspanel', ...@@ -360,7 +360,7 @@ directive_module.directive('apollonspanel',
} }
function parseNotPropertiesText(namespace) { function parseNotPropertiesText(namespace) {
var text = namespace.items[0].item.value; var text = namespace.sourceItems[0].item.value;
var lineNum = text.split("\n").length; var lineNum = text.split("\n").length;
namespace.itemCnt = lineNum < MIN_ROW_SIZE ? MIN_ROW_SIZE : lineNum; namespace.itemCnt = lineNum < MIN_ROW_SIZE ? MIN_ROW_SIZE : lineNum;
return text; return text;
...@@ -369,7 +369,7 @@ directive_module.directive('apollonspanel', ...@@ -369,7 +369,7 @@ directive_module.directive('apollonspanel',
function parsePropertiesText(namespace) { function parsePropertiesText(namespace) {
var result = ""; var result = "";
var itemCnt = 0; var itemCnt = 0;
namespace.items.forEach(function (item) { namespace.sourceItems.forEach(function (item) {
//deleted key //deleted key
if (!item.item.dataChangeLastModifiedBy) { if (!item.item.dataChangeLastModifiedBy) {
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册