sadais-piui 1.2.7-beta113 → 1.2.7-beta115

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 (160) hide show
  1. package/.prettierrc +7 -7
  2. package/CHANGELOG.md +545 -545
  3. package/LICENSE +20 -20
  4. package/README.md +166 -166
  5. package/components/pi-action-sheet/index.vue +247 -247
  6. package/components/pi-badge/index.vue +146 -146
  7. package/components/pi-bottom-bar/index.vue +139 -139
  8. package/components/pi-bubble/index.vue +174 -174
  9. package/components/pi-button/index.vue +492 -492
  10. package/components/pi-calendar-input/index.vue +230 -230
  11. package/components/pi-calendar-panel/components/calendar-days/index.vue +410 -410
  12. package/components/pi-calendar-panel/index.vue +473 -473
  13. package/components/pi-canvas/index.vue +407 -407
  14. package/components/pi-card/index.vue +127 -127
  15. package/components/pi-cascader/index.vue +601 -601
  16. package/components/pi-checkbox/index.vue +363 -363
  17. package/components/pi-checkbox-group/index.vue +222 -222
  18. package/components/pi-circle-progress/index.vue +311 -311
  19. package/components/pi-code-input/index.vue +270 -270
  20. package/components/pi-collapse/index.vue +124 -124
  21. package/components/pi-collapse-item/index.vue +352 -352
  22. package/components/pi-count-down/index.vue +245 -245
  23. package/components/pi-count-up/index.vue +209 -209
  24. package/components/pi-date-picker-input/index.vue +219 -219
  25. package/components/pi-divider/index.vue +112 -112
  26. package/components/pi-dropdown/components/dropdown-tab.vue +71 -71
  27. package/components/pi-dropdown/index.vue +356 -356
  28. package/components/pi-dropdown-item/index.vue +252 -252
  29. package/components/pi-form/index.vue +273 -273
  30. package/components/pi-form-item/index.vue +603 -590
  31. package/components/pi-gap/index.vue +72 -72
  32. package/components/pi-grid/index.vue +92 -92
  33. package/components/pi-grid-item/index.vue +220 -220
  34. package/components/pi-icon/index.vue +147 -147
  35. package/components/pi-img/index.vue +266 -266
  36. package/components/pi-img-cropper/canvas.js +106 -106
  37. package/components/pi-img-cropper/index.vue +357 -357
  38. package/components/pi-img-cropper/touch.js +163 -163
  39. package/components/pi-img-cropper/vector.js +34 -34
  40. package/components/pi-input/index.vue +409 -401
  41. package/components/pi-line/index.vue +78 -78
  42. package/components/pi-line-progress/index.vue +198 -198
  43. package/components/pi-list/index.vue +115 -115
  44. package/components/pi-list-item/index.vue +335 -335
  45. package/components/pi-loading/index.vue +188 -188
  46. package/components/pi-marquee/index.vue +310 -310
  47. package/components/pi-marquee-item/index.vue +47 -47
  48. package/components/pi-mask/index.vue +198 -198
  49. package/components/pi-modal/index.vue +303 -303
  50. package/components/pi-navbar/index.vue +421 -421
  51. package/components/pi-notify/index.vue +239 -239
  52. package/components/pi-number-keyboard/index.vue +189 -189
  53. package/components/pi-opentype-button/index.vue +501 -501
  54. package/components/pi-pagination/index.vue +290 -290
  55. package/components/pi-picker/index.vue +317 -317
  56. package/components/pi-popup/index.vue +356 -356
  57. package/components/pi-popup-select/index.vue +300 -300
  58. package/components/pi-radio/index.vue +403 -403
  59. package/components/pi-radio-group/index.vue +300 -300
  60. package/components/pi-rate/index.vue +212 -212
  61. package/components/pi-regions-select/index.vue +349 -349
  62. package/components/pi-regions-select-input/index.vue +230 -230
  63. package/components/pi-search/index.vue +386 -386
  64. package/components/pi-section/index.vue +218 -218
  65. package/components/pi-select/index.vue +678 -678
  66. package/components/pi-select-input/index.vue +273 -273
  67. package/components/pi-skeleton/index.vue +280 -280
  68. package/components/pi-status-bar/index.vue +56 -56
  69. package/components/pi-stepper/index.vue +408 -408
  70. package/components/pi-steps/index.vue +378 -378
  71. package/components/pi-subsection/index.vue +403 -403
  72. package/components/pi-swiper/index.vue +344 -344
  73. package/components/pi-switch/index.vue +231 -231
  74. package/components/pi-table/index.vue +351 -351
  75. package/components/pi-tabs/index.vue +435 -435
  76. package/components/pi-tag/index.vue +488 -488
  77. package/components/pi-upload-img/index.vue +980 -980
  78. package/components/pi-waterfall/index.vue +130 -130
  79. package/config/actionSheet.js +24 -24
  80. package/config/badge.js +9 -9
  81. package/config/bottomBar.js +11 -11
  82. package/config/bubble.js +6 -6
  83. package/config/button.js +29 -29
  84. package/config/calendar.js +19 -19
  85. package/config/calendarInput.js +19 -19
  86. package/config/calendarPanel.js +27 -27
  87. package/config/card.js +8 -8
  88. package/config/cascader.js +22 -22
  89. package/config/checkbox.js +15 -15
  90. package/config/checkboxGroup.js +15 -15
  91. package/config/circleProgress.js +20 -20
  92. package/config/codeInput.js +13 -13
  93. package/config/collapse.js +7 -7
  94. package/config/collapseItem.js +11 -11
  95. package/config/countDown.js +12 -12
  96. package/config/countUp.js +13 -13
  97. package/config/datePickerInput.js +18 -18
  98. package/config/divider.js +10 -10
  99. package/config/dropdown.js +25 -25
  100. package/config/dropdownItem.js +26 -26
  101. package/config/form.js +29 -29
  102. package/config/formItem.js +27 -27
  103. package/config/gap.js +8 -8
  104. package/config/grid.js +9 -9
  105. package/config/gridItem.js +12 -12
  106. package/config/icon.js +11 -11
  107. package/config/img.js +21 -21
  108. package/config/imgCropper.js +26 -26
  109. package/config/index.js +28 -28
  110. package/config/input.js +37 -36
  111. package/config/line.js +8 -8
  112. package/config/lineProgress.js +14 -14
  113. package/config/list.js +12 -12
  114. package/config/listItem.js +25 -25
  115. package/config/loading.js +10 -10
  116. package/config/marquee.js +10 -10
  117. package/config/mask.js +12 -12
  118. package/config/modal.js +36 -36
  119. package/config/navbar.js +32 -32
  120. package/config/notify.js +13 -13
  121. package/config/numberKeyboard.js +21 -21
  122. package/config/pagination.js +10 -10
  123. package/config/picker.js +19 -19
  124. package/config/popup.js +23 -23
  125. package/config/popupSelect.js +35 -35
  126. package/config/radio.js +16 -16
  127. package/config/radioGroup.js +17 -17
  128. package/config/rate.js +15 -15
  129. package/config/regionsData.js +58 -58
  130. package/config/regionsSelect.js +19 -19
  131. package/config/regionsSelectInput.js +29 -29
  132. package/config/search.js +27 -27
  133. package/config/section.js +23 -23
  134. package/config/select.js +41 -41
  135. package/config/selectInput.js +29 -29
  136. package/config/skeleton.js +13 -13
  137. package/config/statusBar.js +5 -5
  138. package/config/stepper.js +19 -19
  139. package/config/steps.js +19 -19
  140. package/config/subsection.js +14 -14
  141. package/config/swiper.js +22 -22
  142. package/config/switch.js +13 -13
  143. package/config/table.js +8 -8
  144. package/config/tabs.js +23 -23
  145. package/config/tag.js +21 -21
  146. package/config/uploadImg.js +81 -81
  147. package/config/waterfall.js +6 -6
  148. package/index.js +41 -41
  149. package/mixin/component-custom.js +24 -24
  150. package/mixin/emitter.js +45 -45
  151. package/mixin/props-sync.js +65 -65
  152. package/mixin/value-sync.js +32 -32
  153. package/mixin/wx-code.js +30 -30
  154. package/package.json +28 -28
  155. package/plugins/async-validator.js +1511 -1511
  156. package/scss/animation.scss +260 -260
  157. package/scss/icon/icon.scss +595 -595
  158. package/scss/index.scss +5 -5
  159. package/scss/mixin.scss +47 -47
  160. package/tools/index.js +19 -19
