提交 22edc0a2 编写于 作者: Y yurj26

feat: 组件示例去除scroll-view的条件编译

上级 134855f4
......@@ -46,9 +46,7 @@
{{ text }}
</button>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<scroll-view style="flex: 1" :scroll-y="true">
<view class="content">
<boolean-data :defaultValue="false" title="按钮是否镂空,背景色透明" @change="change_plain_boolean"></boolean-data>
<boolean-data :defaultValue="false" title="是否禁用" @change="change_disabled_boolean"></boolean-data>
......@@ -57,9 +55,7 @@
<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>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
......@@ -114,9 +114,7 @@ export default {
>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<scroll-view style="flex: 1" :scroll-y="true">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data
......@@ -249,10 +247,7 @@ export default {
</checkbox-group>
</view>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
<template>
<scroll-view style="flex: 1" :scroll-y="true">
<page-head title="拖拽图标测试相关事件"></page-head>
<view class="container">
<view class="view-box">
......@@ -16,6 +17,7 @@
<text>screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}</text>
</template>
</view>
</scroll-view>
</template>
<script>
......
......@@ -146,9 +146,7 @@
</list-view>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
<scroll-view style="flex:1" :scroll-y="true">
<view class="content">
<boolean-data :defaultValue="false" title="设置当前下拉刷新状态,true 表示下拉刷新已经被触发,false 表示下拉刷新未被触发"
@change="change_refresher_triggered_boolean"></boolean-data>
......@@ -177,9 +175,7 @@
</button>
</navigator>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
......@@ -73,9 +73,7 @@ export default {
</progress>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<scroll-view style="flex: 1" :scroll-y="true">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data
......@@ -173,9 +171,7 @@ export default {
</view>
</view>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
......@@ -107,9 +107,7 @@ export default {
</radio>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<scroll-view style="flex: 1" :scroll-y="true">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data
......@@ -232,9 +230,7 @@ export default {
</radio-group>
</view>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
......@@ -97,9 +97,7 @@
@changing="slider_changing" style="width: 90%"><text>uni-app-x</text></slider>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<scroll-view style="flex: 1" :scroll-y="true">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data :defaultValue="false" title="是否显示当前 value" @change="change_show_value_boolean"></boolean-data>
......@@ -151,9 +149,7 @@
:block-size="sliderBlockSize" />
</view>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
......@@ -77,9 +77,7 @@ export default {
/>
</view>
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<scroll-view style="flex: 1" :scroll-y="true">
<view class="content">
<boolean-data
:defaultValue="false"
......@@ -129,9 +127,7 @@ export default {
@change="radio_change_inputmode_enum"
></enum-data>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册