Browse Source

refactor: 数组用泛型表示

master
Kira 5 years ago
parent
commit
c397ebfeb9
  1. 2
      dist/2.0/fineui.ie.min.js
  2. 2
      dist/2.0/fineui.min.js
  3. 2
      dist/bundle.ie.min.js
  4. 2
      dist/bundle.min.js
  5. 2
      dist/fineui.ie.min.js
  6. 2
      dist/fineui.min.js
  7. 16
      dist/lib/base/combination/group.button.d.ts
  8. 2
      dist/lib/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.d.ts
  9. 10
      dist/lib/core/wrapper/layout.d.ts
  10. 8
      dist/lib/core/wrapper/layout/layout.tape.d.ts
  11. 2
      dist/utils.min.js
  12. 16
      typescript/base/combination/group.button.ts
  13. 2
      typescript/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.ts
  14. 10
      typescript/core/wrapper/layout.ts
  15. 8
      typescript/core/wrapper/layout/layout.tape.ts

2
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

16
dist/lib/base/combination/group.button.d.ts vendored

@ -1,21 +1,21 @@
import { _Widget } from "../../core/widget"; import { _Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget { export interface _ButtonGroup extends _Widget {
prependItems(items: []): void; prependItems<T>(items: T[]): void;
addItems(items: []): void; addItems<T>(items: T[]): void;
removeItemAt(indexes: any): void; removeItemAt(indexes: any): void;
removeItems(values: any): void; removeItems(values: any): void;
populate(items?: any): void; populate(items?: any): void;
setNotSelectedValue(v: any): void; setNotSelectedValue(v: any): void;
getNotSelectedValue(): []; getNotSelectedValue<T>(): T[];
setEnabledValue(v: any): void; setEnabledValue(v: any): void;
getAllButtons(): []; getAllButtons<T>(): T[];
getAllLeaves(): []; getAllLeaves<T>(): T[];
getSelectedButtons(): []; getSelectedButtons<T>(): T[];
getNotSelectedButtons(): []; getNotSelectedButtons<T>(): T[];
getIndexByValue(value: any): number; getIndexByValue(value: any): number;
getNodeById(id: any): any; getNodeById(id: any): any;
getNodeByValue(value: any): any; getNodeByValue(value: any): any;
getValue(): []; getValue<T>(): T[];
} }
export interface _ButtonGroupChooseType { export interface _ButtonGroupChooseType {
CHOOSE_TYPE_SINGLE: number; CHOOSE_TYPE_SINGLE: number;

2
dist/lib/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.d.ts vendored

@ -1,6 +1,6 @@
import { _Widget } from "../../core/widget"; import { _Widget } from "../../core/widget";
export interface _AllValueMultiTextValueCombo extends _Widget { export interface _AllValueMultiTextValueCombo extends _Widget {
getValue(): []; getValue<T>(): T[];
populate(items: any): void; populate(items: any): void;
} }
export interface _AllValueMultiTextValueComboStatic { export interface _AllValueMultiTextValueComboStatic {

10
dist/lib/core/wrapper/layout.d.ts vendored

@ -6,13 +6,13 @@ export interface _Layout extends _Widget {
removeItemAt(indexes: any): void; removeItemAt(indexes: any): void;
shouldUpdateItem(index: number, item: any): boolean; shouldUpdateItem(index: number, item: any): boolean;
updateItemAt(index: number, item: any): any; updateItemAt(index: number, item: any): any;
addItems(items: [], context?: any): void; addItems<T>(items: T[], context?: any): void;
prependItems(items: [], context?: any): void; prependItems<T>(items: T[], context?: any): void;
getValue(): []; getValue<T>(): T[];
setText(v: string): void; setText(v: string): void;
update(opt: any): any; update(opt: any): any;
stroke(items: []): void; stroke<T>(items: T[]): void;
removeWidget(nameOrWidget: any): void; removeWidget(nameOrWidget: any): void;
populate(items?: []): void; populate<T>(items?: T[]): void;
resize(): void; resize(): void;
} }

8
dist/lib/core/wrapper/layout/layout.tape.d.ts vendored

@ -1,13 +1,13 @@
import { _Layout } from "../layout"; import { _Layout } from "../layout";
export interface _HTapeLayout extends _Layout { export interface _HTapeLayout extends _Layout {
resize(): void; resize(): void;
stroke(items: []): void; stroke<T>(items: T[]): void;
update(): any; update(): any;
populate(items?: []): void; populate<T>(items?: T[]): void;
} }
export interface _VTapeLayout extends _Layout { export interface _VTapeLayout extends _Layout {
resize(): void; resize(): void;
stroke(items: []): void; stroke<T>(items: T[]): void;
update(): void; update(): void;
populate(items?: []): void; populate<T>(items?: T[]): void;
} }

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

16
typescript/base/combination/group.button.ts

@ -1,9 +1,9 @@
import { _Widget } from "../../core/widget"; import { _Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget { export interface _ButtonGroup extends _Widget {
prependItems(items: []): void; prependItems<T>(items: T[]): void;
addItems(items: []): void; addItems<T>(items: T[]): void;
removeItemAt(indexes: any): void; removeItemAt(indexes: any): void;
@ -13,17 +13,17 @@ export interface _ButtonGroup extends _Widget {
setNotSelectedValue(v: any): void; setNotSelectedValue(v: any): void;
getNotSelectedValue(): []; getNotSelectedValue<T>(): T[];
setEnabledValue(v: any): void; setEnabledValue(v: any): void;
getAllButtons(): []; getAllButtons<T>(): T[];
getAllLeaves(): []; getAllLeaves<T>(): T[];
getSelectedButtons(): []; getSelectedButtons<T>(): T[];
getNotSelectedButtons(): []; getNotSelectedButtons<T>(): T[];
getIndexByValue(value: any): number; getIndexByValue(value: any): number;
@ -31,7 +31,7 @@ export interface _ButtonGroup extends _Widget {
getNodeByValue(value: any): any; getNodeByValue(value: any): any;
getValue(): []; getValue<T>(): T[];
} }
export interface _ButtonGroupChooseType { export interface _ButtonGroupChooseType {

2
typescript/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.ts

@ -1,7 +1,7 @@
import { _Widget } from "../../core/widget"; import { _Widget } from "../../core/widget";
export interface _AllValueMultiTextValueCombo extends _Widget { export interface _AllValueMultiTextValueCombo extends _Widget {
getValue(): []; getValue<T>(): T[];
populate(items: any): void; populate(items: any): void;
} }

10
typescript/core/wrapper/layout.ts

@ -13,21 +13,21 @@ export interface _Layout extends _Widget {
updateItemAt(index: number, item: any): any; updateItemAt(index: number, item: any): any;
addItems(items: [], context?: any): void; addItems<T>(items: T[], context?: any): void;
prependItems(items: [], context?: any): void; prependItems<T>(items: T[], context?: any): void;
getValue(): []; getValue<T>(): T[];
setText(v: string): void; setText(v: string): void;
update(opt: any): any; update(opt: any): any;
stroke(items: []): void; stroke<T>(items: T[]): void;
removeWidget(nameOrWidget: any): void; removeWidget(nameOrWidget: any): void;
populate(items?: []): void; populate<T>(items?: T[]): void;
resize(): void; resize(): void;
} }

8
typescript/core/wrapper/layout/layout.tape.ts

@ -3,19 +3,19 @@ import { _Layout } from "../layout";
export interface _HTapeLayout extends _Layout { export interface _HTapeLayout extends _Layout {
resize(): void; resize(): void;
stroke(items: []): void; stroke<T>(items: T[]): void;
update(): any; update(): any;
populate(items?: []): void; populate<T>(items?: T[]): void;
} }
export interface _VTapeLayout extends _Layout { export interface _VTapeLayout extends _Layout {
resize(): void; resize(): void;
stroke(items: []): void; stroke<T>(items: T[]): void;
update(): void; update(): void;
populate(items?: []): void; populate<T>(items?: T[]): void;
} }

Loading…
Cancel
Save