mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
asdf
This commit is contained in:
@@ -15,7 +15,8 @@ export class Button extends ButtonBase {
|
||||
private _stateChangedHandler: ControlStateChangeListener;
|
||||
|
||||
createNativeView() {
|
||||
return UIButton.buttonWithType(UIButtonType.System);
|
||||
// return UIButton.buttonWithType(UIButtonType.System);
|
||||
UIVisualEffectView.initWithEffect(UIVisualEffect.);
|
||||
}
|
||||
|
||||
public initNativeView(): void {
|
||||
|
||||
@@ -359,6 +359,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
|
||||
@profile
|
||||
public onUnloaded() {
|
||||
console.log("---> view-base");
|
||||
this.setFlag(Flags.superOnUnloadedCalled, true);
|
||||
if (!this._isLoaded) {
|
||||
return;
|
||||
|
||||
@@ -306,6 +306,15 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
|
||||
return false;
|
||||
}
|
||||
|
||||
public onUnloaded() {
|
||||
debugger;
|
||||
super.onUnloaded();
|
||||
|
||||
if (this._modal) {
|
||||
console.log("---> view-common", this);
|
||||
}
|
||||
}
|
||||
|
||||
public _getFragmentManager(): any {
|
||||
return undefined;
|
||||
}
|
||||
@@ -369,6 +378,7 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
|
||||
}
|
||||
|
||||
protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions) {
|
||||
debugger;
|
||||
_rootModalViews.push(this);
|
||||
|
||||
const modalRootViewCssClass = getModalRootViewCssClass();
|
||||
@@ -379,6 +389,7 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
|
||||
this._modalContext = options.context;
|
||||
const that = this;
|
||||
this._closeModalCallback = function (...originalArgs) {
|
||||
debugger;
|
||||
if (that._closeModalCallback) {
|
||||
const modalIndex = _rootModalViews.indexOf(that);
|
||||
_rootModalViews.splice(modalIndex);
|
||||
|
||||
Reference in New Issue
Block a user