uview-plus 3.1.45 → 3.1.48

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 (137) hide show
  1. package/changelog.md +10 -0
  2. package/components/u-action-sheet/props.js +10 -11
  3. package/components/u-album/props.js +11 -12
  4. package/components/u-alert/props.js +8 -9
  5. package/components/u-avatar/props.js +14 -15
  6. package/components/u-avatar-group/props.js +9 -10
  7. package/components/u-back-top/props.js +10 -11
  8. package/components/u-badge/props.js +14 -15
  9. package/components/u-button/props.js +28 -29
  10. package/components/u-calendar/month.vue +1 -1
  11. package/components/u-calendar/props.js +27 -28
  12. package/components/u-car-keyboard/props.js +0 -1
  13. package/components/u-cell/props.js +17 -18
  14. package/components/u-cell/u-cell.vue +11 -2
  15. package/components/u-cell-group/props.js +2 -3
  16. package/components/u-checkbox/props.js +13 -14
  17. package/components/u-checkbox-group/props.js +16 -17
  18. package/components/u-circle-progress/props.js +1 -2
  19. package/components/u-code/props.js +6 -7
  20. package/components/u-code/u-code.vue +5 -0
  21. package/components/u-code-input/props.js +16 -17
  22. package/components/u-col/props.js +5 -6
  23. package/components/u-collapse/props.js +3 -4
  24. package/components/u-collapse-item/props.js +11 -12
  25. package/components/u-column-notice/props.js +10 -11
  26. package/components/u-count-down/props.js +4 -5
  27. package/components/u-count-down/u-count-down.vue +5 -0
  28. package/components/u-count-to/props.js +11 -12
  29. package/components/u-datetime-picker/props.js +24 -25
  30. package/components/u-divider/props.js +8 -9
  31. package/components/u-dropdown/props.js +0 -1
  32. package/components/u-dropdown-item/props.js +0 -1
  33. package/components/u-empty/props.js +11 -12
  34. package/components/u-form/props.js +8 -9
  35. package/components/u-form/u-form.vue +1 -1
  36. package/components/u-form-item/props.js +13 -9
  37. package/components/u-form-item/u-form-item.vue +1 -0
  38. package/components/u-gap/props.js +4 -5
  39. package/components/u-grid/props.js +3 -4
  40. package/components/u-grid-item/props.js +2 -3
  41. package/components/u-grid-item/u-grid-item.vue +5 -0
  42. package/components/u-icon/props.js +17 -18
  43. package/components/u-icon/u-icon.vue +9 -6
  44. package/components/u-image/props.js +16 -17
  45. package/components/u-index-anchor/props.js +5 -6
  46. package/components/u-index-item/props.js +0 -1
  47. package/components/u-index-list/props.js +5 -6
  48. package/components/u-index-list/u-index-list.vue +2 -1
  49. package/components/u-input/props.js +35 -36
  50. package/components/u-keyboard/props.js +16 -17
  51. package/components/u-line/props.js +6 -7
  52. package/components/u-line-progress/props.js +5 -6
  53. package/components/u-link/props.js +7 -8
  54. package/components/u-list/props.js +14 -15
  55. package/components/u-list-item/props.js +1 -2
  56. package/components/u-loading-icon/props.js +11 -12
  57. package/components/u-loading-page/props.js +9 -10
  58. package/components/u-loadmore/props.js +18 -19
  59. package/components/u-modal/props.js +16 -17
  60. package/components/u-navbar/props.js +16 -17
  61. package/components/u-no-network/props.js +3 -4
  62. package/components/u-notice-bar/props.js +13 -14
  63. package/components/u-notify/props.js +9 -10
  64. package/components/u-notify/u-notify.vue +5 -0
  65. package/components/u-number-box/props.js +22 -23
  66. package/components/u-number-keyboard/props.js +3 -4
  67. package/components/u-overlay/props.js +4 -5
  68. package/components/u-parse/props.js +8 -9
  69. package/components/u-parse/u-parse.vue +6 -1
  70. package/components/u-picker/props.js +16 -17
  71. package/components/u-picker-column/props.js +0 -1
  72. package/components/u-popup/props.js +15 -16
  73. package/components/u-radio/props.js +13 -14
  74. package/components/u-radio-group/props.js +17 -18
  75. package/components/u-rate/props.js +14 -15
  76. package/components/u-read-more/props.js +8 -9
  77. package/components/u-row/props.js +3 -4
  78. package/components/u-row-notice/props.js +7 -8
  79. package/components/u-row-notice/u-row-notice.vue +5 -0
  80. package/components/u-safe-bottom/props.js +0 -1
  81. package/components/u-scroll-list/props.js +6 -7
  82. package/components/u-search/props.js +24 -25
  83. package/components/u-skeleton/props.js +11 -12
  84. package/components/u-slider/props.js +11 -12
  85. package/components/u-status-bar/props.js +1 -2
  86. package/components/u-steps/props.js +7 -8
  87. package/components/u-steps-item/props.js +4 -5
  88. package/components/u-sticky/props.js +6 -7
  89. package/components/u-sticky/u-sticky.vue +5 -0
  90. package/components/u-subsection/props.js +9 -10
  91. package/components/u-swipe-action/props.js +1 -2
  92. package/components/u-swipe-action-item/nvue.js +5 -0
  93. package/components/u-swipe-action-item/props.js +6 -7
  94. package/components/u-swiper/props.js +24 -25
  95. package/components/u-swiper-indicator/props.js +5 -6
  96. package/components/u-switch/props.js +11 -12
  97. package/components/u-tabbar/props.js +8 -9
  98. package/components/u-tabbar-item/props.js +6 -7
  99. package/components/u-table/props.js +0 -1
  100. package/components/u-tabs/props.js +12 -13
  101. package/components/u-tabs-item/props.js +0 -1
  102. package/components/u-tag/props.js +15 -16
  103. package/components/u-td/props.js +0 -1
  104. package/components/u-text/props.js +21 -22
  105. package/components/u-textarea/props.js +23 -24
  106. package/components/u-toast/u-toast.vue +5 -0
  107. package/components/u-toolbar/props.js +6 -7
  108. package/components/u-tooltip/props.js +11 -12
  109. package/components/u-tr/props.js +0 -1
  110. package/components/u-transition/props.js +4 -5
  111. package/components/u-transition/transition.js +8 -9
  112. package/components/u-upload/props.js +22 -23
  113. package/libs/config/props/actionSheet.js +1 -1
  114. package/libs/config/props/album.js +1 -1
  115. package/libs/config/props/avatarGroup.js +1 -1
  116. package/libs/config/props/backtop.js +2 -2
  117. package/libs/config/props/badge.js +1 -1
  118. package/libs/config/props/calendar.js +3 -3
  119. package/libs/config/props/checkboxGroup.js +1 -1
  120. package/libs/config/props/datetimePicker.js +1 -1
  121. package/libs/config/props/form.js +3 -3
  122. package/libs/config/props/formItem.js +1 -0
  123. package/libs/config/props/indexList.js +1 -1
  124. package/libs/config/props/noticeBar.js +1 -1
  125. package/libs/config/props/picker.js +2 -2
  126. package/libs/config/props/popup.js +1 -1
  127. package/libs/config/props/search.js +2 -2
  128. package/libs/config/props/slider.js +1 -1
  129. package/libs/config/props/swiper.js +1 -1
  130. package/libs/config/props/tabs.js +7 -7
  131. package/libs/config/props/text.js +2 -2
  132. package/libs/config/props/toast.js +1 -1
  133. package/libs/config/props/tooltip.js +1 -1
  134. package/libs/config/props/upload.js +3 -3
  135. package/libs/css/components.scss +11 -1
  136. package/libs/css/flex.scss +73 -71
  137. package/package.json +1 -1