@@ -1,15 +1,15 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- name: '', // 标识符
5
- shape: 'square', // 形状,可选值为 square round
6
- borderRadius: 8, // 当shape为square的时候,设置圆角,单位rpx
7
- border: 2, // 边框大小,单位rpx
8
- disabled: false, // 是否禁用复选框
9
- readonly: false, // 是否只读模式
10
- size: 40, // checkbox大小,单位rpx
11
- iconSize: 28, // checkbox icon 大小,单位rpx
12
- activeColor: '', // 选中时图标的颜色
13
- activeMode: 'line', // 激活模式(line: 线框模式,fill: 实底模式)
14
- onlyIconSelect: false // 是否点击图标才能选中,默认点击整行都能选中
15
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ name: '', // 标识符
5
+ shape: 'square', // 形状,可选值为 square round
6
+ borderRadius: 8, // 当shape为square的时候,设置圆角,单位rpx
7
+ border: 2, // 边框大小,单位rpx
8
+ disabled: false, // 是否禁用复选框
9
+ readonly: false, // 是否只读模式
10
+ size: 40, // checkbox大小,单位rpx
11
+ iconSize: 28, // checkbox icon 大小,单位rpx
12
+ activeColor: '', // 选中时图标的颜色
13
+ activeMode: 'line', // 激活模式(line: 线框模式,fill: 实底模式)
14
+ onlyIconSelect: false // 是否点击图标才能选中,默认点击整行都能选中
15
+ }
@@ -1,15 +1,15 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- max: 0, // 最大可选数,0为无限制
5
- direction: 'horizontal', // 排列方向,可选值为 horizontal vertical
6
- shape: '', // 形状,可选值为 square round
7
- borderRadius: 0, // 当shape为square的时候,设置圆角,单位rpx
8
- border: 0, // 边框大小,单位rpx
9
- disabled: false, // 是否禁用复选框
10
- size: 0, // checkbox大小,单位rpx
11
- iconSize: 0, // checkbox icon 大小,单位rpx
12
- activeColor: '', // 选中时图标的颜色
13
- activeMode: '', // 激活模式(line: 线框模式,fill: 实底模式)
14
- onlyIconSelect: null // 是否点击图标才能选中,默认点击整行都能选中
15
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ max: 0, // 最大可选数,0为无限制
5
+ direction: 'horizontal', // 排列方向,可选值为 horizontal vertical
6
+ shape: '', // 形状,可选值为 square round
7
+ borderRadius: 0, // 当shape为square的时候,设置圆角,单位rpx
8
+ border: 0, // 边框大小,单位rpx
9
+ disabled: false, // 是否禁用复选框
10
+ size: 0, // checkbox大小,单位rpx
11
+ iconSize: 0, // checkbox icon 大小,单位rpx
12
+ activeColor: '', // 选中时图标的颜色
13
+ activeMode: '', // 激活模式(line: 线框模式,fill: 实底模式)
14
+ onlyIconSelect: null // 是否点击图标才能选中,默认点击整行都能选中
15
+ }
@@ -1,20 +1,20 @@
1
- export default {
2
- percent: 50, // 环形进度条,限制0-100之间,数字形式,默认值:50
3
- bgColor: '', // 环形进度区域背景色,字符串形式,默认值:'#ffffff'
4
- inactiveColor: '', // 环形进度条底色,字符串形式,默认值:'#ececec'
5
- activeColor: '', // 环形进度条激活的颜色,字符串形式,默认值:'#19be6b'
6
- borderWidth: 14, // 环形进度条的线条宽度,字符串/数字形式,默认值:14
7
- width: 200, // 环形进度条整个圆的宽度,字符串/数字形式,默认值:200
8
- duration: 1500, // 整个圆环执行至进度条所需的时间,单位ms,字符串/数字形式,默认值:1500
9
- type: 'success', // 环形进度条的主题 'success', 'error', 'info', 'primary', 'warning'
10
- // 主题列表
11
- typeList: {
12
- success: { bgColor: '#ffffff', activeColor: '#67c23a', inactiveColor: '#ececec' },
13
- error: { bgColor: '#fef0f0', activeColor: '#f56c6c', inactiveColor: '#fbc4c4' },
14
- info: { bgColor: '#f4f4f5', activeColor: '#909399', inactiveColor: '#ececec' },
15
- primary: { bgColor: '#ecf5ff', activeColor: '#409eff', inactiveColor: '#b3d8ff' },
16
- warning: { bgColor: '#fdf6ec', activeColor: '#e6a23c', inactiveColor: '#f5dab1' }
17
- },
18
- fontSize: '16px', // 环形进度条中间显示文字的大小,字符串形式,默认值:'16px'
19
- text: '' // 环形进度条中间显示的文字,字符串形式,默认值:''
20
- }
1
+ export default {
2
+ percent: 50, // 环形进度条,限制0-100之间,数字形式,默认值:50
3
+ bgColor: '', // 环形进度区域背景色,字符串形式,默认值:'#ffffff'
4
+ inactiveColor: '', // 环形进度条底色,字符串形式,默认值:'#ececec'
5
+ activeColor: '', // 环形进度条激活的颜色,字符串形式,默认值:'#19be6b'
6
+ borderWidth: 14, // 环形进度条的线条宽度,字符串/数字形式,默认值:14
7
+ width: 200, // 环形进度条整个圆的宽度,字符串/数字形式,默认值:200
8
+ duration: 1500, // 整个圆环执行至进度条所需的时间,单位ms,字符串/数字形式,默认值:1500
9
+ type: 'success', // 环形进度条的主题 'success', 'error', 'info', 'primary', 'warning'
10
+ // 主题列表
11
+ typeList: {
12
+ success: { bgColor: '#ffffff', activeColor: '#67c23a', inactiveColor: '#ececec' },
13
+ error: { bgColor: '#fef0f0', activeColor: '#f56c6c', inactiveColor: '#fbc4c4' },
14
+ info: { bgColor: '#f4f4f5', activeColor: '#909399', inactiveColor: '#ececec' },
15
+ primary: { bgColor: '#ecf5ff', activeColor: '#409eff', inactiveColor: '#b3d8ff' },
16
+ warning: { bgColor: '#fdf6ec', activeColor: '#e6a23c', inactiveColor: '#f5dab1' }
17
+ },
18
+ fontSize: '16px', // 环形进度条中间显示文字的大小,字符串形式,默认值:'16px'
19
+ text: '' // 环形进度条中间显示的文字,字符串形式,默认值:''
20
+ }
@@ -1,13 +1,13 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- itemStyle: {}, // 每项验证码样式,对象形式(默认值:{})
5
- fillStyle: {}, // 已填项验证码样式,对象形式(默认值:{})
6
- length: 4, // 验证码长度
7
- autoFocus: false, // 是否自动拉起键盘输入
8
- autoFocusDelay: 350, // 自动拉起键盘延时
9
- stretch: false, // 每项验证码是否均分宽度
10
- align: 'left', // 验证码对齐方向,可选值:left、center、right
11
- codeFormat: '', // 验证码显示格式化
12
- disabled: false
13
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ itemStyle: {}, // 每项验证码样式,对象形式(默认值:{})
5
+ fillStyle: {}, // 已填项验证码样式,对象形式(默认值:{})
6
+ length: 4, // 验证码长度
7
+ autoFocus: false, // 是否自动拉起键盘输入
8
+ autoFocusDelay: 350, // 自动拉起键盘延时
9
+ stretch: false, // 每项验证码是否均分宽度
10
+ align: 'left', // 验证码对齐方向,可选值:left、center、right
11
+ codeFormat: '', // 验证码显示格式化
12
+ disabled: false
13
+ }
@@ -1,7 +1,7 @@
1
- export default {
2
- value: null, // 当前展开面板的name,非手风琴模式:[<string | number>],手风琴模式:string | number
3
- accordion: false, // 是否手风琴模式,默认false
4
- border: true, // 是否显示边框,默认true
5
- customClass: '', // 自定义样式类,字符串形式('')
6
- customStyle: {} // 自定义样式,对象形式(默认值:{})
7
- }
1
+ export default {
2
+ value: null, // 当前展开面板的name,非手风琴模式:[<string | number>],手风琴模式:string | number
3
+ accordion: false, // 是否手风琴模式,默认false
4
+ border: true, // 是否显示边框,默认true
5
+ customClass: '', // 自定义样式类,字符串形式('')
6
+ customStyle: {} // 自定义样式,对象形式(默认值:{})
7
+ }
@@ -1,11 +1,11 @@
1
- export default {
2
- title: '', // 标题
3
- value: '', // 自定义内容
4
- name: '', // 唯一标识
5
- desc: '', // 描述
6
- disabled: false, // 是否禁用折叠面板
7
- border: true, // 是否显示边框,默认true
8
- duration: 300, // 面板展开收起的过渡时间,单位ms
9
- customClass: '', // 自定义样式类,字符串形式('')
10
- customStyle: {} // 自定义样式,对象形式(默认值:{})
11
- }
1
+ export default {
2
+ title: '', // 标题
3
+ value: '', // 自定义内容
4
+ name: '', // 唯一标识
5
+ desc: '', // 描述
6
+ disabled: false, // 是否禁用折叠面板
7
+ border: true, // 是否显示边框,默认true
8
+ duration: 300, // 面板展开收起的过渡时间,单位ms
9
+ customClass: '', // 自定义样式类,字符串形式('')
10
+ customStyle: {} // 自定义样式,对象形式(默认值:{})
11
+ }
@@ -1,12 +1,12 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- timeStyle: {}, // 每一个项时间的自定义样式,对象形式(默认值:{})
5
- separatorStyle: {}, // 每一个项时间的自定义样式,对象形式(默认值:{})
6
- autoplay: true, // 是否自动开始倒计时,如果为false,需手动调用开始方法
7
- separator: 'colon', // 分隔符,colon为英文冒号,zh为中文
8
- showDay: true, // 是否显示天
9
- showHour: true, // 是否显示小时
10
- showMinute: true, // 是否显示分钟
11
- showSecond: true // 是否显示秒
12
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ timeStyle: {}, // 每一个项时间的自定义样式,对象形式(默认值:{})
5
+ separatorStyle: {}, // 每一个项时间的自定义样式,对象形式(默认值:{})
6
+ autoplay: true, // 是否自动开始倒计时,如果为false,需手动调用开始方法
7
+ separator: 'colon', // 分隔符,colon为英文冒号,zh为中文
8
+ showDay: true, // 是否显示天
9
+ showHour: true, // 是否显示小时
10
+ showMinute: true, // 是否显示分钟
11
+ showSecond: true // 是否显示秒
12
+ }
package/config/countUp.js CHANGED
@@ -1,13 +1,13 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- startNum: 0, // 起始值
5
- endNum: 0, // 终止值
6
- duration: 2000, // 滚动到目标数值的动画持续时间,单位为毫秒(ms)
7
- autoplay: true, // 是否自动播放
8
- decimals: 0, // 要显示的小数位数
9
- thousands: '', // 千位符分隔符,默认为空
10
- isEase: true, // 是否在即将到达目标数值的时候,使用缓慢滚动的效果
11
- fontColor: '#333333', // 字体颜色
12
- fontSize: 38 // 字体大小,单位rpx
13
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ startNum: 0, // 起始值
5
+ endNum: 0, // 终止值
6
+ duration: 2000, // 滚动到目标数值的动画持续时间,单位为毫秒(ms)
7
+ autoplay: true, // 是否自动播放
8
+ decimals: 0, // 要显示的小数位数
9
+ thousands: '', // 千位符分隔符,默认为空
10
+ isEase: true, // 是否在即将到达目标数值的时候,使用缓慢滚动的效果
11
+ fontColor: '#333333', // 字体颜色
12
+ fontSize: 38 // 字体大小,单位rpx
13
+ }
@@ -1,18 +1,18 @@
1
- import input from './input'
2
- import datePicker from './datePicker'
3
-
4
- export default {
5
- customClass: '', // 自定义样式类,字符串形式('')
6
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
7
- // input输入设置
8
- input: {
9
- ...input,
10
- placeholder: '请选择',
11
- disabled: true // 是否禁用
12
- },
13
- // 日期弹窗的配置,默认选项请参照datePicker
14
- datePicker,
15
- dateFormat: 'YYYY-MM-DD', // 已选择的时间格式化显示规则,默认('YYYY-MM-DD')
16
- parseValueFn: null, // 解析值的方法,如果配置了,则读取该函数的返回值作为显示的内容
17
- disabled: false
18
- }
1
+ import input from './input'
2
+ import datePicker from './datePicker'
3
+
4
+ export default {
5
+ customClass: '', // 自定义样式类,字符串形式('')
6
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
7
+ // input输入设置
8
+ input: {
9
+ ...input,
10
+ placeholder: '请选择',
11
+ disabled: true // 是否禁用
12
+ },
13
+ // 日期弹窗的配置,默认选项请参照datePicker
14
+ datePicker,
15
+ dateFormat: 'YYYY-MM-DD', // 已选择的时间格式化显示规则,默认('YYYY-MM-DD')
16
+ parseValueFn: null, // 解析值的方法,如果配置了,则读取该函数的返回值作为显示的内容
17
+ disabled: false
18
+ }
package/config/divider.js CHANGED
@@ -1,10 +1,10 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- borderColor: '#d6e4ef', // 分割线颜色
5
- borderStyle: 'solid', // 分割线样式:solid dashed dotted double
6
- halfline: true, // 是否使用0.5px线
7
- contentPosition: 'center', // 内容位置:center left right
8
- contentPadding: '0 24rpx', // 内容边距
9
- contentStyle: {} // 内容自定义样式
10
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ borderColor: '#d6e4ef', // 分割线颜色
5
+ borderStyle: 'solid', // 分割线样式:solid dashed dotted double
6
+ halfline: true, // 是否使用0.5px线
7
+ contentPosition: 'center', // 内容位置:center left right
8
+ contentPadding: '0 24rpx', // 内容边距
9
+ contentStyle: {} // 内容自定义样式
10
+ }
@@ -1,25 +1,25 @@
1
- import mask from './mask'
2
-
3
- export default {
4
- // 自定义样式类,字符串形式('')
5
- customClass: '',
6
- // 内容自定义样式,对象形式(默认值:{})
7
- customStyle: {},
8
- contentStyle: {},
9
- // 弹窗蒙层的配置,默认选项请参照mask
10
- mask: {
11
- ...mask,
12
- zIndex: 100
13
- },
14
- activeColor: null, // 默认选中色
15
- itemHeight: null, // 行高(默认:'110rpx')
16
- keyField: null, // 选项id字段,默认为id
17
- displayField: null, // 选项显示字段,默认为text
18
- disabledField: null, // 选项禁用字段,默认为disabled
19
- selectedImg: null, // 选中图标的配置
20
- selectedCheckbox: null, // 选中复选框配置
21
- stretch: false, // 标签是否均分布局,可选值 `true`
22
- tabHeight: 80, // 标签的高度,单位rpx
23
- maskAlignTop: true, // 是否需要蒙层顶部对齐组件,可选值 `false`
24
- disabled: false
25
- }
1
+ import mask from './mask'
2
+
3
+ export default {
4
+ // 自定义样式类,字符串形式('')
5
+ customClass: '',
6
+ // 内容自定义样式,对象形式(默认值:{})
7
+ customStyle: {},
8
+ contentStyle: {},
9
+ // 弹窗蒙层的配置,默认选项请参照mask
10
+ mask: {
11
+ ...mask,
12
+ zIndex: 100
13
+ },
14
+ activeColor: null, // 默认选中色
15
+ itemHeight: null, // 行高(默认:'110rpx')
16
+ keyField: null, // 选项id字段,默认为id
17
+ displayField: null, // 选项显示字段,默认为text
18
+ disabledField: null, // 选项禁用字段,默认为disabled
19
+ selectedImg: null, // 选中图标的配置
20
+ selectedCheckbox: null, // 选中复选框配置
21
+ stretch: false, // 标签是否均分布局,可选值 `true`
22
+ tabHeight: 80, // 标签的高度,单位rpx
23
+ maskAlignTop: true, // 是否需要蒙层顶部对齐组件,可选值 `false`
24
+ disabled: false
25
+ }
@@ -1,26 +1,26 @@
1
- import icon from './icon'
2
- import img from './img'
3
- import checkbox from './checkbox'
4
-
5
- export default {
6
- customClass: '', // 自定义样式类,字符串形式('')
7
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
8
- showIcon: false, // 是否显示图标,默认值 false
9
- iconOption: {
10
- ...icon,
11
- size: 36
12
- }, // 图标配置
13
- title: '',
14
- disabled: false, // 是否禁用
15
- option: [], // 选项列表,默认([])
16
- itemHeight: 110, // 行高(默认:'110rpx')
17
- keyField: 'id', // 选项id字段,默认为id
18
- displayField: 'text', // 选项显示字段,默认为text
19
- disabledField: 'disabled', // 选项禁用字段,默认为disabled
20
- selectedImg: img, // 选中图标的配置
21
- selectedCheckbox: {
22
- ...checkbox,
23
- shape: 'round',
24
- activeMode: 'fill-circle'
25
- } // 选中复选框配置
26
- }
1
+ import icon from './icon'
2
+ import img from './img'
3
+ import checkbox from './checkbox'
4
+
5
+ export default {
6
+ customClass: '', // 自定义样式类,字符串形式('')
7
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
8
+ showIcon: false, // 是否显示图标,默认值 false
9
+ iconOption: {
10
+ ...icon,
11
+ size: 36
12
+ }, // 图标配置
13
+ title: '',
14
+ disabled: false, // 是否禁用
15
+ option: [], // 选项列表,默认([])
16
+ itemHeight: 110, // 行高(默认:'110rpx')
17
+ keyField: 'id', // 选项id字段,默认为id
18
+ displayField: 'text', // 选项显示字段,默认为text
19
+ disabledField: 'disabled', // 选项禁用字段,默认为disabled
20
+ selectedImg: img, // 选中图标的配置
21
+ selectedCheckbox: {
22
+ ...checkbox,
23
+ shape: 'round',
24
+ activeMode: 'fill-circle'
25
+ } // 选中复选框配置
26
+ }
package/config/form.js CHANGED
@@ -1,29 +1,29 @@
1
- import icon from './icon'
2
-
3
- export default {
4
- customClass: '', // 自定义样式类,字符串形式('')
5
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
- title: '', // 表单面板标题
7
- desc: '', // 表单描述
8
- titleStyle: {}, // 表单自定义样式,对象形式(默认值:{})
9
- height: 100, // 表单项高度
10
- padding: '32rpx', // padding
11
- labelWidth: 120, // 表单项 label 宽度,默认单位为rpx
12
- itemVerticalAlign: 'center', // 表单项垂直对齐方式,可选值为 top center bottom
13
- labelAlign: 'left', // 表单项 label 对齐方式,可选值为 left center right
14
- labelStyle: {}, // 表单项 label样式
15
- inputAlign: 'right', // 表单输入区域 label 对齐方式,可选值为 left center right
16
- wrap: false, // 是否以换行样式显示表单
17
- wrapBottomGap: false, // wrap模式下是否在底部增加表单项之间的间距
18
- labelWrapBorder: false, // wrap样式label是否显示边框
19
- colon: false, // 是否在 label 后面添加冒号
20
- disabled: false, // 是否禁用
21
- border: false, // 是否显示边框
22
- errorType: 'message',
23
- showRightIcon: false, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
24
- rightIcon: {
25
- ...icon,
26
- name: 'right',
27
- color: '#cccccc'
28
- } // 右侧箭头配置
29
- }
1
+ import icon from './icon'
2
+
3
+ export default {
4
+ customClass: '', // 自定义样式类,字符串形式('')
5
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
+ title: '', // 表单面板标题
7
+ desc: '', // 表单描述
8
+ titleStyle: {}, // 表单自定义样式,对象形式(默认值:{})
9
+ height: 100, // 表单项高度
10
+ padding: '32rpx', // padding
11
+ labelWidth: 120, // 表单项 label 宽度,默认单位为rpx
12
+ itemVerticalAlign: 'center', // 表单项垂直对齐方式,可选值为 top center bottom
13
+ labelAlign: 'left', // 表单项 label 对齐方式,可选值为 left center right
14
+ labelStyle: {}, // 表单项 label样式
15
+ inputAlign: 'right', // 表单输入区域 label 对齐方式,可选值为 left center right
16
+ wrap: false, // 是否以换行样式显示表单
17
+ wrapBottomGap: false, // wrap模式下是否在底部增加表单项之间的间距
18
+ labelWrapBorder: false, // wrap样式label是否显示边框
19
+ colon: false, // 是否在 label 后面添加冒号
20
+ disabled: false, // 是否禁用
21
+ border: false, // 是否显示边框
22
+ errorType: 'message',
23
+ showRightIcon: false, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
24
+ rightIcon: {
25
+ ...icon,
26
+ name: 'right',
27
+ color: '#cccccc'
28
+ } // 右侧箭头配置
29
+ }
@@ -1,27 +1,27 @@
1
- import icon from './icon'
2
-
3
- export default {
4
- customClass: '', // 自定义样式类,字符串形式('')
5
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
- required: false, // 是否必填
7
- requiredStyle: {}, // 必填标志自定义样式,对象形式(默认值:{})
8
- height: null, // 高度
9
- padding: null, // padding
10
- labelWidth: null, // 表单项 label 宽度,默认单位为rpx
11
- itemVerticalAlign: null, // 表单项垂直对齐方式,可选值为 top center bottom
12
- labelAlign: null, // 表单项 label 对齐方式,可选值为 left center right
13
- labelStyle: null, // 表单项 label样式
14
- inputAlign: null, // 表单输入区域 label 对齐方式,可选值为 left center right
15
- wrap: null, // 是否以换行样式显示表单
16
- wrapBottomGap: null, // wrap模式下是否在底部增加表单项之间的间距
17
- labelWrapBorder: null, // wrap样式label是否显示边框
18
- colon: null, // 是否在 label 后面添加冒号
19
- disabled: null, // 是否禁用
20
- border: null, // 是否显示边框
21
- showRightIcon: null, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
22
- rightIcon: {
23
- ...icon,
24
- name: 'right',
25
- color: '#cccccc'
26
- } // 右侧箭头配置
27
- }
1
+ import icon from './icon'
2
+
3
+ export default {
4
+ customClass: '', // 自定义样式类,字符串形式('')
5
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
+ required: false, // 是否必填
7
+ requiredStyle: {}, // 必填标志自定义样式,对象形式(默认值:{})
8
+ height: null, // 高度
9
+ padding: null, // padding
10
+ labelWidth: null, // 表单项 label 宽度,默认单位为rpx
11
+ itemVerticalAlign: null, // 表单项垂直对齐方式,可选值为 top center bottom
12
+ labelAlign: null, // 表单项 label 对齐方式,可选值为 left center right
13
+ labelStyle: null, // 表单项 label样式
14
+ inputAlign: null, // 表单输入区域 label 对齐方式,可选值为 left center right
15
+ wrap: null, // 是否以换行样式显示表单
16
+ wrapBottomGap: null, // wrap模式下是否在底部增加表单项之间的间距
17
+ labelWrapBorder: null, // wrap样式label是否显示边框
18
+ colon: null, // 是否在 label 后面添加冒号
19
+ disabled: null, // 是否禁用
20
+ border: null, // 是否显示边框
21
+ showRightIcon: null, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
22
+ rightIcon: {
23
+ ...icon,
24
+ name: 'right',
25
+ color: '#cccccc'
26
+ } // 右侧箭头配置
27
+ }
package/config/gap.js CHANGED
@@ -1,8 +1,8 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- background: '#F4F4F4', // 背景颜色
5
- height: 24, // 高度
6
- marginTop: 0, // 顶部间距
7
- marginBottom: 0 // 底部间距
8
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ background: '#F4F4F4', // 背景颜色
5
+ height: 24, // 高度
6
+ marginTop: 0, // 顶部间距
7
+ marginBottom: 0 // 底部间距
8
+ }
package/config/grid.js CHANGED
@@ -1,9 +1,9 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- col: 5, // 一行几列(平分宽度)
5
- gap: 0, // 宫格之间间隔,(默认:0)
6
- square: null, // 宫格是否以正方形撑开
7
- border: null, // 是否显示边框(边框宽度,颜色通过scss变量声明,如需单独定制,请使用::v-deep)
8
- hoverClass: null // 宫格按压时的样式类,"none"为无效果
9
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ col: 5, // 一行几列(平分宽度)
5
+ gap: 0, // 宫格之间间隔,(默认:0)
6
+ square: null, // 宫格是否以正方形撑开
7
+ border: null, // 是否显示边框(边框宽度,颜色通过scss变量声明,如需单独定制,请使用::v-deep)
8
+ hoverClass: null // 宫格按压时的样式类,"none"为无效果
9
+ }
@@ -1,12 +1,12 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- col: 5, // 一行几列(平分宽度)
5
- square: false, // 宫格是否以正方形撑开
6
- border: true, // 是否显示边框(边框宽度,颜色通过scss变量声明,如需单独定制,请使用::v-deep)
7
- gap: 0, // 宫格之间间隔,(默认:0)
8
- bgColor: '', // 宫格背景色
9
- hoverClass: 'pi-hover-class', // 宫格按压时的样式类,"none"为无效果
10
- hoverStartTime: 10, // 按住后多久出现点击态,单位毫秒
11
- hoverStayTime: 100 // 手指松开后点击态保留时间,单位毫秒
12
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ col: 5, // 一行几列(平分宽度)
5
+ square: false, // 宫格是否以正方形撑开
6
+ border: true, // 是否显示边框(边框宽度,颜色通过scss变量声明,如需单独定制,请使用::v-deep)
7
+ gap: 0, // 宫格之间间隔,(默认:0)
8
+ bgColor: '', // 宫格背景色
9
+ hoverClass: 'pi-hover-class', // 宫格按压时的样式类,"none"为无效果
10
+ hoverStartTime: 10, // 按住后多久出现点击态,单位毫秒
11
+ hoverStayTime: 100 // 手指松开后点击态保留时间,单位毫秒
12
+ }
package/config/icon.js CHANGED
@@ -1,11 +1,11 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- name: '', // 图标名称或图片链接
5
- dot: false, // 是否显示图标右上角小红点,默认值 false
6
- dotRadius: 16, // 小红点的半径
7
- badge: '', // 图标右上角徽标的内容
8
- color: '', // 图标颜色
9
- size: '', // 图标字体大小,单位rpx
10
- classPrefix: 'pi-icon-' // 类名前缀,用于使用自定义图标,默认为(pi-icon-)
11
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ name: '', // 图标名称或图片链接
5
+ dot: false, // 是否显示图标右上角小红点,默认值 false
6
+ dotRadius: 16, // 小红点的半径
7
+ badge: '', // 图标右上角徽标的内容
8
+ color: '', // 图标颜色
9
+ size: '', // 图标字体大小,单位rpx
10
+ classPrefix: 'pi-icon-' // 类名前缀,用于使用自定义图标,默认为(pi-icon-)
11
+ }