提交 23e24be7 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新API示例

上级 20fdb4dc
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
......@@ -50,7 +49,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
export default {
......
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
......@@ -18,7 +17,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
type Item = {
......
<template>
<view>
<page-head title="getCurrentPages"></page-head>
<view class="uni-padding-wrap">
<button @click="_getCurrentPages">getCurrentPages</button>
......@@ -10,7 +9,6 @@
</template>
</view>
</view>
</view>
</template>
<script>
......
<template>
<view class="uni-padding-wrap">
<page-head id="page-head" title="getElementById-multiple-root-node"></page-head>
<view class="uni-padding-wrap">
<text id="text">this is text</text>
<view id="view" class="uni-common-mt" style="border: 1px solid red">this is view</view>
<button class="uni-btn" @click="changePageHeadBackgroundColor">
......
<template>
<view>
<page-head id="page-head" title="getElementById"></page-head>
<view class="uni-padding-wrap">
<text id="text">this is text</text>
......@@ -17,7 +16,6 @@
跳转多根节点示例
</button>
</view>
</view>
</template>
<script lang="uts">
......
<template>
<view>
<page-head title="getLaunchOptionsSync"></page-head>
<view class="uni-padding-wrap">
<button @click="getLaunchOptionsSync">getLaunchOptionsSync</button>
......@@ -8,7 +7,6 @@
<text style="margin-top: 5px">{{ launchOptionsPath }}</text>
</view>
</view>
</view>
</template>
<script lang="uts">
......
<template>
<view>
<page-head :title="title"></page-head>
<view style="padding: 4px;">
<text class="hello-text">
......@@ -36,7 +35,6 @@
<button class="uni-btn" type="default" @tap="getLocationTap">获取定位</button>
</view>
</view>
</view>
</template>
<script lang="uts">
type ItemType = {
......
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view style="background:#FFFFFF; padding:20px;">
......@@ -17,7 +16,6 @@
<button class="uni-common-mt" @tap="clear">清空</button>
</view>
</view>
</view>
</template>
<script>
export default {
......
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
......@@ -42,7 +41,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
......
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
......@@ -18,7 +17,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
import { setStatusBarHeight } from '@/store/index.uts'
......
<template>
<view>
<view style="flex: 1;">
<button @click="addInterceptor">添加路由拦截器</button>
<button @click="removeInterceptor">移除路由拦截器</button>
<text>点击下方按钮{{msg}}</text>
......
<template>
<view>
<view style="flex: 1;">
<text style="text-align: center;">测试页面 1</text>
</view>
</template>
......
<template>
<view>
<view style="flex: 1;">
<text style="text-align: center;">测试页面 2</text>
</view>
</template>
......
<template>
<view>
<page-head title="loadFontFace-child"></page-head>
<view class="uni-padding-wrap">
<text class="font-size-20">上一页全局加载字体:</text>
......@@ -24,7 +23,6 @@
>font-family: 阿里妈妈刀隶体-woff2</text
> -->
</view>
</view>
</template>
<script>
......
<template>
<view>
<page-head title="loadFontFace"></page-head>
<view class="uni-padding-wrap">
<text class="font-size-20">全局加载字体:</text>
......@@ -23,7 +22,6 @@
<text class="item" style="font-family: AlimamaDaoLiTiWOFF2">font-family: 阿里妈妈刀隶体-woff2</text>
<button class="uni-btn" @click="navigateToChild">跳转子页面测试字体生效范围</button>
</view>
</view>
</template>
<script>
export default {
......
<template>
<view class="uni-padding-wrap">
<page-head title="new-page-1" />
<view class="uni-padding-wrap">
<text>onLoad 接收到参数</text>
<text>data: {{ data }}</text>
<button @tap="navigateBackWithDelta2" class="uni-btn">
......
<template>
<view class="uni-padding-wrap">
<view class="uni-padding-wrap" style="flex: 1;">
<page-head title="new-page-3" />
</view>
</template>
......@@ -93,6 +93,7 @@
<style>
.page {
padding: 15px;
flex: 1;
}
.btn {
......
<template>
<view>
<page-head title="setNavigationBarColor"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<button @tap="setNavigationBarColor1" class="uni-btn">
......@@ -12,7 +11,6 @@
跳转自定义导航栏页面
</button>
</view>
</view>
</template>
<script>
......
<template>
<view>
<page-head title="setNavigationBarTitle"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<button @tap="setNavigationBarNewTitle" class="uni-btn">
......@@ -9,7 +8,6 @@
设置超长标题
</button>
</view>
</view>
</template>
<script>
......
<template>
<view>
<page-head title="websocket通讯示例"></page-head>
<view class="uni-padding-wrap">
<view class="uni-btn-v">
......@@ -16,7 +15,6 @@
<text class="websocket-tips">发送消息后会收到一条服务器返回的消息(与发送的消息内容一致)</text>
</view>
</view>
</view>
</template>
<script>
......
<template>
<view>
<page-head title="websocket通讯示例"></page-head>
<view class="uni-padding-wrap">
<view class="uni-btn-v">
......@@ -16,7 +15,6 @@
<text class="websocket-tips">发送消息后会收到一条服务器返回的消息(与发送的消息内容一致)</text>
</view>
</view>
</view>
</template>
<script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册