234 changed files with 21595 additions and 13352 deletions
@ -0,0 +1,51 @@
|
||||
/** |
||||
* @author windy |
||||
* @version 2.0 |
||||
* Created by windy on 2021/1/25 |
||||
*/ |
||||
Demo.YearInterval = BI.inherit(BI.Widget, { |
||||
props: { |
||||
baseCls: "" |
||||
}, |
||||
render: function () { |
||||
|
||||
var self = this; |
||||
return { |
||||
type: "bi.horizontal_auto", |
||||
items: [{ |
||||
type: "bi.year_interval", |
||||
ref: function (_ref) { |
||||
self.widget = _ref; |
||||
}, |
||||
width: 300, |
||||
minDate: "2012-01-01", |
||||
maxDate: "2013-12-31", |
||||
value: { |
||||
type: 1, |
||||
value: { |
||||
year: 2012 |
||||
} |
||||
} |
||||
}, { |
||||
type: "bi.button", |
||||
text: "getValue", |
||||
handler: function () { |
||||
BI.Msg.toast(JSON.stringify(self.widget.getValue())); |
||||
}, |
||||
width: 300 |
||||
}, { |
||||
type: "bi.button", |
||||
text: "setValue '2017-12'", |
||||
width: 300, |
||||
handler: function () { |
||||
self.widget.setValue({ |
||||
year: 2017 |
||||
}); |
||||
} |
||||
}], |
||||
vgap: 20 |
||||
}; |
||||
} |
||||
}); |
||||
|
||||
BI.shortcut("demo.year_interval", Demo.YearInterval); |
@ -0,0 +1,52 @@
|
||||
/** |
||||
* @author windy |
||||
* @version 2.0 |
||||
* Created by windy on 2021/1/25 |
||||
*/ |
||||
Demo.YearQuarterInterval = BI.inherit(BI.Widget, { |
||||
props: { |
||||
baseCls: "" |
||||
}, |
||||
|
||||
render: function () { |
||||
var self = this; |
||||
return { |
||||
type: "bi.horizontal_auto", |
||||
items: [{ |
||||
type: "bi.year_quarter_interval", |
||||
ref: function (_ref) { |
||||
self.interval = _ref; |
||||
}, |
||||
minDate: "2012-07-01", |
||||
maxDate: "2012-12-31", |
||||
value: { |
||||
start: { |
||||
type: 2, |
||||
value: { |
||||
year: -1, |
||||
month: 1 |
||||
} |
||||
}, |
||||
end: { |
||||
type: 1, |
||||
value: { |
||||
year: 2018, |
||||
month: 1 |
||||
} |
||||
} |
||||
}, |
||||
width: 400 |
||||
}, { |
||||
type: "bi.button", |
||||
text: "getValue", |
||||
handler: function () { |
||||
BI.Msg.toast(JSON.stringify(self.interval.getValue())); |
||||
}, |
||||
width: 300 |
||||
}], |
||||
vgap: 20 |
||||
}; |
||||
} |
||||
}); |
||||
|
||||
BI.shortcut("demo.year_quarter_interval", Demo.YearQuarterInterval); |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 371 KiB After Width: | Height: | Size: 379 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
import { BasicButton } from "../button.basic"; |
||||
export declare class ImageButton extends BasicButton { |
||||
static xtype: string; |
||||
static EVENT_CHANGE: string; |
||||
setWidth(w: number): void; |
||||
setHeight(h: number): void; |
||||
setImageWidth(w: number): void; |
||||
setImageHeight(h: number): void; |
||||
getImageWidth(): number; |
||||
getImageHeight(): number; |
||||
setSrc(src: string): void; |
||||
getSrc(): string; |
||||
doClick(): void; |
||||
} |
@ -0,0 +1,10 @@
|
||||
import { NodeButton } from "../button.node"; |
||||
export declare class TextNode extends NodeButton { |
||||
static xtype: string; |
||||
setText(b: string): void; |
||||
getText(): string; |
||||
setValue(): void; |
||||
getValue(): string; |
||||
doRedMark(...args: any[]): void; |
||||
unRedMark(...args: any[]): void; |
||||
} |
@ -0,0 +1,8 @@
|
||||
import { Pane } from "../../../base/pane"; |
||||
export declare class TextValueCheckComboPopup extends Pane { |
||||
static xtype: string; |
||||
static EVENT_CHANGE: string; |
||||
populate(items: any[]): void; |
||||
getValue(): any; |
||||
setValue(): void; |
||||
} |
@ -1,4 +1,5 @@
|
||||
export declare class WheelHandler { |
||||
constructor(onWheel: (deltaX: number, deltaY: number) => void, handleScrollX?: boolean | ((deltaX: number, deltaY: number) => boolean), handleScrollY?: boolean | ((deltaY: number, deltaX: number) => boolean), stopPropagation?: boolean | (() => void)); |
||||
onWheel(event: WheelEvent): void; |
||||
_didWheel(): void; |
||||
} |
||||
|
@ -0,0 +1,18 @@
|
||||
import { Widget } from "../../../core/widget"; |
||||
export declare class DateCalendarPopup extends Widget { |
||||
static xtype: string; |
||||
static EVENT_CHANGE: string; |
||||
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string; |
||||
setMinDate(v: string): void; |
||||
setMaxDate(v: string): void; |
||||
setValue(v: { |
||||
year: number; |
||||
month: number; |
||||
day: number; |
||||
}): void; |
||||
getValue(): { |
||||
year: number; |
||||
month: number; |
||||
day: number; |
||||
}; |
||||
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue