sadais-piui 1.1.0 → 1.2.1

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 (41) hide show
  1. package/CHANGELOG.md +482 -240
  2. package/README.md +27 -17
  3. package/components/pi-bottom-bar/index.vue +11 -2
  4. package/components/pi-calendar-panel/index.vue +10 -4
  5. package/components/pi-checkbox-group/index.vue +5 -0
  6. package/components/pi-circle-progress/index.vue +196 -173
  7. package/components/pi-count-up/index.vue +209 -0
  8. package/components/pi-dropdown/components/dropdown-tab.vue +62 -0
  9. package/components/pi-dropdown/index.vue +316 -0
  10. package/components/pi-dropdown-item/index.vue +233 -0
  11. package/components/pi-form-item/index.vue +13 -1
  12. package/components/pi-img-cropper/canvas.js +112 -0
  13. package/components/pi-img-cropper/index.vue +357 -0
  14. package/components/pi-img-cropper/touch.js +163 -0
  15. package/components/pi-img-cropper/vector.js +35 -0
  16. package/components/pi-input/index.vue +9 -2
  17. package/components/pi-line/index.vue +78 -0
  18. package/components/pi-notify/index.vue +239 -0
  19. package/components/pi-popup/index.vue +1 -3
  20. package/components/pi-radio/index.vue +1 -1
  21. package/components/pi-select/index.vue +16 -6
  22. package/components/pi-steps/index.vue +299 -0
  23. package/components/pi-switch/index.vue +2 -3
  24. package/components/pi-tabs/index.vue +1 -1
  25. package/components/pi-upload-img/index.vue +145 -40
  26. package/config/bottomBar.js +1 -0
  27. package/config/checkbox.js +1 -1
  28. package/config/circleProgress.js +13 -0
  29. package/config/countUp.js +13 -0
  30. package/config/dropdown.js +21 -0
  31. package/config/dropdownItem.js +26 -0
  32. package/config/form.js +3 -3
  33. package/config/imgCropper.js +26 -0
  34. package/config/line.js +8 -0
  35. package/config/notify.js +13 -0
  36. package/config/steps.js +19 -0
  37. package/config/{upload-img.js → uploadImg.js} +5 -1
  38. package/index.js +2 -2
  39. package/package.json +3 -3
  40. package/scss/common.scss +4 -0
  41. package/scss/variable.scss +1 -1
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: zhangzhenfei
3
3
  * @Date: 2021-08-13 11:31:57
4
- * @LastEditTime: 2021-09-08 16:43:51
4
+ * @LastEditTime: 2021-11-17 11:30:50
5
5
  * @LastEditors: zhangzhenfei
6
6
  * @Description: 图片上传组件
7
7
  * @FilePath: /piui-awesome/src/piui/components/pi-upload-img/index.vue
@@ -12,7 +12,7 @@
12
12
  <!-- 已上传图片展示 -->
13
13
  <view
14
14
  v-for="(img, index) in getImgs"
15
- :key="imgField ? img[imgField] : img"
15
+ :key="index"
16
16
  class="pi-rela pi-flex-column-center"
17
17
  @tap="handlePreviewImage(img)"
18
18
  >
@@ -27,7 +27,7 @@
27
27
  />
28
28
  </view>
29
29
  <!-- 上传框 -->
30
- <view v-if="getUploadCount">
30
+ <view v-if="getUploadMaxCount">
31
31
  <view :style="[getUploadBtnStyle]" class="pi-flex-column-center" @tap="handleChooseImage">
32
32
  <slot name="uploadBtn">
33
33
  <!-- 添加按钮 -->
@@ -46,6 +46,38 @@
46
46
  <view v-if="uploadText" class="pi-mg-top-6 pi-fz-24 pi-light-gray">{{ uploadText }}</view>
47
47
  </view>
48
48
  </view>
