uview-plus 3.1.24 → 3.1.26

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 (74) hide show
  1. package/changelog.md +4 -0
  2. package/components/u-action-sheet/u-action-sheet.vue +1 -1
  3. package/components/u-album/u-album.vue +1 -1
  4. package/components/u-alert/u-alert.vue +1 -1
  5. package/components/u-avatar/u-avatar.vue +1 -1
  6. package/components/u-avatar-group/u-avatar-group.vue +1 -1
  7. package/components/u-button/u-button.vue +1 -1
  8. package/components/u-calendar/month.vue +2 -2
  9. package/components/u-calendar/u-calendar.vue +4 -4
  10. package/components/u-calendar/util.js +1 -1
  11. package/components/u-checkbox-group/u-checkbox-group.vue +1 -1
  12. package/components/u-circle-progress/u-circle-progress.vue +1 -1
  13. package/components/u-code/u-code.vue +1 -1
  14. package/components/u-code-input/u-code-input.vue +1 -1
  15. package/components/u-col/u-col.vue +1 -1
  16. package/components/u-collapse/u-collapse.vue +1 -1
  17. package/components/u-collapse-item/u-collapse-item.vue +6 -6
  18. package/components/u-column-notice/u-column-notice.vue +1 -1
  19. package/components/u-count-to/u-count-to.vue +1 -1
  20. package/components/u-datetime-picker/u-datetime-picker.vue +2 -2
  21. package/components/u-divider/u-divider.vue +1 -1
  22. package/components/u-dropdown/u-dropdown.vue +48 -48
  23. package/components/u-empty/u-empty.vue +1 -1
  24. package/components/u-form/u-form.vue +3 -3
  25. package/components/u-form-item/u-form-item.vue +1 -1
  26. package/components/u-gap/u-gap.vue +1 -1
  27. package/components/u-grid/u-grid.vue +1 -1
  28. package/components/u-grid-item/u-grid-item.vue +1 -1
  29. package/components/u-icon/u-icon.vue +1 -1
  30. package/components/u-keyboard/u-keyboard.vue +1 -1
  31. package/components/u-line/u-line.vue +1 -1
  32. package/components/u-line-progress/u-line-progress.vue +1 -1
  33. package/components/u-link/u-link.vue +1 -1
  34. package/components/u-list/u-list.vue +1 -1
  35. package/components/u-list-item/u-list-item.vue +1 -1
  36. package/components/u-loading-icon/u-loading-icon.vue +3 -3
  37. package/components/u-loading-page/u-loading-page.vue +1 -1
  38. package/components/u-loadmore/u-loadmore.vue +1 -1
  39. package/components/u-modal/u-modal.vue +3 -3
  40. package/components/u-navbar/u-navbar.vue +1 -1
  41. package/components/u-no-network/u-no-network.vue +1 -1
  42. package/components/u-notice-bar/u-notice-bar.vue +1 -1
  43. package/components/u-overlay/u-overlay.vue +1 -1
  44. package/components/u-popup/u-popup.vue +3 -3
  45. package/components/u-radio/u-radio.vue +1 -1
  46. package/components/u-radio-group/u-radio-group.vue +1 -1
  47. package/components/u-rate/u-rate.vue +1 -1
  48. package/components/u-read-more/u-read-more.vue +1 -1
  49. package/components/u-row/u-row.vue +1 -1
  50. package/components/u-row-notice/u-row-notice.vue +1 -1
  51. package/components/u-safe-bottom/u-safe-bottom.vue +3 -3
  52. package/components/u-scroll-list/u-scroll-list.vue +1 -1
  53. package/components/u-search/u-search.vue +1 -1
  54. package/components/u-skeleton/u-skeleton.vue +1 -1
  55. package/components/u-sticky/u-sticky.vue +1 -1
  56. package/components/u-subsection/u-subsection.vue +1 -1
  57. package/components/u-swipe-action/u-swipe-action.vue +1 -1
  58. package/components/u-swipe-action-item/u-swipe-action-item.vue +1 -1
  59. package/components/u-swiper/u-swiper.vue +1 -1
  60. package/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
  61. package/components/u-switch/u-switch.vue +1 -1
  62. package/components/u-tabbar/u-tabbar.vue +1 -1
  63. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  64. package/components/u-table/u-table.vue +1 -1
  65. package/components/u-tabs/u-tabs.vue +2 -2
  66. package/components/u-tabs-item/u-tabs-item.vue +1 -1
  67. package/components/u-tag/u-tag.vue +3 -3
  68. package/components/u-text/u-text.vue +1 -1
  69. package/components/u-textarea/u-textarea.vue +1 -1
  70. package/components/u-toast/u-toast.vue +1 -1
  71. package/components/u-toolbar/u-toolbar.vue +1 -1
  72. package/components/u-tooltip/u-tooltip.vue +2 -2
  73. package/libs/util/dayjs.min.js +1 -0
  74. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.1.26(2023-02-04)
2
+ 修复安卓Multiple conflicting contents for sourcemap
3
+ ## 3.1.25(2023-02-04)
4
+ 修复dayjs引入问题导致小程序编译报错
1
5
  ## 3.1.24(2023-01-17)
2
6
  修复dayjs报错does not provide an export named 'default'
3
7
  ## 3.1.23(2023-01-15)
