uview-plus 3.1.23 → 3.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) 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 +1 -1
  9. package/components/u-calendar/u-calendar.vue +4 -4
  10. package/components/u-calendar/util.js +85 -85
  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 +1 -1
  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-parse/node/node.vue +576 -500
  45. package/components/u-parse/parser.js +1250 -992
  46. package/components/u-parse/props.js +4 -3
  47. package/components/u-parse/u-parse.vue +461 -336
  48. package/components/u-popup/u-popup.vue +3 -3
  49. package/components/u-radio/u-radio.vue +1 -1
  50. package/components/u-radio-group/u-radio-group.vue +1 -1
  51. package/components/u-rate/u-rate.vue +1 -1
  52. package/components/u-read-more/u-read-more.vue +1 -1
  53. package/components/u-row/u-row.vue +1 -1
  54. package/components/u-row-notice/u-row-notice.vue +1 -1
  55. package/components/u-safe-bottom/u-safe-bottom.vue +3 -3
  56. package/components/u-scroll-list/u-scroll-list.vue +1 -1
  57. package/components/u-search/u-search.vue +1 -1
  58. package/components/u-skeleton/u-skeleton.vue +1 -1
  59. package/components/u-sticky/u-sticky.vue +1 -1
  60. package/components/u-subsection/u-subsection.vue +1 -1
  61. package/components/u-swipe-action/u-swipe-action.vue +1 -1
  62. package/components/u-swipe-action-item/u-swipe-action-item.vue +1 -1
  63. package/components/u-swiper/u-swiper.vue +1 -1
  64. package/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
  65. package/components/u-switch/u-switch.vue +1 -1
  66. package/components/u-tabbar/u-tabbar.vue +1 -1
  67. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  68. package/components/u-table/u-table.vue +1 -1
  69. package/components/u-tabs/u-tabs.vue +2 -2
  70. package/components/u-tabs-item/u-tabs-item.vue +1 -1
  71. package/components/u-tag/u-tag.vue +3 -3
  72. package/components/u-text/u-text.vue +1 -1
  73. package/components/u-textarea/u-textarea.vue +1 -1
  74. package/components/u-toast/u-toast.vue +1 -1
  75. package/components/u-toolbar/u-toolbar.vue +1 -1
  76. package/components/u-tooltip/u-tooltip.vue +2 -2
  77. package/libs/util/dayjs.min.js +1 -0
  78. package/package.json +1 -1
  79. package/components/u-parse/parser-es-module.js +0 -1122
package/changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.1.25(2023-02-04)
2
+ 修复dayjs引入问题导致小程序编译报错
3
+ ## 3.1.24(2023-01-17)
4
+ 修复dayjs报错does not provide an export named 'default'
1
5
  ## 3.1.23(2023-01-15)
2
6
  修复 build:h5 cell 和 notice-bar 点击失效的问题
3
7
  修复小程序端报 alert 和 upload 重复定义的bug
@@ -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' )
@@ -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'
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,86 +1,86 @@
1
1
  import dayjs from 'dayjs'
