提交 2aa0c9f4 编写于 作者: A Anne_LXM

清理无用的class/id

上级 bb6bdd4f
......@@ -34,11 +34,6 @@
line-height: 20px;
}
.hello-link {
color: #7A7E83;
font-size: 14px;
line-height: 20px;
}
.uni-panel {
margin-bottom: 12px;
......@@ -74,20 +69,6 @@
font-weight: normal;
}
.uni-panel-icon {
margin-left: 15px;
color: #999999;
font-size: 14px;
font-weight: normal;
transform: rotate(0deg);
transition-duration: 0s;
transition-property: transform;
}
.uni-panel-icon-on {
transform: rotate(180deg);
}
.uni-navigate-item {
/* #ifdef H5 */
display: flex;
......@@ -118,10 +99,4 @@
font-size: 14px;
font-weight: normal;
}
.uni-navigate-icon {
margin-left: 15px;
color: #999999;
font-size: 14px;
font-weight: normal;
}
\ No newline at end of file
......@@ -139,10 +139,6 @@
justify-content: center;
}
.uni-textarea-box {
background: #ffffff;
}
.uni-textarea {
padding: 18rpx;
line-height: 1.6;
......
......@@ -45,7 +45,7 @@
</view>
</view>
<view class="uni-list uni-common-pl">
<radio-group @change="_change" class="radio-group">
<radio-group @change="_change">
<radio class="uni-list-cell uni-list-cell-pd radio" v-for="(item, index) in items" :key="item.name"
:class="index < items.length - 1 ? 'uni-list-cell-line' : ''" :value="item.name" :checked="index === current">
{{ item.name }}
......
......@@ -20,10 +20,6 @@
background-color: #dd524d;
}
.btn-yellow {
background-color: #f0ad4e;
}
.desc {
padding: 10px;
color: #999999;
......
<template>
<view id="snapshot-content">
<page-head id="page-head" title="对本页面根view截图"></page-head>
<page-head title="对本页面根view截图"></page-head>
<view class="uni-padding-wrap">
<text id="text">this is text</text>
<text>this is text</text>
</view>
<button class="uni-btn btn-TakeSnapshot" type="primary" @tap="takeSnapshotClick">
点击截图并替换显示下方图片
......
......@@ -6,11 +6,11 @@
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v uni-common-mt">
<input class="uni-input uni-input-default" type="text" v-model="realName" name="real-name" id="real-name"
<input class="uni-input" type="text" v-model="realName" name="real-name"
placeholder="姓名" />
</view>
<view class="uni-btn-v uni-common-mt">
<input class="uni-input uni-input-default" type="text" v-model="idCard" name="id-card" id="id-card"
<input class="uni-input" type="text" v-model="idCard" name="id-card"
placeholder="身份证号" />
</view>
<view class="uni-btn-v uni-common-mt">
......
......@@ -5,11 +5,11 @@
<view style="background:#FFFFFF; padding:40rpx;">
<view class="uni-center">网络状态</view>
<view v-if="hasNetworkType == false">
<view class="uni-h2 uni-center uni-common-mt">未获取</view>
<view class="uni-center uni-common-mt">未获取</view>
<view class="uni-center uni-common-mt">请点击下面按钮获取网络状态</view>
</view>
<view v-if="hasNetworkType == true">
<view class="uni-h2 uni-center uni-common-mt">{{networkType}}</view>
<view class="uni-center uni-common-mt">{{networkType}}</view>
</view>
</view>
<view class="uni-btn-v uni-common-mt">
......
......@@ -12,7 +12,7 @@
</view>
</view>
<view class="uni-list uni-common-pl">
<radio-group @change="radioChange" class="radio-group">
<radio-group @change="radioChange">
<radio class="uni-list-cell uni-list-cell-pd radio" v-for="(item, index) in items" :key="item.value"
:class="index < items.length - 1 ? 'uni-list-cell-line' : ''" :value="item.value"
:checked="index === current">
......
......@@ -3,7 +3,7 @@
<!-- 实际开发中,长列表应该使用list-view -->
<view class="uni-padding-wrap uni-common-mt">
<text class="text" v-for="(num,index) in data" :key="index">list - {{num}}</text>
<view class="uni-loadmore" v-if="showLoadMore">{{loadMoreText}}</view>
<view v-if="showLoadMore">{{loadMoreText}}</view>
</view>
</scroll-view>
</template>
......
......@@ -349,13 +349,4 @@ export default {
</script>
<style>
.btn-setstorage {
background-color: #007aff;
color: #ffffff;
}
.button-sp-area {
flex-direction: row;
margin: 0 auto;
}
</style>
......@@ -155,14 +155,6 @@
margin: 20rpx 0;
}
.websocket-room {
height: 40px;
line-height: 40px;
text-align: center;
border-bottom: solid 1px #dddddd;
margin-bottom: 20px;
}
.websocket-msg {
padding: 40px 0px;
text-align: center;
......
......@@ -117,7 +117,7 @@ export default {
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<view class="content nvue">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data
:defaultValue="false"
......
......@@ -131,7 +131,7 @@
@touchcancel="list_view_touchcancel" @touchend="list_view_touchend" @tap="list_view_tap"
@longpress="list_view_longpress" @refresherpulling="list_view_refresherpulling"
@refresherrefresh="list_view_refresherrefresh" @refresherrestore="list_view_refresherrestore"
@refresherabort="list_view_refresherabort" @scrolltoupper="list_view_scrolltoupper" ref="listview" id="listview"
@refresherabort="list_view_refresherabort" @scrolltoupper="list_view_scrolltoupper" ref="listview"
@scrolltolower="list_view_scrolltolower" @scroll="list_view_scroll" style="width:100%;">
<list-item
v-for="key in scrollData" :key="key" :id="key" @click="list_item_click" @touchstart="list_item_touchstart"
......@@ -149,7 +149,7 @@
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
<view class="content nvue">
<view class="content">
<boolean-data :defaultValue="false" title="设置当前下拉刷新状态,true 表示下拉刷新已经被触发,false 表示下拉刷新未被触发"
@change="change_refresher_triggered_boolean"></boolean-data>
<boolean-data :defaultValue="false" title="开启下拉刷新" @change="change_refresher_enabled_boolean"></boolean-data>
......@@ -172,7 +172,7 @@
<navigator url="/pages/component/list-view/list-view-multiplex" hover-class="none">
<button type="primary" class="button default-button">
<button type="primary" class="button">
list-view 对list-item复用测试
</button>
</navigator>
......
......@@ -76,7 +76,7 @@ export default {
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<view class="content nvue">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data
:defaultValue="false"
......@@ -198,10 +198,6 @@ export default {
margin-bottom: 60rpx;
}
.progress-cancel {
margin-left: 40rpx;
}
.button {
margin-top: 20rpx;
}
......
......@@ -110,7 +110,7 @@ export default {
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<view class="content nvue">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data
:defaultValue="false"
......
......@@ -7,7 +7,7 @@
:upper-threshold="upperThreshold" :lower-threshold="lowerThreshold" :scroll-into-view="scrollIntoView"
:enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation" style="flex-direction: row;"
:show-scrollbar="showScrollbar" :rebound="rebound" @scrolltoupper="scrolltoupper"
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewX" id="scrollViewX">
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewX">
<view class="item" :id="'horizontal_'+item.id" v-for="(item,_) in items">
<text class="uni-text">{{item.label}}</text>
</view>
......@@ -17,7 +17,7 @@
:enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation"
:show-scrollbar="showScrollbar" :rebound="rebound" @scrolltoupper="scrolltoupper"
@touchmove="onTouchMove"
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewY" id="scrollViewY">
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewY">
<view class="item" :id="item.id" v-for="(item,_) in items">
<text class="uni-text">{{item.label}}</text>
</view>
......@@ -72,7 +72,7 @@
<view class="uni-common-pb"></view>
<view class="uni-slider">
<button type="primary" class="button default-button" @click="handleScrollIntoView">
<button type="primary" class="button" @click="handleScrollIntoView">
滚动到id为`item3`的子视图
</button>
</view>
......
......@@ -12,9 +12,9 @@
<view>
<scroll-view :scroll-top="scrollTop" :scroll-y="true" class="scroll-Y" scroll-with-animation="true"
@scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll">
<view id="demo1" class="scroll-view-item uni-bg-red"><text class="text">A</text></view>
<view id="demo2" class="scroll-view-item uni-bg-green"><text class="text">B</text></view>
<view id="demo3" class="scroll-view-item uni-bg-blue"><text class="text">C</text></view>
<view class="scroll-view-item uni-bg-red"><text class="text">A</text></view>
<view class="scroll-view-item uni-bg-green"><text class="text">B</text></view>
<view class="scroll-view-item uni-bg-blue"><text class="text">C</text></view>
</scroll-view>
</view>
<view @tap="goTop" class="uni-center uni-common-mt">
......@@ -27,30 +27,30 @@
</view>
<view>
<scroll-view class="scroll-view_H" :scroll-x="true" @scroll="scroll" :scroll-left="120">
<view id="demo1" class="scroll-view-item_H uni-bg-red"><text class="text">A</text></view>
<view id="demo2" class="scroll-view-item_H uni-bg-green"><text class="text">B</text></view>
<view id="demo3" class="scroll-view-item_H uni-bg-blue"><text class="text">C</text></view>
<view class="scroll-view-item_H uni-bg-red"><text class="text">A</text></view>
<view class="scroll-view-item_H uni-bg-green"><text class="text">B</text></view>
<view class="scroll-view-item_H uni-bg-blue"><text class="text">C</text></view>
</scroll-view>
</view>
<navigator url="/pages/component/scroll-view/scroll-view-props" hover-class="none">
<button type="primary" class="button default-button">
<button type="primary" class="button">
非下拉刷新的属性示例
</button>
</navigator>
<view class="uni-common-pb"></view>
<navigator url="/pages/component/scroll-view/scroll-view-refresher-props" hover-class="none">
<button type="primary" class="button default-button">
<button type="primary" class="button">
下拉刷新的属性示例
</button>
</navigator>
<view class="uni-common-pb"></view>
<navigator url="/pages/component/scroll-view/scroll-view-refresher" hover-class="none">
<button type="primary" class="button default-button"> 默认下拉刷新示例 </button>
<button type="primary" class="button"> 默认下拉刷新示例 </button>
</navigator>
<view class="uni-common-pb"></view>
<navigator url="/pages/component/scroll-view/scroll-view-custom-refresher-props" hover-class="none">
<button type="primary" class="button default-button">
<button type="primary" class="button">
自定义下拉刷新示例
</button>
</navigator>
......
......@@ -100,7 +100,7 @@
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<view class="content nvue">
<view class="content">
<page-head title="组件属性"></page-head>
<boolean-data :defaultValue="false" title="是否显示当前 value" @change="change_show_value_boolean"></boolean-data>
<boolean-data :defaultValue="false" title="是否禁用" @change="change_disabled_boolean"></boolean-data>
......
......@@ -81,7 +81,7 @@ export default {
<!-- #ifdef APP -->
<scroll-view style="flex: 1">
<!-- #endif -->
<view class="content nvue">
<view class="content">
<boolean-data
:defaultValue="false"
title="键盘弹起时,是否自动上推页面"
......@@ -112,20 +112,20 @@ export default {
<boolean-data
:defaultValue="focus_boolean"
title="获取焦点"
@change="change_focus_boolean" class="textarea-focus"
@change="change_focus_boolean"
></boolean-data>
<boolean-data
:defaultValue="false"
title="自动获取焦点"
@change="change_auto_focus_boolean"
></boolean-data>
<enum-data class="textarea-confirm"
<enum-data
:items="confirm_type_enum"
title="设置键盘右下角按钮的文字"
@change="radio_change_confirm_type_enum"
></enum-data>
<enum-data
:items="inputmode_enum" class="textarea-input"
:items="inputmode_enum"
title="是一个枚举属性,它提供了用户在编辑元素或其内容时可能输入的数据类型的提示。在符合条件的高版本webview里,uni-app的 web 和 app-vue 平台中可使用本属性。"
@change="radio_change_inputmode_enum"
></enum-data>
......
......@@ -25,7 +25,7 @@
<text class="form-item-label">性别</text>
<text class="form-item-input">{{displayGender(data[0].getNumber('gender'))}}</text>
</view>
<button class="btn-update" type="default" @click="gotoUpdatePage(data[0].getString('_id'))">编辑</button>
<button type="default" @click="gotoUpdatePage(data[0].getString('_id'))">编辑</button>
</view>
</unicloud-db>
</scroll-view>
......
<template>
<view class="content">
<unicloud-db ref="udb" class="unicloud-db" v-slot:default="{data, pagination, loading, error}"
<unicloud-db ref="udb" v-slot:default="{data, pagination, loading, error}"
:collection="collection" :getcount="true" loadtime="manual">
<list-view v-if="data.length>0" ref="listView" class="list" :scroll-y="true" @scrolltolower="loadMore()">
<list-item class="list-item" v-for="(item, _) in data">
......@@ -13,14 +13,14 @@
</list-item>
</list-view>
<text class="loading" v-if="loading">Loading...</text>
<view class="error" v-if="error!=null">{{error.errMsg}}</view>
<view v-if="error!=null">{{error.errMsg}}</view>
<view class="pagination" v-if="data.length>0">
<text class="pagination-item">{{data.length}} / {{pagination.count}}</text>
</view>
</unicloud-db>
<view class="btn-group">
<button class="btn btn-add" @click="add()">Add</button>
<button class="btn btn-get" @click="get()">Get</button>
<button class="btn" @click="add()">Add</button>
<button class="btn" @click="get()">Get</button>
</view>
</view>
</template>
......@@ -177,4 +177,4 @@
flex: 1;
margin: 10px;
}
</style>
\ No newline at end of file
</style>
......@@ -22,7 +22,7 @@
" class="uni-icon">
</image>
</view>
<view class="uni-panel-c" v-if="item.open">
<view v-if="item.open">
<view class="uni-navigate-item" :hover-class="page.enable == false?'':'is--active'"
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>
......
......@@ -129,10 +129,6 @@
flex: 1;
}
.tab-view-item {
flex: 1;
}
.tab-bar {
flex-direction: row;
height: 56px;
......
......@@ -74,9 +74,4 @@
line-height: 42rpx;
color: white;
}
.article-content {
padding: 0 30rpx;
overflow: hidden;
margin-bottom: 30rpx;
}
</style>
......@@ -190,15 +190,6 @@
justify-content: space-around;
}
.uni-list-content {
background-color: #FFFFFF;
position: relative;
display: flex;
flex-direction: column;
border-bottom: 1px solid #c8c7cc;
flex: 1;
}
.uni-media-list-text-top {
/* height: 74rpx; */
font-size: 28rpx;
......
......@@ -9,7 +9,7 @@
<view class="flex-row">
<text class="title">{{item.plugin_name}}</text>
</view>
<view class="description">
<view>
<text class="description-text">{{item.plugin_intro}}</text>
</view>
<text class="icon-star">{{convertToStarUnicode(item.score)}}</text>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册