@@ -114,7 +114,7 @@
114
114
  /**
115
115
  * ActionSheet 操作菜单
116
116
  * @description 本组件用于从底部弹出一个操作菜单,供用户选择并返回结果。本组件功能类似于uni的uni.showActionSheetAPI,配置更加灵活,所有平台都表现一致。
117
- * @tutorial https://www.uviewui.com/components/actionSheet.html
117
+ * @tutorial https://ijry.github.io/uview-plus/components/actionSheet.html
118
118
  *
119
119
  * @property {Boolean} show 操作菜单是否展示 (默认 false )
120
120
  * @property {String} title 操作菜单标题
@@ -64,7 +64,7 @@ const dom = uni.requireNativePlugin('dom')
64
64
  /**
65
65
  * Album 相册
66
66
  * @description 本组件提供一个类似相册的功能,让开发者开发起来更加得心应手。减少重复的模板代码
67
- * @tutorial https://www.uviewui.com/components/album.html
67
+ * @tutorial https://ijry.github.io/uview-plus/components/album.html
68
68
  *
69
69
  * @property {Array} urls 图片地址列表 Array<String>|Array<Object>形式
70
70
  * @property {String} keyName 指定从数组的对象元素中读取哪个属性作为图片地址
@@ -66,7 +66,7 @@
66
66
  /**
67
67
  * Alert 警告提示
68
68
  * @description 警告提示,展现需要关注的信息。
69
- * @tutorial https://www.uviewui.com/components/alertTips.html
69
+ * @tutorial https://ijry.github.io/uview-plus/components/alertTips.html
70
70
  *
71
71
  * @property {String} title 显示的文字
72
72
  * @property {String} type 使用预设的颜色 (默认 'warning' )
@@ -62,7 +62,7 @@
62
62
  /**
63
63
  * Avatar 头像
64
64
  * @description 本组件一般用于展示头像的地方,如个人中心,或者评论列表页的用户头像展示等场所。
65
- * @tutorial https://www.uviewui.com/components/avatar.html
65
+ * @tutorial https://ijry.github.io/uview-plus/components/avatar.html
66
66
  *
67
67
  * @property {String} src 头像路径,如加载失败,将会显示默认头像(不能为相对路径)
68
68
  * @property {String} shape 头像形状 ( circle (默认) | square)
@@ -38,7 +38,7 @@
38
38
  /**
39
39
  * AvatarGroup 头像组
40
40
  * @description 本组件一般用于展示头像的地方,如个人中心,或者评论列表页的用户头像展示等场所。
41
- * @tutorial https://www.uviewui.com/components/avatar.html
41
+ * @tutorial https://ijry.github.io/uview-plus/components/avatar.html
42
42
  *
43
43
  * @property {Array} urls 头像图片组 (默认 [] )
44
44
  * @property {String | Number} maxCount 最多展示的头像数量 ( 默认 5 )
@@ -117,7 +117,7 @@ import props from "./props.js";
117
117
  /**
118
118
  * button 按钮
119
119
  * @description Button 按钮
120
- * @tutorial https://www.uviewui.com/components/button.html
120
+ * @tutorial https://ijry.github.io/uview-plus/components/button.html
121
121
  *
122
122
  * @property {Boolean} hairline 是否显示按钮的细边框 (默认 true )
123
123
  * @property {String} type 按钮的预置样式,info,primary,error,warning,success (默认 'info' )
@@ -35,7 +35,7 @@
35
35
  import mixin from '../../libs/mixin/mixin.js';
36
36
  import defprops from '../../libs/config/props';
37
37
  // import dayjs from '../../libs/util/dayjs.js';
38
- import dayjs from 'dayjs/ems/index.js'
38
+ import dayjs from 'dayjs'
39
39
  export default {
40
40
  name: 'u-calendar-month',
41
41
  mixins: [mpMixin, mixin],
@@ -333,7 +333,7 @@
333
333
  // 获取每个月份区域的尺寸
334
334
  getMonthRectByPromise(el) {
335
335
  // #ifndef APP-NVUE
336
- // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://www.uviewui.com/js/getRect.html
336
+ // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://ijry.github.io/uview-plus/js/getRect.html
337
337
  // 组件内部一般用this.$uGetRect,对外的为uni.$u.getRect,二者功能一致,名称不同
338
338
  return new Promise(resolve => {
339
339
  this.$uGetRect(`.${el}`).then(size => {
@@ -68,15 +68,15 @@ import uHeader from './header.vue'
68
68
  import uMonth from './month.vue'
69
69
  import props from './props.js'
70
70
  import util from './util.js'
71
- // import dayjs from '../../libs/util/dayjs.js'
72
- import dayjs from 'dayjs/ems/index.js'
73
- import Calendar from '../../libs/util/calendar.js'
71
+ import dayjs from '../../libs/util/dayjs.min.js'
72
+ // import dayjs from 'dayjs'
73
+ // import Calendar from '../../libs/util/calendar.js'
74
74
  import mpMixin from '../../libs/mixin/mpMixin.js'
75
75
  import mixin from '../../libs/mixin/mixin.js'
76
76
  /**
77
77
  * Calendar 日历
78
78
  * @description 此组件用于单个选择日期,范围选择日期等,日历被包裹在底部弹起的容器中.
79
- * @tutorial https://www.uviewui.com/components/calendar.html
79
+ * @tutorial https://ijry.github.io/uview-plus/components/calendar.html
80
80
  *
81
81
  * @property {String} title 标题内容 (默认 日期选择 )
82
82
  * @property {Boolean} showTitle 是否显示标题 (默认 true )
@@ -1,4 +1,4 @@
1
- import dayjs from 'dayjs/ems/index.js'
1
+ import dayjs from 'dayjs'
2
2
  export default {
3
3
  methods: {
4
4
  // 设置月份数据
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * checkboxGroup 复选框组
16
16
  * @description 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便
17
- * @tutorial https://www.uviewui.com/components/checkbox.html
17
+ * @tutorial https://ijry.github.io/uview-plus/components/checkbox.html
18
18
  * @property {String} name 标识符
19
19
  * @property {Array} value 绑定的值
20
20
  * @property {String} shape 形状,circle-圆形,square-方形 (默认 'square' )
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * CircleProgress 圆形进度条 TODO: 待完善
38
38
  * @description 展示操作或任务的当前进度,比如上传文件,是一个圆形的进度环。
39
- * @tutorial https://www.uviewui.com/components/circleProgress.html
39
+ * @tutorial https://ijry.github.io/uview-plus/components/circleProgress.html
40
40
  * @property {String | Number} percentage 圆环进度百分比值,为数值类型,0-100 (默认 30 )
41
41
  * @example
42
42
  */
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Code 验证码输入框
13
13
  * @description 考虑到用户实际发送验证码的场景,可能是一个按钮,也可能是一段文字,提示语各有不同,所以本组件 不提供界面显示,只提供提示语,由用户将提示语嵌入到具体的场景