@@ -1,50 +1,49 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 到顶部的距离
5
4
  top: {
6
5
  type: [String, Number],
7
- default: defprops.notify.top
6
+ default: () => uni.$u.props.notify.top
8
7
  },
9
8
  // 是否展示组件
10
9
  // show: {
11
10
  // type: Boolean,
12
- // default: defprops.notify.show
11
+ // default: () => uni.$u.props.notify.show
13
12
  // },
14
13
  // type主题,primary,success,warning,error
15
14
  type: {
16
15
  type: String,
17
- default: defprops.notify.type
16
+ default: () => uni.$u.props.notify.type
18
17
  },
19
18
  // 字体颜色
20
19
  color: {
21
20
  type: String,
22
- default: defprops.notify.color
21
+ default: () => uni.$u.props.notify.color
23
22
  },
24
23
  // 背景颜色
25
24
  bgColor: {
26
25
  type: String,
27
- default: defprops.notify.bgColor
26
+ default: () => uni.$u.props.notify.bgColor
28
27
  },
29
28
  // 展示的文字内容
30
29
  message: {
31
30
  type: String,
32
- default: defprops.notify.message
31
+ default: () => uni.$u.props.notify.message
33
32
  },
34
33
  // 展示时长,为0时不消失,单位ms
35
34
  duration: {
36
35
  type: [String, Number],
37
- default: defprops.notify.duration
36
+ default: () => uni.$u.props.notify.duration
38
37
  },
