windy 6 years ago
parent
commit
360eca0bcb
  1. 6
      demo/config.js
  2. 4
      demo/js/widget/singleselct/demo.single_select_combo.js
  3. 22
      dist/bundle.js
  4. 10
      dist/demo.js
  5. 22
      dist/fineui.js
  6. 22
      dist/widget.js
  7. 2
      src/widget/multiselect/multiselect.combo.js
  8. 2
      src/widget/multiselect/multiselect.insert.combo.js
  9. 2
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  10. 8
      src/widget/singleselect/singleselect.combo.js
  11. 8
      src/widget/singleselect/singleselect.insert.combo.js

6
demo/config.js

@ -1518,17 +1518,13 @@ Demo.CONSTANTS = {
}, {pId: "0_1_33", id: "0_1_33_0", text: "重庆市区", value: "重庆市区", open: true}],
TREE: [{id: -1, pId: -2, value: "根目录", text: "根目录"},
{id: -2, pId: -2, value: "根目录", text: "根目录"},
{id: -3, pId: -2, value: "根目录", text: "根目录"},
{id: -4, pId: -2, value: "根目录", text: "根目录"},
{id: -5, pId: -2, value: "根目录", text: "根目录"},
{id: 1, pId: -1, value: "第一级目录1", text: "第一级目录1"},
{id: 11, pId: 1, value: "第二级文件1", text: "第二级文件1"},
{id: 12, pId: 1, value: "第二级目录2", text: "第二级目录2"},
{id: 121, pId: 12, value: "第三级目录1", text: "第三级目录1"},
{id: 122, pId: 12, value: "第三级文件1", text: "第三级文件1"},
{id: 1211, pId: 121, value: "第四级目录1", text: "第四级目录1"},
{id: 12111, pId: 1211, value: "第五级文件1", text: "第五级文件1111111111111111111"},
{id: 12111, pId: 1211, value: "第五级文件1", text: "第五级文件111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"},
{id: 2, pId: -1, value: "第一级目录2", text: "第一级目录2"},
{id: 21, pId: 2, value: "第二级目录3", text: "第二级目录3"},
{id: 22, pId: 2, value: "第二级文件2", text: "第二级文件2"},

4
demo/js/widget/singleselct/demo.single_select_combo.js

@ -29,14 +29,14 @@ Demo.SingleSelectCombo = BI.inherit(BI.Widget, {
_getItemsByTimes: function (items, times) {
var res = [];
for (var i = (times - 1) * 10; items[i] && i < times * 10; i++) {
for (var i = (times - 1) * 100; items[i] && i < times * 100; i++) {
res.push(items[i]);
}
return res;
},
_hasNextByTimes: function (items, times) {
return times * 10 < items.length;
return times * 100 < items.length;
},
_itemsCreator: function (options, callback) {

22
dist/bundle.js vendored

@ -97524,7 +97524,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -97908,7 +97908,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -98275,7 +98275,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -106236,14 +106236,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -106514,14 +106506,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

10
dist/demo.js vendored

@ -13286,14 +13286,14 @@ Demo.SingleSelectCombo = BI.inherit(BI.Widget, {
_getItemsByTimes: function (items, times) {
var res = [];
for (var i = (times - 1) * 10; items[i] && i < times * 10; i++) {
for (var i = (times - 1) * 100; items[i] && i < times * 100; i++) {
res.push(items[i]);
}
return res;
},
_hasNextByTimes: function (items, times) {
return times * 10 < items.length;
return times * 100 < items.length;
},
_itemsCreator: function (options, callback) {
@ -16354,17 +16354,13 @@ Demo.CONSTANTS = {
}, {pId: "0_1_33", id: "0_1_33_0", text: "重庆市区", value: "重庆市区", open: true}],
TREE: [{id: -1, pId: -2, value: "根目录", text: "根目录"},
{id: -2, pId: -2, value: "根目录", text: "根目录"},
{id: -3, pId: -2, value: "根目录", text: "根目录"},
{id: -4, pId: -2, value: "根目录", text: "根目录"},
{id: -5, pId: -2, value: "根目录", text: "根目录"},
{id: 1, pId: -1, value: "第一级目录1", text: "第一级目录1"},
{id: 11, pId: 1, value: "第二级文件1", text: "第二级文件1"},
{id: 12, pId: 1, value: "第二级目录2", text: "第二级目录2"},
{id: 121, pId: 12, value: "第三级目录1", text: "第三级目录1"},
{id: 122, pId: 12, value: "第三级文件1", text: "第三级文件1"},
{id: 1211, pId: 121, value: "第四级目录1", text: "第四级目录1"},
{id: 12111, pId: 1211, value: "第五级文件1", text: "第五级文件1111111111111111111"},
{id: 12111, pId: 1211, value: "第五级文件1", text: "第五级文件111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"},
{id: 2, pId: -1, value: "第一级目录2", text: "第一级目录2"},
{id: 21, pId: 2, value: "第二级目录3", text: "第二级目录3"},
{id: 22, pId: 2, value: "第二级文件2", text: "第二级文件2"},

22
dist/fineui.js vendored

@ -97767,7 +97767,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -98151,7 +98151,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -98518,7 +98518,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -106479,14 +106479,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -106757,14 +106749,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

22
dist/widget.js vendored

@ -9900,7 +9900,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -10284,7 +10284,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -10651,7 +10651,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},
@ -18612,14 +18612,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {
@ -18890,14 +18882,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

2
src/widget/multiselect/multiselect.combo.js

@ -39,7 +39,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},

2
src/widget/multiselect/multiselect.insert.combo.js

@ -36,7 +36,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},

2
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -39,7 +39,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
offset: {
left: 1,
top: 1,
right: 2,
right: 1,
bottom: 33
}
},

8
src/widget/singleselect/singleselect.combo.js

@ -30,14 +30,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

8
src/widget/singleselect/singleselect.insert.combo.js

@ -30,14 +30,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
type: "bi.single_select_trigger",
height: o.height,
// adapter: this.popup,
masker: {
offset: {
left: 1,
top: 1,
right: 2,
bottom: 33
}
},
valueFormatter: o.valueFormatter,
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (res) {

Loading…
Cancel
Save