diff --git a/apps/spreadsheeteditor/main/app/template/PivotSettings.template b/apps/spreadsheeteditor/main/app/template/PivotSettings.template index 42932ad7b..975e84675 100644 --- a/apps/spreadsheeteditor/main/app/template/PivotSettings.template +++ b/apps/spreadsheeteditor/main/app/template/PivotSettings.template @@ -6,7 +6,7 @@ -
+
@@ -19,10 +19,10 @@ -
+
-
+
@@ -35,10 +35,10 @@ -
+
-
+
diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettings.js b/apps/spreadsheeteditor/main/app/view/PivotSettings.js index c10133bdd..6eaaf24fb 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotSettings.js +++ b/apps/spreadsheeteditor/main/app/view/PivotSettings.js @@ -191,7 +191,7 @@ define([ '', '<% } %>', '', - '
<%= Common.Utils.String.htmlEncode(value) %>
', + '
<%= Common.Utils.String.htmlEncode(value) %>
', '' ].join('')) }); @@ -208,7 +208,7 @@ define([ template: _.template(['
'].join('')), itemTemplate: _.template([ '
', - '
<%= Common.Utils.String.htmlEncode(value) %>
', + '
<%= Common.Utils.String.htmlEncode(value) %>
', '
', '
' ].join('')) @@ -224,7 +224,7 @@ define([ template: _.template(['
'].join('')), itemTemplate: _.template([ '
', - '
<%= Common.Utils.String.htmlEncode(value) %>
', + '
<%= Common.Utils.String.htmlEncode(value) %>
', '
', '
' ].join('')) @@ -240,7 +240,7 @@ define([ template: _.template(['
'].join('')), itemTemplate: _.template([ '
', - '
<%= Common.Utils.String.htmlEncode(value) %>
', + '
<%= Common.Utils.String.htmlEncode(value) %>
', '
', '
' ].join('')) @@ -256,7 +256,7 @@ define([ template: _.template(['
'].join('')), itemTemplate: _.template([ '
', - '
<%= Common.Utils.String.htmlEncode(value) %>
', + '
<%= Common.Utils.String.htmlEncode(value) %>
', '
', '
' ].join('')) @@ -303,7 +303,8 @@ define([ this._state.TableName=props.asc_getName(); - var cache_names = props.asc_getCacheFields(), + var me = this, + cache_names = props.asc_getCacheFields(), pivot_names = props.asc_getPivotFields(), names = []; pivot_names.forEach(function (item, index) { @@ -314,13 +315,14 @@ define([ value = props.asc_getColumnFields(); value && value.forEach(function (item) { var index = item.asc_getIndex(); - if (index>-1) { - var name = names[index]; + if (index>-1 || index == -2) { + var name = (index>-1) ? names[index] : me.textValues; arr.push(new Common.UI.DataViewModel({ selected : false, allowSelected : true, index : index, - value : name + value : name, + tip : (name.length>10) ? name : '' })); isChecked[name] = true; } @@ -332,13 +334,14 @@ define([ value = props.asc_getRowFields(); value && value.forEach(function (item) { var index = item.asc_getIndex(); - if (index>-1) { - var name = names[index]; + if (index>-1 || index == -2) { + var name = (index>-1) ? names[index] : me.textValues; arr.push(new Common.UI.DataViewModel({ selected : false, allowSelected : true, index : index, - value : name + value : name, + tip : (name.length>10) ? name : '' })); isChecked[name] = true; } @@ -351,13 +354,13 @@ define([ value && value.forEach(function (item) { var index = item.asc_getIndex(); if (index>-1) { - var name = names[index]; + var name = item.asc_getName(); arr.push(new Common.UI.DataViewModel({ selected : false, allowSelected : true, index : index, - // value : name - value : item.asc_getName() + value : name, + tip : (name.length>10) ? name : '' })); isChecked[name] = true; } @@ -375,7 +378,8 @@ define([ selected : false, allowSelected : true, index : index, - value : name + value : name, + tip : (name.length>10) ? name : '' })); isChecked[name] = true; } @@ -389,6 +393,7 @@ define([ selected : false, allowSelected : true, value : item, + tip : (name.length>25) ? name : '', check : isChecked[item] })); }); diff --git a/apps/spreadsheeteditor/main/resources/less/rightmenu.less b/apps/spreadsheeteditor/main/resources/less/rightmenu.less index d0bd18bcb..bb847e37a 100644 --- a/apps/spreadsheeteditor/main/resources/less/rightmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/rightmenu.less @@ -331,4 +331,41 @@ button:active:not(.disabled) .btn-change-shape {background-position: -56px - #table-combo-template .combo-dataview{ .combo-template(60px); -} \ No newline at end of file +} + +.pivot-check-listview { + background-color: #fff; + width: 100%; + height: 250px; + + .list-item { + width: 160px; + margin-left:20px; + display: inline-block; + white-space: pre; + overflow: hidden; + text-overflow: ellipsis; + vertical-align: middle; + } +} + +.pivot-listview { + background-color: #fff; + width: 95px; + height: 130px; + + .list-item > div:nth-child(1) { + width:70px; + padding-right: 5px; + display: inline-block; + white-space: pre; + overflow: hidden; + text-overflow: ellipsis; + vertical-align: middle; + } + + .listitem-icon { + display: inline; + vertical-align: middle; + } +}