uview-plus 3.2.5 → 3.2.7

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