49
+ <!-- 剪裁弹窗 -->
50
+ <pi-mask v-model="showCrop" :mask-closeable="false" background="rgba(0, 0, 0, .9)">
51
+ <view class="pi-abso-full pi-flex-column">
52
+ <view class="pi-flex-sub">
53
+ <pi-img-cropper
54
+ :custom-style="getCropOption.customStyle"
55
+ :custom-class="getCropOption.customClass"
56
+ :src="cropPic"
57
+ :file-type="getCropOption.fileType"
58
+ :quality="getCropOption.quality"
59
+ :crop-size="getCropOption.cropSize"
60
+ :min-crop-size="getCropOption.minCropSize"
61
+ :boundary-detect="getCropOption.boundaryDetect"
62
+ :keep-crop-ratio="getCropOption.keepCropRatio"
63
+ :disable-rotate="getCropOption.disableRotate"
64
+ :canvas-zoom="getCropOption.canvasZoom"
65
+ :mask-background="getCropMaskBackground"
66
+ @cropped="handleCrop"
67
+ />
68
+ </view>
69
+ <pi-bottom-bar
70
+ border-top="none"
71
+ :background="getCropMaskBackground"
72
+ :safe-area-bg-color="getCropMaskBackground"
73
+ >
74
+ <view class="pi-justify-between pi-align-center pi-pd-tb-32 pi-pd-lr-24 pi-fz-32">
75
+ <view class="pi-white" @tap="handleCancelCrop">取消</view>
76
+ <view class="pi-primary" @tap="handleCompelteCrop">完成</view>
77
+ </view>
78
+ </pi-bottom-bar>
79
+ </view>
80
+ </pi-mask>
49
81
  </view>
50
82
  </template>
51
83
 
@@ -207,6 +239,19 @@ export default {
207
239
  return uploadImg.chooseImageOpts
208
240
  }
209
241
  },
242
+ // 当maxCount设置为1的时候,可开启裁剪
243
+ crop: {
244
+ type: Boolean,
245
+ // `false`
246
+ default: uploadImg.crop
247
+ },
248
+ // 裁剪参数
249
+ cropOption: {
250
+ type: Object,
251
+ default() {
252
+ return uploadImg.cropOption
253
+ }
254
+ },
210
255
  // 上传成功解析对象方法
211
256
  parseResultFn: {
212
257
  type: [Object, Function],
@@ -227,6 +272,16 @@ export default {
227
272
  }
228
273
  }
229
274
  },
275
+ // 文件上传时的钩子
276
+ onProgress: {
277
+ type: [Object, Function],
278
+ default() {
279
+ return {
280
+ [PI_DEFAULT_FN_FLAG]: true,
281
+ fn: uploadImg.onProgress
282
+ }
283
+ }
284
+ },
230
285
  // 删除之前的钩子
231
286
  beforeRemove: {
232
287
  type: [Object, Function],
@@ -239,7 +294,11 @@ export default {
239
294
  }
240
295
  },
241
296
  data() {
242
- return {}
297
+ return {
298
+ showCrop: false, // 是否显示裁剪工具
299
+ cropPic: '', // 需要剪裁的图片
300
+ cropedPic: '' // 剪裁后的图片
301
+ }
243
302
  },
244
303
  computed: {
245
304
  isValString() {
@@ -263,9 +322,15 @@ export default {
263
322
  arrayMerge: (target, source) => source
264
323
  })
265
324
  },
266
- getUploadCount() {
325
+ getUploadMaxCount() {
267
326
  const maxCount = parseInt(this.maxCount, 10)
268
327
  return maxCount - this.getImgs.length
328
+ },
329
+ getCropMaskBackground() {
330
+ return 'rgba(0, 0, 0, .3)'
331
+ },
332
+ getCropOption() {
333
+ return this.$pi.lang.mergeDeep(uploadImg.cropOption, this.cropOption)
269
334
  }
270
335
  },
271
336
  methods: {
@@ -297,6 +362,7 @@ export default {
297
362
  current = this.imgField ? img[this.imgField] : img
298
363
  }
299
364
 
365
+ // eslint-disable-next-line no-undef
300
366
  uni.previewImage({
301
367
  urls,
302
368
  current,
@@ -306,41 +372,30 @@ export default {
306
372
  }
307
373
  })
308
374
  },
