import { __decorate } from "tslib";
import { Component, Prop, Watch } from 'vue-property-decorator';
import { Util } from '@ibizstudio/runtime';
import { ViewBase } from '../../../view/view-base';
/**
 * 应用未支持视图
 *
 * @export
 * @class AppDefaultNotSupportedView
 * @extends {ViewBase}
 */
let AppDefaultNotSupportedView = class AppDefaultNotSupportedView extends ViewBase {
    /**
     * 监听动态参数变化
     *
     * @param {*} newVal
     * @param {*} oldVal
     * @memberof AppDefaultNotSupportedView
     */
    onDynamicPropsChange(newVal, oldVal) {
        if (newVal && !Util.isFieldsSame(newVal, oldVal)) {
            super.onDynamicPropsChange(newVal, oldVal);
        }
    }
    /**
     * 监听静态参数变化
     *
     * @memberof AppDefaultNotSupportedView
     */
    onStaticPropsChange(newVal, oldVal) {
        if (newVal && !Util.isFieldsSame(newVal, oldVal)) {
            super.onStaticPropsChange(newVal, oldVal);
        }
    }
    /**
     * 视图渲染
     *
     * @memberof AppDefaultNotSupportedView
     */
    render(h) {
        var _a, _b;
        let flexStyle = 'overflow: auto; display: flex;justify-content:center;align-items:center;';
        return (<div class='view-container' style={flexStyle}>
              暂未支持{(_b = (_a = this.staticProps) === null || _a === void 0 ? void 0 : _a.modeldata) === null || _b === void 0 ? void 0 : _b.title}
            </div>);
    }
};
__decorate([
    Prop()
], AppDefaultNotSupportedView.prototype, "staticProps", void 0);
__decorate([
    Prop()
], AppDefaultNotSupportedView.prototype, "dynamicProps", void 0);
__decorate([
    Watch('dynamicProps', {
        immediate: true,
    })
], AppDefaultNotSupportedView.prototype, "onDynamicPropsChange", null);
__decorate([
    Watch('staticProps', {
        immediate: true,
    })
], AppDefaultNotSupportedView.prototype, "onStaticPropsChange", null);
AppDefaultNotSupportedView = __decorate([
    Component({})
], AppDefaultNotSupportedView);
export { AppDefaultNotSupportedView };
