提交 75cd33b9 编写于 作者: Y yurj26

chore: remove invalid css

上级 a12c8953
...@@ -40,9 +40,8 @@ ...@@ -40,9 +40,8 @@
height: 80px; height: 80px;
} }
.uni-hello-text { .uni-text-box {
margin-bottom: 20px; margin-bottom: 20px;
color: #7A7E83;
} }
.hello-text { .hello-text {
......
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
.uni-input { .uni-input {
height: 50rpx; height: 50rpx;
padding: 15rpx 25rpx; padding: 15rpx 25rpx;
line-height: 50rpx; /* line-height: 50rpx;
font-size: 28rpx; font-size: 28rpx; */
background: #FFF; background: #FFF;
flex: 1; flex: 1;
box-sizing: content-box; box-sizing: content-box;
...@@ -116,17 +116,14 @@ ...@@ -116,17 +116,14 @@
/* 背景色 */ /* 背景色 */
.uni-bg-red { .uni-bg-red {
background: #F76260; background: #F76260;
color: #FFF;
} }
.uni-bg-green { .uni-bg-green {
background: #09BB07; background: #09BB07;
color: #FFF;
} }
.uni-bg-blue { .uni-bg-blue {
background: #007AFF; background: #007AFF;
color: #FFF;
} }
.uni-btn-v { .uni-btn-v {
...@@ -154,6 +151,6 @@ ...@@ -154,6 +151,6 @@
.uni-textarea { .uni-textarea {
padding: 18rpx; padding: 18rpx;
line-height: 1.6; /* line-height: 1.6;
font-size: 28rpx; font-size: 28rpx; */
} }
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
.uni-collapse-item__title { .uni-collapse-item__title {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
line-height: 22px;
padding: 12px; padding: 12px;
background-color: #fff; background-color: #fff;
} }
......
...@@ -292,8 +292,8 @@ ...@@ -292,8 +292,8 @@
.uni-input { .uni-input {
height: 28px; height: 28px;
line-height: 28px; /* line-height: 28px;
font-size: 15px; font-size: 15px; */
padding: 0px; padding: 0px;
flex: 1; flex: 1;
background-color: #ffffff; background-color: #ffffff;
......
...@@ -206,8 +206,6 @@ ...@@ -206,8 +206,6 @@
.swiper-item { .swiper-item {
width: 100%; width: 100%;
height: 300rpx; height: 300rpx;
line-height: 300rpx;
text-align: center;
} }
.swiper-item-Text { .swiper-item-Text {
......
...@@ -135,8 +135,6 @@ export default { ...@@ -135,8 +135,6 @@ export default {
.flex-item-V { .flex-item-V {
width: 100%; width: 100%;
height: 150rpx; height: 150rpx;
text-align: center;
line-height: 150rpx;
} }
.text-box { .text-box {
......
...@@ -6,16 +6,19 @@ ...@@ -6,16 +6,19 @@
<view class="uni-header-logo"> <view class="uni-header-logo">
<image class="uni-header-image" src="/static/apiIndex.png"></image> <image class="uni-header-image" src="/static/apiIndex.png"></image>
</view> </view>
<view class="uni-hello-text"> <view class="uni-text-box">
<text class="hello-text">以下将演示uni-app接口能力,详细文档见:</text> <text class="hello-text">以下将演示uni-app接口能力,详细文档见:</text>
<u-link :href="'https://uniapp.dcloud.io/api/'" :text="'https://uniapp.dcloud.io/api/'" :inWhiteList="true"></u-link> <u-link :href="'https://uniapp.dcloud.io/api/'" :text="'https://uniapp.dcloud.io/api/'"
:inWhiteList="true"></u-link>
</view> </view>
<uni-collapse> <uni-collapse>
<template v-for="item in list" :key="item.id"> <template v-for="item in list" :key="item.id">
<uni-collapse-item :title="item.name" class="item"> <uni-collapse-item :title="item.name" class="item">
<view class="uni-navigate-item" :hover-class="page.enable == false?'':'is--active'" v-for="(page, key) in item.pages" :key="key" @click="goDetailPage(page)"> <view class="uni-navigate-item" :hover-class="page.enable == false?'':'is--active'"
<text class="uni-navigate-text" :class="page.enable == false ? 'text-disabled' : ''">{{ page.name }}</text> v-for="(page, key) in item.pages" :key="key" @click="goDetailPage(page)">
<text class="uni-navigate-text"
:class="page.enable == false ? 'text-disabled' : ''">{{ page.name }}</text>
<image :src="arrowRightIcon" class="uni-icon"></image> <image :src="arrowRightIcon" class="uni-icon"></image>
</view> </view>
</uni-collapse-item> </uni-collapse-item>
...@@ -26,7 +29,8 @@ ...@@ -26,7 +29,8 @@
<!-- #ifdef APP --> <!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif --> <!-- #endif -->
<view ref="pop" @click="hidePop()" style="width: 100%; height: 100%; position: absolute;align-items: center;justify-content: center; display: none;background-color: rgba(16, 16, 16, 0.5);"> <view ref="pop" @click="hidePop()"
style="width: 100%; height: 100%; position: absolute;align-items: center;justify-content: center; display: none;background-color: rgba(16, 16, 16, 0.5);">
<view style="width: 90%;background-color: white;" @click="stopClickPop"> <view style="width: 90%;background-color: white;" @click="stopClickPop">
<api-set-tabbar></api-set-tabbar> <api-set-tabbar></api-set-tabbar>
</view> </view>
...@@ -75,7 +79,7 @@ ...@@ -75,7 +79,7 @@
{ {
name: '事件总线event-bus', name: '事件总线event-bus',
url: 'event-bus', url: 'event-bus',
api:["$on","$once","$off","$emit"] api: ["$on", "$once", "$off", "$emit"]
}, },
{ {
name: '获取启动参数', name: '获取启动参数',
...@@ -95,7 +99,7 @@ ...@@ -95,7 +99,7 @@
{ {
name: '页面跳转', name: '页面跳转',
url: 'navigator', url: 'navigator',
api:["navigator","reLaunch","navigateBack","redirectTo","switchTab"] api: ["navigator", "reLaunch", "navigateBack", "redirectTo", "switchTab"]
}, },
/* /*
{ {
...@@ -110,12 +114,12 @@ ...@@ -110,12 +114,12 @@
{ {
name: '设置TabBar', name: '设置TabBar',
url: 'set-tabbar', url: 'set-tabbar',
api:["showTabBar","hideTabBar","showTabBarRedDot","hideTabBarRedDot","setTabBarBadge","removeTabBarBadge","setTabBarStyle","setTabBarItem"] api: ["showTabBar", "hideTabBar", "showTabBarRedDot", "hideTabBarRedDot", "setTabBarBadge", "removeTabBarBadge", "setTabBarStyle", "setTabBarItem"]
}, },
{ {
name: '页面下拉刷新', name: '页面下拉刷新',
url: 'pull-down-refresh', url: 'pull-down-refresh',
api:["stopPullDownRefresh"] api: ["stopPullDownRefresh"]
}, },
{ {
name: '将页面滚动到指定位置', name: '将页面滚动到指定位置',
...@@ -147,12 +151,12 @@ ...@@ -147,12 +151,12 @@
{ {
name: 'socketTask', name: 'socketTask',
url: 'websocket-socketTask', url: 'websocket-socketTask',
api:[""] //它不是uni.的api api: [""] //它不是uni.的api
}, },
{ {
name: '全局websocket', name: '全局websocket',
url: 'websocket-global', url: 'websocket-global',
api:["connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose"] api: ["connectSocket", "onSocketOpen", "onSocketError", "sendSocketMessage", "onSocketMessage", "closeSocket", "onSocketClose"]
}, },
] as Page[], ] as Page[],
}, },
...@@ -179,7 +183,7 @@ ...@@ -179,7 +183,7 @@
{ {
name: '节点信息', name: '节点信息',
url: 'nodes-info', url: 'nodes-info',
api:["createSelectorQuery"] api: ["createSelectorQuery"]
}, },
{ {
name: '显示操作菜单', name: '显示操作菜单',
...@@ -188,7 +192,7 @@ ...@@ -188,7 +192,7 @@
{ {
name: '显示模态弹窗', name: '显示模态弹窗',
url: 'modal', url: 'modal',
api:["showModal"] api: ["showModal"]
}, },
{ {
name: '显示加载提示框', name: '显示加载提示框',
...@@ -197,7 +201,7 @@ ...@@ -197,7 +201,7 @@
{ {
name: '显示消息提示框', name: '显示消息提示框',
url: 'toast', url: 'toast',
api:["showToast"] api: ["showToast"]
}, },
{ {
name: '动态加载字体', name: '动态加载字体',
...@@ -300,7 +304,7 @@ ...@@ -300,7 +304,7 @@
{ {
name: '图片选择和预览', name: '图片选择和预览',
url: 'preview-image', url: 'preview-image',
api: ["previewImage","closePreviewImage","chooseImage"] api: ["previewImage", "closePreviewImage", "chooseImage"]
}, },
{ {
name: "保存图片到相册", name: "保存图片到相册",
...@@ -372,7 +376,7 @@ ...@@ -372,7 +376,7 @@
{ {
name: 'storage(key-value存储)', name: 'storage(key-value存储)',
url: 'storage', url: 'storage',
api:["uni.getStorageInfo","uni.getStorageInfoSync","uni.getStorage","uni.getStorageSync","uni.setStorage","uni.setStorageSync","uni.removeStorage","uni.removeStorageSync","uni.clearStorage","uni.clearStorageSync"] api: ["uni.getStorageInfo", "uni.getStorageInfoSync", "uni.getStorage", "uni.getStorageSync", "uni.setStorage", "uni.setStorageSync", "uni.removeStorage", "uni.removeStorageSync", "uni.clearStorage", "uni.clearStorageSync"]
}, },
] as Page[], ] as Page[],
}, },
...@@ -495,12 +499,12 @@ ...@@ -495,12 +499,12 @@
}) })
}, },
showPop: function () { showPop: function () {
(this.$refs["pop"] as INode).style.setProperty("display","flex") (this.$refs["pop"] as INode).style.setProperty("display", "flex")
}, },
hidePop: function () { hidePop: function () {
(this.$refs["pop"] as INode).style.setProperty("display","none") (this.$refs["pop"] as INode).style.setProperty("display", "none")
}, },
stopClickPop: function (e:MouseEvent) { stopClickPop: function (e : MouseEvent) {
e.stopPropagation() //点击到pop的非灰色区域,拦截点击事件 e.stopPropagation() //点击到pop的非灰色区域,拦截点击事件
} }
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="uni-header-logo"> <view class="uni-header-logo">
<image class="uni-header-image" src="/static/cssIndex.png"></image> <image class="uni-header-image" src="/static/cssIndex.png"></image>
</view> </view>
<view class="uni-hello-text"> <view class="uni-text-box">
<text class="hello-text">uni-app x目前已支持的CSS属性,展示样式仅供参考,文档详见:</text> <text class="hello-text">uni-app x目前已支持的CSS属性,展示样式仅供参考,文档详见:</text>
<u-link :href="'https://uniapp.dcloud.io/component/'" :text="'https://uniapp.dcloud.io/component/'" <u-link :href="'https://uniapp.dcloud.io/component/'" :text="'https://uniapp.dcloud.io/component/'"
:inWhiteList="true"></u-link> :inWhiteList="true"></u-link>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
src="/static/componentIndex.png" src="/static/componentIndex.png"
></image> ></image>
</view> </view>
<view class="uni-hello-text"> <view class="uni-text-box">
<text class="hello-text" <text class="hello-text"
>uni-app内置组件,展示样式仅供参考,文档详见:</text >uni-app内置组件,展示样式仅供参考,文档详见:</text
> >
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="uni-header-logo"> <view class="uni-header-logo">
<image class="uni-header-image" src="/static/templateIndex.png"></image> <image class="uni-header-image" src="/static/templateIndex.png"></image>
</view> </view>
<view class="uni-hello-text"> <view class="uni-text-box">
<text class="hello-text">以下是部分模板示例,更多模板见插件市场:</text> <text class="hello-text">以下是部分模板示例,更多模板见插件市场:</text>
<u-link <u-link
class="hello-link" class="hello-link"
......
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
} }
.description { .description {
line-height: 14px; /* line-height: 14px; */
} }
.description-text { .description-text {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册