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
package/config/img.js CHANGED
@@ -1,21 +1,21 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- src: '', // 图片地址(默认值:'')
5
- mode: 'widthFix', // 裁剪模式(默认值:'widthFix')
6
- width: '100%', // 宽度(默认值:'100%')
7
- height: 'auto', // 高度(默认值:'auto')
8
- dot: false, // 是否显示图标右上角小红点,默认值 false
9
- dotRadius: 16, // 小红点的半径
10
- badge: '', // 图标右上角徽标的内容
11
- shape: 'square', // 图片形状,round-圆形,square-方形(默认值:'square')
12
- borderRadius: 0, // shape为square的时候设置(默认值:'0rpx')
13
- lazyLoad: true, // 是否懒加载(默认值:'true')
14
- showMenuByLongpress: true, // 开启长按图片显示识别微信小程序码菜单(默认值:'true')
15
- showLoading: false, // 是否显示加载中的图标或者自定义的slot(默认值:'false')
16
- loadingColor: '#c1c1c1', // 加载中颜色(默认值:'#c1c1c1')
17
- loadingType: 'spinner', // 类型: spinner 菊花 round 圆环(默认值:'spinner')
18
- loadingSize: 32, // 尺寸,默认32rpx
19
- showError: true, // 是否显示加载中的图标或者自定义的slot(默认值:true)
20
- webp: false // 默认不解析 webP 格式,只支持网络资源(默认值:false)
21
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ src: '', // 图片地址(默认值:'')
5
+ mode: 'widthFix', // 裁剪模式(默认值:'widthFix')
6
+ width: '100%', // 宽度(默认值:'100%')
7
+ height: 'auto', // 高度(默认值:'auto')
8
+ dot: false, // 是否显示图标右上角小红点,默认值 false
9
+ dotRadius: 16, // 小红点的半径
10
+ badge: '', // 图标右上角徽标的内容
11
+ shape: 'square', // 图片形状,round-圆形,square-方形(默认值:'square')
12
+ borderRadius: 0, // shape为square的时候设置(默认值:'0rpx')
13
+ lazyLoad: true, // 是否懒加载(默认值:'true')
14
+ showMenuByLongpress: true, // 开启长按图片显示识别微信小程序码菜单(默认值:'true')
15
+ showLoading: false, // 是否显示加载中的图标或者自定义的slot(默认值:'false')
16
+ loadingColor: '#c1c1c1', // 加载中颜色(默认值:'#c1c1c1')
17
+ loadingType: 'spinner', // 类型: spinner 菊花 round 圆环(默认值:'spinner')
18
+ loadingSize: 32, // 尺寸,默认32rpx
19
+ showError: true, // 是否显示加载中的图标或者自定义的slot(默认值:true)
20
+ webp: false // 默认不解析 webP 格式,只支持网络资源(默认值:false)
21
+ }
@@ -1,26 +1,26 @@
1
- export default {
2
- // 自定义样式
3
- customStyle: {},
4
- // 自定义样式类
5
- customClass: '',
6
- // 图片src
7
- src: '',
8
- // 图片格式
9
- fileType: 'png',
10
- // 图片质量
11
- quality: 1,
12
- // 裁剪窗口大小
13
- cropSize: { width: '50%', height: '50%' },
14
- // 最小的裁剪窗口
15
- minCropSize: { width: '100px', height: '100px' },
16
- // true: 开启图片边界检测 保证移动图片过程,当图片的边与裁剪框的边重叠时 就无法继续移动
17
- boundaryDetect: true,
18
- // 是否保持裁剪框的高宽比不变
19
- keepCropRatio: false,
20
- // 是否禁止旋转
21
- disableRotate: false,
22
- // 放大裁剪窗口的倍数
23
- canvasZoom: 1,
24
- // 遮罩层背景颜色
25
- maskBackground: 'rgba(0, 0, 0, .5)'
26
- }
1
+ export default {
2
+ // 自定义样式
3
+ customStyle: {},
4
+ // 自定义样式类
5
+ customClass: '',
6
+ // 图片src
7
+ src: '',
8
+ // 图片格式
9
+ fileType: 'png',
10
+ // 图片质量
11
+ quality: 1,
12
+ // 裁剪窗口大小
13
+ cropSize: { width: '50%', height: '50%' },
14
+ // 最小的裁剪窗口
15
+ minCropSize: { width: '100px', height: '100px' },
16
+ // true: 开启图片边界检测 保证移动图片过程,当图片的边与裁剪框的边重叠时 就无法继续移动
17
+ boundaryDetect: true,
18
+ // 是否保持裁剪框的高宽比不变
19
+ keepCropRatio: false,
20
+ // 是否禁止旋转
21
+ disableRotate: false,
22
+ // 放大裁剪窗口的倍数
23
+ canvasZoom: 1,
24
+ // 遮罩层背景颜色
25
+ maskBackground: 'rgba(0, 0, 0, .5)'
26
+ }
package/config/index.js CHANGED
@@ -1,28 +1,28 @@
1
- import { dynamicImport } from '@sadais/piui-tool/tools/common'
2
-
3
- /**
4
- * 配置各组件默认属性,可以在install中进行覆盖,达到全局配置的效果
5
- */
6
-
7
- let config = dynamicImport(require.context('./', false, /\.js$/))
8
-
9
- /**
10
- * 获取配置
11
- */
12
- export const getConfig = () => {
13
- return config
14
- }
15
-
16
- /**
17
- * 设置配置(piui install 的时候,会注入config merge一次)
18
- * @param {Object} updateConfig 配置
19
- */
20
- export const setConfig = updateConfig => {
21
- config = updateConfig
22
- return config
23
- }
24
-
25
- export default {
26
- getConfig,
27
- setConfig
28
- }
1
+ import { dynamicImport } from '@sadais/piui-tool/tools/common'
2
+
3
+ /**
4
+ * 配置各组件默认属性,可以在install中进行覆盖,达到全局配置的效果
5
+ */
6
+
7
+ let config = dynamicImport(require.context('./', false, /\.js$/))
8
+
9
+ /**
10
+ * 获取配置
11
+ */
12
+ export const getConfig = () => {
13
+ return config
14
+ }
15
+
16
+ /**
17
+ * 设置配置(piui install 的时候,会注入config merge一次)
18
+ * @param {Object} updateConfig 配置
19
+ */
20
+ export const setConfig = updateConfig => {
21
+ config = updateConfig
22
+ return config
23
+ }
24
+
25
+ export default {
26
+ getConfig,
27
+ setConfig
28
+ }
package/config/input.js CHANGED
@@ -1,36 +1,37 @@
1
- import icon from './icon'
2
-
3
- export default {
4
- customClass: '', // 自定义样式类,字符串形式('')
5
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
- type: 'text', // 输入框类型
7
- placeholder: '请输入',
8
- placeholderStyle: 'color: #c0c4cc; font-weight: 400;', // 指定 placeholder 的样式
9
- placeholderClass: 'input-placeholder', // 指定 placeholder 的样式类,注意页面或组件的style中写了scoped时,需要在类名前写::v-deep
10
- disabled: false, // 是否禁用
11
- border: false, // 边框样式设置
12
- maxlength: 140, // 最大输入长度,设置为 -1 的时候不限制最大长度
13
- password: false,
14
- cursorSpacing: 0, // 指定光标与键盘的距离,单位 px
15
- focus: false, // 是否自动获得焦点
16
- confirmType: 'done', // 设置键盘右下角按钮的文字,仅在 type="text" 时生效。
17
- confirmHold: false, // 点击键盘右下角按钮时是否保持键盘不收起
18
- cursor: null, // 指定focus时的光标位置
19
- selectionStart: -1, // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
20
- selectionEnd: -1, // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
21
- adjustPosition: true, // 键盘弹起时,是否自动上推页面
22
- holdKeyboard: false, // focus时,点击页面的时候不收起键盘
23
- autoBlur: true, // 键盘收起时,是否自动失去焦点
24
- showConfirmbar: true, // 是否显示键盘上方带有”完成“按钮那一栏
25
- autoHeight: false, // 是否自动增高
26
- fixed: false, // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true
27
- disableDefaultPadding: false, // 是否去掉 iOS 下的默认内边距
28
- clearable: false, // 是否可以清空
29
- clearIcon: {
30
- // 清空图标设置
31
- ...icon,
32
- size: 36,
33
- name: 'close-line',
34
- color: '#999999'
35
- }
36
- }
1
+ import icon from './icon'
2
+
3
+ export default {
4
+ customClass: '', // 自定义样式类,字符串形式('')
5
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
+ type: 'text', // 输入框类型
7
+ placeholder: '请输入',
8
+ placeholderStyle: 'color: #c0c4cc; font-weight: 400;', // 指定 placeholder 的样式
9
+ placeholderClass: 'input-placeholder', // 指定 placeholder 的样式类,注意页面或组件的style中写了scoped时,需要在类名前写::v-deep
10
+ disabled: false, // 是否禁用
11
+ border: false, // 边框样式设置
12
+ maxlength: 140, // 最大输入长度,设置为 -1 的时候不限制最大长度
13
+ password: false,
14
+ cursorSpacing: 0, // 指定光标与键盘的距离,单位 px
15
+ focus: false, // 是否自动获得焦点
16
+ confirmType: 'done', // 设置键盘右下角按钮的文字,仅在 type="text" 时生效。
17
+ confirmHold: false, // 点击键盘右下角按钮时是否保持键盘不收起
18
+ cursor: null, // 指定focus时的光标位置
19
+ selectionStart: -1, // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
20
+ selectionEnd: -1, // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
21
+ adjustPosition: true, // 键盘弹起时,是否自动上推页面
22
+ holdKeyboard: false, // focus时,点击页面的时候不收起键盘
23
+ autoBlur: true, // 键盘收起时,是否自动失去焦点
24
+ showConfirmbar: true, // 是否显示键盘上方带有”完成“按钮那一栏
25
+ autoHeight: false, // 是否自动增高
26
+ fixed: false, // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true
27
+ disableDefaultPadding: false, // 是否去掉 iOS 下的默认内边距
28
+ clearable: false, // 是否可以清空
29
+ clearIcon: {
30
+ // 清空图标设置
31
+ ...icon,
32
+ size: 36,
33
+ name: 'close-line',
34
+ color: '#999999'
35
+ },
36
+ updateOnBlur: true // 为false时,输入时更新 v-model,为true时,失焦时更新 v-model
37
+ }
package/config/line.js CHANGED
@@ -1,8 +1,8 @@
1
- export default {
2
- length: '100%', // 长度,默认('100%')
3
- hairLine: true, // 是否显示细边框,默认('true')
4
- margin: '0', // 边距,默认('0')
5
- borderStyle: 'solid', // 线条的类型,默认('solid')
6
- color: '#e4e7ed', // 颜色
7
- direction: 'row' // 排列方向
8
- }
1
+ export default {
2
+ length: '100%', // 长度,默认('100%')
3
+ hairLine: true, // 是否显示细边框,默认('true')
4
+ margin: '0', // 边距,默认('0')
5
+ borderStyle: 'solid', // 线条的类型,默认('solid')
6
+ color: '#e4e7ed', // 颜色
7
+ direction: 'row' // 排列方向
8
+ }
@@ -1,14 +1,14 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- round: true, // 两端是否半圆(默认值:false)
5
- activeColor: '', // 激活部分的颜色(不设置默认为主题色)
6
- inactiveColor: '#ebeef5', // 未激活底色
7
- percent: 0, // 进度百分比,数值
8
- showPercent: true, // 是否在进度条内部显示百分比的值
9
- percentStyle: {}, // 当showPercent为true,设定百分比的样式
10
- width: 0, // 进度条的宽度,单位rpx,不设置默认为100%
11
- height: 20, // 进度条的高度,单位rpx
12
- striped: false, // 是否显示条纹
13
- stripedActive: false // 条纹是否具有动态效果
14
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ round: true, // 两端是否半圆(默认值:false)
5
+ activeColor: '', // 激活部分的颜色(不设置默认为主题色)
6
+ inactiveColor: '#ebeef5', // 未激活底色
7
+ percent: 0, // 进度百分比,数值
8
+ showPercent: true, // 是否在进度条内部显示百分比的值
9
+ percentStyle: {}, // 当showPercent为true,设定百分比的样式
10
+ width: 0, // 进度条的宽度,单位rpx,不设置默认为100%
11
+ height: 20, // 进度条的高度,单位rpx
12
+ striped: false, // 是否显示条纹
13
+ stripedActive: false // 条纹是否具有动态效果
14
+ }
package/config/list.js CHANGED
@@ -1,12 +1,12 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- height: null, // 列表项高度
5
- title: '', // 列表面板标题
6
- desc: '', // 列表描述
7
- titleStyle: {}, // 标题自定义样式,对象形式(默认值:{})
8
- disabled: false, // 是否禁用
9
- border: true, // 是否显示边框
10
- showRightIcon: null, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
11
- hoverClass: null // 宫格按压时的样式类,"none"为无效果
12
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ height: null, // 列表项高度
5
+ title: '', // 列表面板标题
6
+ desc: '', // 列表描述
7
+ titleStyle: {}, // 标题自定义样式,对象形式(默认值:{})
8
+ disabled: false, // 是否禁用
9
+ border: true, // 是否显示边框
10
+ showRightIcon: null, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
11
+ hoverClass: null // 宫格按压时的样式类,"none"为无效果
12
+ }
@@ -1,25 +1,25 @@
1
- import icon from './icon'
2
-
3
- export default {
4
- customClass: '', // 自定义样式类,字符串形式('')
5
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
- height: 110, // 表格高度
7
- title: '', // 标题
8
- titleStyle: {}, // 标题自定义样式,对象形式(默认值:{})
9
- desc: '', // 描述
10
- descStyle: {}, // 描述自定义样式,对象形式(默认值:{})
11
- extraText: '', // 右侧文字
12
- extraStyle: {}, // 右侧文字自定义样式,对象形式(默认值:{})
13
- disabled: false, // 是否禁用
14
- border: true, // 是否显示边框
15
- padding: '24rpx 32rpx', // padding
16
- hoverClass: 'pi-hover-class', // 宫格按压时的样式类,"none"为无效果
17
- hoverStartTime: 10, // 按住后多久出现点击态,单位毫秒
18
- hoverStayTime: 100, // 手指松开后点击态保留时间,单位毫秒
19
- showRightIcon: true, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
20
- rightIcon: {
21
- ...icon,
22
- name: 'right',
23
- color: '#cccccc'
24
- } // 右侧箭头配置
25
- }
1
+ import icon from './icon'
2
+
3
+ export default {
4
+ customClass: '', // 自定义样式类,字符串形式('')
5
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
+ height: 110, // 表格高度
7
+ title: '', // 标题
8
+ titleStyle: {}, // 标题自定义样式,对象形式(默认值:{})
9
+ desc: '', // 描述
10
+ descStyle: {}, // 描述自定义样式,对象形式(默认值:{})
11
+ extraText: '', // 右侧文字
12
+ extraStyle: {}, // 右侧文字自定义样式,对象形式(默认值:{})
13
+ disabled: false, // 是否禁用
14
+ border: true, // 是否显示边框
15
+ padding: '24rpx 32rpx', // padding
16
+ hoverClass: 'pi-hover-class', // 宫格按压时的样式类,"none"为无效果
17
+ hoverStartTime: 10, // 按住后多久出现点击态,单位毫秒
18
+ hoverStayTime: 100, // 手指松开后点击态保留时间,单位毫秒
19
+ showRightIcon: true, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
20
+ rightIcon: {
21
+ ...icon,
22
+ name: 'right',
23
+ color: '#cccccc'
24
+ } // 右侧箭头配置
25
+ }
package/config/loading.js CHANGED
@@ -1,10 +1,10 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- color: '', // 颜色,不设定的时候,默认为主题色
5
- type: 'spinner', // 类型: spinner 菊花 round 圆环
6
- size: 32, // 尺寸,默认32rpx
7
- vertical: false, // 是否垂直排列
8
- textSize: '28rpx', // 文字尺寸,默认28rpx
9
- textStyle: {} // 文字样式
10
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ color: '', // 颜色,不设定的时候,默认为主题色
5
+ type: 'spinner', // 类型: spinner 菊花 round 圆环
6
+ size: 32, // 尺寸,默认32rpx
7
+ vertical: false, // 是否垂直排列
8
+ textSize: '28rpx', // 文字尺寸,默认28rpx
9
+ textStyle: {} // 文字样式
10
+ }
package/config/marquee.js CHANGED
@@ -1,10 +1,10 @@
1
- export default {
2
- direction: 'rl', // 滚动方向
3
- speed: 100, // 移动速度 即每毫秒移动多少像素
4
- hoverPause: true,
5
- customStyle: {},
6
- customClass: '',
7
- items: [],
8
- itemFullWidth: false, // 每个item是否占据整个宽度
9
- runDelay: 500 // 延迟多少毫秒后开始滚动
10
- }
1
+ export default {
2
+ direction: 'rl', // 滚动方向
3
+ speed: 100, // 移动速度 即每毫秒移动多少像素
4
+ hoverPause: true,
5
+ customStyle: {},
6
+ customClass: '',
7
+ items: [],
8
+ itemFullWidth: false, // 每个item是否占据整个宽度
9
+ runDelay: 500 // 延迟多少毫秒后开始滚动
10
+ }
package/config/mask.js CHANGED
@@ -1,12 +1,12 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- animationShow: 'pi-ani-fade-show', // 遮罩层显示动画
5
- animationHide: 'pi-ani-fade-hide', // 遮罩层隐藏动画
6
- duration: 300, // 遮罩的过渡时间,单位为ms
7
- maskCloseable: true, // 是否可以通过点击遮罩进行关闭
8
- hideTabBar: false, // 是否隐藏TabBar
9
- appendToBody: true, // 是否挂载到body下,防止嵌套层级无法遮罩的问题(仅H5环境生效)
10
- zIndex: 999, // 元素 z-index
11
- background: 'rgba(0, 0, 0, .5)' // 背景颜色(默认'#000000')
12
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ animationShow: 'pi-ani-fade-show', // 遮罩层显示动画
5
+ animationHide: 'pi-ani-fade-hide', // 遮罩层隐藏动画
6
+ duration: 300, // 遮罩的过渡时间,单位为ms
7
+ maskCloseable: true, // 是否可以通过点击遮罩进行关闭
8
+ hideTabBar: false, // 是否隐藏TabBar
9
+ appendToBody: true, // 是否挂载到body下,防止嵌套层级无法遮罩的问题(仅H5环境生效)
10
+ zIndex: 999, // 元素 z-index
11
+ background: 'rgba(0, 0, 0, .5)' // 背景颜色(默认'#000000')
12
+ }
package/config/modal.js CHANGED
@@ -1,36 +1,36 @@
1
- import popup from './popup'
2
- import Button from './button'
3
-
4
- export default {
5
- customClass: '', // 自定义样式类,字符串形式('')
6
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
7
- showTitle: true, // 是否显示title(默认:true)
8
- title: '弹出选择', // 标题(默认:日期选择)
9
- titlePadding: '32rpx', // 标题 padding(默认:32rpx)
10
- width: 600, // 弹窗宽度,可以是数值(rpx),百分比,auto等
11
- content: '内容', // 弹窗内容
12
- contentPadding: '32rpx 0', // 内容 padding
13
- contentStyle: {}, // 内容样式
14
- onCancelClose: true, // 是否点击取消的时候关闭弹窗(默认:'true')
15
- onConfirmClose: true, // 是否点击确认的时候关闭弹窗(默认:'true')
16
- // 确认按钮配置
17
- confirmBtn: {
18
- ...Button,
19
- show: true, // 是否显示
20
- text: '确认', // 确认文案
21
- width: '100%',
22
- type: 'primary'
23
- },
24
- // 取消按钮配置
25
- cancelBtn: {
26
- ...Button,
27
- show: true, // 是否显示
28
- text: '取消', // 确认文案
29
- width: '100%',
30
- type: 'secondary'
31
- },
32
- /**
33
- * 弹窗的配置,默认选项请参照popup
34
- */
35
- popup
36
- }
1
+ import popup from './popup'
2
+ import Button from './button'
3
+
4
+ export default {
5
+ customClass: '', // 自定义样式类,字符串形式('')
6
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
7
+ showTitle: true, // 是否显示title(默认:true)
8
+ title: '弹出选择', // 标题(默认:日期选择)
9
+ titlePadding: '32rpx', // 标题 padding(默认:32rpx)
10
+ width: 600, // 弹窗宽度,可以是数值(rpx),百分比,auto等
11
+ content: '内容', // 弹窗内容
12
+ contentPadding: '32rpx 0', // 内容 padding
13
+ contentStyle: {}, // 内容样式
14
+ onCancelClose: true, // 是否点击取消的时候关闭弹窗(默认:'true')
15
+ onConfirmClose: true, // 是否点击确认的时候关闭弹窗(默认:'true')
16
+ // 确认按钮配置
17
+ confirmBtn: {
18
+ ...Button,
19
+ show: true, // 是否显示
20
+ text: '确认', // 确认文案
21
+ width: '100%',
22
+ type: 'primary'
23
+ },
24
+ // 取消按钮配置
25
+ cancelBtn: {
26
+ ...Button,
27
+ show: true, // 是否显示
28
+ text: '取消', // 确认文案
29
+ width: '100%',
30
+ type: 'secondary'
31
+ },
32
+ /**
33
+ * 弹窗的配置,默认选项请参照popup
34
+ */
35
+ popup
36
+ }
package/config/navbar.js CHANGED
@@ -1,32 +1,32 @@
1
- export default {
2
- customClass: '', // 自定义样式类,字符串形式('')
3
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
- title: '', // 标题
5
- titleStyle: { fontSize: '36rpx', fontWeight: 500, color: '#333333' }, // 标题样式
6
- height: '44px', // 导航栏高度
7
- throughTitleWidth: 'auto', // 贯穿布局title宽度,auto:自动撑开
8
- fixed: true, // 导航栏是否固定在顶部
9
- placeholder: true, // 固定在顶部时,是否在标签位置生成一个等高的占位元素
10
- borderBottom: true, // 是否显示导航栏的下边框
11
- statusBarBackground: '#ffffff', // 状态栏的背景色
12
- background: '#ffffff', // 背景颜色(默认白色)
13
- showBack: null, // 是否显示后退按钮,默认不设置,根据当前页面堆栈自动判断
14
- showHome: false, // 是否显示主页按钮
15
- capsuleButton: true, // 在微信小程序中,当showBack和showHome同时显示的时候,以胶囊按钮样式显示
16
- capsuleTheme: 'light', // 胶囊按钮主题, light or dark
17
- backIconColor: '#333333', // 返回箭头的颜色
18
- backIconName: 'back', // 左边返回的图标名称
19
- backIconSize: '36rpx', // 左边返回图标的大小
20
- backIconPadding: '10rpx 24rpx', // 左边返回图标的padding
21
- backText: '', // 返回的文字提示
22
- backTextStyle: { color: '#333333' }, // 返回的文字的 样式
23
- customBackFunc: false, // 是否自定义返回函数
24
- homeIconColor: '#333333', // 主页icon的颜色
25
- homeIconName: 'homefill', // 主页icon的图标名称
26
- homeIconSize: '36rpx', // 主页icon图标的大小
27
- homeIconPadding: '10rpx 24rpx', // 主页icon图标的padding
28
- homePage: '', // 主页路径
29
- homePageMethod: 'switchTab', // 跳转主页方法 navigateTo redirectTo switchTab reLaunch
30
- customHomeFunc: false, // 是否自定义返回函数
31
- zIndex: 99 // 元素 z-index
32
- }
1
+ export default {
2
+ customClass: '', // 自定义样式类,字符串形式('')
3
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
+ title: '', // 标题
5
+ titleStyle: { fontSize: '36rpx', fontWeight: 500, color: '#333333' }, // 标题样式
6
+ height: '44px', // 导航栏高度
7
+ throughTitleWidth: 'auto', // 贯穿布局title宽度,auto:自动撑开
8
+ fixed: true, // 导航栏是否固定在顶部
9
+ placeholder: true, // 固定在顶部时,是否在标签位置生成一个等高的占位元素
10
+ borderBottom: true, // 是否显示导航栏的下边框
11
+ statusBarBackground: '#ffffff', // 状态栏的背景色
12
+ background: '#ffffff', // 背景颜色(默认白色)
13
+ showBack: null, // 是否显示后退按钮,默认不设置,根据当前页面堆栈自动判断
14
+ showHome: false, // 是否显示主页按钮
15
+ capsuleButton: true, // 在微信小程序中,当showBack和showHome同时显示的时候,以胶囊按钮样式显示
16
+ capsuleTheme: 'light', // 胶囊按钮主题, light or dark
17
+ backIconColor: '#333333', // 返回箭头的颜色
18
+ backIconName: 'back', // 左边返回的图标名称
19
+ backIconSize: '36rpx', // 左边返回图标的大小
20
+ backIconPadding: '10rpx 24rpx', // 左边返回图标的padding
21
+ backText: '', // 返回的文字提示
22
+ backTextStyle: { color: '#333333' }, // 返回的文字的 样式
23
+ customBackFunc: false, // 是否自定义返回函数
24
+ homeIconColor: '#333333', // 主页icon的颜色
25
+ homeIconName: 'homefill', // 主页icon的图标名称
26
+ homeIconSize: '36rpx', // 主页icon图标的大小
27
+ homeIconPadding: '10rpx 24rpx', // 主页icon图标的padding
28
+ homePage: '', // 主页路径
29
+ homePageMethod: 'switchTab', // 跳转主页方法 navigateTo redirectTo switchTab reLaunch
30
+ customHomeFunc: false, // 是否自定义返回函数
31
+ zIndex: 99 // 元素 z-index
32
+ }
package/config/notify.js CHANGED
@@ -1,13 +1,13 @@
1
- export default {
2
- customStyle: {}, // 自定义样式,对象形式(默认值:{})
3
- customClass: '', // 自定义样式类,字符串形式('')
4
- message: '', // 显示的消息文本(默认值:'')
5
- type: 'primary', // 类型: 'primary'-主要通知` `'success'-成功通知` `'danger'-危险通知` `'warning'-警告通知` `'info'-消息通知
6
- duration: 3000, // 展示时长,默认 3000ms
7
- color: '', // 自定义颜色消息通知文本(默认值:'')
8
- bgColor: '', // 自定义背景色消息通知文本(默认值:'')
9
- zIndex: 9999, // 通知 z-index
10
- appendToBody: true, // 是否挂载到body下,防止嵌套层级无法遮罩的问题(仅H5环境生效)
11
- autoHide: true, // 是否自动隐藏,默认 true
12
- singleLine: false // 是否单行显示,默认 false
13
- }
1
+ export default {
2
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
3
+ customClass: '', // 自定义样式类,字符串形式('')
4
+ message: '', // 显示的消息文本(默认值:'')
5
+ type: 'primary', // 类型: 'primary'-主要通知` `'success'-成功通知` `'danger'-危险通知` `'warning'-警告通知` `'info'-消息通知
6
+ duration: 3000, // 展示时长,默认 3000ms
7
+ color: '', // 自定义颜色消息通知文本(默认值:'')
8
+ bgColor: '', // 自定义背景色消息通知文本(默认值:'')
9
+ zIndex: 9999, // 通知 z-index
10
+ appendToBody: true, // 是否挂载到body下,防止嵌套层级无法遮罩的问题(仅H5环境生效)
11
+ autoHide: true, // 是否自动隐藏,默认 true
12
+ singleLine: false // 是否单行显示,默认 false
13
+ }