button.uvue 6.5 KB
Newer Older
Y
init  
yurj26 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177

































    export default {
        data() {
            return {
                title: 'button',
                loading: false,
                _timer: 0
            }
        },
        onShow() {
            // this.clearTimer();
            // this._timer = setTimeout(() => {
            //     // this.loading = true;
            // }, 300)
        },
        onUnload() {
            // this.clearTimer();
            // this.loading = false;
        },
        methods: {
            // clearTimer() {
            //     if (this._timer != 0) {
            //         clearTimeout(this._timer);
            //     }
            // }
        },
    }


const GenPagesComponentButtonButtonStyles = [new Map<string, Map<string, Map<string, any>>>([["common-page-head", new Map<string, any>([["", new Map<string, any>([["paddingTop", "35rpx"], ["paddingRight", "35rpx"], ["paddingBottom", "35rpx"], ["paddingLeft", "35rpx"], ["flexDirection", "row"], ["justifyContent", "center"]])]])], ["common-page-head-title-box", new Map<string, any>([["", new Map<string, any>([["paddingTop", 0], ["paddingRight", "40rpx"], ["paddingBottom", 0], ["paddingLeft", "40rpx"], ["height", "88rpx"], ["borderBottomWidth", "2rpx"], ["borderBottomStyle", "solid"], ["borderBottomColor", "#D8D8D8"]])]])], ["common-page-head-title", new Map<string, any>([["", new Map<string, any>([["lineHeight", "88rpx"], ["fontSize", "30rpx"], ["color", "#BEBEBE"]])]])], ["button", new Map<string, any>([["", new Map<string, any>([["marginTop", "30rpx"]])]])], ["button-sp-area", new Map<string, any>([["", new Map<string, any>([["marginTop", 0], ["marginRight", "auto"], ["marginBottom", 0], ["marginLeft", "auto"], ["width", "60%"]])]])], ["mini-btn", new Map<string, any>([["", new Map<string, any>([["marginRight", "10rpx"], ["marginBottom", "30rpx"]])]])]])]
@Suppress("UNUSED_PARAMETER") function GenPagesComponentButtonButtonRender(_ctx: GenPagesComponentButtonButton): VNode | null {
const _component_page_head = resolveComponent("page-head")
const _component_button = resolveComponent("button")

  return createElementVNode("view", null, [
    createVNode(_component_page_head, new Map<string, any | null>([["title", _ctx.title]]), null, 8 /* PROPS */, ["title"]),
    createElementVNode("view", new Map<string, any | null>([["class", "uni-padding-wrap uni-common-mt"]]), [
      createVNode(_component_button, new Map<string, any | null>([["type", "primary"]]), new Map<string, any | null>([
        ["default", ((): any[] => ["页面主操作 Normal"])],
        ["_", 1 /* STABLE */]
      ])),
      createCommentVNode(" <button type=\"primary\" :loading=\"loading\" class=\"button\">页面主操作 Loading</button> "),
      createVNode(_component_button, new Map<string, any | null>([
        ["type", "primary"],
        ["disabled", true],
        ["class", "button"]
      ]), new Map<string, any | null>([
        ["default", ((): any[] => ["页面主操作 Disabled"])],
        ["_", 1 /* STABLE */]
      ])),
      createVNode(_component_button, new Map<string, any | null>([
        ["type", "default"],
        ["class", "button"]
      ]), new Map<string, any | null>([
        ["default", ((): any[] => ["页面次要操作 Normal"])],
        ["_", 1 /* STABLE */]
      ])),
      createVNode(_component_button, new Map<string, any | null>([
        ["type", "default"],
        ["disabled", true],
        ["class", "button"]
      ]), new Map<string, any | null>([
        ["default", ((): any[] => ["页面次要操作 Disabled"])],
        ["_", 1 /* STABLE */]
      ])),
      createVNode(_component_button, new Map<string, any | null>([
        ["type", "warn"],
        ["class", "button"]
      ]), new Map<string, any | null>([
        ["default", ((): any[] => ["警告类操作 Normal"])],
        ["_", 1 /* STABLE */]
      ])),
      createVNode(_component_button, new Map<string, any | null>([
        ["type", "warn"],
        ["disabled", true],
        ["class", "button"]
      ]), new Map<string, any | null>([
        ["default", ((): any[] => ["警告类操作 Disabled"])],
        ["_", 1 /* STABLE */]
      ])),
      createElementVNode("view", new Map<string, any | null>([["class", "button-sp-area"]]), [
        createVNode(_component_button, new Map<string, any | null>([
          ["type", "primary"],
          ["plain", true],
          ["class", "button"]
        ]), new Map<string, any | null>([
          ["default", ((): any[] => ["按钮"])],
          ["_", 1 /* STABLE */]
        ])),
        createVNode(_component_button, new Map<string, any | null>([
          ["type", "primary"],
          ["disabled", true],
          ["plain", true],
          ["class", "button"]
        ]), new Map<string, any | null>([
          ["default", ((): any[] => [" 不可点击的按钮 "])],
          ["_", 1 /* STABLE */]
        ])),
        createVNode(_component_button, new Map<string, any | null>([
          ["type", "default"],
          ["plain", true],
          ["class", "button"]
        ]), new Map<string, any | null>([
          ["default", ((): any[] => ["按钮"])],
          ["_", 1 /* STABLE */]
        ])),
        createVNode(_component_button, new Map<string, any | null>([
          ["type", "default"],
          ["disabled", true],
          ["plain", true],
          ["class", "button"]
        ]), new Map<string, any | null>([
          ["default", ((): any[] => ["按钮"])],
          ["_", 1 /* STABLE */]
        ])),
        createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
          createVNode(_component_button, new Map<string, any | null>([
            ["class", "button mini-btn"],
            ["type", "primary"],
            ["size", "mini"]
          ]), new Map<string, any | null>([
            ["default", ((): any[] => ["按钮"])],
            ["_", 1 /* STABLE */]
          ])),
          createVNode(_component_button, new Map<string, any | null>([
            ["class", "button mini-btn"],
            ["type", "default"],
            ["size", "mini"]
          ]), new Map<string, any | null>([
            ["default", ((): any[] => ["按钮"])],
            ["_", 1 /* STABLE */]
          ])),
          createVNode(_component_button, new Map<string, any | null>([
            ["class", "button mini-btn"],
            ["type", "warn"],
            ["size", "mini"]
          ]), new Map<string, any | null>([
            ["default", ((): any[] => ["按钮"])],
            ["_", 1 /* STABLE */]
          ]))
        ])
      ])
    ])
  ])
}