@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 GenPagesUniUiNumberBoxNumberBox : 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__6
        get() {
            return unref(this.`$exposed`["data"]) as Data__6
        }
        set(value) {
            setRefValue(this.`$exposed`, "data", value)
        }
    companion object {
        @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
        var setup: (__props: GenPagesUniUiNumberBoxNumberBox, __setupCtx: SetupContext) -> Any? = fun(__props, __setupCtx): Any? {
            val __expose = __setupCtx.expose
            val __ins = getCurrentInstance()!!
            val _ctx = __ins.proxy as GenPagesUniUiNumberBoxNumberBox
            val _cache = __ins.renderCache
            val data = reactive<Data__6>(Data__6(value1 = 1, value2 = 10, value3 = 0, value4 = 0.5, value5 = 1, value6 = 1, value7 = 1, value8 = 1))
            val onChange = fun(value: Number): Unit {
                console.log("number-box change:", value)
            }
            __expose(_uM("data" to data))
            return fun(): Any? {
                val _component_uni_number_box = resolveEasyComponent("uni-number-box", GenUniModulesUniNumberBoxComponentsUniNumberBoxUniNumberBoxClass)
                return _cE("scroll-view", _uM("style" to _nS(_uM("flex" to "1", "padding" to "15px"))), _uA(
                    _cE("text", _uM("class" to "page-title"), "NumberBox 数字输入框"),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "基础用法："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value1, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value1 = `$event`
                        }
                        , "onChange" to onChange), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        )),
                        _cE("text", _uM("class" to "hint"), "当前值：" + _tD(unref(data).value1), 1)
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "设置范围 (min=5, max=20)："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value2, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value2 = `$event`
                        }
                        , "min" to 5, "max" to 20), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        )),
                        _cE("text", _uM("class" to "hint"), "当前值：" + _tD(unref(data).value2), 1)
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "步长为5 (step=5)："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value3, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value3 = `$event`
                        }
                        , "step" to 5), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        )),
                        _cE("text", _uM("class" to "hint"), "当前值：" + _tD(unref(data).value3), 1)
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "小数步长 (step=0.1)："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value4, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value4 = `$event`
                        }
                        , "step" to 0.1, "min" to 0, "max" to 10), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        )),
                        _cE("text", _uM("class" to "hint"), "当前值：" + _tD(unref(data).value4), 1)
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "禁用状态："),
                        _cV(_component_uni_number_box, _uM("value" to 5, "disabled" to true))
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "自定义按钮样式 (btn-class)："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value5, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value5 = `$event`
                        }
                        , "btn-class" to "custom-btn"), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        ))
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "自定义输入框样式 (input-class)："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value6, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value6 = `$event`
                        }
                        , "input-class" to "custom-input"), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        ))
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px"))), _uA(
                        _cE("text", _uM("class" to "label"), "自定义样式组合 (蓝色主题)："),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value7, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value7 = `$event`
                        }
                        , "btn-class" to "blue-btn", "input-class" to "blue-input", "icon-class" to "blue-icon"), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        ))
                    ), 4),
                    _cE("view", _uM("style" to _nS(_uM("margin-bottom" to "20px", "background-color" to "#1a1a1a", "padding" to "15px", "border-radius" to "8px"))), _uA(
                        _cE("text", _uM("style" to _nS(_uM("color" to "#fff", "margin-bottom" to "10px"))), "暗黑模式：", 4),
                        _cV(_component_uni_number_box, _uM("modelValue" to unref(data).value8, "onUpdate:modelValue" to fun(`$event`: Number){
                            unref(data).value8 = `$event`
                        }
                        , "btn-class" to "dark-btn", "input-class" to "dark-input", "icon-class" to "dark-icon"), null, 8, _uA(
                            "modelValue",
                            "onUpdate:modelValue"
                        )),
                        _cE("text", _uM("style" to _nS(_uM("color" to "#999", "margin-top" to "5px"))), "当前值：" + _tD(unref(data).value8), 5)
                    ), 4)
                ), 4)
            }
        }
        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-title" to _pS(_uM("fontSize" to 18, "fontWeight" to "bold", "color" to "var(--text-color, #333333)", "marginBottom" to 20)), "label" to _pS(_uM("color" to "var(--text-color, #333333)", "opacity" to 0.75, "marginBottom" to 10)), "hint" to _pS(_uM("color" to "var(--text-color, #333333)", "opacity" to 0.6, "marginTop" to 5)), "custom-btn" to _pS(_uM("backgroundColor" to "#28a745")), "custom-input" to _pS(_uM("backgroundColor" to "#fff3cd", "color" to "#856404", "width" to 80)), "dark-btn" to _pS(_uM("backgroundColor" to "#333333")), "dark-input" to _pS(_uM("backgroundColor" to "#333333", "color" to "#ffffff")), "dark-icon" to _pS(_uM("backgroundColor" to "#ffffff")), "blue-btn" to _pS(_uM("backgroundColor" to "#007aff")), "blue-input" to _pS(_uM("backgroundColor" to "#e8f4ff", "color" to "#007aff")), "blue-icon" to _pS(_uM("backgroundColor" to "#ffffff")))
            }
        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()
    }
}