39
38
  // 字体大小
40
39
  fontSize: {
41
40
  type: [String, Number],
42
- default: defprops.notify.fontSize
41
+ default: () => uni.$u.props.notify.fontSize
43
42
  },
44
43
  // 是否留出顶部安全距离(状态栏高度)
45
44
  safeAreaInsetTop: {
46
45
  type: Boolean,
47
- default: defprops.notify.safeAreaInsetTop
46
+ default: () => uni.$u.props.notify.safeAreaInsetTop
48
47
  }
49
48
  }
50
49
  }
@@ -162,7 +162,12 @@
162
162
  this.timer = null
163
163
  }
164
164
  },
165
+ // #ifdef VUE2
165
166
  beforeDestroy() {
167
+ // #endif
168
+ // #ifdef VUE3
169
+ beforeUnmount() {
170
+ // #endif
166
171
  this.clearTimer()
167
172
  }
168
173
  }
@@ -1,119 +1,118 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 步进器标识符,在change回调返回
5
4
  name: {
6
5
  type: [String, Number],
7
- default: defprops.numberBox.name
6
+ default: () => uni.$u.props.numberBox.name
8
7
  },
9
8
  // #ifdef VUE2
10
9
  // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
11
10
  value: {
12
11
  type: [String, Number],
13
- default: defprops.numberBox.value
12
+ default: () => uni.$u.props.numberBox.value
14
13
  },
15
14
  // #endif
16
15
  // #ifdef VUE3
17
16
  // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
18
17
  modelValue: {
19
18
  type: [String, Number],
20
- default: defprops.numberBox.value
19
+ default: () => uni.$u.props.numberBox.value
21
20
  },
22
21
  // #endif
23
22
  // 最小值
24
23
  min: {
25
24
  type: [String, Number],
26
- default: defprops.numberBox.min
25
+ default: () => uni.$u.props.numberBox.min
27
26
  },
28
27
  // 最大值
29
28
  max: {
30
29
  type: [String, Number],
31
- default: defprops.numberBox.max
30
+ default: () => uni.$u.props.numberBox.max
32
31
  },
33
32
  // 加减的步长,可为小数
34
33
  step: {
35
34
  type: [String, Number],
36
- default: defprops.numberBox.step
35
+ default: () => uni.$u.props.numberBox.step
37
36
  },
38
37
  // 是否只允许输入整数
39
38
  integer: {
40
39
  type: Boolean,
41
- default: defprops.numberBox.integer
40
+ default: () => uni.$u.props.numberBox.integer
42
41
  },
43
42
  // 是否禁用,包括输入框,加减按钮
44
43
  disabled: {
45
44
  type: Boolean,
46
- default: defprops.numberBox.disabled
45
+ default: () => uni.$u.props.numberBox.disabled
47
46
  },
48
47
  // 是否禁用输入框
49
48
  disabledInput: {
50
49
  type: Boolean,
51
- default: defprops.numberBox.disabledInput
50
+ default: () => uni.$u.props.numberBox.disabledInput
52
51
  },
53
52
  // 是否开启异步变更,开启后需要手动控制输入值
54
53
  asyncChange: {
55
54
  type: Boolean,
56
- default: defprops.numberBox.asyncChange
55
+ default: () => uni.$u.props.numberBox.asyncChange
57
56
  },
58
57
  // 输入框宽度,单位为px
59
58
  inputWidth: {
60
59
  type: [String, Number],
61
- default: defprops.numberBox.inputWidth
60
+ default: () => uni.$u.props.numberBox.inputWidth
62
61
  },
