@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 GenPagesUniUiLinkLink : BasePage {
    constructor(__ins: ComponentInternalInstance, __renderer: String?) : super(__ins, __renderer) {
        onLoad(fun(_: OnLoadOptions) {
            stat_instance.onLoad(this)
        }
        , __ins)
        onPageShow(fun() {
            stat_instance.onShow(this)
        }
        , __ins)
        onPageHide(fun() {
            stat_instance.onHide(this)
        }
        , __ins)
        onUnload(fun() {
            stat_instance.onUnload(this)
        }
        , __ins)
    }
    open var data: Data__9
        get() {
            return unref(this.`$exposed`["data"]) as Data__9
        }
        set(value) {
            setRefValue(this.`$exposed`, "data", value)
        }
    open var onError: (message: String) -> Unit
        get() {
            return unref(this.`$exposed`["onError"]) as (message: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "onError", value)
        }
    companion object {
        @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
        var setup: (__props: GenPagesUniUiLinkLink, __setupCtx: SetupContext) -> Any? = fun(__props, __setupCtx): Any? {
            val __expose = __setupCtx.expose
            val __ins = getCurrentInstance()!!
            val _ctx = __ins.proxy as GenPagesUniUiLinkLink
            val _cache = __ins.renderCache
            val data = reactive<Data__9>(Data__9(lastEvent = "暂无事件"))
            fun gen_onError_fn(message: String) {
                data.lastEvent = "error: " + message
                console.error("[link] error: " + message)
            }
            val onError__1 = ::gen_onError_fn
            __expose(_uM("data" to data, "onError" to onError__1))
            return fun(): Any? {
                val _component_uni_link = resolveEasyComponent("uni-link", GenUniModulesUniLinkComponentsUniLinkUniLinkClass)
                return _cE("scroll-view", _uM("class" to "page"), _uA(
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "基础用法"),
                        _cE("view", _uM("class" to "link-block"), _uA(
                            _cV(_component_uni_link, _uM("href" to "https://uniapp.dcloud.net.cn", "onError" to onError__1), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    "https://uniapp.dcloud.net.cn"
                                )
                            }
                            ), "_" to 1))
                        ))
                    )),
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "自定义样式"),
                        _cE("view", _uM("class" to "link-block"), _uA(
                            _cV(_component_uni_link, _uM("href" to "https://doc.dcloud.net.cn/uni-app-x/", "class" to "custom-link", "onError" to onError__1), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    " 查看 uni-app x 文档 "
                                )
                            }
                            ), "_" to 1))
                        ))
                    )),
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "target=\"_self\" (默认)"),
                        _cE("view", _uM("class" to "link-block"), _uA(
                            _cV(_component_uni_link, _uM("href" to "https://uniapp.dcloud.net.cn", "target" to "_self", "onError" to onError__1), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    " 在内置 webview 中打开 "
                                )
                            }
                            ), "_" to 1))
                        ))
                    )),
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "target=\"_blank\""),
                        _cE("view", _uM("class" to "link-block"), _uA(
                            _cV(_component_uni_link, _uM("href" to "https://uniapp.dcloud.net.cn", "target" to "_blank", "onError" to onError__1), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    " 使用外部浏览器打开 "
                                )
                            }
                            ), "_" to 1))
                        )),
                        _cE("text", _uM("class" to "tip-text"), "APP 使用 openSchema 插件，小程序回退到内置 webview 打开，Web 打开新页签")
                    )),
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "target=\"_blank\" 且 失败回退策略为复制URL"),
                        _cE("view", _uM("class" to "link-block"), _uA(
                            _cV(_component_uni_link, _uM("href" to "https://uniapp.dcloud.net.cn", "target" to "_blank", "blankFallback" to "copy-link-modal", "onError" to onError__1), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    " 使用外部浏览器打开 "
                                )
                            }
                            ), "_" to 1))
                        )),
                        _cE("text", _uM("class" to "tip-text"), "使用外部浏览器打开失败时，回退为复制URL到剪贴板且弹框提示用户手动粘贴URL到浏览器")
                    )),
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "失败示例"),
                        _cE("view", _uM("class" to "link-block"), _uA(
                            _cV(_component_uni_link, _uM("href" to "", "onError" to onError__1), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    " 空链接（触发 error） "
                                )
                            }
                            ), "_" to 1))
                        ))
                    )),
                    _cE("view", _uM("class" to "section"), _uA(
                        _cE("text", _uM("class" to "section-title"), "最近事件"),
                        _cE("text", _uM("class" to "log-text"), _tD(unref(data).lastEvent), 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("page" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "paddingTop" to 12, "paddingRight" to 12, "paddingBottom" to 12, "paddingLeft" to 12)), "section" to _pS(_uM("marginBottom" to 20)), "section-title" to _pS(_uM("fontSize" to 16, "color" to "var(--text-color, #333333)")), "link-block" to _pS(_uM("marginTop" to 8)), "tip-text" to _pS(_uM("marginTop" to 4, "fontSize" to 12, "color" to "var(--text-color, #333333)", "opacity" to 0.6)), "custom-link" to _pS(_uM("color" to "#007aff", "fontSize" to 20)), "log-text" to _pS(_uM("marginTop" to 8, "fontSize" to 13, "color" to "#007aff")))
            }
        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()
    }
}
