提交 faa4b52c 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

style(component): general-attribute

上级 e9349ef9
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
<view :id="generalId" :class="generalClass" :name="generalName" :title="generalTitle" :data-test="generalData" style="background-color: aqua" ref="general-target"> </view> <view :id="generalId" :class="generalClass" :name="generalName" :title="generalTitle" :data-test="generalData" style="background-color: aqua" ref="general-target"> </view>
<button class="btn uni-common-mt" @click="validateGeneralAttributes">{{ validateGeneralAttrText }}</button> <button class="btn uni-common-mt" @click="validateGeneralAttributes">{{ validateGeneralAttrText }}</button>
<view class="view-class" :hover-class="hoverClass" ref="view-target"> <view class="view-class" :hover-class="hoverClass" ref="view-target">
<text>按下 50 ms 后背景变红</text> <text class="text">按下 50 ms 后背景变红</text>
<text>抬起 400 ms 后背景恢复</text> <text class="text">抬起 400 ms 后背景恢复</text>
</view> </view>
<view class="view-class" :hover-class="hoverClass" :hover-start-time="1000" :hover-stay-time="1000" ref="view-target"> <view class="view-class" :hover-class="hoverClass" :hover-start-time="1000" :hover-stay-time="1000" ref="view-target">
<text>按下 1000 ms 后背景变红</text> <text class="text">按下 1000 ms 后背景变红</text>
<text>抬起 1000 ms 后背景恢复</text> <text class="text">抬起 1000 ms 后背景恢复</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -85,7 +85,8 @@ export default { ...@@ -85,7 +85,8 @@ export default {
height: 100px; height: 100px;
background-color: antiquewhite; background-color: antiquewhite;
} }
.view-class text { .view-class .text {
margin-top: 5px;
text-align: center; text-align: center;
} }
.hover-class { .hover-class {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册