14
- * @tutorial https://www.uviewui.com/components/code.html
14
+ * @tutorial https://ijry.github.io/uview-plus/components/code.html
15
15
  * @property {String | Number} seconds 倒计时所需的秒数(默认 60 )
16
16
  * @property {String} startText 开始前的提示语,见官网说明(默认 '获取验证码' )
17
17
  * @property {String} changeText 倒计时期间的提示语,必须带有字母"x",见官网说明(默认 'X秒重新获取' )
@@ -52,7 +52,7 @@
52
52
  /**
53
53
  * CodeInput 验证码输入
54
54
  * @description 该组件一般用于验证用户短信验证码的场景,也可以结合uView的键盘组件使用
55
- * @tutorial https://www.uviewui.com/components/codeInput.html
55
+ * @tutorial https://ijry.github.io/uview-plus/components/codeInput.html
56
56
  * @property {String | Number} maxlength 最大输入长度 (默认 6 )
57
57
  * @property {Boolean} dot 是否用圆点填充 (默认 false )
58
58
  * @property {String} mode 显示模式,box-盒子模式,line-底部横线模式 (默认 'box' )
@@ -19,7 +19,7 @@
19
19
  /**
20
20
  * CodeInput 栅格系统的列
21
21
  * @description 该组件一般用于Layout 布局 通过基础的 12 分栏,迅速简便地创建布局
22
- * @tutorial https://www.uviewui.com/components/Layout.html
22
+ * @tutorial https://ijry.github.io/uview-plus/components/Layout.html
23
23
  * @property {String | Number} span 栅格占据的列数,总12等份 (默认 12 )
24
24
  * @property {String | Number} offset 分栏左边偏移,计算方式与span相同 (默认 0 )
25
25
  * @property {String} justify 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`) (默认 'start' )
@@ -12,7 +12,7 @@
12
12
  /**
13
13
  * collapse 折叠面板
14
14
  * @description 通过折叠面板收纳内容区域
15
- * @tutorial https://www.uviewui.com/components/collapse.html
15
+ * @tutorial https://ijry.github.io/uview-plus/components/collapse.html
16
16
  * @property {String | Number | Array} value 当前展开面板的name,非手风琴模式:[<string | number>],手风琴模式:string | number
17
17
  * @property {Boolean} accordion 是否手风琴模式( 默认 false )
18
18
  * @property {Boolean} border 是否显示外边框 ( 默认 true )
@@ -44,9 +44,9 @@
44
44
  </template>
45
45
 
46
46
  <script>
47
- import props from './props.js';
48
- import mpMixin from '../../libs/mixin/mpMixin.js';
49
- import mixin from '../../libs/mixin/mixin.js';
47
+ import props from './props.js';
48
+ import mpMixin from '../../libs/mixin/mpMixin.js';
49
+ import mixin from '../../libs/mixin/mixin.js';
50
50
  import { nextTick } from 'vue'
51
51
  // #ifdef APP-NVUE
52
52
  const animation = uni.requireNativePlugin('animation')
@@ -55,7 +55,7 @@
55
55
  /**
56
56
  * collapseItem 折叠面板Item
57
57
  * @description 通过折叠面板收纳内容区域(搭配u-collapse使用)
58
- * @tutorial https://www.uviewui.com/components/collapse.html
58
+ * @tutorial https://ijry.github.io/uview-plus/components/collapse.html
59
59
  * @property {String} title 标题
60
60
  * @property {String} value 标题右侧内容
61
61
  * @property {String} label 标题下方的描述信息
@@ -128,7 +128,7 @@
128
128
  }
129
129
  this.expanded = (value || []).some(item => item == this.name)
130
130
  }
131
- // 设置组件的展开或收起状态
131
+ // 设置组件的展开或收起状态
132
132
  await nextTick()
133
133
  this.setContentAnimate()
134
134
  },
@@ -184,7 +184,7 @@
184
184
  // 查询内容高度
185
185
  queryRect() {
186
186
  // #ifndef APP-NVUE
187
- // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://www.uviewui.com/js/getRect.html
187
+ // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://ijry.github.io/uview-plus/js/getRect.html
188
188
  // 组件内部一般用this.$uGetRect,对外的为uni.$u.getRect,二者功能一致,名称不同
189
189
  return new Promise(resolve => {
190
190
  this.$uGetRect(`#${this.elId}`).then(size => {
@@ -63,7 +63,7 @@
63
63
  /**
64
64
  * ColumnNotice 滚动通知中的垂直滚动 内部组件
65
65
  * @description 该组件用于滚动通告场景,是其中的垂直滚动方式
66
- * @tutorial https://www.uviewui.com/components/noticeBar.html
66
+ * @tutorial https://ijry.github.io/uview-plus/components/noticeBar.html
67
67
  * @property {Array} text 显示的内容,字符串
68
68
  * @property {String} icon 是否显示左侧的音量图标 ( 默认 'volume' )
69
69
  * @property {String} mode 通告模式,link-显示右箭头,closable-显示右侧关闭图标
@@ -16,7 +16,7 @@
16
16
  /**
17
17
  * countTo 数字滚动
18
18
  * @description 该组件一般用于需要滚动数字到某一个值的场景,目标要求是一个递增的值。
19
- * @tutorial https://www.uviewui.com/components/countTo.html
19
+ * @tutorial https://ijry.github.io/uview-plus/components/countTo.html
20
20
  * @property {String | Number} startVal 开始的数值,默认从0增长到某一个数(默认 0 )
21
21
  * @property {String | Number} endVal 要滚动的目标数值,必须 (默认 0 )
22
22
  * @property {String | Number} duration 滚动到目标数值的动画持续时间,单位为毫秒(ms) (默认 2000 )
@@ -34,12 +34,12 @@
34
34
  import mpMixin from '../../libs/mixin/mpMixin.js';
35
35
  import mixin from '../../libs/mixin/mixin.js';
36
36
  // import dayjs from '../../libs/util/dayjs.js';
37
- import dayjs from 'dayjs/ems/index.js'
37
+ import dayjs from 'dayjs'
38
38
 
39
39
  /**
40
40
  * DatetimePicker 时间日期选择器
41
41
  * @description 此选择器用于时间日期
42
- * @tutorial https://www.uviewui.com/components/datetimePicker.html
42
+ * @tutorial https://ijry.github.io/uview-plus/components/datetimePicker.html
43
43
  * @property {Boolean} show 用于控制选择器的弹出与收起 ( 默认 false )
44
44
  * @property {Boolean} showToolbar 是否显示顶部的操作栏 ( 默认 true )
45
45
  * @property {String | Number} value 绑定值
@@ -35,7 +35,7 @@
35
35
  /**
36
36
  * divider 分割线
37
37
  * @description 区隔内容的分割线,一般用于页面底部"没有更多"的提示。
38
- * @tutorial https://www.uviewui.com/components/divider.html
38
+ * @tutorial https://ijry.github.io/uview-plus/components/divider.html
39
39
  * @property {Boolean} dashed 是否虚线 (默认 false )
40
40
  * @property {Boolean} hairline 是否细线 (默认 true )
41
41
  * @property {Boolean} dot 是否以点替代文字,优先于text字段起作用 (默认 false )
@@ -4,7 +4,7 @@
4
4
  class="u-dropdown__menu"
5
5
  :style="{
6
6
  height: $u.addUnit(height)
7
- }"
7
+ }"
8
8
  ref="u-dropdown__menu"
9
9
  >
10
10
  <view
@@ -30,15 +30,15 @@
30
30
  </view>
31
31
  </view>
32
32
  </view>
33
- <view class="u-dropdown__content">
33
+ <view class="u-dropdown__content">
34
34
  <slot />
35
35
  </view>
36
36
  </view>
37
37
  </template>
38
38
 
39
39
  <script>
40
- import props from './props.js';
41
- import mpMixin from '../../libs/mixin/mpMixin.js';
40
+ import props from './props.js';
41
+ import mpMixin from '../../libs/mixin/mpMixin.js';
42
42
  import mixin from '../../libs/mixin/mixin.js';
43
43
  /**
44
44
  * Dropdown
@@ -53,54 +53,54 @@
53
53
  mixins: [mixin, props],
54
54
  data() {
55
55
  return {
56
- // �˵�����
56
+ // �˵�����
57
57
  menuList: [],
58
58
  current: 0
59
59
  }
60
- },
61
- computed: {
62
-
63
- },
64
- created() {
65
- // �������������(u-dropdown-item)��this��������data������������������΢��С��������ѭ�����ö�����
66
- this.children = [];
60
+ },
61
+ computed: {
62
+
63
+ },
64
+ created() {
65
+ // �������������(u-dropdown-item)��this��������data������������������΢��С��������ѭ�����ö�����
66
+ this.children = [];
67
67
  },
68
68
  methods: {
69
69
  clickHandler(item, index) {
70
- this.children.map(child => {
71
- if(child.title === item.title) {
72
- // this.queryRect('u-dropdown__menu').then(size => {
73
- child.$emit('click')
74
- child.setContentAnimate(child.show ? 0 : 300)
75
- child.show = !child.show
76
- // })
77
- } else {
78
- child.show = false
79
- child.setContentAnimate(0)
80
- }
81
- })
82
- },
83
- // ��ȡ��ǩ�ijߴ�λ��
84
- queryRect(el) {
85
- // #ifndef APP-NVUE
86
- // $uGetRectΪuView�Դ��Ľڵ��ѯ�򻯷���������ĵ����ܣ�https://www.uviewui.com/js/getRect.html
87
- // ����ڲ�һ����this.$uGetRect�������Ϊthis.$u.getRect�����߹���һ�£����Ʋ�ͬ
88
- return new Promise(resolve => {
89
- this.$uGetRect(`.${el}`).then(size => {
90
- resolve(size)
91
- })
92
- })
93
- // #endif
94
-
95
- // #ifdef APP-NVUE
96
- // nvue�£�ʹ��domģ���ѯԪ�ظ߶�
97
- // ����һ��promise���õ��ô˷�����������ʹ��then�ص�
98
- return new Promise(resolve => {
99
- dom.getComponentRect(this.$refs[el], res => {
100
- resolve(res.size)
101
- })
102
- })
103
- // #endif
70
+ this.children.map(child => {
71
+ if(child.title === item.title) {
72
+ // this.queryRect('u-dropdown__menu').then(size => {
73
+ child.$emit('click')
74
+ child.setContentAnimate(child.show ? 0 : 300)
75
+ child.show = !child.show
76
+ // })
77
+ } else {
78
+ child.show = false
79
+ child.setContentAnimate(0)
80
+ }
81
+ })
82
+ },
83
+ // ��ȡ��ǩ�ijߴ�λ��
84
+ queryRect(el) {
85
+ // #ifndef APP-NVUE
86
+ // $uGetRectΪuView�Դ��Ľڵ��ѯ�򻯷���https://ijry.github.io/uview-plus/.uviewui.com/js/getRect.html
87
+ // ����ڲ�һ����this.$uGetRect�������Ϊthis.$u.getRect�����߹���һ�£����Ʋ�ͬ
88
+ return new Promise(resolve => {
89
+ this.$uGetRect(`.${el}`).then(size => {
90
+ resolve(size)
91
+ })
92
+ })
93
+ // #endif
94
+
95
+ // #ifdef APP-NVUE
96
+ // nvue�£�ʹ��domģ���ѯԪ�ظ߶�
97
+ // ����һ��promise���õ��ô˷�����������ʹ��then�ص�
98
+ return new Promise(resolve => {
99
+ dom.getComponentRect(this.$refs[el], res => {
100
+ resolve(res.size)
101
+ })
102
+ })
103
+ // #endif
104
104
  },
105
105
  },
106
106
  }
@@ -116,7 +116,7 @@
116
116
 
117
117
  &__item {
118
118
  flex: 1;
119
- @include flex;
119
+ @include flex;
120
120
  justify-content: center;
121
121
 
122
122
  &__content {
@@ -126,4 +126,4 @@
126
126
  }
127
127
  }
128
128
  }
129
- </style>
129
+ </style>
@@ -37,7 +37,7 @@
37
37
  /**
38
38
  * empty 内容为空
39
39
  * @description 该组件用于需要加载内容,但是加载的第一页数据就为空,提示一个"没有内容"的场景, 我们精心挑选了十几个场景的图标,方便您使用。
40
- * @tutorial https://www.uviewui.com/components/empty.html
40
+ * @tutorial https://ijry.github.io/uview-plus/components/empty.html
41
41
  * @property {String} icon 内置图标名称,或图片路径,建议绝对路径
42
42
  * @property {String} text 提示文字
43
43
  * @property {String} textColor 文字颜色 (默认 '#c0c4cc' )
@@ -5,8 +5,8 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import props from "./props.js";
9
- import mpMixin from '../../libs/mixin/mpMixin.js';
8
+ import props from "./props.js";
9
+ import mpMixin from '../../libs/mixin/mpMixin.js';
10
10
  import mixin from '../../libs/mixin/mixin.js';
11
11
  import Schema from "../../libs/util/async-validator";
12
12
  // 去除警告信息
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * Form 表单
16
16
  * @description 此组件一般用于表单场景,可以配置Input输入框,Select弹出框,进行表单验证等。
17
- * @tutorial https://www.uviewui.com/components/form.html
17
+ * @tutorial https://ijry.github.io/uview-plus/components/form.html
18
18
  * @property {Object} model 当前form的需要验证字段的集合
19
19
  * @property {Object | Function | Array} rules 验证规则
20
20
  * @property {String} errorType 错误的提示方式,见上方说明 ( 默认 message )
@@ -81,7 +81,7 @@
81
81
  /**
82
82
  * Form 表单
83
83
  * @description 此组件一般用于表单场景,可以配置Input输入框,Select弹出框,进行表单验证等。
84
- * @tutorial https://www.uviewui.com/components/form.html
84
+ * @tutorial https://ijry.github.io/uview-plus/components/form.html
85
85
  * @property {String} label input的label提示语
86
86
  * @property {String} prop 绑定的值
87
87
  * @property {String | Boolean} borderBottom 是否显示表单域的下划线边框
@@ -9,7 +9,7 @@
9
9
  /**
10
10
  * gap 间隔槽
11
11
  * @description 该组件一般用于内容块之间的用一个灰色块隔开的场景,方便用户风格统一,减少工作量
12
- * @tutorial https://www.uviewui.com/components/gap.html
12
+ * @tutorial https://ijry.github.io/uview-plus/components/gap.html
13
13
  * @property {String} bgColor 背景颜色 (默认 'transparent' )
14
14
  * @property {String | Number} height 分割槽高度,单位px (默认 20 )
15
15
  * @property {String | Number} marginTop 与前一个组件的距离,单位px( 默认 0 )
@@ -15,7 +15,7 @@
15
15
  /**
16
16
  * grid 宫格布局
17
17
  * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。
18
- * @tutorial https://www.uviewui.com/components/grid.html
18
+ * @tutorial https://ijry.github.io/uview-plus/components/grid.html
19
19
  * @property {String | Number} col 宫格的列数(默认 3 )
20
20
  * @property {Boolean} border 是否显示宫格的边框(默认 false )
21
21
  * @property {String} align 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右 (默认 'left' )
@@ -31,7 +31,7 @@
31
31
  /**
32
32
  * gridItem 提示
33
33
  * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。搭配u-grid使用
34
- * @tutorial https://www.uviewui.com/components/grid.html
34
+ * @tutorial https://ijry.github.io/uview-plus/components/grid.html
35
35
  * @property {String | Number} name 宫格的name ( 默认 null )
36
36
  * @property {String} bgColor 宫格的背景颜色 (默认 'transparent' )
37
37
  * @property {Object} customStyle 自定义样式,对象形式
@@ -56,7 +56,7 @@
56
56
  /**
57
57
  * icon 图标
58
58
  * @description 基于字体的图标集,包含了大多数常见场景的图标。
59
- * @tutorial https://www.uviewui.com/components/icon.html
59
+ * @tutorial https://ijry.github.io/uview-plus/components/icon.html
60
60
  * @property {String} name 图标名称,见示例图标集
61
61
  * @property {String} color 图标颜色,可接受主题色 (默认 color['u-content-color'] )
62
62
  * @property {String | Number} size 图标字体大小,单位px (默认 '16px' )
@@ -75,7 +75,7 @@
75
75
  /**
76
76
  * keyboard 键盘
77
77
  * @description 此为uViw自定义的键盘面板,内含了数字键盘,车牌号键,身份证号键盘3中模式,都有可以打乱按键顺序的选项。
78
- * @tutorial https://www.uviewui.com/components/keyboard.html
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://www.uviewui.com/components/line.html
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://www.uviewui.com/components/lineProgress.html
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://www.uviewui.com/components/link.html
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://www.uviewui.com/components/list.html
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://www.uviewui.com/components/list.html
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://www.uviewui.com/components/loading.html
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://www.uviewui.com/components/loading.html
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://www.uviewui.com/components/loadMore.html
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://www.uviewui.com/components/modul.html
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://www.uviewui.com/components/navbar.html
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://www.uviewui.com/components/noNetwork.html
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://www.uviewui.com/components/noticeBar.html
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://www.uviewui.com/components/overlay.html
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 )
@@ -45,14 +45,14 @@
45
45
  </template>
46
46
 
47
47
  <script>
48
- import props from './props.js';
49
- import mpMixin from '../../libs/mixin/mpMixin.js';
48
+ import props from './props.js';
49
+ import mpMixin from '../../libs/mixin/mpMixin.js';
50
50
  import mixin from '../../libs/mixin/mixin.js';
51
51
 
52
52
  /**
53
53
  * popup 弹窗
54
54
  * @description 弹出层容器,用于展示弹窗、信息提示等内容,支持上、下、左、右和中部弹出。组件只提供容器,内部内容由用户自定义
55
- * @tutorial https://www.uviewui.com/components/popup.html
55
+ * @tutorial https://ijry.github.io/uview-plus/components/popup.html
56
56
  * @property {Boolean} show 是否展示弹窗 (默认 false )
57
57
  * @property {Boolean} overlay 是否显示遮罩 (默认 true )
58
58
  * @property {String} mode 弹出方向(默认 'bottom' )
@@ -39,7 +39,7 @@
39
39
  /**
40
40
  * radio 单选框
41
41
  * @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio-group使用
42
- * @tutorial https://www.uviewui.com/components/radio.html
42
+ * @tutorial https://ijry.github.io/uview-plus/components/radio.html
43
43
  * @property {String | Number} name radio的名称
44
44
  * @property {String} shape 形状,square为方形,circle为圆型
45
45
  * @property {Boolean} disabled 是否禁用
@@ -15,7 +15,7 @@
15
15
  /**
16
16
  * radioRroup 单选框父组件
17
17
  * @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio使用
18
- * @tutorial https://www.uviewui.com/components/radio.html
18
+ * @tutorial https://ijry.github.io/uview-plus/components/radio.html
19
19
  * @property {String | Number | Boolean} value 绑定的值
20
20
  * @property {Boolean} disabled 是否禁用所有radio(默认 false )
21
21
  * @property {String} shape 外观形状,shape-方形,circle-圆形(默认 circle )
@@ -84,7 +84,7 @@
84
84
  /**
85
85
  * rate 评分
86
86
  * @description 该组件一般用于满意度调查,星型评分的场景
87
- * @tutorial https://www.uviewui.com/components/rate.html
87
+ * @tutorial https://ijry.github.io/uview-plus/components/rate.html
88
88
  * @property {String | Number} value 用于v-model双向绑定选中的星星数量 (默认 1 )
89
89
  * @property {String | Number} count 最多可选的星星数量 (默认 5 )
90
90
  * @property {Boolean} disabled 是否禁止用户操作 (默认 false )
@@ -55,7 +55,7 @@
55
55
  /**
56
56
  * readMore 阅读更多
57
57
  * @description 该组件一般用于内容较长,预先收起一部分,点击展开全部内容的场景。
58
- * @tutorial https://www.uviewui.com/components/readMore.html
58
+ * @tutorial https://ijry.github.io/uview-plus/components/readMore.html
59
59
  * @property {String | Number} showHeight 内容超出此高度才会显示展开全文按钮,单位px(默认 400 )
60
60
  * @property {Boolean} toggle 展开后是否显示收起按钮(默认 false )
61
61
  * @property {String} closeText 关闭时的提示文字(默认 '展开阅读全文' )
@@ -19,7 +19,7 @@
19
19
  /**
20
20
  * Row 栅格系统中的行
21
21
  * @description 通过基础的 12 分栏,迅速简便地创建布局
22
- * @tutorial https://www.uviewui.com/components/layout.html
22
+ * @tutorial https://ijry.github.io/uview-plus/components/layout.html
23
23
  * @property {String | Number} gutter 栅格间隔,左右各为此值的一半,单位px (默认 0 )
24
24
  * @property {String} justify 水平排列方式(微信小程序暂不支持) 可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`) (默认 'start' )
25
25
  * @property {String} align 垂直排列方式 (默认 'center' )
@@ -62,7 +62,7 @@
62
62
  /**
63
63
  * RowNotice 滚动通知中的水平滚动模式
64
64
  * @description 水平滚动
65
- * @tutorial https://www.uviewui.com/components/noticeBar.html
65
+ * @tutorial https://ijry.github.io/uview-plus/components/noticeBar.html
66
66
  * @property {String | Number} text 显示的内容,字符串
67
67
  * @property {String} icon 是否显示左侧的音量图标 (默认 'volume' )
68
68
  * @property {String} mode 通告模式,link-显示右箭头,closable-显示右侧关闭图标
@@ -8,13 +8,13 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
- import props from "./props.js";
12
- import mpMixin from '../../libs/mixin/mpMixin.js';
11
+ import props from "./props.js";
12
+ import mpMixin from '../../libs/mixin/mpMixin.js';
13
13
  import mixin from '../../libs/mixin/mixin.js';
14
14
  /**
15
15
  * SafeBottom 底部安全区
16
16
  * @description 这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。
17
- * @tutorial https://www.uviewui.com/components/safeAreaInset.html
17
+ * @tutorial https://ijry.github.io/uview-plus/components/safeAreaInset.html
18
18
  * @property {type} prop_name
19
19
  * @property {Object} customStyle 定义需要用到的外部样式
20
20
  *
@@ -82,7 +82,7 @@
82
82
  /**
83
83
  * scrollList 横向滚动列表
84
84
  * @description 该组件一般用于同时展示多个商品、分类的场景,也可以完成左右滑动的列表。
85
- * @tutorial https://www.uviewui.com/components/scrollList.html
85
+ * @tutorial https://ijry.github.io/uview-plus/components/scrollList.html
86
86
  * @property {String | Number} indicatorWidth 指示器的整体宽度 (默认 50 )
87
87
  * @property {String | Number} indicatorBarWidth 滑块的宽度 (默认 20 )
88
88
  * @property {Boolean} indicator 是否显示面板指示器 (默认 true )
@@ -79,7 +79,7 @@
79
79
  /**
80
80
  * search 搜索框
81
81
  * @description 搜索组件,集成了常见搜索框所需功能,用户可以一键引入,开箱即用。
82
- * @tutorial https://www.uviewui.com/components/search.html
82
+ * @tutorial https://ijry.github.io/uview-plus/components/search.html
83
83
  * @property {String} shape 搜索框形状,round-圆形,square-方形(默认 'round' )
84
84
  * @property {String} bgColor 搜索框背景颜色(默认 '#f2f2f2' )
85
85
  * @property {String} placeholder 占位文字内容(默认 '请输入关键字' )
@@ -60,7 +60,7 @@
60
60
  /**
61
61
  * Skeleton 骨架屏
62
62
  * @description 骨架屏一般用于页面在请求远程数据尚未完成时,页面用灰色块预显示本来的页面结构,给用户更好的体验。
63
- * @tutorial https://www.uviewui.com/components/skeleton.html
63
+ * @tutorial https://ijry.github.io/uview-plus/components/skeleton.html
64
64
  * @property {Boolean} loading 是否显示骨架占位图,设置为false将会展示子组件内容 (默认 true )
65
65
  * @property {Boolean} animate 是否开启动画效果 (默认 true )
66
66
  * @property {String | Number} rows 段落占位图行数 (默认 0 )
@@ -20,7 +20,7 @@
20
20
  /**
21
21
  * sticky 吸顶
22
22
  * @description 该组件与CSS中position: sticky属性实现的效果一致,当组件达到预设的到顶部距离时, 就会固定在指定位置,组件位置大于预设的顶部距离时,会重新按照正常的布局排列。
23
- * @tutorial https://www.uviewui.com/components/sticky.html
23
+ * @tutorial https://ijry.github.io/uview-plus/components/sticky.html
24
24
  * @property {String | Number} offsetTop 吸顶时与顶部的距离,单位px(默认 0 )
25
25
  * @property {String | Number} customNavHeight 自定义导航栏的高度 (h5 默认44 其他默认 0 )
26
26
  * @property {Boolean} disabled 是否开启吸顶功能 (默认 false )
@@ -58,7 +58,7 @@ import mixin from '../../libs/mixin/mixin.js';
58
58
  /**
59
59
  * Subsection 分段器
60
60
  * @description 该分段器一般用于用户从几个选项中选择某一个的场景
61
- * @tutorial https://www.uviewui.com/components/subsection.html
61
+ * @tutorial https://ijry.github.io/uview-plus/components/subsection.html
62
62
  * @property {Array} list tab的数据
63
63
  * @property {String | Number} current 当前活动的tab的index(默认 0 )
64
64
  * @property {String} activeColor 激活时的颜色(默认 '#3c9cff' )
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * SwipeAction 滑动单元格
13
13
  * @description 该组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作
14
- * @tutorial https://www.uviewui.com/components/swipeAction.html
14
+ * @tutorial https://ijry.github.io/uview-plus/components/swipeAction.html
15
15
  * @property {Boolean} autoClose 是否自动关闭其他swipe按钮组
16
16
  * @event {Function(index)} click 点击组件时触发
17
17
  * @example <u-swipe-action><u-swipe-action-item :rightOptions="options1" ></u-swipe-action-item></u-swipe-action>
@@ -59,7 +59,7 @@
59
59
  /**
60
60
  * SwipeActionItem 滑动单元格子组件
61
61
  * @description 该组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作
62
- * @tutorial https://www.uviewui.com/components/swipeAction.html
62
+ * @tutorial https://ijry.github.io/uview-plus/components/swipeAction.html
63
63
  * @property {Boolean} show 控制打开或者关闭(默认 false )
64
64
  * @property {String | Number} index 标识符,如果是v-for,可用index索引
65
65
  * @property {Boolean} disabled 是否禁用(默认 false )
@@ -96,7 +96,7 @@
96
96
  /**
97
97
  * Swiper 轮播图
98
98
  * @description 该组件一般用于导航轮播,广告展示等场景,可开箱即用,
99
- * @tutorial https://www.uviewui.com/components/swiper.html
99
+ * @tutorial https://ijry.github.io/uview-plus/components/swiper.html
100
100
  * @property {Array} list 轮播图数据
101
101
  * @property {Boolean} indicator 是否显示面板指示器(默认 false )
102
102
  * @property {String} indicatorActiveColor 指示器非激活颜色(默认 '#FFFFFF' )
@@ -38,7 +38,7 @@
38
38
  /**
39
39
  * SwiperIndicator 轮播图指示器
40
40
  * @description 该组件一般用于导航轮播,广告展示等场景,可开箱即用,
41
- * @tutorial https://www.uviewui.com/components/swiper.html
41
+ * @tutorial https://ijry.github.io/uview-plus/components/swiper.html
42
42
  * @property {String | Number} length 轮播的长度(默认 0 )
43
43
  * @property {String | Number} current 当前处于活动状态的轮播的索引(默认 0 )
44
44
  * @property {String} indicatorActiveColor 指示器非激活颜色
@@ -44,7 +44,7 @@
44
44
  /**
45
45
  * switch 开关选择器
46
46
  * @description 选择开关一般用于只有两个选择,且只能选其一的场景。
47
- * @tutorial https://www.uviewui.com/components/switch.html
47
+ * @tutorial https://ijry.github.io/uview-plus/components/switch.html
48
48
  * @property {Boolean} loading 是否处于加载中(默认 false )
49
49
  * @property {Boolean} disabled 是否禁用(默认 false )
50
50
  * @property {String | Number} size 开关尺寸,单位px (默认 25 )
@@ -32,7 +32,7 @@
32
32
  /**
33
33
  * Tabbar 底部导航栏
34
34
  * @description 此组件提供了自定义tabbar的能力。
35
- * @tutorial https://www.uviewui.com/components/tabbar.html
35
+ * @tutorial https://ijry.github.io/uview-plus/components/tabbar.html
36
36
  * @property {String | Number} value 当前匹配项的name
37
37
  * @property {Boolean} safeAreaInsetBottom 是否为iPhoneX留出底部安全距离(默认 true )
38
38
  * @property {Boolean} border 是否显示上方边框(默认 true )
@@ -49,7 +49,7 @@
49
49
  /**
50
50
  * TabbarItem 底部导航栏子组件
51
51
  * @description 此组件提供了自定义tabbar的能力。
52
- * @tutorial https://www.uviewui.com/components/tabbar.html
52
+ * @tutorial https://ijry.github.io/uview-plus/components/tabbar.html
53
53
  * @property {String | Number} name item标签的名称,作为与u-tabbar的value参数匹配的标识符
54
54
  * @property {String} icon uView内置图标或者绝对路径的图片
55
55
  * @property {String | Number} badge 右上角的角标提示信息
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Table 表格
13
13
  * @description 表格组件一般用于展示大量结构化数据的场景 本组件标签类似HTML的table表格,由table、tr、th、td四个组件组成
14
- * @tutorial https://www.uviewui.com/components/table.html
14
+ * @tutorial https://ijry.github.io/uview-plus/components/table.html
15
15
  * @example <u-table><u-tr><u-th>学校</u-th </u-tr> <u-tr><u-td>浙江大学</u-td> </u-tr> <u-tr><u-td>清华大学</u-td> </u-tr></u-table>
16
16
  */