63
62
  // 是否显示减少按钮
64
63
  showMinus: {
65
64
  type: Boolean,
66
- default: defprops.numberBox.showMinus
65
+ default: () => uni.$u.props.numberBox.showMinus
67
66
  },
68
67
  // 是否显示增加按钮
69
68
  showPlus: {
70
69
  type: Boolean,
71
- default: defprops.numberBox.showPlus
70
+ default: () => uni.$u.props.numberBox.showPlus
72
71
  },
73
72
  // 显示的小数位数
74
73
  decimalLength: {
75
74
  type: [String, Number, null],
76
- default: defprops.numberBox.decimalLength
75
+ default: () => uni.$u.props.numberBox.decimalLength
77
76
  },
78
77
  // 是否开启长按加减手势
79
78
  longPress: {
80
79
  type: Boolean,
81
- default: defprops.numberBox.longPress
80
+ default: () => uni.$u.props.numberBox.longPress
82
81
  },
83
82
  // 输入框文字和加减按钮图标的颜色
84
83
  color: {
85
84
  type: String,
86
- default: defprops.numberBox.color
85
+ default: () => uni.$u.props.numberBox.color
87
86
  },
88
87
  // 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
89
88
  buttonSize: {
90
89
  type: [String, Number],
91
- default: defprops.numberBox.buttonSize
90
+ default: () => uni.$u.props.numberBox.buttonSize
92
91
  },
93
92
  // 输入框和按钮的背景颜色
94
93
  bgColor: {
95
94
  type: String,
96
- default: defprops.numberBox.bgColor
95
+ default: () => uni.$u.props.numberBox.bgColor
97
96
  },
98
97
  // 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
99
98
  cursorSpacing: {
100
99
  type: [String, Number],
101
- default: defprops.numberBox.cursorSpacing
100
+ default: () => uni.$u.props.numberBox.cursorSpacing
102
101
  },
103
102
  // 是否禁用增加按钮
104
103
  disablePlus: {
105
104
  type: Boolean,
106
- default: defprops.numberBox.disablePlus
105
+ default: () => uni.$u.props.numberBox.disablePlus
107
106
  },
108
107
  // 是否禁用减少按钮
109
108
  disableMinus: {
110
109
  type: Boolean,
111
- default: defprops.numberBox.disableMinus
110
+ default: () => uni.$u.props.numberBox.disableMinus
112
111
  },
113
112
  // 加减按钮图标的样式
114
113
  iconStyle: {
115
114
  type: [Object, String],
116
- default: defprops.numberBox.iconStyle
115
+ default: () => uni.$u.props.numberBox.iconStyle
117
116
  }
118
117
  }
119
118
  }
@@ -1,20 +1,19 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 键盘的类型,number-数字键盘,card-身份证键盘
5
4
  mode: {
6
5
  type: String,
7
- default: defprops.numberKeyboard.value
6
+ default: () => uni.$u.props.numberKeyboard.value
8
7
  },
9
8
  // 是否显示键盘的"."符号
10
9
  dotDisabled: {
11
10
  type: Boolean,
12
- default: defprops.numberKeyboard.dotDisabled
11
+ default: () => uni.$u.props.numberKeyboard.dotDisabled
13
12
  },
14
13
  // 是否打乱键盘按键的顺序
15
14
  random: {
16
15
  type: Boolean,
17
- default: defprops.numberKeyboard.random
16
+ default: () => uni.$u.props.numberKeyboard.random
18
17
  }
19
18
  }
20
19
  }
@@ -1,25 +1,24 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 是否显示遮罩
5
4
  show: {
6
5
  type: Boolean,
7
- default: defprops.overlay.show
6
+ default: () => uni.$u.props.overlay.show
8
7
  },
9
8
  // 层级z-index
10
9
  zIndex: {
11
10
  type: [String, Number],
12
- default: defprops.overlay.zIndex
11
+ default: () => uni.$u.props.overlay.zIndex
13
12
  },
14
13
  // 遮罩的过渡时间,单位为ms
15
14
  duration: {
16
15
  type: [String, Number],
17
- default: defprops.overlay.duration
16
+ default: () => uni.$u.props.overlay.duration
18
17
  },
