view.uvue 15.0 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






































































































































    export default {
        data() {
            return {}
        }
    }


const GenPagesComponentViewViewStyles = [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"]])]])], ["flex-item", new Map<string, any>([["", new Map<string, any>([["width", "33.3%"], ["height", "200rpx"], ["display", "flex"], ["justifyContent", "center"], ["alignItems", "center"]])]])], ["flex-item-V", new Map<string, any>([["", new Map<string, any>([["width", "100%"], ["height", "150rpx"], ["textAlign", "center"], ["lineHeight", "150rpx"]])]])], ["text-box", new Map<string, any>([["", new Map<string, any>([["marginTop", "15rpx"], ["marginRight", "10rpx"], ["marginBottom", "15rpx"], ["marginLeft", "10rpx"], ["paddingTop", 0], ["paddingRight", "20rpx"], ["paddingBottom", 0], ["paddingLeft", "20rpx"], ["backgroundColor", "#ebebeb"], ["height", "70rpx"], ["display", "flex"], ["justifyContent", "center"], ["alignItems", "center"], ["flexDirection", "row"]])]])], ["text", new Map<string, any>([["", new Map<string, any>([["lineHeight", "70rpx"], ["color", "#777777"], ["fontSize", "26rpx"]])]])]])]
Y
yurj26 已提交
143
import _easycom_page_head from '/Users/yuanrenjie/Documents/dcloud/hello-uniapp x/unpackage/dist/dev/.uvue/components/page-head/page-head.vue'
Y
init  
yurj26 已提交
144
@Suppress("UNUSED_PARAMETER") function GenPagesComponentViewViewRender(_ctx: GenPagesComponentViewView): VNode | null {
Y
yurj26 已提交
145
const _component_page_head = resolveEasyComponent("page-head",_easycom_page_head)
Y
init  
yurj26 已提交
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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370

  return createElementVNode("view", null, [
    createVNode(_component_page_head, new Map<string, any | null>([["title", "view"]])),
    createElementVNode("view", new Map<string, any | null>([["class", "uni-padding-wrap uni-common-mt"]]), [
      createElementVNode("view", null, [
        createElementVNode("text", new Map<string, any | null>([["class", "uni-hello-text"]]), " Flex是Flexible Box的缩写,意为“弹性布局”,用来为盒状模型提供最大的灵活性。当设置display: flex后,继续给view等容器组件设置flex-direction: row或column,就可以在该容器内按行或列排布子组件。uni-app推荐使用flex布局。因为flex布局有利于跨更多平台,尤其是采用原生渲染的平台。 ")
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-title uni-common-mt"]]), [
        createElementVNode("text", new Map<string, any | null>([["class", "uni-title-text"]]), " flex-direction: row "),
        createElementVNode("text", new Map<string, any | null>([["class", "uni-subtitle-text"]]), " 横向布局 ")
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
        createElementVNode("view", new Map<string, any | null>([["class", "flex-item uni-bg-red"]]), [
          createElementVNode("text", new Map<string, any | null>([["style", "color: #fff;"]]), "A")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "flex-item uni-bg-green"]]), [
          createElementVNode("text", new Map<string, any | null>([["style", "color: #fff;"]]), "B")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "flex-item uni-bg-blue"]]), [
          createElementVNode("text", new Map<string, any | null>([["style", "color: #fff;"]]), "C")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-title uni-common-mt"]]), [
        createElementVNode("text", new Map<string, any | null>([["class", "uni-title-text"]]), " column "),
        createElementVNode("text", new Map<string, any | null>([["class", "uni-subtitle-text"]]), " 纵向布局 ")
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-column"]]), [
        createElementVNode("view", new Map<string, any | null>([["class", "flex-item flex-item-V uni-bg-red"]]), [
          createElementVNode("text", new Map<string, any | null>([["style", "color: #fff;"]]), "A")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "flex-item flex-item-V uni-bg-green"]]), [
          createElementVNode("text", new Map<string, any | null>([["style", "color: #fff;"]]), "B")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "flex-item flex-item-V uni-bg-blue"]]), [
          createElementVNode("text", new Map<string, any | null>([["style", "color: #fff;"]]), "C")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-title uni-common-mt"]]), [
        createElementVNode("text", new Map<string, any | null>([["class", "uni-title-text"]]), " 更多布局示例 "),
        createElementVNode("text", new Map<string, any | null>([["class", "uni-subtitle-text"]]), " flex布局演示 ")
      ]),
      createElementVNode("view", null, [
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "纵向布局-自动宽度")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 300rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "纵向布局-固定宽度")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-自动宽度")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-自动宽度")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([
        ["class", "uni-flex uni-row"],
        ["style", "-webkit-justify-content: center;justify-content: center;"]
      ]), [
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-居中")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-居中")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([
        ["class", "uni-flex uni-row"],
        ["style", "-webkit-justify-content: flex-end;justify-content: flex-end;"]
      ]), [
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-居右")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-居右")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-平均分布")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-平均分布")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([
        ["class", "uni-flex uni-row"],
        ["style", "-webkit-justify-content: space-between;justify-content: space-between;"]
      ]), [
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-两端对齐")
        ]),
        createElementVNode("view", new Map<string, any | null>([["class", "text-box"]]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "横向布局-两端对齐")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 200rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "固定宽度")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "自动占满余量")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 200rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "固定宽度")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "自动占满")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 200rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "固定宽度")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([
        ["class", "uni-flex uni-row"],
        ["style", "-webkit-flex-wrap: wrap;flex-wrap: wrap;"]
      ]), [
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 280rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "一行显示不全,wrap折行")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 280rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "一行显示不全,wrap折行")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "width: 280rpx;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "一行显示不全,wrap折行")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;height: 200rpx;-webkit-justify-content: center;justify-content: center;-webkit-align-items: flex-start;align-items: flex-start;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "垂直居顶")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;height: 200rpx;-webkit-justify-content: center;justify-content: center;-webkit-align-items: center;align-items: center;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "垂直居中")
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box"],
          ["style", "-webkit-flex: 1;flex: 1;height: 200rpx;-webkit-justify-content: center;justify-content: center;-webkit-align-items: flex-end;align-items: flex-end;"]
        ]), [
          createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "垂直居底")
        ])
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-title uni-common-mt"]]), [
        createElementVNode("text", new Map<string, any | null>([["class", "uni-title-text"]]), " 组合示例 "),
        createElementVNode("text", new Map<string, any | null>([["class", "uni-subtitle-text"]]), " flex布局演示 ")
      ]),
      createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
        createElementVNode("view", new Map<string, any | null>([
          ["class", "text-box uni-flex"],
          ["style", "width: 200rpx;height: 220rpx;-webkit-justify-content: center;justify-content: center;-webkit-align-items: center;align-items: center;"]
        ]), [
          createElementVNode("image", new Map<string, any | null>([
            ["src", "/static/plus.png"],
            ["style", "width: 150rpx;height: 150rpx;"]
          ]))
        ]),
        createElementVNode("view", new Map<string, any | null>([
          ["class", "uni-flex uni-column"],
          ["style", "-webkit-flex: 1;flex: 1;-webkit-justify-content: space-between;justify-content: space-between;"]
        ]), [
          createElementVNode("view", new Map<string, any | null>([
            ["class", "text-box"],
            ["style", "height: 120rpx;justify-content: start;align-items: start;padding-left: 20rpx;"]
          ]), [
            createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "文字居左,留出左间距")
          ]),
          createElementVNode("view", new Map<string, any | null>([["class", "uni-flex uni-row"]]), [
            createElementVNode("view", new Map<string, any | null>([
              ["class", "text-box"],
              ["style", "-webkit-flex: 1;flex: 1;"]
            ]), [
              createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "剩余数量")
            ]),
            createElementVNode("view", new Map<string, any | null>([
              ["class", "text-box"],
              ["style", "-webkit-flex: 1;flex: 1;"]
            ]), [
              createElementVNode("text", new Map<string, any | null>([["class", "text"]]), "立即购买")
            ])
          ])
        ])
      ])
    ])
  ])
}