309
- async handleChooseImage() {
310
- if (this.disabled || !this.getUploadCount) return
311
- const _this = this
312
- // 检查上传地址
313
- if (!this.beforeUpload && !this.action) {
314
- this.$toast('请配置上传地址')
315
- return
316
- }
317
- if (this.$pi.lang.isEmpty(this.headers)) {
318
- console.log(TAG, '当前图片上传headers为空,请检查是否需要配置授权信息')
319
- }
320
- const { sizeType, extension, sourceType, crop } = this.getChooseImageOpts
375
+ async handleUpload(paths) {
376
+ const beforeUpload = this.beforeUpload[PI_DEFAULT_FN_FLAG]
377
+ ? this.beforeUpload.fn
378
+ : this.beforeUpload
379
+ const onProgress = this.onProgress[PI_DEFAULT_FN_FLAG] ? this.onProgress.fn : this.onProgress
380
+ const parseResultFn = this.parseResultFn[PI_DEFAULT_FN_FLAG]
381
+ ? this.parseResultFn.fn
382
+ : this.parseResultFn
321
383
  try {
322
- const [, result] = await uni.chooseImage({
323
- count: this.getUploadCount,
324
- sizeType,
325
- extension,
326
- sourceType,
327
- crop
328
- })
329
- const { errMsg, tempFilePaths } = result
330
- if (errMsg !== 'chooseImage:ok') {
331
- throw new Error(errMsg)
332
- }
384
+ for await (const filePath of paths) {
385
+ // ---------- 上传之前的钩子 ----------
333
386
 
334
- console.log(this.beforeUpload)
387
+ let beforeUploadResult = true
388
+ if (this.$pi.lang.isFunction(beforeUpload)) {
389
+ console.log(TAG, '调用文件上传前钩子')
390
+ beforeUploadResult = await beforeUpload(filePath)
391
+ }
392
+ if (!beforeUploadResult) {
393
+ console.log(TAG, '文件上传前钩子返回false,跳过上传')
394
+ continue
395
+ }
335
396
 
336
- const beforeUpload = this.beforeUpload[PI_DEFAULT_FN_FLAG]
337
- ? this.beforeUpload.fn
338
- : this.beforeUpload
339
- const parseResultFn = this.parseResultFn[PI_DEFAULT_FN_FLAG]
340
- ? this.parseResultFn.fn
341
- : this.parseResultFn
397
+ // ---------- 上传文件 ----------
342
398
 
343
- for await (const filePath of tempFilePaths) {
344
399
  let uploadResult = null
345
400
  const params = {
346
401
  url: this.action,
@@ -349,22 +404,72 @@ export default {
349
404
  formData: this.formData,
350
405
  header: this.headers
351
406
  }
352
-
353
- if (this.$pi.lang.isFunction(beforeUpload)) {
407
+ if (this.$pi.lang.isFunction(onProgress)) {
354
408
  console.log(TAG, '使用自定义上传函数')
355
409
  // 上传之前的钩子, 如果定义了则使用钩子上传文件
356
- uploadResult = await beforeUpload(params)
410
+ uploadResult = await onProgress(params)
357
411
  } else {
358
- const [, uploadFileResult = result] = await uni.uploadFile(params)
412
+ const [, uploadFileResult] = await uni.uploadFile(params)
359
413
  uploadResult = uploadFileResult
360
414
  }
361
415
 
416
+ // ---------- 解析上传结果 ----------
417
+
362
418
  const item = await parseResultFn(uploadResult)
363
419
  if (item) {
364
420
  this.isValString ? (this.val = item) : this.val.push(item)
365
421
  this.handleEmitChange()
366
422
  }
367
423
  }
424
+ } catch (e) {
425
+ this.$emit('fail', e)
426
+ }
427
+ },
428
+ handleCrop(res) {
429
+ console.log(TAG, '处理剪裁')
430
+ this.cropedPic = res.img
431
+ },
432
+ handleCancelCrop() {
433
+ console.log(TAG, '取消剪裁')
434
+ this.showCrop = false
435
+ this.cropPic = ''
436
+ },
437
+ handleCompelteCrop() {
438
+ console.log(TAG, '完成剪裁')
439
+ this.showCrop = false
440
+ this.handleUpload([this.cropedPic])
441
+ },
442
+ async handleChooseImage() {
443
+ if (this.disabled || !this.getUploadMaxCount) return
444
+ // 检查上传地址
445
+ const onProgress = this.onProgress[PI_DEFAULT_FN_FLAG] ? this.onProgress.fn : this.onProgress
446
+ if (!onProgress && !this.action) {
447
+ this.$toast('请配置上传地址')
448
+ return
449
+ }
450
+ if (this.$pi.lang.isEmpty(this.headers)) {
451
+ console.log(TAG, '当前图片上传headers为空,请检查是否需要配置授权信息')
452
+ }
453
+ const { sizeType, extension, sourceType, crop } = this.getChooseImageOpts
454
+ try {
455
+ const [, result] = await uni.chooseImage({
456
+ count: this.getUploadMaxCount,
457
+ sizeType,
458
+ extension,
459
+ sourceType,
460
+ crop
461
+ })
462
+ const { errMsg, tempFilePaths } = result
463
+ if (errMsg !== 'chooseImage:ok') {
464
+ throw new Error(errMsg)
465
+ }
466
+ if (this.getUploadMaxCount === 1 && this.crop && tempFilePaths.length === 1) {
467
+ // 单张图片设置了剪裁
468
+ this.showCrop = true
469
+ this.cropPic = tempFilePaths[0]
470
+ return
471
+ }
472
+ this.handleUpload(tempFilePaths)
368
473
  } catch (error) {
369
474
  this.$emit('fail', error)
370
475
  }
@@ -3,6 +3,7 @@ export default {
3
3
  customStyle: {}, // 自定义样式,对象形式(默认值:{})
4
4
  borderTop: '1px solid #e6e6e6', // 顶部边框样式,如需去掉,设置'none'
5
5
  safeArea: true, // 是否开启安全区域
6
+ background: '#ffffff', // 背景
6
7
  safeAreaBgColor: '#ffffff', // 安全区域背景颜色
7
8
  height: '', // 建议传值,不传的时候,自动根据内容撑开
8
9
  fixed: false, // 是否fixed定位
@@ -4,7 +4,7 @@ export default {
4
4
  name: '', // 标识符
5
5
  shape: 'square', // 形状,可选值为 square round
6
6
  borderRadius: 8, // 当shape为square的时候,设置圆角,单位rpx
7
- border: 4, // 边框大小,单位rpx
7
+ border: 2, // 边框大小,单位rpx
8
8
  disabled: false, // 是否禁用复选框
9
9
  readonly: false, // 是否只读模式
10
10
  size: 40, // checkbox大小,单位rpx
@@ -0,0 +1,13 @@
1
+ export default {
2
+ percent:50, // 环形进度条,限制0-100之间,数字形式,默认值:50
3
+ bgColor:'#ffffff', // 环形进度区域背景色,字符串形式,默认值:'#ffffff'
4
+ inactiveColor: '#ececec', // 环形进度条底色,字符串形式,默认值:'#ececec'
5
+ activeColor: '#19be6b', // 环形进度条激活的颜色,字符串形式,默认值:'#19be6b'
6
+ borderWidth:14, //环形进度条的线条宽度,字符串/数字形式,默认值:14
7
+ width:200,//环形进度条整个圆的宽度,字符串/数字形式,默认值:200
8
+ duration: 1500, // 整个圆环执行至进度条所需的时间,单位ms,字符串/数字形式,默认值:1500
9
+ type:'',//环形进度条的主题
10
+ fontSize:'16px',//环形进度条中间显示文字的大小,字符串形式,默认值:'16px'
11
+ text:'',//环形进度条中间显示的文字,字符串形式,默认值:''
12
+
13
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +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
+ }
package/config/form.js CHANGED
@@ -14,9 +14,9 @@ export default {
14
14
  inputAlign: null, // 表单输入区域 label 对齐方式,可选值为 left center right
15
15
  wrap: null, // 是否以换行样式显示表单
16
16
  labelWrapBorder: null, // wrap样式label是否显示边框
17
- colon: false, // 是否在 label 后面添加冒号
18
- disabled: false, // 是否禁用
19
- border: false, // 是否显示边框
17
+ colon: null, // 是否在 label 后面添加冒号
18
+ disabled: null, // 是否禁用
19
+ border: null, // 是否显示边框
20
20
  errorType: 'message',
21
21
  showRightIcon: null, // 是否显示右边icon,默认是箭头(可以自定义设置成其他图标)
22
22
  rightIcon: {
@@ -0,0 +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
+ }
package/config/line.js ADDED
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,19 @@
1
+ import icon from './icon'
2
+
3
+ export default {
4
+ customClass: '', // 自定义样式类,字符串形式('')
5
+ customStyle: {}, // 自定义样式,对象形式(默认值:{})
6
+ items: [], // 选项列表,默认([])
7
+ mode: 'dot', // 步骤条的类型,默认('dot')
8
+ activeColor: '', // 激活步骤的颜色
9
+ color: '#cccccc', // 未激活的颜色
10
+ currentColor: '#666666', // 当前步骤的颜色
11
+ direction: 'row', // 排列方向
12
+ size: '24', // 图标大小
13
+ itemStyle: {}, // 行样式(默认:'{}')
14
+ itemClass: '', // 行样式(默认:'')
15
+ icon: {
16
+ ...icon,
17
+ size: 40
18
+ } // 图标配置
19
+ }
@@ -1,12 +1,13 @@
1
1
  /*
2
2
  * @Author: zhangzhenfei
3
3
  * @Date: 2021-08-13 11:29:02
4
- * @LastEditTime: 2021-09-09 17:02:45
4
+ * @LastEditTime: 2021-11-17 10:07:54
5
5
  * @LastEditors: zhangzhenfei
6
6
  * @Description: 图片上传
7
7
  * @FilePath: /piui-awesome/src/piui/config/upload-img.js
8
8
  */
9
9
  import icon from './icon.js'
10
+ import cropOption from './imgCropper.js'
10
11
 
11
12
  export default {
12
13
  customClass: '', // 自定义样式类,字符串形式('')
@@ -34,6 +35,8 @@ export default {
34
35
  disabled: false, // 是否禁用上传
35
36
  maxCount: 9, // 上传文件的最大数量
36
37
  uploadText: '', // 上传区域文字提示
38
+ crop: false, // 当maxCount设置为1的时候,可开启裁剪
39
+ cropOption, // 裁剪配置
37
40
  // 上传区域图标
38
41
  uploadIcon: {
39
42
  ...icon,
@@ -55,5 +58,6 @@ export default {
55
58
  }
56
59
  },
57
60
  beforeUpload: null, // 上传之前的钩子
61
+ onProgress: null, // 文件上传时的钩子
58
62
  beforeRemove: null // 删除之前的钩子
59
63
  }
package/index.js CHANGED
@@ -30,9 +30,9 @@ const install = function(Vue, config = {}) {
30
30
  // #ifndef APP-PLUS
31
31
  console.group && console.group('piui')
32
32
 
33
- console.log('%cpiui 已安装,教程:https://github.com/sadais-org/piui', logStyle)
33
+ console.log('%cpiui 已安装,教程:https://piui.sadais.com/docs/components/Config.html', logStyle)
34
34
  console.log('%cpiui 组件全局配置:', logStyle, piConfig)
35
- console.log('%cpiui tools 已挂载:', logStyle, tools)
35
+ console.log('%cpiui tools 已挂载,使用方式 this.$pi.xxx:', logStyle, tools)
36
36
 
37
37
  console.groupEnd && console.groupEnd('piui')
38
38
  // #endif
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
7
+ "changelog": "npx gitmoji-changelog"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/sadais-org/piui.git"
12
12
  },
13
13
  "peerDependencies": {
14
- "@sadais/piui-tool": "^0.0.16"
14
+ "@sadais/piui-tool": "^0.0.18"
15
15
  },
16
16
  "keywords": [
17
17
  "piui sadais-piui"
package/scss/common.scss CHANGED
@@ -167,6 +167,10 @@
167
167
  }
168
168
  }
169
169
 
170
+ .pi-fw-bold {
171
+ font-weight: bold;
172
+ }
173
+
170
174
  .pi-text-nowrap {
171
175
  white-space: nowrap;
172
176
  }
@@ -11,7 +11,7 @@ $pi-upload-radius: 120rpx !default; // 文件上传正方形半径
11
11
 
12
12
  // 动画
13
13
  $pi-animation-duration: 0.3s !default; // 动画执行时长
14
- $pi-animation-timing-function: none !default; // 动画执行函数
14
+ $pi-animation-timing-function: ease !default; // 动画执行函数
15
15
 
16
16
  // 颜色
17
17
  $pi-font-color: #333333 !default; // 文字颜色