19
18
  // 不透明度值,当做rgba的第四个参数
20
19
  opacity: {
21
20
  type: [String, Number],
22
- default: defprops.overlay.opacity
21
+ default: () => uni.$u.props.overlay.opacity
23
22
  }
24
23
  }
25
24
  }
@@ -1,4 +1,3 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  containerStyle: {
@@ -8,38 +7,38 @@ export default {
8
7
  content: String,
9
8
  copyLink: {
10
9
  type: Boolean,
11
- default: defprops.parse.copyLink
10
+ default: () => uni.$u.props.parse.copyLink
12
11
  },
13
12
  domain: String,
14
13
  errorImg: {
15
14
  type: String,
16
- default: defprops.parse.errorImg
15
+ default: () => uni.$u.props.parse.errorImg
17
16
  },
18
17
  lazyLoad: {
19
18
  type: Boolean,
20
- default: defprops.parse.lazyLoad
19
+ default: () => uni.$u.props.parse.lazyLoad
21
20
  },
22
21
  loadingImg: {
23
22
  type: String,
24
- default: defprops.parse.loadingImg
23
+ default: () => uni.$u.props.parse.loadingImg
25
24
  },
26
25
  pauseVideo: {
27
26
  type: Boolean,
28
- default: defprops.parse.pauseVideo
27
+ default: () => uni.$u.props.parse.pauseVideo
29
28
  },
30
29
  previewImg: {
31
30
  type: Boolean,
32
- default: defprops.parse.previewImg
31
+ default: () => uni.$u.props.parse.previewImg
33
32
  },
34
33
  scrollTable: Boolean,
35
34
  selectable: Boolean,
36
35
  setTitle: {
37
36
  type: Boolean,
38
- default: defprops.parse.setTitle
37
+ default: () => uni.$u.props.parse.setTitle
39
38
  },
40
39
  showImgMenu: {
41
40
  type: Boolean,
42
- default: defprops.parse.showImgMenu
41
+ default: () => uni.$u.props.parse.showImgMenu
43
42
  },
44
43
  tagStyle: Object,
45
44
  useAnchor: null
@@ -126,7 +126,12 @@ export default {
126
126
  this.setContent(this.content)
127
127
  }
128
128
  },
129
- beforeDestroy() {
129
+ // #ifdef VUE2
130
+ beforeDestroy() {
131
+ // #endif
132
+ // #ifdef VUE3
133
+ beforeUnmount() {
134
+ // #endif
130
135
  this._hook('onDetached')
131
136
  },
132
137
  methods: {
@@ -1,85 +1,84 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 是否展示picker弹窗
5
4
  show: {
6
5
  type: Boolean,
7
- default: defprops.picker.show
6
+ default: () => uni.$u.props.picker.show
8
7
  },
9
8
  // 弹出的方向,可选值为 top bottom right left center
10
9
  popupMode: {
11
10
  type: String,
12
- default: defprops.picker.popupMode
11
+ default: () => uni.$u.props.picker.popupMode
13
12
  },
14
13
  // 是否展示顶部的操作栏
15
14
  showToolbar: {
16
15
  type: Boolean,
17
- default: defprops.picker.showToolbar
16
+ default: () => uni.$u.props.picker.showToolbar
18
17
  },
19
18
  // 顶部标题
20
19
  title: {
21
20
  type: String,
22
- default: defprops.picker.title
21
+ default: () => uni.$u.props.picker.title
23
22
  },
24
23
  // 对象数组,设置每一列的数据
25
24
  columns: {
26
25
  type: Array,
27
- default: defprops.picker.columns
26
+ default: () => uni.$u.props.picker.columns
28
27
  },
29
28
  // 是否显示加载中状态
30
29
  loading: {
31
30
  type: Boolean,
32
- default: defprops.picker.loading
31
+ default: () => uni.$u.props.picker.loading
33
32
  },
34
33
  // 各列中,单个选项的高度
35
34
  itemHeight: {
36
35
  type: [String, Number],
37
- default: defprops.picker.itemHeight
36
+ default: () => uni.$u.props.picker.itemHeight
38
37
  },
39
38
  // 取消按钮的文字
40
39
  cancelText: {
41
40
  type: String,
42
- default: defprops.picker.cancelText
41
+ default: () => uni.$u.props.picker.cancelText
43
42
  },
44
43
  // 确认按钮的文字
45
44
  confirmText: {
46
45
  type: String,
47
- default: defprops.picker.confirmText
46
+ default: () => uni.$u.props.picker.confirmText
48
47
  },
49
48
  // 取消按钮的颜色
50
49
  cancelColor: {
51
50
  type: String,
52
- default: defprops.picker.cancelColor
51
+ default: () => uni.$u.props.picker.cancelColor
53
52
  },
54
53
  // 确认按钮的颜色
55
54
  confirmColor: {
56
55
  type: String,
57
- default: defprops.picker.confirmColor
56
+ default: () => uni.$u.props.picker.confirmColor
58
57
  },
59
58
  // 每列中可见选项的数量
60
59
  visibleItemCount: {
61
60
  type: [String, Number],
62
- default: defprops.picker.visibleItemCount
61
+ default: () => uni.$u.props.picker.visibleItemCount
63
62
  },
64
63
  // 选项对象中,需要展示的属性键名
65
64
  keyName: {
66
65
  type: String,
67
- default: defprops.picker.keyName
66
+ default: () => uni.$u.props.picker.keyName
68
67
  },
69
68
  // 是否允许点击遮罩关闭选择器
70
69
  closeOnClickOverlay: {
71
70
  type: Boolean,
72
- default: defprops.picker.closeOnClickOverlay
71
+ default: () => uni.$u.props.picker.closeOnClickOverlay
73
72
  },
74
73
  // 各列的默认索引
75
74
  defaultIndex: {
76
75
  type: Array,
77
- default: defprops.picker.defaultIndex
76
+ default: () => uni.$u.props.picker.defaultIndex
78
77
  },
79
78
  // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
80
79
  immediateChange: {
81
80
  type: Boolean,
82
- default: defprops.picker.immediateChange
81
+ default: () => uni.$u.props.picker.immediateChange
83
82
  }
84
83
  }
85
84
  }
@@ -1,4 +1,3 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
 
@@ -1,80 +1,79 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 是否展示弹窗
5
4
  show: {
6
5
  type: Boolean,
7
- default: defprops.popup.show
6
+ default: () => uni.$u.props.popup.show
8
7
  },
9
8
  // 是否显示遮罩
10
9
  overlay: {
11
10
  type: Boolean,
12
- default: defprops.popup.overlay
11
+ default: () => uni.$u.props.popup.overlay
13
12
  },
14
13
  // 弹出的方向,可选值为 top bottom right left center
15
14
  mode: {
16
15
  type: String,
17
- default: defprops.popup.mode
16
+ default: () => uni.$u.props.popup.mode
18
17
  },
19
18
  // 动画时长,单位ms
20
19
  duration: {
21
20
  type: [String, Number],
22
- default: defprops.popup.duration
21
+ default: () => uni.$u.props.popup.duration
23
22
  },
24
23
  // 是否显示关闭图标
25
24
  closeable: {
26
25
  type: Boolean,
27
- default: defprops.popup.closeable
26
+ default: () => uni.$u.props.popup.closeable
28
27
  },
29
28
  // 自定义遮罩的样式
30
29
  overlayStyle: {
31
30
  type: [Object, String],
32
- default: defprops.popup.overlayStyle
31
+ default: () => uni.$u.props.popup.overlayStyle
33
32
  },
34
33
  // 点击遮罩是否关闭弹窗
35
34
  closeOnClickOverlay: {
36
35
  type: Boolean,
37
- default: defprops.popup.closeOnClickOverlay
36
+ default: () => uni.$u.props.popup.closeOnClickOverlay
38
37
  },
39
38
  // 层级
40
39
  zIndex: {
41
40
  type: [String, Number],
42
- default: defprops.popup.zIndex
41
+ default: () => uni.$u.props.popup.zIndex
43
42
  },
44
43
  // 是否为iPhoneX留出底部安全距离
45
44
  safeAreaInsetBottom: {
46
45
  type: Boolean,
47
- default: defprops.popup.safeAreaInsetBottom
46
+ default: () => uni.$u.props.popup.safeAreaInsetBottom
48
47
  },
49
48
  // 是否留出顶部安全距离(状态栏高度)
50
49
  safeAreaInsetTop: {
51
50
  type: Boolean,
52
- default: defprops.popup.safeAreaInsetTop
51
+ default: () => uni.$u.props.popup.safeAreaInsetTop
53
52
  },
54
53
  // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
55
54
  closeIconPos: {
56
55
  type: String,
57
- default: defprops.popup.closeIconPos
56
+ default: () => uni.$u.props.popup.closeIconPos
58
57
  },
59
58
  // 是否显示圆角
60
59
  round: {
61
60
  type: [Boolean, String, Number],
62
- default: defprops.popup.round
61
+ default: () => uni.$u.props.popup.round
63
62
  },
64
63
  // mode=center,也即中部弹出时,是否使用缩放模式
65
64
  zoom: {
66
65
  type: Boolean,
67
- default: defprops.popup.zoom
66
+ default: () => uni.$u.props.popup.zoom
68
67
  },
69
68
  // 弹窗背景色,设置为transparent可去除白色背景
70
69
  bgColor: {
71
70
  type: String,
72
- default: defprops.popup.bgColor
71
+ default: () => uni.$u.props.popup.bgColor
73
72
  },
74
73
  // 遮罩的透明度,0-1之间
75
74
  overlayOpacity: {
76
75
  type: [Number, String],
77
- default: defprops.popup.overlayOpacity
76
+ default: () => uni.$u.props.popup.overlayOpacity
78
77
  }
79
78
  }
80
79
  }
