@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER", "SENSELESS_COMPARISON", "NAME_SHADOWING", "UNNECESSARY_NOT_NULL_ASSERTION")
package uni.UNIHelloUniAppX
import io.dcloud.uniapp.*
import io.dcloud.uniapp.extapi.*
import io.dcloud.uniapp.framework.*
import io.dcloud.uniapp.runtime.*
import io.dcloud.uniapp.vue.*
import io.dcloud.uniapp.vue.shared.*
import io.dcloud.unicloud.*
import io.dcloud.uts.*
import io.dcloud.uts.Map
import io.dcloud.uts.Set
import io.dcloud.uts.UTSAndroid
import kotlin.properties.Delegates
open class GenPagesUniUiTabBarTabContentApi : VueComponent {
    constructor(__ins: ComponentInternalInstance) : super(__ins) {}
    companion object {
        @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
        var setup: (__props: GenPagesUniUiTabBarTabContentApi) -> Any? = fun(__props): Any? {
            val __ins = getCurrentInstance()!!
            val _ctx = __ins.proxy as GenPagesUniUiTabBarTabContentApi
            val _cache = __ins.renderCache
            val activeIndex = inject<Ref<Number>>("uniTabBarCurrentIndex", ref(0))
            val changeTab = inject<(index: Number) -> Unit>("uniTabBarChangeTab", fun(index: Number){})
            val currentTabItemIndex = inject<Number>("tabContent2Index", 1)
            val setCurrentBadgeNumber = inject<() -> Unit>("tabContent2SetBadgeNumber", fun(){})
            val setCurrentBadgeDot = inject<() -> Unit>("tabContent2SetBadgeDot", fun(){})
            val clearCurrentBadge = inject<() -> Unit>("tabContent2ClearBadge", fun(){})
            val setCurrentBadgeClass = inject<() -> Unit>("tabContent2SetBadgeClass", fun(){})
            fun gen_switchToFirstTab_fn(): Unit {
                changeTab(0)
            }
            val switchToFirstTab = ::gen_switchToFirstTab_fn
            fun gen_setBadgeNumber_fn(): Unit {
                setCurrentBadgeNumber()
            }
            val setBadgeNumber = ::gen_setBadgeNumber_fn
            fun gen_setBadgeDot_fn(): Unit {
                setCurrentBadgeDot()
            }
            val setBadgeDot = ::gen_setBadgeDot_fn
            fun gen_clearBadge_fn(): Unit {
                clearCurrentBadge()
            }
            val clearBadge = ::gen_clearBadge_fn
            fun gen_setBadgeClass_fn(): Unit {
                setCurrentBadgeClass()
            }
            val setBadgeClass = ::gen_setBadgeClass_fn
            return fun(): Any? {
                return _cE("view", _uM("class" to "content-page"), _uA(
                    _cE("text", _uM("class" to "page-text"), "当前索引: " + _tD(unref(activeIndex)), 1),
                    _cE("view", _uM("class" to "panel-card"), _uA(
                        _cE("text", _uM("class" to "panel-title"), "Tab 切换"),
                        _cE("button", _uM("class" to "action-button primary-button", "onClick" to switchToFirstTab), "切换到第一个 tab-item")
                    )),
                    _cE("view", _uM("class" to "panel-card"), _uA(
                        _cE("text", _uM("class" to "panel-title"), "当前 tab-item 角标"),
                        _cE("button", _uM("class" to "action-button", "onClick" to setBadgeNumber), "设置数字角标"),
                        _cE("button", _uM("class" to "action-button", "onClick" to setBadgeDot), "设置红点角标"),
                        _cE("button", _uM("class" to "action-button", "onClick" to clearBadge), "取消角标"),
                        _cE("button", _uM("class" to "action-button accent-button", "onClick" to setBadgeClass), "自定义 badgeClass 样式"),
                        _cE("text", _uM("class" to "panel-tip"), "当前操作目标 tab 索引: " + _tD(unref(currentTabItemIndex)), 1)
                    ))
                ))
            }
        }
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            _nCS(_uA(
                styles0
            ))
        }
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return _uM("content-page" to _pS(_uM("display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "flex-start", "width" to "100%", "height" to "100%", "paddingTop" to 20, "paddingRight" to 20, "paddingBottom" to 20, "paddingLeft" to 20, "backgroundColor" to "#fff5f5")), "panel-card" to _pS(_uM("display" to "flex", "flexDirection" to "column", "width" to "100%", "paddingTop" to 16, "paddingRight" to 16, "paddingBottom" to 16, "paddingLeft" to 16, "marginTop" to 16, "borderTopLeftRadius" to 14, "borderTopRightRadius" to 14, "borderBottomRightRadius" to 14, "borderBottomLeftRadius" to 14, "backgroundColor" to "#ffffff", "boxShadow" to "0px 6px 16px rgba(229, 102, 102, 0.12)")), "panel-title" to _pS(_uM("fontSize" to 18, "fontWeight" to "bold", "color" to "#333333", "marginBottom" to 12)), "panel-tip" to _pS(_uM("fontSize" to 14, "color" to "#8a5a5a", "marginTop" to 12)), "action-button" to _pS(_uM("width" to "100%", "height" to 40, "marginTop" to 10, "borderTopLeftRadius" to 20, "borderTopRightRadius" to 20, "borderBottomRightRadius" to 20, "borderBottomLeftRadius" to 20, "backgroundColor" to "#ffffff", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopStyle" to "solid", "borderRightStyle" to "solid", "borderBottomStyle" to "solid", "borderLeftStyle" to "solid", "borderTopColor" to "#f1c7c7", "borderRightColor" to "#f1c7c7", "borderBottomColor" to "#f1c7c7", "borderLeftColor" to "#f1c7c7", "color" to "#8d4b4b", "fontSize" to 15)), "primary-button" to _pS(_uM("backgroundColor" to "#ff8a8a", "borderTopColor" to "#ff8a8a", "borderRightColor" to "#ff8a8a", "borderBottomColor" to "#ff8a8a", "borderLeftColor" to "#ff8a8a", "color" to "#ffffff")), "accent-button" to _pS(_uM("backgroundColor" to "#ffe7c7", "borderTopColor" to "#ffd18c", "borderRightColor" to "#ffd18c", "borderBottomColor" to "#ffd18c", "borderLeftColor" to "#ffd18c", "color" to "#8a4d00")), "page-title" to _pS(_uM("fontSize" to 28, "fontWeight" to "bold", "color" to "#333333", "marginBottom" to 20)), "page-text" to _pS(_uM("fontSize" to 16, "color" to "#666666", "marginBottom" to 10)))
            }
        var inheritAttrs = true
        var inject: Map<String, Map<String, Any?>> = _uM()
        var emits: Map<String, Any?> = _uM()
        var props = _nP(_uM())
        var propsNeedCastKeys: UTSArray<String> = _uA()
        var components: Map<String, CreateVueComponent> = _uM()
    }
}