2
- export default {
3
- methods: {
4
- // 设置月份数据
5
- setMonth() {
6
- // 月初是周几
7
- const day = dayjs(this.date).date(1).day()
8
- const start = day == 0 ? 6 : day - 1
9
-
10
- // 本月天数
11
- const days = dayjs(this.date).endOf('month').format('D')
12
-
13
- // 上个月天数
14
- const prevDays = dayjs(this.date).endOf('month').subtract(1, 'month').format('D')
15
-
16
- // 日期数据
17
- const arr = []
18
- // 清空表格
19
- this.month = []
20
-
21
- // 添加上月数据
22
- arr.push(
23
- ...new Array(start).fill(1).map((e, i) => {
24
- const day = prevDays - start + i + 1
25
-
26
- return {
27
- value: day,
28
- disabled: true,
29
- date: dayjs(this.date).subtract(1, 'month').date(day).format('YYYY-MM-DD')
30
- }
31
- })
32
- )
33
-
34
- // 添加本月数据
35
- arr.push(
36
- ...new Array(days - 0).fill(1).map((e, i) => {
37
- const day = i + 1
38
-
39
- return {
40
- value: day,
41
- date: dayjs(this.date).date(day).format('YYYY-MM-DD')
42
- }
43
- })
44
- )
45
-
46
- // 添加下个月
47
- arr.push(
48
- ...new Array(42 - days - start).fill(1).map((e, i) => {
49
- const day = i + 1
50
-
51
- return {
52
- value: day,
53
- disabled: true,
54
- date: dayjs(this.date).add(1, 'month').date(day).format('YYYY-MM-DD')
55
- }
56
- })
57
- )
58
-
59
- // 分割数组
60
- for (let n = 0; n < arr.length; n += 7) {
61
- this.month.push(
62
- arr.slice(n, n + 7).map((e, i) => {
63
- e.index = i + n
64
-
65
- // 自定义信息
66
- const custom = this.customList.find((c) => c.date == e.date)
67
-
68
- // 农历
69
- if (this.lunar) {
70
- const {
71
- IDayCn,
72
- IMonthCn
73
- } = this.getLunar(e.date)
74
- e.lunar = IDayCn == '初一' ? IMonthCn : IDayCn
75
- }
76
-
77
- return {
78
- ...e,
79
- ...custom
80
- }
81
- })
82
- )
83
- }
84
- }
85
- }
86
- }
2
+ export default {
3
+ methods: {
4
+ // 设置月份数据
5
+ setMonth() {
6
+ // 月初是周几
7
+ const day = dayjs(this.date).date(1).day()
8
+ const start = day == 0 ? 6 : day - 1
9
+
10
+ // 本月天数
11
+ const days = dayjs(this.date).endOf('month').format('D')
12
+
13
+ // 上个月天数
14
+ const prevDays = dayjs(this.date).endOf('month').subtract(1, 'month').format('D')
15
+
16
+ // 日期数据
17
+ const arr = []
18
+ // 清空表格
19
+ this.month = []
20
+
21
+ // 添加上月数据
22
+ arr.push(
23
+ ...new Array(start).fill(1).map((e, i) => {
24
+ const day = prevDays - start + i + 1
25
+
26
+ return {
27
+ value: day,
28
+ disabled: true,
29
+ date: dayjs(this.date).subtract(1, 'month').date(day).format('YYYY-MM-DD')
30
+ }
31
+ })
32
+ )
33
+
34
+ // 添加本月数据
35
+ arr.push(
36
+ ...new Array(days - 0).fill(1).map((e, i) => {
37
+ const day = i + 1
38
+
39
+ return {
40
+ value: day,
41
+ date: dayjs(this.date).date(day).format('YYYY-MM-DD')
42
+ }
43
+ })
44
+ )
45
+
46
+ // 添加下个月
47
+ arr.push(
48
+ ...new Array(42 - days - start).fill(1).map((e, i) => {
49
+ const day = i + 1
50
+
51
+ return {
52
+ value: day,
53
+ disabled: true,
54
+ date: dayjs(this.date).add(1, 'month').date(day).format('YYYY-MM-DD')
55
+ }
56
+ })
57
+ )
58
+
59
+ // 分割数组
60
+ for (let n = 0; n < arr.length; n += 7) {
61
+ this.month.push(
62
+ arr.slice(n, n + 7).map((e, i) => {
63
+ e.index = i + n
64
+
65
+ // 自定义信息
66
+ const custom = this.customList.find((c) => c.date == e.date)
67
+
68
+ // 农历
69
+ if (this.lunar) {
70
+ const {
71
+ IDayCn,
72
+ IMonthCn
73
+ } = this.getLunar(e.date)
74
+ e.lunar = IDayCn == '初一' ? IMonthCn : IDayCn
75
+ }
76
+
77
+ return {
78
+ ...e,
79
+ ...custom
80
+ }
81
+ })
82
+ )
83
+ }
84
+ }
85
+ }
86
+ }
@@ -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 )
@@ -39,7 +39,7 @@
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' )