Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uview-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晖
uview-ui
Commits
5c39a99d
Commit
5c39a99d
authored
Apr 23, 2020
by
beiqiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分组件不提示的bug
parent
2d338cd8
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
43 additions
and
44 deletions
+43
-44
u-cell-item.vue
uview/components/u-cell-item/u-cell-item.vue
+1
-1
u-empty.vue
uview/components/u-empty/u-empty.vue
+1
-1
u-grid-item.vue
uview/components/u-grid-item/u-grid-item.vue
+1
-1
u-index-list.vue
uview/components/u-index-list/u-index-list.vue
+11
-9
u-lazy-load.vue
uview/components/u-lazy-load/u-lazy-load.vue
+3
-4
u-navbar.vue
uview/components/u-navbar/u-navbar.vue
+8
-9
u-picker.vue
uview/components/u-picker/u-picker.vue
+4
-4
u-radio-group.vue
uview/components/u-radio-group/u-radio-group.vue
+1
-1
u-radio.vue
uview/components/u-radio/u-radio.vue
+1
-1
u-tabs-swiper.vue
uview/components/u-tabs-swiper/u-tabs-swiper.vue
+7
-8
u-td.vue
uview/components/u-td/u-td.vue
+1
-1
u-th.vue
uview/components/u-th/u-th.vue
+3
-3
u-time-line-item.vue
uview/components/u-time-line-item/u-time-line-item.vue
+1
-1
No files found.
uview/components/u-cell-item/u-cell-item.vue
View file @
5c39a99d
...
...
@@ -33,7 +33,7 @@
<
script
>
/**
* alertTips 提示
* @description
警告提示,展现需要关注的信息。
* @description
cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。搭配u-cell-group使用
* @tutorial https://www.uviewui.com/components/cell.html
* @property {String} title 左侧标题
* @property {String} icon 左侧图标名,只支持uView内置图标,见Icon 图标
...
...
uview/components/u-empty/u-empty.vue
View file @
5c39a99d
...
...
@@ -17,6 +17,7 @@
</
template
>
<
script
>
import
icon
from
"
./icon.js
"
;
/**
* alertTips 提示
* @description 该组件用于需要加载内容,但是加载的第一页数据就为空,提示一个"没有内容"的场景, 我们精心挑选了十几个场景的图标,方便您使用。
...
...
@@ -33,7 +34,6 @@
* @event {Function} close 点击关闭按钮时触发
* @example <u-empty text="所谓伊人,在水一方" mode="list"></u-empty>
*/
import
icon
from
"
./icon.js
"
;
export
default
{
name
:
"
u-empty
"
,
props
:
{
...
...
uview/components/u-grid-item/u-grid-item.vue
View file @
5c39a99d
...
...
@@ -13,7 +13,7 @@
<
script
>
/**
* alertTips 提示
* @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。搭配
<u-grid>
使用
* @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。搭配
u-grid
使用
* @tutorial https://www.uviewui.com/components/grid.html
* @property {String} bg-color 宫格的背景颜色(默认#ffffff)
* @property {String Number} index 点击宫格时,返回的值
...
...
uview/components/u-index-list/u-index-list.vue
View file @
5c39a99d
...
...
@@ -17,12 +17,21 @@
</
template
>
<
script
>
var
indexList
=
function
()
{
var
indexList
=
[];
var
charCodeOfA
=
'
A
'
.
charCodeAt
(
0
);
for
(
var
i
=
0
;
i
<
26
;
i
++
)
{
indexList
.
push
(
String
.
fromCharCode
(
charCodeOfA
+
i
));
}
return
indexList
;
};
/**
* alertTips 提示
* @description 通过折叠面板收纳内容区域,搭配<u-index-anchor>使用
* @tutorial https://www.uviewui.com/components/indexList.html#indexanchor-props
* @property {Number String} scroll-top 当前滚动高度,自定义组件无法获得滚动条事件,所以依赖接入方传入
* @property {Array
[string number]
} index-list 索引字符列表,数组(默认A-Z)
* @property {Array} index-list 索引字符列表,数组(默认A-Z)
* @property {Number String} z-index 锚点吸顶时的层级(默认965)
* @property {Boolean} sticky 是否开启锚点自动吸顶(默认true)
* @property {Number String} offset-top 锚点自动吸顶时与顶部的距离(默认0)
...
...
@@ -30,14 +39,7 @@
* @event {Function} select 选中右边索引字符时触发
* @example <u-index-list :scrollTop="scrollTop"></u-index-list>
*/
var
indexList
=
function
()
{
var
indexList
=
[];
var
charCodeOfA
=
'
A
'
.
charCodeAt
(
0
);
for
(
var
i
=
0
;
i
<
26
;
i
++
)
{
indexList
.
push
(
String
.
fromCharCode
(
charCodeOfA
+
i
));
}
return
indexList
;
};
export
default
{
name
:
"
u-index-list
"
,
props
:
{
...
...
uview/components/u-lazy-load/u-lazy-load.vue
View file @
5c39a99d
...
...
@@ -17,6 +17,9 @@
</
template
>
<
script
>
// observer最终赋值的是个对象,不能放到data中,vue会报错(浏览器),也不能在用到的地方let定义,某些安卓也报错……
let
observer
=
{};
/**
* alertTips 提示
* @description 懒加载使用的场景为:页面有很多图片时,APP会同时加载所有的图片,导致页面卡顿,各个位置的图片出现前后不一致等.
...
...
@@ -37,10 +40,6 @@
* @event {Function} error 图片加载失败时触发
* @example <u-lazy-load :image="image" :loading-img="loadingImg" :error-img="errorImg"></u-lazy-load>
*/
// observer最终赋值的是个对象,不能放到data中,vue会报错(浏览器),也不能在用到的地方let定义,某些安卓也报错……
let
observer
=
{};
export
default
{
name
:
"
u-lazy-load
"
,
props
:
{
...
...
uview/components/u-navbar/u-navbar.vue
View file @
5c39a99d
...
...
@@ -27,6 +27,14 @@
</
template
>
<
script
>
// 获取系统状态栏的高度
let
systemInfo
=
uni
.
getSystemInfoSync
();
let
menuButtonInfo
=
{};
// 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
// #ifdef MP
menuButtonInfo
=
uni
.
getMenuButtonBoundingClientRect
();
// #endif
/**
* alertTips 提示
* @description 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用uniapp自带的导航栏。
...
...
@@ -48,15 +56,6 @@
* @property {Boolean} border-bottom 导航栏底部是否显示下边框,如定义了较深的背景颜色,可取消此值(默认true)
* @example <u-navbar back-text="返回" title="剑未配妥,出门已是江湖"></u-navbar>
*/
// 获取系统状态栏的高度
let
systemInfo
=
uni
.
getSystemInfoSync
();
let
menuButtonInfo
=
{};
// 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
// #ifdef MP
menuButtonInfo
=
uni
.
getMenuButtonBoundingClientRect
();
// #endif
export
default
{
name
:
"
u-navbar
"
,
props
:
{
...
...
uview/components/u-picker/u-picker.vue
View file @
5c39a99d
...
...
@@ -70,6 +70,10 @@
</
template
>
<
script
>
import
provinces
from
'
@/uview/libs/util/province.js
'
;
import
citys
from
'
@/uview/libs/util/city.js
'
;
import
areas
from
'
@/uview/libs/util/area.js
'
;
/**
* alertTips 提示
* @description 此选择器有两种弹出模式:一是时间模式,可以配置年,日,月,时,分,秒参数 二是地区模式,可以配置省,市,区参数
...
...
@@ -90,10 +94,6 @@
* @event {Function} cancel 点击取消按钮,返回当前选择的值
* @example <u-picker v-model="show" mode="time"></u-picker>
*/
import
provinces
from
'
@/uview/libs/util/province.js
'
;
import
citys
from
'
@/uview/libs/util/city.js
'
;
import
areas
from
'
@/uview/libs/util/area.js
'
;
export
default
{
name
:
"
u-picker
"
,
props
:
{
...
...
uview/components/u-radio-group/u-radio-group.vue
View file @
5c39a99d
...
...
@@ -7,7 +7,7 @@
<
script
>
/**
* alertTips 提示
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配
<u-radio>
使用
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配
u-radio
使用
* @tutorial https://www.uviewui.com/components/radio.html
* @property {Boolean} disabled 是否禁用所有radio(默认false)
* @property {String} active-color 选中时的颜色,应用到所有子Radio组件(默认#2979ff)
...
...
uview/components/u-radio/u-radio.vue
View file @
5c39a99d
...
...
@@ -12,7 +12,7 @@
<
script
>
/**
* alertTips 提示
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配
<u-radio-group>
使用
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配
u-radio-group
使用
* @tutorial https://www.uviewui.com/components/radio.html
* @property {String Number} icon-size 图标大小,单位rpx(默认24)
* @property {String Number} size 组件整体的大小,单位rpx(默认40)
...
...
uview/components/u-tabs-swiper/u-tabs-swiper.vue
View file @
5c39a99d
...
...
@@ -30,6 +30,13 @@
</
template
>
<
script
>
import
colorGradient
from
'
@/uview/libs/function/colorGradient
'
;
let
color
=
colorGradient
;
const
{
windowWidth
}
=
uni
.
getSystemInfoSync
();
const
preId
=
'
UEl_
'
;
/**
* alertTips 提示
* @description 该组件内部实现主要依托于uniapp的scroll-view和swiper组件,主要特色是切换过程中,tabsSwiper文字的颜色可以渐变,底部滑块可以 跟随式滑动,活动tab滚动居中等。应用场景可以用于需要左右切换页面,比如商城的订单中心(待收货-待付款-待评价-已退货)等应用场景。
...
...
@@ -51,14 +58,6 @@
* @event {Function} change 点击标签时触发
* @example <u-tabs-swiper ref="tabs" :list="list" :is-scroll="false"></u-tabs-swiper>
*/
import
colorGradient
from
'
@/uview/libs/function/colorGradient
'
;
let
color
=
colorGradient
;
const
{
windowWidth
}
=
uni
.
getSystemInfoSync
();
const
preId
=
'
UEl_
'
;
export
default
{
name
:
"
u-tabs-swiper
"
,
props
:
{
...
...
uview/components/u-td/u-td.vue
View file @
5c39a99d
...
...
@@ -7,7 +7,7 @@
<
script
>
/**
* alertTips 提示
* @description 表格组件一般用于展示大量结构化数据的场景(搭配
<u-table>
使用)
* @description 表格组件一般用于展示大量结构化数据的场景(搭配
u-table
使用)
* @tutorial https://www.uviewui.com/components/table.html#td-props
* @property {String Number} width 单元格宽度百分比或者具体带单位的值,如30%, 200rpx等,一般使用百分比,单元格宽度默认为均分tr的长度(默认auto)
* @example <u-td>二年级</u-td>
...
...
uview/components/u-th/u-th.vue
View file @
5c39a99d
...
...
@@ -7,10 +7,10 @@
<
script
>
/**
* alertTips 提示
* @description 表格组件一般用于展示大量结构化数据的场景(搭配
<u-table>
使用)
* @description 表格组件一般用于展示大量结构化数据的场景(搭配
u-table
使用)
* @tutorial https://www.uviewui.com/components/table.html#td-props
* @property {String Number} width 标题单元格宽度百分比或者具体带单位的值,如30%,
200rpx等,一般使用百分比,单元格宽度默认为均分tr的长度
* @example
* @property {String Number} width 标题单元格宽度百分比或者具体带单位的值,如30%,200rpx等,一般使用百分比,单元格宽度默认为均分tr的长度
* @example
暂无示例
*/
export
default
{
name
:
"
u-th
"
,
...
...
uview/components/u-time-line-item/u-time-line-item.vue
View file @
5c39a99d
...
...
@@ -13,7 +13,7 @@
<
script
>
/**
* alertTips 提示
* @description 时间轴组件一般用于物流信息展示,各种跟时间相关的记录等场景。(搭配
<u-time-line>
使用)
* @description 时间轴组件一般用于物流信息展示,各种跟时间相关的记录等场景。(搭配
u-time-line
使用)
* @tutorial https://www.uviewui.com/components/timeLine.html
* @property {String} bg-color 左边节点的背景颜色,一般通过slot内容自定义背景颜色即可(默认#ffffff)
* @property {String Number} node-top 节点左边图标绝对定位的top值,单位rpx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment