uview-plus 3.1.23 → 3.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +4 -0
- package/components/u-action-sheet/u-action-sheet.vue +1 -1
- package/components/u-album/u-album.vue +1 -1
- package/components/u-alert/u-alert.vue +1 -1
- package/components/u-avatar/u-avatar.vue +1 -1
- package/components/u-avatar-group/u-avatar-group.vue +1 -1
- package/components/u-button/u-button.vue +1 -1
- package/components/u-calendar/month.vue +1 -1
- package/components/u-calendar/u-calendar.vue +4 -4
- package/components/u-calendar/util.js +85 -85
- package/components/u-checkbox-group/u-checkbox-group.vue +1 -1
- package/components/u-circle-progress/u-circle-progress.vue +1 -1
- package/components/u-code/u-code.vue +1 -1
- package/components/u-code-input/u-code-input.vue +1 -1
- package/components/u-col/u-col.vue +1 -1
- package/components/u-collapse/u-collapse.vue +1 -1
- package/components/u-collapse-item/u-collapse-item.vue +6 -6
- package/components/u-column-notice/u-column-notice.vue +1 -1
- package/components/u-count-to/u-count-to.vue +1 -1
- package/components/u-datetime-picker/u-datetime-picker.vue +1 -1
- package/components/u-divider/u-divider.vue +1 -1
- package/components/u-dropdown/u-dropdown.vue +48 -48
- package/components/u-empty/u-empty.vue +1 -1
- package/components/u-form/u-form.vue +3 -3
- package/components/u-form-item/u-form-item.vue +1 -1
- package/components/u-gap/u-gap.vue +1 -1
- package/components/u-grid/u-grid.vue +1 -1
- package/components/u-grid-item/u-grid-item.vue +1 -1
- package/components/u-icon/u-icon.vue +1 -1
- package/components/u-keyboard/u-keyboard.vue +1 -1
- package/components/u-line/u-line.vue +1 -1
- package/components/u-line-progress/u-line-progress.vue +1 -1
- package/components/u-link/u-link.vue +1 -1
- package/components/u-list/u-list.vue +1 -1
- package/components/u-list-item/u-list-item.vue +1 -1
- package/components/u-loading-icon/u-loading-icon.vue +3 -3
- package/components/u-loading-page/u-loading-page.vue +1 -1
- package/components/u-loadmore/u-loadmore.vue +1 -1
- package/components/u-modal/u-modal.vue +3 -3
- package/components/u-navbar/u-navbar.vue +1 -1
- package/components/u-no-network/u-no-network.vue +1 -1
- package/components/u-notice-bar/u-notice-bar.vue +1 -1
- package/components/u-overlay/u-overlay.vue +1 -1
- package/components/u-parse/node/node.vue +576 -500
- package/components/u-parse/parser.js +1250 -992
- package/components/u-parse/props.js +4 -3
- package/components/u-parse/u-parse.vue +461 -336
- package/components/u-popup/u-popup.vue +3 -3
- package/components/u-radio/u-radio.vue +1 -1
- package/components/u-radio-group/u-radio-group.vue +1 -1
- package/components/u-rate/u-rate.vue +1 -1
- package/components/u-read-more/u-read-more.vue +1 -1
- package/components/u-row/u-row.vue +1 -1
- package/components/u-row-notice/u-row-notice.vue +1 -1
- package/components/u-safe-bottom/u-safe-bottom.vue +3 -3
- package/components/u-scroll-list/u-scroll-list.vue +1 -1
- package/components/u-search/u-search.vue +1 -1
- package/components/u-skeleton/u-skeleton.vue +1 -1
- package/components/u-sticky/u-sticky.vue +1 -1
- package/components/u-subsection/u-subsection.vue +1 -1
- package/components/u-swipe-action/u-swipe-action.vue +1 -1
- package/components/u-swipe-action-item/u-swipe-action-item.vue +1 -1
- package/components/u-swiper/u-swiper.vue +1 -1
- package/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
- package/components/u-switch/u-switch.vue +1 -1
- package/components/u-tabbar/u-tabbar.vue +1 -1
- package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
- package/components/u-table/u-table.vue +1 -1
- package/components/u-tabs/u-tabs.vue +2 -2
- package/components/u-tabs-item/u-tabs-item.vue +1 -1
- package/components/u-tag/u-tag.vue +3 -3
- package/components/u-text/u-text.vue +1 -1
- package/components/u-textarea/u-textarea.vue +1 -1
- package/components/u-toast/u-toast.vue +1 -1
- package/components/u-toolbar/u-toolbar.vue +1 -1
- package/components/u-tooltip/u-tooltip.vue +2 -2
- package/libs/util/dayjs.min.js +1 -0
- package/package.json +1 -1
- package/components/u-parse/parser-es-module.js +0 -1122
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
/**
|
|
76
76
|
* keyboard 键盘
|
|
77
77
|
* @description 此为uViw自定义的键盘面板,内含了数字键盘,车牌号键,身份证号键盘3中模式,都有可以打乱按键顺序的选项。
|
|
78
|
-
* @tutorial https://
|
|
78
|
+
* @tutorial https://ijry.github.io/uview-plus/components/keyboard.html
|
|
79
79
|
* @property {String} mode 键盘类型,见官网基本使用的说明 (默认 'number' )
|
|
80
80
|
* @property {Boolean} dotDisabled 是否显示"."按键,只在mode=number时有效 (默认 false )
|
|
81
81
|
* @property {Boolean} tooltip 是否显示键盘顶部工具条 (默认 true )
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* line 线条
|
|
16
16
|
* @description 此组件一般用于显示一根线条,用于分隔内容块,有横向和竖向两种模式,且能设置0.5px线条,使用也很简单
|
|
17
|
-
* @tutorial https://
|
|
17
|
+
* @tutorial https://ijry.github.io/uview-plus/components/line.html
|
|
18
18
|
* @property {String} color 线条的颜色 ( 默认 '#d6d7d9' )
|
|
19
19
|
* @property {String | Number} length 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等 ( 默认 '100%' )
|
|
20
20
|
* @property {String} direction 线条的方向,row-横向,col-竖向 (默认 'row' )
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
/**
|
|
34
34
|
* lineProgress 线型进度条
|
|
35
35
|
* @description 展示操作或任务的当前进度,比如上传文件,是一个线形的进度条。
|
|
36
|
-
* @tutorial https://
|
|
36
|
+
* @tutorial https://ijry.github.io/uview-plus/components/lineProgress.html
|
|
37
37
|
* @property {String} activeColor 激活部分的颜色 ( 默认 '#19be6b' )
|
|
38
38
|
* @property {String} inactiveColor 背景色 ( 默认 '#ececec' )
|
|
39
39
|
* @property {String | Number} percentage 进度百分比,数值 ( 默认 0 )
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* link 超链接
|
|
16
16
|
* @description 该组件为超链接组件,在不同平台有不同表现形式:在APP平台会通过plus环境打开内置浏览器,在小程序中把链接复制到粘贴板,同时提示信息,在H5中通过window.open打开链接。
|
|
17
|
-
* @tutorial https://
|
|
17
|
+
* @tutorial https://ijry.github.io/uview-plus/components/link.html
|
|
18
18
|
* @property {String} color 文字颜色 (默认 color['u-primary'] )
|
|
19
19
|
* @property {String | Number} fontSize 字体大小,单位px (默认 15 )
|
|
20
20
|
* @property {Boolean} underLine 是否显示下划线 (默认 false )
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/**
|
|
47
47
|
* List 列表
|
|
48
48
|
* @description 该组件为高性能列表组件
|
|
49
|
-
* @tutorial https://
|
|
49
|
+
* @tutorial https://ijry.github.io/uview-plus/components/list.html
|
|
50
50
|
* @property {Boolean} showScrollbar 控制是否出现滚动条,仅nvue有效 (默认 false )
|
|
51
51
|
* @property {String | Number} lowerThreshold 距底部多少时触发scrolltolower事件 (默认 50 )
|
|
52
52
|
* @property {String | Number} upperThreshold 距顶部多少时触发scrolltoupper事件,非nvue有效 (默认 0 )
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/**
|
|
26
26
|
* List 列表
|
|
27
27
|
* @description 该组件为高性能列表组件
|
|
28
|
-
* @tutorial https://
|
|
28
|
+
* @tutorial https://ijry.github.io/uview-plus/components/list.html
|
|
29
29
|
* @property {String | Number} anchor 用于滚动到指定item
|
|
30
30
|
* @example <u-list-ite v-for="(item, index) in indexList" :key="index" ></u-list-item>
|
|
31
31
|
*/
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
|
|
60
60
|
<script>
|
|
61
|
-
import props from './props.js';
|
|
62
|
-
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
61
|
+
import props from './props.js';
|
|
62
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
63
63
|
import mixin from '../../libs/mixin/mixin.js';
|
|
64
64
|
// #ifdef APP-NVUE
|
|
65
65
|
const animation = weex.requireModule('animation');
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
/**
|
|
68
68
|
* loading 加载动画
|
|
69
69
|
* @description 警此组件为一个小动画,目前用在uView的loadmore加载更多和switch开关等组件的正在加载状态场景。
|
|
70
|
-
* @tutorial https://
|
|
70
|
+
* @tutorial https://ijry.github.io/uview-plus/components/loading.html
|
|
71
71
|
* @property {Boolean} show 是否显示组件 (默认 true)
|
|
72
72
|
* @property {String} color 动画活动区域的颜色,只对 mode = flower 模式有效(默认color['u-tips-color'])
|
|
73
73
|
* @property {String} textColor 提示文本的颜色(默认color['u-tips-color'])
|
|
@@ -53,7 +53,7 @@ import mixin from '../../libs/mixin/mixin.js';
|
|
|
53
53
|
/**
|
|
54
54
|
* loadingPage 加载动画
|
|
55
55
|
* @description 警此组件为一个小动画,目前用在uView的loadmore加载更多和switch开关等组件的正在加载状态场景。
|
|
56
|
-
* @tutorial https://
|
|
56
|
+
* @tutorial https://ijry.github.io/uview-plus/components/loading.html
|
|
57
57
|
* @property {String | Number} loadingText 提示内容 (默认 '正在加载' )
|
|
58
58
|
* @property {String} image 文字上方用于替换loading动画的图片
|
|
59
59
|
* @property {String} loadingMode 加载动画的模式,circle-圆形,spinner-花朵形,semicircle-半圆形 (默认 'circle' )
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
/**
|
|
60
60
|
* loadmore 加载更多
|
|
61
61
|
* @description 此组件一般用于标识页面底部加载数据时的状态。
|
|
62
|
-
* @tutorial https://
|
|
62
|
+
* @tutorial https://ijry.github.io/uview-plus/components/loadMore.html
|
|
63
63
|
* @property {String} status 组件状态(默认 'loadmore' )
|
|
64
64
|
* @property {String} bgColor 组件背景颜色,在页面是非白色时会用到(默认 'transparent' )
|
|
65
65
|
* @property {Boolean} icon 加载中时是否显示图标(默认 true )
|
|
@@ -90,13 +90,13 @@
|
|
|
90
90
|
</template>
|
|
91
91
|
|
|
92
92
|
<script>
|
|
93
|
-
import props from './props.js';
|
|
94
|
-
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
93
|
+
import props from './props.js';
|
|
94
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
95
95
|
import mixin from '../../libs/mixin/mixin.js';
|
|
96
96
|
/**
|
|
97
97
|
* Modal 模态框
|
|
98
98
|
* @description 弹出模态框,常用于消息提示、消息确认、在当前页面内完成特定的交互操作。
|
|
99
|
-
* @tutorial https://
|
|
99
|
+
* @tutorial https://ijry.github.io/uview-plus/components/modul.html
|
|
100
100
|
* @property {Boolean} show 是否显示模态框,请赋值给show (默认 false )
|
|
101
101
|
* @property {String} title 标题内容
|
|
102
102
|
* @property {String} content 模态框内容,如传入slot内容,则此参数无效
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
/**
|
|
80
80
|
* Navbar 自定义导航栏
|
|
81
81
|
* @description 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用uni-app带的导航栏。
|
|
82
|
-
* @tutorial https://
|
|
82
|
+
* @tutorial https://ijry.github.io/uview-plus/components/navbar.html
|
|
83
83
|
* @property {Boolean} safeAreaInsetTop 是否开启顶部安全区适配 (默认 true )
|
|
84
84
|
* @property {Boolean} placeholder 固定在顶部时,是否生成一个等高元素,以防止塌陷 (默认 false )
|
|
85
85
|
* @property {Boolean} fixed 导航栏是否固定在顶部 (默认 false )
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
/**
|
|
51
51
|
* noNetwork 无网络提示
|
|
52
52
|
* @description 该组件无需任何配置,引入即可,内部自动处理所有功能和事件。
|
|
53
|
-
* @tutorial https://
|
|
53
|
+
* @tutorial https://ijry.github.io/uview-plus/components/noNetwork.html
|
|
54
54
|
* @property {String} tips 没有网络时的提示语 (默认:'哎呀,网络信号丢失' )
|
|
55
55
|
* @property {String | Number} zIndex 组件的z-index值
|
|
56
56
|
* @property {String} image 无网络的图片提示,可用的src地址或base64图片
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/**
|
|
47
47
|
* noticeBar 滚动通知
|
|
48
48
|
* @description 该组件用于滚动通告场景,有多种模式可供选择
|
|
49
|
-
* @tutorial https://
|
|
49
|
+
* @tutorial https://ijry.github.io/uview-plus/components/noticeBar.html
|
|
50
50
|
* @property {Array | String} text 显示的内容,数组
|
|
51
51
|
* @property {String} direction 通告滚动模式,row-横向滚动,column-竖向滚动 ( 默认 'row' )
|
|
52
52
|
* @property {Boolean} step direction = row时,是否使用步进形式滚动 ( 默认 false )
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
/**
|
|
19
19
|
* overlay 遮罩
|
|
20
20
|
* @description 创建一个遮罩层,用于强调特定的页面元素,并阻止用户对遮罩下层的内容进行操作,一般用于弹窗场景
|
|
21
|
-
* @tutorial https://
|
|
21
|
+
* @tutorial https://ijry.github.io/uview-plus/components/overlay.html
|
|
22
22
|
* @property {Boolean} show 是否显示遮罩(默认 false )
|
|
23
23
|
* @property {String | Number} zIndex zIndex 层级(默认 10070 )
|
|
24
24
|
* @property {String | Number} duration 动画时长,单位毫秒(默认 300 )
|