sadais-piui 1.2.7-beta181 → 1.2.7-beta182

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.
@@ -480,10 +480,6 @@ export default {
480
480
  // #endif
481
481
  return isQYWX
482
482
  },
483
- // 是否pc端
484
- isPcMiniProgram() {
485
- return this.$pi.system.systemInfo.platform === 'windows'
486
- },
487
483
  getDisabled() {
488
484
  const parent = this.$pi.parent(this, 'PiFormItem')
489
485
  return this.disabled || (parent && parent.getDisabled)
@@ -508,12 +504,7 @@ export default {
508
504
  id: 2,
509
505
  text: '选择微信聊天文件'
510
506
  },
511
- {
512
- id: 3,
513
- text: '选择文件',
514
- hidden: !this.isPcMiniProgram
515
- }
516
- ].filter(item => !item.hidden)
507
+ ]
517
508
  },
518
509
  currentSourceType() {
519
510
  if (this.type === 'video') {
@@ -1289,10 +1280,8 @@ export default {
1289
1280
  handleActionSheetSelect(type) {
1290
1281
  if (type.id === 1) {
1291
1282
  this.handleChooseMedia()
1292
- } else if (type.id === 2) {
1283
+ } else {
1293
1284
  this.handleSelectMessageFile()
1294
- } else if (type.id === 3) {
1295
- this.handleChooseFile()
1296
1285
  }
1297
1286
  },
1298
1287
  handleEmitTakePhoto(takeType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7-beta181",
3
+ "version": "1.2.7-beta182",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {