mirror of
https://github.com/youzan/vant.git
synced 2026-05-16 01:07:43 +08:00
docs: remove demo-section
This commit is contained in:
+23
-25
@@ -1,31 +1,29 @@
|
||||
<template>
|
||||
<demo-section>
|
||||
<demo-block :title="t('basicUsage')">
|
||||
<van-sticky>
|
||||
<van-button type="primary" style="margin-left: 15px;">
|
||||
{{ t('basicUsage') }}
|
||||
<demo-block :title="t('basicUsage')">
|
||||
<van-sticky>
|
||||
<van-button type="primary" style="margin-left: 15px;">
|
||||
{{ t('basicUsage') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="t('offsetTop')">
|
||||
<van-sticky :offset-top="50">
|
||||
<van-button type="primary" style="margin-left: 115px;">
|
||||
{{ t('offsetTop') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</demo-block>
|
||||
|
||||
<demo-block v-if="!isWeapp" :title="t('setContainer')">
|
||||
<div ref="container" style="height: 150px; background-color: #fff;">
|
||||
<van-sticky :container="container">
|
||||
<van-button type="warning" style="margin-left: 215px;">
|
||||
{{ t('setContainer') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="t('offsetTop')">
|
||||
<van-sticky :offset-top="50">
|
||||
<van-button type="primary" style="margin-left: 115px;">
|
||||
{{ t('offsetTop') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</demo-block>
|
||||
|
||||
<demo-block v-if="!isWeapp" :title="t('setContainer')">
|
||||
<div ref="container" style="height: 150px; background-color: #fff;">
|
||||
<van-sticky :container="container">
|
||||
<van-button type="warning" style="margin-left: 215px;">
|
||||
{{ t('setContainer') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</div>
|
||||
</demo-block>
|
||||
</demo-section>
|
||||
</div>
|
||||
</demo-block>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user