17
17
  export default {
@@ -90,7 +90,7 @@
90
90
  /**
91
91
  * Tabs 标签
92
92
  * @description tabs标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的tab会自动移动到组件的中间位置。
93
- * @tutorial https://www.uviewui.com/components/tabs.html
93
+ * @tutorial https://ijry.github.io/uview-plus/components/tabs.html
94
94
  * @property {String | Number} duration 滑块移动一次所需的时间,单位秒(默认 200 )
95
95
  * @property {String | Number} swierWidth swiper的宽度(默认 '750rpx' )
96
96
  * @property {String} keyName 从`list`元素对象中读取的键名(默认 'name' )
@@ -271,7 +271,7 @@
271
271
  // 获取各个标签的尺寸
272
272
  queryRect(el, item) {
273
273
  // #ifndef APP-NVUE
274
- // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://www.uviewui.com/js/getRect.html
274
+ // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://ijry.github.io/uview-plus/js/getRect.html
275
275
  // 组件内部一般用this.$uGetRect,对外的为uni.$u.getRect,二者功能一致,名称不同
276
276
  return new Promise(resolve => {
277
277
  this.$uGetRect(`.${el}`).then(size => {
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * TabsItem tabs标签组件的自组件
13
13
  * @description tabs标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的tab会自动移动到组件的中间位置。
14
- * @tutorial https://www.uviewui.com/components/tabs.html
14
+ * @tutorial https://ijry.github.io/uview-plus/components/tabs.html
15
15
  * @property {type} prop_name
16
16
  * @event {Function()}
17
17
  * @example
@@ -56,13 +56,13 @@
56
56
  </template>
57
57
 
58
58
  <script>
59
- import props from './props.js';
60
- import mpMixin from '../../libs/mixin/mpMixin.js';
59
+ import props from './props.js';
60
+ import mpMixin from '../../libs/mixin/mpMixin.js';
61
61
  import mixin from '../../libs/mixin/mixin.js';
62
62
  /**
63
63
  * Tag 标签
64
64
  * @description tag组件一般用于标记和选择,我们提供了更加丰富的表现形式,能够较全面的涵盖您的使用场景
65
- * @tutorial https://www.uviewui.com/components/tag.html
65
+ * @tutorial https://ijry.github.io/uview-plus/components/tag.html
66
66
  * @property {String} type 标签类型info、primary、success、warning、error (默认 'primary' )
67
67
  * @property {Boolean | String} disabled 不可用(默认 false )
68
68
  * @property {String} size 标签的大小,large,medium,mini (默认 'medium' )
@@ -79,7 +79,7 @@ import props from './props.js'
79
79
  /**
80
80
  * Text 文本
81
81
  * @description 此组件集成了文本类在项目中的常用功能,包括状态,拨打电话,格式化日期,*替换,超链接...等功能。 您大可不必在使用特殊文本时自己定义,text组件几乎涵盖您能使用的大部分场景。
82
- * @tutorial https://www.uviewui.com/components/loading.html
82
+ * @tutorial https://ijry.github.io/uview-plus/components/loading.html
83
83
  * @property {String} type 主题颜色
84
84
  * @property {Boolean} show 是否显示(默认 true )
85
85
  * @property {String | Number} text 显示的值
@@ -47,7 +47,7 @@ import mixin from '../../libs/mixin/mixin.js';
47
47
  /**
48
48
  * Textarea 文本域
49
49
  * @description 文本域此组件满足了可能出现的表单信息补充,编辑等实际逻辑的功能,内置了字数校验等
50
- * @tutorial https://www.uviewui.com/components/textarea.html
50
+ * @tutorial https://ijry.github.io/uview-plus/components/textarea.html
51
51
  *
52
52
  * @property {String | Number} value 输入框的内容
53
53
  * @property {String | Number} placeholder 输入框为空时占位符
@@ -44,7 +44,7 @@
44
44
  /**
45
45
  * toast 消息提示
46
46
  * @description 此组件表现形式类似uni的uni.showToastAPI,但也有不同的地方。
47
- * @tutorial https://www.uviewui.com/components/toast.html
47
+ * @tutorial https://ijry.github.io/uview-plus/components/toast.html
48
48
  * @property {String | Number} zIndex toast展示时的zIndex值 (默认 10090 )
49
49
  * @property {Boolean} loading 是否加载中 (默认 false )
50
50
  * @property {String | Number} message 显示的文字内容
@@ -42,7 +42,7 @@
42
42
  /**
43
43
  * Toolbar 工具条
44
44
  * @description
45
- * @tutorial https://www.uviewui.com/components/toolbar.html
45
+ * @tutorial https://ijry.github.io/uview-plus/components/toolbar.html
46
46
  * @property {Boolean} show 是否展示工具条(默认 true )
47
47
  * @property {String} cancelText 取消按钮的文字(默认 '取消' )
48
48
  * @property {String} confirmText 确认按钮的文字(默认 '确认' )
@@ -103,7 +103,7 @@
103
103
  /**
104
104
  * Tooltip
105
105
  * @description
106
- * @tutorial https://www.uviewui.com/components/tooltip.html
106
+ * @tutorial https://ijry.github.io/uview-plus/components/tooltip.html
107
107
  * @property {String | Number} text 需要显示的提示文字
108
108
  * @property {String | Number} copyText 点击复制按钮时,复制的文本,为空则使用text值
109
109
  * @property {String | Number} size 文本大小(默认 14 )
@@ -219,7 +219,7 @@
219
219
  // 查询内容高度
220
220
  queryRect(ref) {
221
221
  // #ifndef APP-NVUE
222
- // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://www.uviewui.com/js/getRect.html
222
+ // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://ijry.github.io/uview-plus/js/getRect.html
223
223
  // 组件内部一般用this.$uGetRect,对外的为uni.$u.getRect,二者功能一致,名称不同
224
224
  return new Promise(resolve => {
225
225
  this.$uGetRect(`#${ref}`).then(size => {
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "uview-plus3.0重磅发布,全面的Vue3移动组件库。",
5
- "version": "3.1.24",
5
+ "version": "3.1.26",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",