uview-pro 0.0.2 → 0.0.3

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.
Files changed (71) hide show
  1. package/changelog.md +4 -5
  2. package/components/u-action-sheet/u-action-sheet.vue +1 -1
  3. package/components/u-avatar/u-avatar.vue +1 -1
  4. package/components/u-badge/u-badge.vue +1 -1
  5. package/components/u-button/u-button.vue +1 -1
  6. package/components/u-card/u-card.vue +1 -1
  7. package/components/u-cell-group/u-cell-group.vue +1 -1
  8. package/components/u-cell-item/u-cell-item.vue +1 -1
  9. package/components/u-checkbox/u-checkbox.vue +1 -1
  10. package/components/u-checkbox-group/u-checkbox-group.vue +1 -1
  11. package/components/u-circle-progress/u-circle-progress.vue +1 -1
  12. package/components/u-col/u-col.vue +1 -1
  13. package/components/u-collapse/u-collapse.vue +1 -1
  14. package/components/u-collapse-item/u-collapse-item.vue +2 -2
  15. package/components/u-count-down/u-count-down.vue +1 -1
  16. package/components/u-count-to/u-count-to.vue +1 -1
  17. package/components/u-divider/u-divider.vue +1 -1
  18. package/components/u-empty/u-empty.vue +1 -1
  19. package/components/u-field/u-field.vue +1 -1
  20. package/components/u-gap/u-gap.vue +1 -1
  21. package/components/u-grid/u-grid.vue +1 -1
  22. package/components/u-grid-item/u-grid-item.vue +1 -1
  23. package/components/u-icon/u-icon.vue +1 -1
  24. package/components/u-index-anchor/u-index-anchor.vue +1 -1
  25. package/components/u-index-list/u-index-list.vue +1 -1
  26. package/components/u-keyboard/u-keyboard.vue +1 -1
  27. package/components/u-lazy-load/u-lazy-load.vue +1 -1
  28. package/components/u-line/u-line.vue +1 -1
  29. package/components/u-line-progress/u-line-progress.vue +1 -1
  30. package/components/u-link/u-link.vue +1 -1
  31. package/components/u-loading/u-loading.vue +1 -1
  32. package/components/u-loadmore/u-loadmore.vue +1 -1
  33. package/components/u-mask/u-mask.vue +1 -1
  34. package/components/u-message-input/u-message-input.vue +1 -1
  35. package/components/u-modal/u-modal.vue +1 -1
  36. package/components/u-navbar/u-navbar.vue +1 -1
  37. package/components/u-no-network/u-no-network.vue +1 -1
  38. package/components/u-notice-bar/u-notice-bar.vue +1 -1
  39. package/components/u-number-box/u-number-box.vue +1 -1
  40. package/components/u-picker/u-picker.vue +1 -1
  41. package/components/u-popup/u-popup.vue +1 -1
  42. package/components/u-radio/u-radio.vue +1 -1
  43. package/components/u-radio-group/u-radio-group.vue +1 -1
  44. package/components/u-rate/u-rate.vue +1 -1
  45. package/components/u-read-more/u-read-more.vue +1 -1
  46. package/components/u-row/u-row.vue +1 -1
  47. package/components/u-search/u-search.vue +1 -1
  48. package/components/u-section/u-section.vue +1 -1
  49. package/components/u-skeleton/u-skeleton.vue +1 -1
  50. package/components/u-steps/u-steps.vue +1 -1
  51. package/components/u-sticky/u-sticky.vue +1 -1
  52. package/components/u-subsection/u-subsection.vue +1 -1
  53. package/components/u-swipe-action/u-swipe-action.vue +1 -1
  54. package/components/u-swiper/u-swiper.vue +1 -1
  55. package/components/u-switch/u-switch.vue +1 -1
  56. package/components/u-table/u-table.vue +1 -1
  57. package/components/u-tabs/u-tabs.vue +1 -1
  58. package/components/u-tabs-swiper/u-tabs-swiper.vue +1 -1
  59. package/components/u-tag/u-tag.vue +1 -1
  60. package/components/u-td/u-td.vue +1 -1
  61. package/components/u-th/u-th.vue +1 -1
  62. package/components/u-time-line/u-time-line.vue +1 -1
  63. package/components/u-time-line-item/u-time-line-item.vue +1 -1
  64. package/components/u-toast/u-toast.vue +1 -1
  65. package/components/u-top-tips/u-top-tips.vue +1 -1
  66. package/components/u-tr/u-tr.vue +1 -1
  67. package/components/u-upload/u-upload.vue +1 -1
  68. package/components/u-verification-code/u-verification-code.vue +1 -1
  69. package/components/u-waterfall/u-waterfall.vue +1 -1
  70. package/package.json +8 -12
  71. package/readme.md +67 -34
package/changelog.md CHANGED
@@ -1,10 +1,9 @@
1
+ ## 0.0.3(2025-08-06)
2
+ - 添加插件使用示例工程
1
3
  ## 0.0.2(2025-08-04)
2
-
3
- - 解决一些 npm 包依赖问题
4
-
4
+ - 解决一些 npm 包依赖问题
5
5
  ## 0.0.1(2025-08-04)
6
-
6
+ - 70+精选组件,使用 Vue3+TS 全面重构,功能丰富,多端兼容,让您快速集成,开箱即用
7
7
  - 兼容安卓,iOS,微信小程序,H5 等
8
- - 使用 Vue3 已重构 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用
9
8
  - 详尽的文档支持,现代化的演示效果
10
9
  - 按需引入,精简打包体积
