提交 8f0bd60a 编写于 作者: W WOSHIMAHAIFENG

添加 hover-class="none"的示例与disabled 样式更改示例

上级 f0dca21a
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
</script> </script>
<template> <template>
<scroll-view direction="vertical" style="flex:1">
<view class="main"> <view class="main">
<!--type--> <!--type-->
<view class="container"> <view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name" <button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name"
...@@ -136,9 +138,15 @@ ...@@ -136,9 +138,15 @@
</view> </view>
<view class="content"> <view class="content">
<button style="margin: 10px;" type="primary" size="default" :disabled="disabled_boolean">uni-app x</button> <button style="margin: 10px;" type="primary" size="default" :disabled="disabled_boolean">uni-app x</button>
<button style="margin: 10px;" type="primary" @tap="change_disabled_boolean(!disabled_boolean)">修改disabled为{{!disabled_boolean}}</button> <button style="margin: 10px;" type="primary"
@tap="change_disabled_boolean(!disabled_boolean)">修改disabled为{{!disabled_boolean}}</button>
</view>
<view class="content">
<button style="margin: 10px;" type="primary" size="default" :disabled="disabled_boolean" hover-class="none">hover-class none</button>
</view> </view>
</view> </view>
</scroll-view>
</template> </template>
<style> <style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册