提交 475a2441 编写于 作者: W WOSHIMAHAIFENG

添加示例

上级 b02dea9c
...@@ -30,7 +30,12 @@ ...@@ -30,7 +30,12 @@
change_default_style(checked : boolean) { this.default_style = checked }, change_default_style(checked : boolean) { this.default_style = checked },
radio_change_size_enum(checked : number) { this.size_enum_current = checked }, radio_change_size_enum(checked : number) { this.size_enum_current = checked },
radio_change_type_enum(checked : number) { this.type_enum_current = checked }, radio_change_type_enum(checked : number) { this.type_enum_current = checked },
confirm_text_input(value : string) { this.text = value } confirm_text_input(value : string) { this.text = value },
navigateToChild() {
uni.navigateTo({
url: 'buttonstatus',
})
},
} }
} }
</script> </script>
...@@ -53,6 +58,7 @@ ...@@ -53,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>
<button @click="navigateToChild">更多示例</button>
</view> </view>
</scroll-view> </scroll-view>
</template> </template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册