@@ -44,7 +44,7 @@ defineOptions({
44
44
  /**
45
45
  * actionSheet 操作菜单
46
46
  * @description 本组件用于从底部弹出一个操作菜单,供用户选择并返回结果。本组件功能类似于uni的uni.showActionSheetAPI,配置更加灵活,所有平台都表现一致。
47
- * @tutorial https://www.uviewui.com/components/actionSheet.html
47
+ * @tutorial https://uview-pro.anyup.cn/docs/components/actionSheet.html
48
48
  * @property {Array<Object>} list 按钮的文字数组,见官方文档示例
49
49
  * @property {Object} tips 顶部的提示文字,见官方文档示例
50
50
  * @property {String} cancel-text 取消按钮的提示文字
@@ -25,7 +25,7 @@ let base64Avatar =
25
25
  /**
26
26
  * avatar 头像
27
27
  * @description 本组件一般用于展示头像的地方,如个人中心,或者评论列表页的用户头像展示等场所。
28
- * @tutorial https://www.uviewui.com/components/avatar.html
28
+ * @tutorial https://uview-pro.anyup.cn/docs/components/avatar.html
29
29
  * @property {String} bg-color 背景颜色,一般显示文字时用(默认#ffffff)
30
30
  * @property {String} src 头像路径,如加载失败,将会显示默认头像
31
31
  * @property {String Number} size 头像尺寸,可以为指定字符串(large, default, mini),或者数值,单位rpx(默认default)
@@ -29,7 +29,7 @@ defineOptions({
29
29
  /**
30
30
  * badge 角标
31
31
  * @description 本组件一般用于展示头像的地方,如个人中心,或者评论列表页的用户头像展示等场所。
32
- * @tutorial https://www.uviewui.com/components/badge.html
32
+ * @tutorial https://uview-pro.anyup.cn/docs/components/badge.html
33
33
  * @property {String|Number} count 展示的数字,大于 overflowCount 时显示为 ${overflowCount}+,为0且show-zero为false时隐藏
34
34
  * @property {Boolean} is-dot 不展示数字,只有一个小点(默认false)
35
35
  * @property {Boolean} absolute 组件是否绝对定位,为true时,offset参数才有效(默认true)
@@ -66,7 +66,7 @@ defineOptions({
66
66
  /**
67
67
  * button 按钮
68
68
  * @description Button 按钮
69
- * @tutorial https://www.uviewui.com/components/button.html
69
+ * @tutorial https://uview-pro.anyup.cn/docs/components/button.html
70
70
  * @property {String} size 按钮的大小
71
71
  * @property {Boolean} ripple 是否开启点击水波纹效果
72
72
  * @property {String} ripple-bg-color 水波纹的背景色,ripple为true时有效
@@ -82,7 +82,7 @@ defineOptions({
82
82
  /**
83
83
  * card 卡片
84
84
  * @description 卡片组件一般用于多个列表条目,且风格统一的场景
85
- * @tutorial https://www.uviewui.com/components/card.html
85
+ * @tutorial https://uview-pro.anyup.cn/docs/components/card.html
86
86
  * @property {Boolean} full 卡片与屏幕两侧是否留空隙(默认false)
87
87
  * @property {String} title 头部左边的标题
88
88
  * @property {String} title-color 标题颜色(默认#303133)
@@ -17,7 +17,7 @@ defineOptions({
17
17
  /**
18
18
  * cellGroup 单元格父组件Group
19
19
  * @description cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。搭配u-cell-item
20
- * @tutorial https://www.uviewui.com/components/cell.html
20
+ * @tutorial https://uview-pro.anyup.cn/docs/components/cell.html
21
21
  * @property {String} title 分组标题
22
22
  * @property {Boolean} border 是否显示外边框(默认true)
23
23
  * @property {Object} title-style 分组标题的的样式,对象形式,如{'font-size': '24rpx'} 或 {'fontSize': '24rpx'}
@@ -45,7 +45,7 @@ defineOptions({
45
45
  /**
46
46
  * cellItem 单元格Item
47
47
  * @description cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。搭配u-cell-group使用
48
- * @tutorial https://www.uviewui.com/components/cell.html
48
+ * @tutorial https://uview-pro.anyup.cn/docs/components/cell.html
49
49
  * @property {String} title 左侧标题
50
50
  * @property {String} icon 左侧图标名,只支持uView内置图标,见Icon 图标
51
51
  * @property {Object} icon-style 左边图标的样式,对象形式
@@ -26,7 +26,7 @@ defineOptions({
26
26
  /**
27
27
  * checkbox 复选框
28
28
  * @description 该组件需要搭配checkboxGroup组件使用,以便用户进行操作时,获得当前复选框组的选中情况。
29
- * @tutorial https://www.uviewui.com/components/checkbox.html
29
+ * @tutorial https://uview-pro.anyup.cn/docs/components/checkbox.html
30
30
  * @property {String Number} icon-size 图标大小,单位rpx(默认20)
31
31
  * @property {String Number} label-size label字体大小,单位rpx(默认28)
32
32
  * @property {String Number} name checkbox组件的标示符
@@ -15,7 +15,7 @@ defineOptions({
15
15
  /**
16
16
  * checkboxGroup 开关选择器父组件Group
17
17
  * @description 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便
18
- * @tutorial https://www.uviewui.com/components/checkbox.html
18
+ * @tutorial https://uview-pro.anyup.cn/docs/components/checkbox.html
19
19
  * @property {String Number} max 最多能选中多少个checkbox(默认999)
20
20
  * @property {String Number} size 组件整体的大小,单位rpx(默认40)
21
21
  * @property {Boolean} disabled 是否禁用所有checkbox(默认false)
@@ -43,7 +43,7 @@ defineOptions({
43
43
  /**
44
44
  * circleProgress 环形进度条
45
45
  * @description 展示操作或任务的当前进度,比如上传文件,是一个圆形的进度条。注意:此组件的percent值只能动态增加,不能动态减少。
46
- * @tutorial https://www.uviewui.com/components/circleProgress.html
46
+ * @tutorial https://uview-pro.anyup.cn/docs/components/circleProgress.html
47
47
  * @property {String Number} percent 圆环进度百分比值,为数值类型,0-100
48
48
  * @property {String} inactive-color 圆环的底色,默认为灰色(该值无法动态变更)(默认#ececec)
49
49
  * @property {String} active-color 圆环激活部分的颜色(该值无法动态变更)(默认#19be6b)
@@ -14,7 +14,7 @@ defineOptions({
14
14
  /**
15
15
  * col 布局单元格
16
16
  * @description 通过基础的 12 分栏,迅速简便地创建布局(搭配<u-row>使用)
17
- * @tutorial https://www.uviewui.com/components/layout.html
17
+ * @tutorial https://uview-pro.anyup.cn/docs/components/layout.html
18
18
  * @property {String|Number} span 栅格占据的列数,总12等分(默认0)
19
19
  * @property {String} text-align 文字水平对齐方式(默认left)
20
20
  * @property {String|Number} offset 分栏左边偏移,计算方式与span相同(默认0)
@@ -14,7 +14,7 @@ defineOptions({
14
14
  /**
15
15
  * collapse 手风琴
16
16
  * @description 通过折叠面板收纳内容区域
17
- * @tutorial https://www.uviewui.com/components/collapse.html
17
+ * @tutorial https://uview-pro.anyup.cn/docs/components/collapse.html
18
18
  * @property {Boolean} accordion 是否手风琴模式(默认true)
19
19
  * @property {Boolean} arrow 是否显示标题右侧的箭头(默认true)
20
20
  * @property {String} arrow-color 标题右侧箭头的颜色(默认#909399)
@@ -31,7 +31,7 @@ defineOptions({
31
31
  /**
32
32
  * collapseItem 手风琴Item
33
33
  * @description 通过折叠面板收纳内容区域(搭配u-collapse使用)
34
- * @tutorial https://www.uviewui.com/components/collapse.html
34
+ * @tutorial https://uview-pro.anyup.cn/docs/components/collapse.html
35
35
  * @property {String} title 面板标题
36
36
  * @property {String Number} index 主要用于事件的回调,标识那个Item被点击
37
37
  * @property {Boolean} disabled 面板是否可以打开或收起(默认false)
@@ -121,7 +121,7 @@ function headClick() {
121
121
  * 查询内容高度
122
122
  */
123
123
  function queryRect() {
124
- // getRect为uView自带的节点查询简化方法,详见文档介绍:https://www.uviewui.com/js/getRect.html
124
+ // getRect为uView自带的节点查询简化方法,详见文档介绍:https://uview-pro.anyup.cn/docs/js/getRect.html
125
125
  // 组件内部一般用this.$uGetRect,对外的为this.$u.getRect,二者功能一致,名称不同
126
126
  $u.getRect('#' + elId.value, instance).then((res: any) => {
127
127
  height.value = res.height;
@@ -59,7 +59,7 @@ defineOptions({ name: 'u-count-down' });
59
59
  /**
60
60
  * countDown 倒计时
61
61
  * @description 该组件一般使用于某个活动的截止时间上,通过数字的变化,给用户明确的时间感受,提示用户进行某一个行为操作。
62
- * @tutorial https://www.uviewui.com/components/countDown.html
62
+ * @tutorial https://uview-pro.anyup.cn/docs/components/countDown.html
63
63
  * @property {String | Number} timestamp 倒计时,单位为秒
64
64
  * @property {Boolean} autoplay 是否自动开始倒计时,如果为false,需手动调用开始方法。见官网说明(默认true)
65
65
  * @property {String} separator 分隔符,colon为英文冒号,zh为中文(默认colon)
@@ -19,7 +19,7 @@ defineOptions({ name: 'u-count-to' });
19
19
  /**
20
20
  * countTo 数字滚动
21
21
  * @description 该组件一般用于需要滚动数字到某一个值的场景,目标要求是一个递增的值。
22
- * @tutorial https://www.uviewui.com/components/countTo.html
22
+ * @tutorial https://uview-pro.anyup.cn/docs/components/countTo.html
23
23
  * @property {String | Number} start-val 开始值
24
24
  * @property {String | Number} end-val 结束值
25
25
  * @property {String | Number} duration 滚动过程所需的时间,单位ms(默认2000)
@@ -33,7 +33,7 @@ defineOptions({
33
33
  /**
34
34
  * divider 分割线
35
35
  * @description 区隔内容的分割线,一般用于页面底部"没有更多"的提示。
36
- * @tutorial https://www.uviewui.com/components/divider.html
36
+ * @tutorial https://uview-pro.anyup.cn/docs/components/divider.html
37
37
  * @property {String Number} half-width 文字左或右边线条宽度,数值或百分比,数值时单位为rpx
38
38
  * @property {String} border-color 线条颜色,优先级高于type(默认#dcdfe6)
39
39
  * @property {String} color 文字颜色(默认#909399)
@@ -25,7 +25,7 @@ defineOptions({
25
25
  /**
26
26
  * empty 内容为空
27
27
  * @description 该组件用于需要加载内容,但是加载的第一页数据就为空,提示一个"没有内容"的场景, 我们精心挑选了十几个场景的图标,方便您使用。
28
- * @tutorial https://www.uviewui.com/components/empty.html
28
+ * @tutorial https://uview-pro.anyup.cn/docs/components/empty.html
29
29
  * @property {String} color 文字颜色(默认#c0c4cc)
30
30
  * @property {String} text 文字提示(默认“无内容”)
31
31
  * @property {String} src 自定义图标路径,如定义,mode参数会失效
@@ -87,7 +87,7 @@ defineOptions({ name: 'u-field' });
87
87
  /**
88
88
  * field 输入框
89
89
  * @description 借助此组件,可以实现表单的输入, 有"text"和"textarea"类型的,此外,借助uView的picker和actionSheet组件可以快速实现上拉菜单,时间,地区选择等, 为表单解决方案的利器。
90
- * @tutorial https://www.uviewui.com/components/field.html
90
+ * @tutorial https://uview-pro.anyup.cn/docs/components/field.html
91
91
  * @property {String} type 输入框的类型(默认text)
92
92
  * @property {String} icon label左边的图标,限uView的图标名称
93
93
  * @property {Object} icon-style 左边图标的样式,对象形式
@@ -12,7 +12,7 @@ defineOptions({
12
12
  /**
13
13
  * gap 间隔槽
14
14
  * @description 该组件一般用于内容块之间的用一个灰色块隔开的场景,方便用户风格统一,减少工作量
15
- * @tutorial https://www.uviewui.com/components/gap.html
15
+ * @tutorial https://uview-pro.anyup.cn/docs/components/gap.html
16
16
  * @property {String} bg-color 背景颜色(默认#f3f4f6)
17
17
  * @property {String Number} height 分割槽高度,单位rpx(默认30)
18
18
  * @property {String Number} margin-top 与前一个组件的距离,单位rpx(默认0)
@@ -11,7 +11,7 @@ defineOptions({ name: 'u-grid' });
11
11
  /**
12
12
  * grid 宫格布局
13
13
  * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。
14
- * @tutorial https://www.uviewui.com/components/grid.html
14
+ * @tutorial https://uview-pro.anyup.cn/docs/components/grid.html
15
15
  * @property {String|Number} col 宫格的列数(默认3)
16
16
  * @property {Boolean} border 是否显示宫格的边框(默认true)
17
17
  * @property {Boolean} hover-class 点击宫格的时候,是否显示按下的灰色背景(默认false)
@@ -24,7 +24,7 @@ defineOptions({ name: 'u-grid-item' });
24
24
  /**
25
25
  * gridItem 宫格项
26
26
  * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。搭配u-grid使用
27
- * @tutorial https://www.uviewui.com/components/grid.html
27
+ * @tutorial https://uview-pro.anyup.cn/docs/components/grid.html
28
28
  * @property {String} bg-color 宫格的背景颜色(默认#ffffff)
29
29
  * @property {String|Number} index 点击宫格时,返回的值
30
30
  * @property {Object} custom-style 自定义样式,对象形式
@@ -21,7 +21,7 @@ defineOptions({
21
21
  /**
22
22
  * icon 图标
23
23
  * @description 基于字体的图标集,包含了大多数常见场景的图标。
24
- * @tutorial https://www.uviewui.com/components/icon.html
24
+ * @tutorial https://uview-pro.anyup.cn/docs/components/icon.html
25
25
  * @property {String} name 图标名称,见示例图标集
26
26
  * @property {String} color 图标颜色(默认inherit)
27
27
  * @property {String | Number} size 图标字体大小,单位rpx(默认32)
@@ -23,7 +23,7 @@ defineOptions({
23
23
  /**
24
24
  * indexAnchor 索引列表锚点
25
25
  * @description 通过折叠面板收纳内容区域,搭配<u-index-anchor>使用
26
- * @tutorial https://www.uviewui.com/components/indexList.html#indexanchor-props
26
+ * @tutorial https://uview-pro.anyup.cn/docs/components/indexList.html#indexanchor-props
27
27
  * @property {Boolean} use-slot 是否使用自定义内容的插槽(默认false)
28
28
  * @property {String|Number} index 索引字符,如果定义了use-slot,此参数自动失效
29
29
  * @property {Object} customStyle 自定义样式,对象形式,如"{color: 'red'}"
@@ -57,7 +57,7 @@ defineOptions({
57
57
  /**
58
58
  * indexList 索引列表
59
59
  * @description 通过折叠面板收纳内容区域,搭配<u-index-anchor>使用
60
- * @tutorial https://www.uviewui.com/components/indexList.html#indexanchor-props
60
+ * @tutorial https://uview-pro.anyup.cn/docs/components/indexList.html#indexanchor-props
61
61
  * @property {Number|String} scroll-top 当前滚动高度,自定义组件无法获得滚动条事件,所以依赖接入方传入
62
62
  * @property {Array} index-list 索引字符列表,数组(默认A-Z)
63
63
  * @property {Number|String} z-index 锚点吸顶时的层级(默认965)
@@ -41,7 +41,7 @@ defineOptions({
41
41
  /**
42
42
  * keyboard 键盘
43
43
  * @description 此为uViw自定义的键盘面板,内含了数字键盘,车牌号键,身份证号键盘3中模式,都有可以打乱按键顺序的选项。
44
- * @tutorial https://www.uviewui.com/components/keyboard.html
44
+ * @tutorial https://uview-pro.anyup.cn/docs/components/keyboard.html
45
45
  * @property {String} mode 键盘类型,见官网基本使用的说明(默认number)
46
46
  * @property {Boolean} dot-enabled 是否显示"."按键,只在mode=number时有效(默认true)
47
47
  * @property {Boolean} tooltip 是否显示键盘顶部工具条(默认true)
@@ -42,7 +42,7 @@ defineOptions({ name: 'u-lazy-load' });
42
42
  /**
43
43
  * lazyLoad 懒加载
44
44
  * @description 懒加载使用的场景为:页面有很多图片时,APP会同时加载所有的图片,导致页面卡顿,各个位置的图片出现前后不一致等.
45
- * @tutorial https://www.uviewui.com/components/lazyLoad.html
45
+ * @tutorial https://uview-pro.anyup.cn/docs/components/lazyLoad.html
46
46
  * @property {String | Number} index 用户自定义值,在事件触发时回调,用以区分是哪个图片
47
47
  * @property {String} image 图片路径
48
48
  * @property {String} loading-img 预加载时的占位图
@@ -13,7 +13,7 @@ defineOptions({
13
13
  /**
14
14
  * line 线条
15
15
  * @description 此组件一般用于显示一根线条,用于分隔内容块,有横向和竖向两种模式,且能设置0.5px线条,使用也很简单
16
- * @tutorial https://www.uviewui.com/components/line.html
16
+ * @tutorial https://uview-pro.anyup.cn/docs/components/line.html
17
17
  * @property {String} color 线条的颜色(默认#e4e7ed)
18
18
  * @property {String} length 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带rpx单位的值等
19
19
  * @property {String} direction 线条的方向,row-横向,col-竖向(默认row)
@@ -26,7 +26,7 @@ defineOptions({
26
26
  /**
27
27
  * lineProgress 线型进度条
28
28
  * @description 展示操作或任务的当前进度,比如上传文件,是一个线形的进度条。
29
- * @tutorial https://www.uviewui.com/components/lineProgress.html
29
+ * @tutorial https://uview-pro.anyup.cn/docs/components/lineProgress.html
30
30
  * @property {String Number} percent 进度条百分比值,为数值类型,0-100
31
31
  * @property {Boolean} round 进度条两端是否为半圆(默认true)
32
32
  * @property {String} type 如设置,active-color值将会失效
@@ -23,7 +23,7 @@ defineOptions({
23
23
  /**
24
24
  * link 超链接
25
25
  * @description 该组件为超链接组件,在不同平台有不同表现形式:在APP平台会通过plus环境打开内置浏览器,在小程序中把链接复制到粘贴板,同时提示信息,在H5中通过window.open打开链接。
26
- * @tutorial https://www.uviewui.com/components/link.html
26
+ * @tutorial https://uview-pro.anyup.cn/docs/components/link.html
27
27
  * @property {String} color 文字颜色(默认#606266)
28
28
  * @property {String Number} font-size 字体大小,单位rpx(默认28)
29
29
  * @property {Boolean} under-line 是否显示下划线(默认false)
@@ -12,7 +12,7 @@ defineOptions({
12
12
  /**
13
13
  * loading 加载动画
14
14
  * @description 此组件为一个小动画,目前用在uView的loadmore加载更多和switch开关等组件的正在加载状态场景。
15
- * @tutorial https://www.uviewui.com/components/loading.html
15
+ * @tutorial https://uview-pro.anyup.cn/docs/components/loading.html
16
16
  * @property {String} mode 模式选择,见官网说明(默认circle)
17
17
  * @property {String} color 动画活动区域的颜色,只对 mode = flower 模式有效(默认#c7c7c7)
18
18
  * @property {String|Number} size 加载图标的大小,单位rpx(默认34)
@@ -37,7 +37,7 @@ defineOptions({ name: 'u-loadmore' });
37
37
  /**
38
38
  * loadmore 加载更多
39
39
  * @description 此组件一般用于标识页面底部加载数据时的状态。
40
- * @tutorial https://www.uviewui.com/components/loadMore.html
40
+ * @tutorial https://uview-pro.anyup.cn/docs/components/loadMore.html
41
41
  * @property {String} status 组件状态(默认loadmore)
42
42
  * @property {String} bg-color 组件背景颜色,在页面是非白色时会用到(默认#ffffff)
43
43
  * @property {Boolean} icon 加载中时是否显示图标(默认true)
@@ -23,7 +23,7 @@ defineOptions({ name: 'u-mask' });
23
23
  /**
24
24
  * mask 遮罩
25
25
  * @description 创建一个遮罩层,用于强调特定的页面元素,并阻止用户对遮罩下层的内容进行操作,一般用于弹窗场景
26
- * @tutorial https://www.uviewui.com/components/mask.html
26
+ * @tutorial https://uview-pro.anyup.cn/docs/components/mask.html
27
27
  * @property {Boolean} show 是否显示遮罩(默认false)
28
28
  * @property {String|Number} z-index z-index 层级(默认1070)
29
29
  * @property {Object} custom-style 自定义样式对象,见上方说明
@@ -63,7 +63,7 @@ defineOptions({ name: 'u-message-input' });
63
63
  /**
64
64
  * messageInput 验证码输入框
65
65
  * @description 该组件一般用于验证用户短信验证码的场景,也可以结合uView的键盘组件使用
66
- * @tutorial https://www.uviewui.com/components/messageInput.html
66
+ * @tutorial https://uview-pro.anyup.cn/docs/components/messageInput.html
67
67
  * @property {String|Number} maxlength 输入字符个数(默认4)
68
68
  * @property {Boolean} dot-fill 是否用圆点填充(默认false)
69
69
  * @property {String} mode 模式选择,见上方"基本使用"说明(默认box)
@@ -56,7 +56,7 @@ defineOptions({
56
56
  /**
57
57
  * modal 模态框
58
58
  * @description 弹出模态框,常用于消息提示、消息确认、在当前页面内完成特定的交互操作
59
- * @tutorial https://www.uviewui.com/components/modal.html
59
+ * @tutorial https://uview-pro.anyup.cn/docs/components/modal.html
60
60
  * @property {Boolean} value 是否显示模态框
61
61
  * @property {String | Number} z-index 层级
62
62
  * @property {String} title 模态框标题(默认"提示")
@@ -47,7 +47,7 @@ defineOptions({ name: 'u-navbar' });
47
47
  /**
48
48
  * navbar 自定义导航栏
49
49
  * @description 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用uniapp自带的导航栏。
50
- * @tutorial https://www.uviewui.com/components/navbar.html
50
+ * @tutorial https://uview-pro.anyup.cn/docs/components/navbar.html
51
51
  * @property {String|Number} height 导航栏高度(不包括状态栏高度在内,内部自动加上),注意这里的单位是px(默认44)
52
52
  * @property {String} back-icon-color 左边返回图标的颜色(默认#606266)
53
53
  * @property {String} back-icon-name 左边返回图标的名称,只能为uView自带的图标(默认arrow-left)
@@ -24,7 +24,7 @@ defineOptions({ name: 'u-no-network' });
24
24
  /**
25
25
  * noNetwork 无网络提示
26
26
  * @description 该组件无需任何配置,引入即可,内部自动处理所有功能和事件。
27
- * @tutorial https://www.uviewui.com/components/noNetwork.html
27
+ * @tutorial https://uview-pro.anyup.cn/docs/components/noNetwork.html
28
28
  * @property {String} tips 没有网络时的提示语(默认哎呀,网络信号丢失)
29
29
  * @property {String | Number} zIndex 组件的z-index值(默认1080)
30
30
  * @property {String} image 无网络的图片提示,可用的src地址或base64图片
@@ -54,7 +54,7 @@ defineOptions({ name: 'u-notice-bar' });
54
54
  /**
55
55
  * noticeBar 滚动通知
56
56
  * @description 该组件用于滚动通告场景,有多种模式可供选择
57
- * @tutorial https://www.uviewui.com/components/noticeBar.html
57
+ * @tutorial https://uview-pro.anyup.cn/docs/components/noticeBar.html
58
58
  * @property {Array} list 滚动内容,数组形式,见上方说明
59
59
  * @property {String} type 显示的主题(默认warning)
60
60
  * @property {Boolean} volumeIcon 是否显示小喇叭图标(默认true)
@@ -56,7 +56,7 @@ defineOptions({
56
56
  /**
57
57
  * numberBox 步进器
58
58
  * @description 该组件一般用于商城购物选择物品数量的场景。注意:该输入框只能输入大于或等于0的整数,不支持小数输入
59
- * @tutorial https://www.uviewui.com/components/numberBox.html
59
+ * @tutorial https://uview-pro.anyup.cn/docs/components/numberBox.html
60
60
  * @property {Number} modelValue 输入框初始值(默认1)
61
61
  * @property {String} bg-color 输入框和按钮的背景颜色(默认#F2F3F5)
62
62
  * @property {Number} min 用户可输入的最小值(默认0)
@@ -114,7 +114,7 @@ defineOptions({
114
114
  /**
115
115
  * picker picker弹出选择器
116
116
  * @description 此选择器有两种弹出模式:一是时间模式,可以配置年,日,月,时,分,秒参数 二是地区模式,可以配置省,市,区参数
117
- * @tutorial https://www.uviewui.com/components/picker.html
117
+ * @tutorial https://uview-pro.anyup.cn/docs/components/picker.html
118
118
  * @property {Object} params 需要显示的参数,见官网说明
119
119
  * @property {String} mode 模式选择,region-地区类型,time-时间类型(默认time)
120
120
  * @property {String Number} start-year 可选的开始年份,mode=time时有效(默认1950)
@@ -56,7 +56,7 @@ defineOptions({
56
56
  /**
57
57
  * popup 弹窗
58
58
  * @description 弹出层容器,用于展示弹窗、信息提示等内容,支持上、下、左、右和中部弹出。组件只提供容器,内部内容由用户自定义
59
- * @tutorial https://www.uviewui.com/components/popup.html
59
+ * @tutorial https://uview-pro.anyup.cn/docs/components/popup.html
60
60
  * @property {String} mode 弹出方向(默认left)
61
61
  * @property {Boolean} mask 是否显示遮罩(默认true)
62
62
  * @property {Stringr | Number} length mode=left | 见官网说明(默认auto)
@@ -26,7 +26,7 @@ defineOptions({
26
26
  /**
27
27
  * radio 单选框
28
28
  * @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio-group使用
29
- * @tutorial https://www.uviewui.com/components/radio.html
29
+ * @tutorial https://uview-pro.anyup.cn/docs/components/radio.html
30
30
  * @property {String|Number} icon-size 图标大小,单位rpx(默认24)
31
31
  * @property {String|Number} label-size label字体大小,单位rpx(默认28)
32
32
  * @property {String|Number} name radio组件的标示符
@@ -15,7 +15,7 @@ defineOptions({
15
15
  /**
16
16
  * radioGroup 单选框父组件
17
17
  * @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio使用
18
- * @tutorial https://www.uviewui.com/components/radio.html
18
+ * @tutorial https://uview-pro.anyup.cn/docs/components/radio.html
19
19
  * @property {Boolean} disabled 是否禁用所有radio(默认false)
20
20
  * @property {String|Number} size 组件整体的大小,单位rpx(默认40)
21
21
  * @property {String} active-color 选中时的颜色,应用到所有子Radio组件(默认#2979ff)
@@ -29,7 +29,7 @@ defineOptions({
29
29
  /**
30
30
  * rate 评分
31
31
  * @description 该组件一般用于满意度调查,星型评分的场景
32
- * @tutorial https://www.uviewui.com/components/rate.html
32
+ * @tutorial https://uview-pro.anyup.cn/docs/components/rate.html
33
33
  * @property {String|Number} count 最多可选的星星数量(默认5)
34
34
  * @property {String|Number} current 默认选中的星星数量(默认0)
35
35
  * @property {Boolean} disabled 是否禁止用户操作(默认false)
@@ -36,7 +36,7 @@ defineOptions({ name: 'u-read-more' });
36
36
  /**
37
37
  * readMore 阅读更多
38
38
  * @description 该组件一般用于内容较长,预先收起一部分,点击展开全部内容的场景。
39
- * @tutorial https://www.uviewui.com/components/readMore.html
39
+ * @tutorial https://uview-pro.anyup.cn/docs/components/readMore.html
40
40
  * @property {String|Number} showHeight 内容超出此高度才会显示展开全文按钮,单位rpx(默认400)
41
41
  * @property {Boolean} toggle 展开后是否显示收起按钮(默认false)
42
42
  * @property {String} closeText 关闭时的提示文字(默认“展开阅读全文”)
@@ -21,7 +21,7 @@ defineOptions({
21
21
  /**
22
22
  * row 行布局
23
23
  * @description 通过基础的 12 分栏,迅速简便地创建布局。
24
- * @tutorial https://www.uviewui.com/components/layout.html#row-props
24
+ * @tutorial https://uview-pro.anyup.cn/docs/components/layout.html#row-props
25
25
  * @property {String|Number} gutter 栅格间隔,左右各为此值的一半,单位rpx(默认0)
26
26
  * @property {String} justify 水平排列方式(微信小程序暂不支持)默认(start(或flex-start))
27
27
  * @property {String} align 垂直排列方式(默认center)
@@ -58,7 +58,7 @@ defineOptions({ name: 'u-search' });
58
58
  /**
59
59
  * search 搜索框
60
60
  * @description 搜索组件,集成了常见搜索框所需功能,用户可以一键引入,开箱即用。
61
- * @tutorial https://www.uviewui.com/components/search.html
61
+ * @tutorial https://uview-pro.anyup.cn/docs/components/search.html
62
62
  * @property {String} shape 搜索框形状,round-圆形,square-方形(默认round)
63
63
  * @property {String} bg-color 搜索框背景颜色(默认#f2f2f2)
64
64
  * @property {String} border-color 边框颜色,配置了颜色,才会有边框
@@ -45,7 +45,7 @@ defineOptions({ name: 'u-section' });
45
45
  /**
46
46
  * section 查看更多
47
47
  * @description 该组件一般用于分类信息有很多,但是限于篇幅只能列出一部分,让用户通过"查看更多"获得更多信息的场景,实际效果见演示。
48
- * @tutorial https://www.uviewui.com/components/section.html
48
+ * @tutorial https://uview-pro.anyup.cn/docs/components/section.html
49
49
  * @property {String} title 左边主标题
50
50
  * @property {String} subTitle 右边副标题(默认更多)
51
51
  * @property {Boolean} right 是否显示右边的内容(默认true)
@@ -15,7 +15,7 @@ defineOptions({ name: 'u-skeleton' });
15
15
  /**
16
16
  * skeleton 骨架屏
17
17
  * @description 骨架屏一般用于页面在请求远程数据尚未完成时,页面用灰色块预显示本来的页面结构,给用户更好的体验。
18
- * @tutorial https://www.uviewui.com/components/skeleton.html
18
+ * @tutorial https://uview-pro.anyup.cn/docs/components/skeleton.html
19
19
  * @property {String} elColor 骨架块状元素的背景颜色(默认#e5e5e5)
20
20
  * @property {String} bgColor 骨架组件背景颜色(默认#ffffff)
21
21
  * @property {Boolean} animation 骨架块是否显示动画效果(默认false)
@@ -28,7 +28,7 @@ defineOptions({ name: 'u-steps' });
28
28
  /**
29
29
  * steps 步骤条
30
30
  * @description 该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。
31
- * @tutorial https://www.uviewui.com/components/steps.html
31
+ * @tutorial https://uview-pro.anyup.cn/docs/components/steps.html
32
32
  * @property {String} mode 设置模式(默认dot)
33
33
  * @property {Array<{name: string}>} list 数轴条数据,数组。具体见上方示例
34
34
  * @property {String} type type主题(默认primary)
@@ -33,7 +33,7 @@ defineOptions({ name: 'u-sticky' });
33
33
  /**
34
34
  * sticky 吸顶
35
35
  * @description 该组件与CSS中position: sticky属性实现的效果一致,当组件达到预设的到顶部距离时, 就会固定在指定位置,组件位置大于预设的顶部距离时,会重新按照正常的布局排列。
36
- * @tutorial https://www.uviewui.com/components/sticky.html
36
+ * @tutorial https://uview-pro.anyup.cn/docs/components/sticky.html
37
37
  * @property {String|Number} offsetTop 吸顶时与顶部的距离,单位rpx(默认0)
38
38
  * @property {String|Number} index 自定义标识,用于区分是哪一个组件
39
39
  * @property {Boolean} enable 是否开启吸顶功能(默认true)
@@ -23,7 +23,7 @@ defineOptions({ name: 'u-subsection' });
23
23
  /**
24
24
  * subsection 分段器
25
25
  * @description 该分段器一般用于用户从几个选项中选择某一个的场景
26
- * @tutorial https://www.uviewui.com/components/subsection.html
26
+ * @tutorial https://uview-pro.anyup.cn/docs/components/subsection.html
27
27
  * @property {Array} list 选项的数组,形式见上方"基本使用"
28
28
  * @property {String | Number} current 初始化时默认选中的选项索引值(默认0)
29
29
  * @property {String} activeColor 激活时的颜色,mode为subsection时固定为白色(默认#303133)
@@ -32,7 +32,7 @@ defineOptions({ name: 'u-swipe-action' });
32
32
  /**
33
33
  * swipeAction 左滑单元格
34
34
  * @description 该组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作。
35
- * @tutorial https://www.uviewui.com/components/swipeAction.html
35
+ * @tutorial https://uview-pro.anyup.cn/docs/components/swipeAction.html
36
36
  * @property {String} bg-color 整个组件背景颜色(默认#ffffff)
37
37
  * @property {Array} options 数组形式,可以配置背景颜色和文字
38
38
  * @property {String|Number} index 标识符,点击时候用于区分点击了哪一个,用v-for循环时的index即可
@@ -62,7 +62,7 @@ defineOptions({ name: 'u-swiper' });
62
62
  /**
63
63
  * swiper 轮播图
64
64
  * @description 该组件一般用于导航轮播,广告展示等场景,可开箱即用
65
- * @tutorial https://www.uviewui.com/components/swiper.html
65
+ * @tutorial https://uview-pro.anyup.cn/docs/components/swiper.html
66
66
  * @property {Array} list 轮播图数据,见官网"基本使用"说明
67
67
  * @property {Boolean} title 是否显示标题文字,需要配合list参数,见官网说明(默认false)
68
68
  * @property {String} mode 指示器模式,见官网说明(默认round)
@@ -23,7 +23,7 @@ defineOptions({
23
23
  /**
24
24
  * switch 开关选择器
25
25
  * @description 选择开关一般用于只有两个选择,且只能选其一的场景。
26
- * @tutorial https://www.uviewui.com/components/switch.html
26
+ * @tutorial https://uview-pro.anyup.cn/docs/components/switch.html
27
27
  * @property {Boolean} loading 是否处于加载中(默认false)
28
28
  * @property {Boolean} disabled 是否禁用(默认false)
29
29
  * @property {String|Number} size 开关尺寸,单位rpx(默认50)
@@ -12,7 +12,7 @@ defineOptions({ name: 'u-table' });
12
12
  /**
13
13
  * table 表格
14
14
  * @description 表格组件一般用于展示大量结构化数据的场景
15
- * @tutorial https://www.uviewui.com/components/table.html
15
+ * @tutorial https://uview-pro.anyup.cn/docs/components/table.html
16
16
  * @property {String} border-color 表格边框的颜色(默认#e4e7ed)
17
17
  * @property {String} bg-color 表格的背景颜色(默认#ffffff)
18
18
  * @property {String} align 单元格的内容对齐方式,作用类似css的text-align(默认center)
@@ -24,7 +24,7 @@ defineOptions({ name: 'u-tabs' });
24
24
  /**
25
25
  * tabs 标签
26
26
  * @description 该组件,是一个tabs标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的tab会自动移动到组件的中间位置。
27
- * @tutorial https://www.uviewui.com/components/tabs.html
27
+ * @tutorial https://uview-pro.anyup.cn/docs/components/tabs.html
28
28
  * @property {Boolean} is-scroll tabs是否可以左右拖动(默认true)
29
29
  * @property {Array} list 标签数组,元素为对象,如[{name: '推荐'}]
30
30
  * @property {String|Number} current 指定哪个tab为激活状态(默认0)
@@ -21,7 +21,7 @@ defineOptions({ name: 'u-tabs-swiper' });
21
21
  /**
22
22
  * tabsSwiper 全屏选项卡
23
23
  * @description 该组件内部实现主要依托于uniapp的scroll-view和swiper组件,主要特色是切换过程中,tabsSwiper文字的颜色可以渐变,底部滑块可以 跟随式滑动,活动tab滚动居中等。应用场景可以用于需要左右切换页面,比如商城的订单中心(待收货-待付款-待评价-已退货)等应用场景。
24
- * @tutorial https://www.uviewui.com/components/tabsSwiper.html
24
+ * @tutorial https://uview-pro.anyup.cn/docs/components/tabsSwiper.html
25
25
  * @property {Boolean} is-scroll tabs是否可以左右拖动(默认true)
26
26
  * @property {Array} list 标签数组,元素为对象,如[{name: '推荐'}]
27
27
  * @property {String|Number} current 指定哪个tab为激活状态(默认0)
@@ -23,7 +23,7 @@ defineOptions({
23
23
  /**
24
24
  * tag 提示
25
25
  * @description 该组件一般用于标记和选择
26
- * @tutorial https://www.uviewui.com/components/tag.html
26
+ * @tutorial https://uview-pro.anyup.cn/docs/components/tag.html
27
27
  * @property {String} type 主题类型(默认primary)
28
28
  * @property {String} size 标签大小(默认default)
29
29
  * @property {String} shape 标签形状(默认square)
@@ -13,7 +13,7 @@ defineOptions({ name: 'u-td' });
13
13
  /**
14
14
  * td td单元格
15
15
  * @description 表格组件一般用于展示大量结构化数据的场景(搭配u-table使用)
16
- * @tutorial https://www.uviewui.com/components/table.html#td-props
16
+ * @tutorial https://uview-pro.anyup.cn/docs/components/table.html#td-props
17
17
  * @property {String | Number} width 单元格宽度百分比或者具体带单位的值,如30%, 200rpx等,一般使用百分比,单元格宽度默认为均分tr的长度(默认auto)
18
18
  * @example <u-td>二年级</u-td>
19
19
  */
@@ -13,7 +13,7 @@ defineOptions({ name: 'u-th' });
13
13
  /**
14
14
  * th th单元格
15
15
  * @description 表格组件一般用于展示大量结构化数据的场景(搭配u-table使用)
16
- * @tutorial https://www.uviewui.com/components/table.html#td-props
16
+ * @tutorial https://uview-pro.anyup.cn/docs/components/table.html#td-props
17
17
  * @property {String | Number} width 标题单元格宽度百分比或者具体带单位的值,如30%,200rpx等,一般使用百分比,单元格宽度默认为均分tr的长度
18
18
  * @example 暂无示例
19
19
  */
@@ -10,7 +10,7 @@ defineOptions({ name: 'u-time-line' });
10
10
  /**
11
11
  * timeLine 时间轴
12
12
  * @description 时间轴组件一般用于物流信息展示,各种跟时间相关的记录等场景。
13
- * @tutorial https://www.uviewui.com/components/timeLine.html
13
+ * @tutorial https://uview-pro.anyup.cn/docs/components/timeLine.html
14
14
  * @example <u-time-line></u-time-line>
15
15
  */
16
16
 
@@ -17,7 +17,7 @@ defineOptions({ name: 'u-time-line-item' });
17
17
  /**
18
18
  * timeLineItem 时间轴Item
19
19
  * @description 时间轴组件一般用于物流信息展示,各种跟时间相关的记录等场景。(搭配u-time-line使用)
20
- * @tutorial https://www.uviewui.com/components/timeLine.html
20
+ * @tutorial https://uview-pro.anyup.cn/docs/components/timeLine.html
21
21
  * @property {String} bg-color 左边节点的背景颜色,一般通过slot内容自定义背景颜色即可(默认#ffffff)
22
22
  * @property {String | Number} node-top 节点左边图标绝对定位的top值,单位rpx
23
23
  * @example <u-time-line-item node-top="2">...</u-time-line-item>
@@ -25,7 +25,7 @@ defineOptions({
25
25
  /**
26
26
  * toast 消息提示
27
27
  * @description 此组件表现形式类似uni的uni.showToastAPI,但也有不同的地方。
28
- * @tutorial https://www.uviewui.com/components/toast.html
28
+ * @tutorial https://uview-pro.anyup.cn/docs/components/toast.html
29
29
  * @property {String|Number} z-index toast展示时的z-index值
30
30
  * @event {Function} show 显示toast,如需一进入页面就显示toast,请在onReady生命周期调用
31
31
  * @example <u-toast ref="uToast" />
@@ -11,7 +11,7 @@ defineOptions({ name: 'u-top-tips' });
11
11
  /**
12
12
  * topTips 顶部提示
13
13
  * @description 该组件一般用于页面顶部向下滑出一个提示,尔后自动收起的场景。
14
- * @tutorial https://www.uviewui.com/components/topTips.html
14
+ * @tutorial https://uview-pro.anyup.cn/docs/components/topTips.html
15
15
  * @property {String|Number} navbarHeight 导航栏高度(包含状态栏高度在内),单位PX
16
16
  * @property {String|Number} zIndex z-index值(默认975)
17
17
  * @example <u-top-tips ref="uTips"></u-top-tips>
@@ -10,7 +10,7 @@ defineOptions({ name: 'u-tr' });
10
10
  /**
11
11
  * tr 表格行标签
12
12
  * @description 表格组件一般用于展示大量结构化数据的场景(搭配<u-table>使用)
13
- * @tutorial https://www.uviewui.com/components/table.html
13
+ * @tutorial https://uview-pro.anyup.cn/docs/components/table.html
14
14
  * @example <u-tr></u-tr>
15
15
  */
16
16
  </script>
@@ -61,7 +61,7 @@ defineOptions({
61
61
  /**
62
62
  * upload 图片上传
63
63
  * @description 该组件用于上传图片场景
64
- * @tutorial https://www.uviewui.com/components/upload.html
64
+ * @tutorial https://uview-pro.anyup.cn/docs/components/upload.html
65
65
  * @property {String} action 服务器上传地址
66
66
  * @property {String Number} max-count 最大选择图片的数量(默认99)
67
67
  * @property {Boolean} custom-btn 如果需要自定义选择图片的按钮,设置为true(默认false)
@@ -12,7 +12,7 @@ defineOptions({ name: 'u-verification-code' });
12
12
  /**
13
13
  * verificationCode 验证码输入框
14
14
  * @description 考虑到用户实际发送验证码的场景,可能是一个按钮,也可能是一段文字,提示语各有不同,所以本组件不提供界面显示,只提供提示语,由用户将提示语嵌入到具体的场景
15
- * @tutorial https://www.uviewui.com/components/verificationCode.html
15
+ * @tutorial https://uview-pro.anyup.cn/docs/components/verificationCode.html
16
16
  * @property {Number|String} seconds 倒计时所需的秒数(默认60)
17
17
  * @property {String} startText 开始前的提示语,见官网说明(默认获取验证码)
18
18
  * @property {String} changeText 倒计时期间的提示语,必须带有字母"x",见官网说明(默认X秒重新获取)
@@ -17,7 +17,7 @@ defineOptions({ name: 'u-waterfall' });
17
17
  /**
18
18
  * waterfall 瀑布流
19
19
  * @description 这是一个瀑布流形式的组件,内容分为左右两列,结合uView的懒加载组件效果更佳。相较于某些只是奇偶数左右分别,或者没有利用vue作用域插槽的做法,uView的瀑布流实现了真正的 组件化,搭配LazyLoad 懒加载和loadMore 加载更多组件,让您开箱即用,眼前一亮。
20
- * @tutorial https://www.uviewui.com/components/waterfall.html
20
+ * @tutorial https://uview-pro.anyup.cn/docs/components/waterfall.html
21
21
  * @property {Array} flow-list 用于渲染的数据
22
22
  * @property {String | Number} add-time 单条数据添加到队列的时间间隔,单位ms,见上方注意事项说明(默认200)
23
23
  * @example <u-waterfall :flowList="flowList"></u-waterfall>
package/package.json CHANGED
@@ -1,29 +1,24 @@
1
1
  {
2
2
  "id": "uview-pro",
3
3
  "name": "uview-pro",
4
- "displayName": "uView Pro,是uni-app全面兼容vue3的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
5
- "version": "0.0.2",
6
- "description": "uView Pro,是uni-app全面兼容vue3的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。uView Pro的基线版本基于uView1.8.8修改,使用TypeScript重构,目前已全面支持uni-app Vue3.0",
4
+ "displayName": "uView Prouni-app全面兼容Vue3+TS的uni-app生态框架,70+精选组件",
5
+ "version": "0.0.3",
6
+ "description": "uView Pro,是uni-app全面兼容Vue3的uni-app生态框架,70+精选组件已使用TypeScript重构,已全面支持uni-app Vue3.0",
7
7
  "main": "index.ts",
8
8
  "module": "index.ts",
9
9
  "browser": "index.ts",
10
10
  "keywords": [
11
- "uniapp",
12
11
  "uni-app",
13
12
  "library",
14
13
  "component",
15
- "uView UI",
16
- "uView Pro",
17
14
  "uView",
18
- "vue3",
19
- "typescript",
20
- "ts"
15
+ "Vue3"
21
16
  ],
22
17
  "author": "anyup",
23
18
  "license": "MIT",
24
19
  "repository": "https://github.com/anyup/uview-pro",
25
20
  "engines": {
26
- "HBuilderX": "^4.0"
21
+ "HBuilderX": "^4.07"
27
22
  },
28
23
  "dcloudext": {
29
24
  "type": "component-vue",
@@ -56,13 +51,14 @@
56
51
  },
57
52
  "client": {
58
53
  "Vue": {
59
- "vue2": "y",
54
+ "vue2": "n",
60
55
  "vue3": "y"
61
56
  },
62
57
  "App": {
63
58
  "app-vue": "y",
64
59
  "app-nvue": "n",
65
- "app-uvue": "n"
60
+ "app-uvue": "n",
61
+ "app-harmony": "u"
66
62
  },
67
63
  "H5-mobile": {
68
64
  "Safari": "y",
package/readme.md CHANGED
@@ -4,22 +4,20 @@
4
4
  <h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uView Pro</h3>
5
5
  <h3 align="center">uni-app Vue3 多平台快速开发的 UI 框架</h3>
6
6
 
7
- [![star](https://gitee.com/anyup/uView-Pro/badge/star.svg)](https://gitee.com/anyup/uView-Pro/stargazers)
8
- [![fork](https://gitee.com/anyup/uView-Pro/badge/fork.svg)](https://gitee.com/anyup/uView-Pro/members)
9
- [![stars](https://img.shields.io/github/stars/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/umicro/uView)
10
- [![forks](https://img.shields.io/github/forks/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/umicro/uView)
11
- [![issues](https://img.shields.io/github/issues/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/umicro/uView/issues)
12
- [![Website](https://img.shields.io/badge/uView-up-blue?style=flat-square)](https://uview-pro.anyup.cn/docs/)
13
- [![release](https://img.shields.io/github/v/release/anyup/uView-Pro?style=flat-square)](https://gitee.com/anyup/uView-Pro/releases)
7
+ [![star](https://gitee.com/anyup/uView-Pro/badge/star.svg)](https://gitee.com/anyup/uView-Pro)
8
+ [![fork](https://gitee.com/anyup/uView-Pro/badge/fork.svg)](https://gitee.com/anyup/uView-Pro)
9
+ [![stars](https://img.shields.io/github/stars/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/anyup/uView-Pro)
10
+ [![forks](https://img.shields.io/github/forks/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/anyup/uView-Pro)
11
+ [![issues](https://img.shields.io/github/issues/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/anyup/uView-Pro/issues)
14
12
  [![license](https://img.shields.io/github/license/anyup/uView-Pro?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License)
15
13
 
16
14
  ## 说明
17
15
 
18
16
  uView UI,是 [uni-app](https://uniapp.dcloud.io/) 生态优秀的 UI 框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。
19
17
 
20
- uView Pro,是全面支持 Vue3.0、TypeScript 的 uni-app 生态框架,uView Pro 的基线版本是基于 uView `1.8.8` 修改,使用 TypeScript 完全重构,目前已全面支持 uni-app Vue3.0。
18
+ uView Pro,是全面支持 Vue3.0、TypeScript 的 uni-app 生态框架,uView Pro 的基线版本是基于 uView 1.8.8 修改,使用 TypeScript 完全重构,目前已全面支持 uni-app Vue3.0。
21
19
 
22
- ## [官方文档:https://uview-pro.anyup.cn/docs/](https://uview-pro.anyup.cn/docs/)
20
+ ## [官方文档:https://uview-pro.anyup.cn/](https://uview-pro.anyup.cn/)
23
21
 
24
22
  ## 特性
25
23
 
@@ -36,32 +34,45 @@ uView Pro,是全面支持 Vue3.0、TypeScript 的 uni-app 生态框架,uView
36
34
 
37
35
  <table class="table">
38
36
  <tr>
39
- <td><img src="https://ik.imagekit.io/anyup/images/social/qr_uview_pro_wx.jpg" width="200" height="200" ></td>
37
+ <td><img src="https://ik.imagekit.io/anyup/images/social/qr_uview_pro_wx.jpg" width="200" height="200" ></td>
40
38
  <td><img src="https://ik.imagekit.io/anyup/images/social/qr_uview_pro_h5.png" width="200" height="200" ></td>
41
- <td><img src="https://ik.imagekit.io/anyup/images/social/qr_uview_pro_android.png" width="200" height="200" ></td>
39
+ <td><img src="https://ik.imagekit.io/anyup/images/social/qr_uview_pro_android.png" width="200" height="200" ></td>
42
40
  </tr>
43
41
  <tr>
44
42
  <td align="center"><strong>微信小程序</strong><br>(微信扫码)</td>
45
- <td align="center"><strong>H5</strong><br>(浏览器扫码)</td>
46
- <td align="center"><strong>Android</strong><br>(浏览器扫码)</td>
43
+ <td align="center"><strong>H5</strong><br>(浏览器扫码)</td>
44
+ <td align="center"><strong>Android</strong><br>(浏览器扫码)</td>
47
45
  </tr>
48
46
  </table>
49
47
 
48
+ 运行示例工程,请[下载源码](https://github.com/anyup/uview-pro)后,在项目根目录执行以下命令:
49
+
50
+ ```bash
51
+ pnpm install
52
+ pnpm dev
53
+ ```
54
+
55
+
56
+
50
57
  ## 链接
51
58
 
52
- - [官方文档](https://uview-pro.anyup.cn/docs/)
53
- - [更新日志](https://uview-pro.anyup.cn/docs/components/changelog.html)
54
- - [升级指南](https://uview-pro.anyup.cn/docs/components/changelog.html)
55
- - [关于我们](https://uview-pro.anyup.cn/docs/cooperation/about.html)
59
+ - [Github](https://github.com/anyup/uview-pro)
60
+ - [Gitee](https://gitee.com/anyup/uview-pro)
61
+ - [官方文档](https://uview-pro.anyup.cn/)
62
+ - [更新日志](https://github.com/anyup/uView-Pro/blob/master/src/uni_modules/uview-pro/changelog.md)
56
63
 
57
64
  ## 交流反馈
58
65
 
66
+ uView Pro QQ 交流群: [点击进入](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=98nSVDldWEbDdq4lxiP4aL7uATfMSlI6&authKey=G2yQJ5MQiKzMldaxBsIfKt17NuJuUw8Fr6zdKLggc6NZXgw4BVbqkU2U3EE994yd&noverify=0&group_code=811732166)
67
+
59
68
  <table class="table">
60
69
  <tr>
61
70
  <td><img src="https://ik.imagekit.io/anyup/images/social/weixin-chat.png" width="250" height="345" ></td>
71
+ <td><img src="https://ik.imagekit.io/anyup/images/social/qq-chat.png" width="250" height="345" ></td>
62
72
  </tr>
63
73
  <tr>
64
74
  <td align="center"><strong>微信群</strong><br></td>
75
+ <td align="center"><strong>QQ群</strong><br></td>
65
76
  </tr>
66
77
  </table>
67
78
 
@@ -71,12 +82,32 @@ uView Pro,是全面支持 Vue3.0、TypeScript 的 uni-app 生态框架,uView
71
82
 
72
83
  所以希望在您修复 bug 并提交之前尽可能的去这些平台测试一下兼容性。最好能携带测试截图以方便审核。非常感谢!
73
84
 
85
+ ## 安装
86
+
87
+ #### **npm 安装**
88
+
89
+ ```bash
90
+ # npm 安装
91
+ npm install uview-pro
92
+
93
+ # yarn 安装
94
+ yarn add uview-pro
95
+
96
+ # pnpm 安装
97
+ pnpm add uview-pro
98
+ ```
99
+
100
+ #### **插件市场下载**
101
+
102
+ [https://p.dcloud.net.cn/plugin?name=uview-pro](https://p.dcloud.net.cn/plugin?name=uview-pro)
103
+
74
104
  ## 快速上手
75
105
 
76
106
  1. `main.ts`引入 uView 库
77
107
 
78
108
  ```js
79
109
  // main.ts
110
+ import { createSSRApp } from 'vue';
80
111
  import uViewPro from 'uview-pro';
81
112
 
82
113
  export function createApp() {
@@ -110,21 +141,21 @@ export function createApp() {
110
141
  ```js
111
142
  // pages.json
112
143
  {
113
- "easycom": {
114
- // uni_modules安装的方式需要前面的"@/",npm安装的方式无需"@/"
115
- // npm安装方式
116
- "^u-(.*)": "uview-pro/components/u-$1/u-$1.vue"
117
- // uni_modules安装方式
118
- // "^u-(.*)": "@/uni_modules/uview-pro/components/u-$1/u-$1.vue"
119
- },
120
- // 此为本身已有的内容
121
- "pages": [
122
- // ......
123
- ]
144
+ "easycom": {
145
+ // uni_modules安装的方式需要前面的"@/",npm安装的方式无需"@/"
146
+ // npm安装方式
147
+ "^u-(.*)": "uview-pro/components/u-$1/u-$1.vue"
148
+ // uni_modules安装方式
149
+ // "^u-(.*)": "@/uni_modules/uview-pro/components/u-$1/u-$1.vue"
150
+ },
151
+ // 此为本身已有的内容
152
+ "pages": [
153
+ // ......
154
+ ]
124
155
  }
125
156
  ```
126
157
 
127
- 请通过[快速上手](https://uview-pro.anyup.cn/docs/components/quickstart.html)了解更详细的内容
158
+ 请通过[快速上手](https://www.anyup.cn/docs/components/quickstart.html)了解更详细的内容
128
159
 
129
160
  ## 使用方法
130
161
 
@@ -136,7 +167,7 @@ export function createApp() {
136
167
  </template>
137
168
  ```
138
169
 
139
- 请通过[快速上手](https://uview-pro.anyup.cn/docs/components/quickstart.html)了解更详细的内容
170
+ 请通过[快速上手](https://www.anyup.cn/docs/components/quickstart.html)了解更详细的内容
140
171
 
141
172
  ## 捐赠 uView Pro
142
173
 
@@ -145,11 +176,11 @@ uView Pro 文档内容和框架源码基于 uView UI 二次开发,因此全部
145
176
  <table class="table">
146
177
  <tr>
147
178
  <td><img src="https://ik.imagekit.io/anyup/images/social/weixin-pay.png" width="250" height="345" ></td>
148
- <td><img src="https://ik.imagekit.io/anyup/images/social/ali-pay.png" width="250" height="345" ></td>
179
+ <td><img src="https://ik.imagekit.io/anyup/images/social/ali-pay.png" width="250" height="345" ></td>
149
180
  </tr>
150
181
  <tr>
151
182
  <td align="center"><strong>微信</strong><br></td>
152
- <td align="center"><strong>支付宝</strong><br></td>
183
+ <td align="center"><strong>支付宝</strong><br></td>
153
184
  </tr>
154
185
  </table>
155
186
 
@@ -161,5 +192,7 @@ uView Pro 遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,
161
192
 
162
193
  再次感谢 uView UI 开发团队,以及所有为 uView UI 的贡献者,以及所有为 uView Pro 的贡献者。
163
194
 
164
- - [uView 1.0](https://github.com/umicro/uView)
165
- - [uView 2.0](https://github.com/umicro/uView2.0)
195
+ - [Github](https://github.com/anyup/uview-pro)
196
+ - [Gitee](https://gitee.com/anyup/uview-pro)
197
+ - [uView UI 1.0](https://github.com/umicro/uView)
198
+ - [uView UI 2.0](https://github.com/umicro/uView2.0)