Browse Source

Pull request #3585: BI-128204 fix: 【6.0.12发散】自适应布局及内容缩放下,缩小浏览器窗口,过滤查看已选下方异常

Merge in VISUAL/fineui from ~DAILER/fineui:es6 to es6

* commit '9efe3a1ad72ec2924294028f0b7f74b3093fb6d4':
  BI-128204 fix: 【6.0.12发散】自适应布局及内容缩放下,缩小浏览器窗口,过滤查看已选下方异常
es6
Dailer-刘荣歆 2 years ago
parent
commit
675b61ab65
  1. 5
      packages/fineui/src/base/combination/switcher.js
  2. 20
      packages/fineui/src/widget/multiselect/multiselect.combo.js
  3. 20
      packages/fineui/src/widget/multiselect/multiselect.combo.nobar.js
  4. 21
      packages/fineui/src/widget/multiselect/multiselect.insert.combo.js
  5. 21
      packages/fineui/src/widget/multiselect/multiselect.insert.combo.nobar.js
  6. 4
      packages/fineui/src/widget/multiselect/multiselect.popup.view.js
  7. 4
      packages/fineui/src/widget/multiselect/multiselect.popup.view.nobar.js

5
packages/fineui/src/base/combination/switcher.js

@ -11,7 +11,7 @@ import {
isNull,
Events,
Direction,
EVENT_RESPONSE_TIME
EVENT_RESPONSE_TIME, isFunction
} from "@/core";
import { ButtonGroup } from "./group.button";
import { Maskers } from "@/base/0.base";
@ -188,7 +188,8 @@ export class Switcher extends Widget {
}
_assertPopupView() {
const { popup, adapter, masker, value, direction } = this.options;
const { popup, masker, value, direction } = this.options;
const adapter = isFunction(this.options.adapter) ? this.options.adapter() : this.options.adapter;
if (!this._created) {
this.popupView = createWidget(
popup,

20
packages/fineui/src/widget/multiselect/multiselect.combo.js

@ -99,13 +99,8 @@ export class MultiSelectCombo extends Single {
height: toPix(o.height, o.simple ? 1 : 2),
text: o.text,
defaultText: o.defaultText,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemFormatter: o.itemFormatter,
@ -185,8 +180,6 @@ export class MultiSelectCombo extends Single {
type: MultiSelectPopupView.xtype,
ref() {
self.popup = this;
self.trigger.setAdapter(this);
self.numberCounter.setAdapter(this);
},
listeners: [
{
@ -269,13 +262,8 @@ export class MultiSelectCombo extends Single {
this.numberCounter = createWidget({
type: MultiSelectCheckSelectedSwitcher.xtype,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),

20
packages/fineui/src/widget/multiselect/multiselect.combo.nobar.js

@ -97,13 +97,8 @@ export class MultiSelectNoBarCombo extends Single {
height: toPix(o.height, o.simple ? 1 : 2),
text: o.text,
defaultText: o.defaultText,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),
@ -185,8 +180,6 @@ export class MultiSelectNoBarCombo extends Single {
type: MultiSelectNoBarPopupView.xtype,
ref() {
self.popup = this;
self.trigger.setAdapter(this);
self.numberCounter.setAdapter(this);
},
listeners: [
{
@ -272,13 +265,8 @@ export class MultiSelectNoBarCombo extends Single {
this.numberCounter = createWidget({
type: MultiSelectCheckSelectedSwitcher.xtype,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),

21
packages/fineui/src/widget/multiselect/multiselect.insert.combo.js

@ -99,14 +99,8 @@ export class MultiSelectInsertCombo extends Single {
text: o.text,
watermark: o.watermark,
defaultText: o.defaultText,
// adapter: this.popup,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),
@ -192,8 +186,6 @@ export class MultiSelectInsertCombo extends Single {
type: MultiSelectPopupView.xtype,
ref() {
self.popup = this;
self.trigger.setAdapter(this);
self.numberCounter.setAdapter(this);
},
listeners: [
{
@ -276,13 +268,8 @@ export class MultiSelectInsertCombo extends Single {
this.numberCounter = createWidget({
type: MultiSelectCheckSelectedSwitcher.xtype,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),

21
packages/fineui/src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -93,14 +93,8 @@ export class MultiSelectInsertNoBarCombo extends Single {
type: MultiSelectInsertTrigger.xtype,
height: toPix(o.height, o.simple ? 1 : 2),
text: o.text,
// adapter: this.popup,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),
@ -178,8 +172,6 @@ export class MultiSelectInsertNoBarCombo extends Single {
type: MultiSelectNoBarPopupView.xtype,
ref() {
self.popup = this;
self.trigger.setAdapter(this);
self.numberCounter.setAdapter(this);
},
listeners: [
{
@ -263,13 +255,8 @@ export class MultiSelectInsertNoBarCombo extends Single {
this.numberCounter = createWidget({
type: MultiSelectCheckSelectedSwitcher.xtype,
masker: {
offset: {
left: 0,
top: 0,
right: 0,
bottom: SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1,
},
adapter: () => {
return this.popup.getView();
},
valueFormatter: o.valueFormatter,
itemsCreator: bind(this._itemsCreator4Trigger, this),

4
packages/fineui/src/widget/multiselect/multiselect.popup.view.js

@ -98,4 +98,8 @@ export class MultiSelectPopupView extends Widget {
setDirection(direction, position) {
this.popupView.setDirection(direction, position);
}
getView() {
return this.popupView.getView();
}
}

4
packages/fineui/src/widget/multiselect/multiselect.popup.view.nobar.js

@ -93,4 +93,8 @@ export class MultiSelectNoBarPopupView extends Widget {
setDirection(direction, position) {
this.popupView.setDirection(direction, position);
}
getView() {
return this.popupView.getView();
}
}

Loading…
Cancel
Save