在template里定义,在state里写组件,在sprite里写动作
div分组list列表class名称
我是自己总结的,不对的话告诉我
<template>
<text class="hhh">测试<text>
<template>
text是文本组件,class表示的名称,在中间是文本内容,但是光有这个是不行的,因为要显示,还要在state里写下样式,因此,在下面state里,要写下样式
<state>
width: 400px;
height: 60px;
margin-top: 75px;
border-radius: 43px;
background-color: #09ba07;
font-size: 30px;
color: #ffffff;
<state>
就能输出测试了
如果组件比较多,就能使用分组
<template>
<div class="page">
<text class="hhh">测试<text>
<div>
就能分组了
Comments NOTHING