p-e4c85d96.entry.js 909 字节
Newer Older
1
import{r as t,h as a,H as i,c as s}from"./p-38dcedc4.js";import{a as e}from"./p-285477f2.js";import"./p-5a5a5c96.js";const n=class{constructor(a){t(this,a),this.loaded=!1,this.active=!1}async componentWillLoad(){this.active&&await this.setActive()}async setActive(){await this.prepareLazyLoaded(),this.active=!0}changeActive(t){t&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return e(this.delegate,this.el,this.component,["ion-page"])}catch(t){console.error(t)}}return Promise.resolve(void 0)}render(){const{tab:t,active:s,component:e}=this;return a(i,{role:"tabpanel","aria-hidden":s?null:"true","aria-labelledby":`tab-button-${t}`,class:{"ion-page":void 0===e,"tab-hidden":!s}},a("slot",null))}get el(){return s(this)}static get watchers(){return{active:["changeActive"]}}};n.style=":host(.tab-hidden){display:none !important}";export{n as ion_tab}