@@ -1,70 +1,69 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // radio的名称
5
4
  name: {
6
5
  type: [String, Number, Boolean],
7
- default: defprops.radio.name
6
+ default: () => uni.$u.props.radio.name
8
7
  },
9
8
  // 形状,square为方形,circle为圆型
10
9
  shape: {
11
10
  type: String,
12
- default: defprops.radio.shape
11
+ default: () => uni.$u.props.radio.shape
13
12
  },
14
13
  // 是否禁用
15
14
  disabled: {
16
15
  type: [String, Boolean],
17
- default: defprops.radio.disabled
16
+ default: () => uni.$u.props.radio.disabled
18
17
  },
19
18
  // 是否禁止点击提示语选中单选框
20
19
  labelDisabled: {
21
20
  type: [String, Boolean],
22
- default: defprops.radio.labelDisabled
21
+ default: () => uni.$u.props.radio.labelDisabled
23
22
  },
24
23
  // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
25
24
  activeColor: {
26
25
  type: String,
27
- default: defprops.radio.activeColor
26
+ default: () => uni.$u.props.radio.activeColor
28
27
  },
29
28
  // 未选中的颜色
30
29
  inactiveColor: {
31
30
  type: String,
32
- default: defprops.radio.inactiveColor
31
+ default: () => uni.$u.props.radio.inactiveColor
33
32
  },
