Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
2aa0c9f4
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6067
Star
93
Fork
166
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2aa0c9f4
编写于
11月 27, 2023
作者:
A
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
清理无用的class/id
上级
bb6bdd4f
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
42 addition
and
114 deletion
+42
-114
common/uni-uvue.css
common/uni-uvue.css
+1
-26
common/uni.css
common/uni.css
+0
-4
components/enum-data/enum-data.vue
components/enum-data/enum-data.vue
+1
-1
hybrid/html/local.html
hybrid/html/local.html
+0
-4
pages/API/element-takesnapshot/element-takesnapshot.uvue
pages/API/element-takesnapshot/element-takesnapshot.uvue
+2
-2
pages/API/facial-recognition-verify/facial-recognition-verify.uvue
.../facial-recognition-verify/facial-recognition-verify.uvue
+2
-2
pages/API/get-network-type/get-network-type.uvue
pages/API/get-network-type/get-network-type.uvue
+2
-2
pages/API/loading/loading.uvue
pages/API/loading/loading.uvue
+1
-1
pages/API/pull-down-refresh/pull-down-refresh.uvue
pages/API/pull-down-refresh/pull-down-refresh.uvue
+1
-1
pages/API/storage/storage.uvue
pages/API/storage/storage.uvue
+0
-9
pages/API/websocket-global/websocket-global.uvue
pages/API/websocket-global/websocket-global.uvue
+0
-8
pages/component/checkbox/checkbox.uvue
pages/component/checkbox/checkbox.uvue
+1
-1
pages/component/list-view/list-view.uvue
pages/component/list-view/list-view.uvue
+3
-3
pages/component/progress/progress.uvue
pages/component/progress/progress.uvue
+1
-5
pages/component/radio/radio.uvue
pages/component/radio/radio.uvue
+1
-1
pages/component/scroll-view/scroll-view-props.uvue
pages/component/scroll-view/scroll-view-props.uvue
+3
-3
pages/component/scroll-view/scroll-view.uvue
pages/component/scroll-view/scroll-view.uvue
+10
-10
pages/component/slider/slider.uvue
pages/component/slider/slider.uvue
+1
-1
pages/component/textarea/textarea.uvue
pages/component/textarea/textarea.uvue
+4
-4
pages/component/unicloud-db-contacts/detail.uvue
pages/component/unicloud-db-contacts/detail.uvue
+1
-1
pages/component/unicloud-db/unicloud-db.uvue
pages/component/unicloud-db/unicloud-db.uvue
+5
-5
pages/tabBar/template.uvue
pages/tabBar/template.uvue
+1
-1
pages/template/custom-tab-bar/custom-tab-bar.uvue
pages/template/custom-tab-bar/custom-tab-bar.uvue
+0
-4
pages/template/list-news/detail/detail.uvue
pages/template/list-news/detail/detail.uvue
+0
-5
pages/template/list-news/list-news.uvue
pages/template/list-news/list-news.uvue
+0
-9
pages/template/long-list/long-list-page.uvue
pages/template/long-list/long-list-page.uvue
+1
-1
未找到文件。
common/uni-uvue.css
浏览文件 @
2aa0c9f4
...
...
@@ -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
common/uni.css
浏览文件 @
2aa0c9f4
...
...
@@ -139,10 +139,6 @@
justify-content
:
center
;
}
.uni-textarea-box
{
background
:
#ffffff
;
}
.uni-textarea
{
padding
:
18
rpx
;
line-height
:
1.6
;
...
...
components/enum-data/enum-data.vue
浏览文件 @
2aa0c9f4
...
...
@@ -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
}}
...
...
hybrid/html/local.html
浏览文件 @
2aa0c9f4
...
...
@@ -20,10 +20,6 @@
background-color
:
#dd524d
;
}
.btn-yellow
{
background-color
:
#f0ad4e
;
}
.desc
{
padding
:
10px
;
color
:
#999999
;
...
...
pages/API/element-takesnapshot/element-takesnapshot.uvue
浏览文件 @
2aa0c9f4
<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">
点击截图并替换显示下方图片
...
...
pages/API/facial-recognition-verify/facial-recognition-verify.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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">
...
...
pages/API/get-network-type/get-network-type.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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">
...
...
pages/API/loading/loading.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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">
...
...
pages/API/pull-down-refresh/pull-down-refresh.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/API/storage/storage.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
pages/API/websocket-global/websocket-global.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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;
...
...
pages/component/checkbox/checkbox.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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"
...
...
pages/component/list-view/list-view.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/component/progress/progress.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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;
}
...
...
pages/component/radio/radio.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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"
...
...
pages/component/scroll-view/scroll-view-props.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/component/scroll-view/scroll-view.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/component/slider/slider.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/component/textarea/textarea.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/component/unicloud-db-contacts/detail.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/component/unicloud-db/unicloud-db.uvue
浏览文件 @
2aa0c9f4
<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>
pages/tabBar/template.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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>
...
...
pages/template/custom-tab-bar/custom-tab-bar.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -129,10 +129,6 @@
flex: 1;
}
.tab-view-item {
flex: 1;
}
.tab-bar {
flex-direction: row;
height: 56px;
...
...
pages/template/list-news/detail/detail.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -74,9 +74,4 @@
line-height: 42rpx;
color: white;
}
.article-content {
padding: 0 30rpx;
overflow: hidden;
margin-bottom: 30rpx;
}
</style>
pages/template/list-news/list-news.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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;
...
...
pages/template/long-list/long-list-page.uvue
浏览文件 @
2aa0c9f4
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录