提交 e925b0da 编写于 作者: W WOSHIMAHAIFENG

补充button示例文案

上级 475a2441
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
<enum-data :items="size_enum" title="按钮的大小" @change="radio_change_size_enum"></enum-data> <enum-data :items="size_enum" title="按钮的大小" @change="radio_change_size_enum"></enum-data>
<enum-data :items="type_enum" title="按钮的类型" @change="radio_change_type_enum"></enum-data> <enum-data :items="type_enum" title="按钮的类型" @change="radio_change_type_enum"></enum-data>
<input-data :defaultValue="text" title="按钮的文案" type="text" @confirm="confirm_text_input"></input-data> <input-data :defaultValue="text" title="按钮的文案" type="text" @confirm="confirm_text_input"></input-data>
<view style="height: 10px;"></view>
<button @click="navigateToChild">更多示例</button> <button @click="navigateToChild">更多示例</button>
</view> </view>
</scroll-view> </scroll-view>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''" @longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'"> :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} type-default
</button> </button>
</view> </view>
<view class="container"> <view class="container">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''" @longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'"> :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} type-primary
</button> </button>
</view> </view>
<view class="container"> <view class="container">
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''" @longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'"> :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} type-warn
</button> </button>
</view> </view>
<!--size--> <!--size-->
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn" @touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'"> :class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} size-default
</button> </button>
</view> </view>
<view class="container"> <view class="container">
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn" @touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'"> :class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} size-mini
</button> </button>
</view> </view>
<!--plain--> <!--plain-->
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''" @longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'"> :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} plain-true
</button> </button>
</view> </view>
<view class="container"> <view class="container">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''" @longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'"> :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} plain-false
</button> </button>
</view> </view>
<!--disable--> <!--disable-->
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn" @touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'"> :class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} disable-false
</button> </button>
</view> </view>
<view class="container"> <view class="container">
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn" @touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'"> :class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }} disable-true
</button> </button>
</view> </view>
</view> </view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册