34
33
  // 图标的大小,单位px
35
34
  iconSize: {
36
35
  type: [String, Number],
37
- default: defprops.radio.iconSize
36
+ default: () => uni.$u.props.radio.iconSize
38
37
  },
39
38
  // label的字体大小,px单位
40
39
  labelSize: {
41
40
  type: [String, Number],
42
- default: defprops.radio.labelSize
41
+ default: () => uni.$u.props.radio.labelSize
43
42
  },
44
43
  // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
45
44
  label: {
46
45
  type: [String, Number],
47
- default: defprops.radio.label
46
+ default: () => uni.$u.props.radio.label
48
47
  },
49
48
  // 整体的大小
50
49
  size: {
51
50
  type: [String, Number],
52
- default: defprops.radio.size
51
+ default: () => uni.$u.props.radio.size
53
52
  },
54
53
  // 图标颜色
55
54
  color: {
56
55
  type: String,
57
- default: defprops.radio.color
56
+ default: () => uni.$u.props.radio.color
58
57
  },
59
58
  // label的颜色
60
59
  labelColor: {
61
60
  type: String,
62
- default: defprops.radio.labelColor
61
+ default: () => uni.$u.props.radio.labelColor
63
62
  },
64
63
  // 图标颜色
65
64
  iconColor: {
66
65
  type: String,
67
- default: defprops.radio.iconColor
66
+ default: () => uni.$u.props.radio.iconColor
68
67
  }
69
68
  }
70
69
  }