@tarojs/plugin-platform-harmony-ets 4.0.0-beta.57 → 4.0.0-beta.59

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.
package/dist/runtime.js CHANGED
@@ -656,7 +656,12 @@ const setClipboardData = function (options) {
656
656
  callAsyncFail(reject, res, options);
657
657
  }
658
658
  else {
659
- promptAction.showToast({ message: '内容已复制' });
659
+ promptAction.showToast({
660
+ message: '内容已复制',
661
+ duration: 1500,
662
+ bottom: '50%',
663
+ showMode: 1 // 设置弹窗显示模式,显示在应用之上。
664
+ });
660
665
  return handle.success({
661
666
  data,
662
667
  }, { resolve, reject });
@@ -3645,7 +3650,6 @@ function showToast(options) {
3645
3650
  message: options.title,
3646
3651
  duration: options.duration,
3647
3652
  bottom: options.bottom,
3648
- // @ts-ignore
3649
3653
  showMode: 1 // 设置弹窗显示模式,显示在应用之上。
3650
3654
  });
3651
3655
  callAsyncSuccess(resolve, resCallback('showToast'), options);
@@ -3735,16 +3739,7 @@ function showActionSheet(options) {
3735
3739
  });
3736
3740
  });
3737
3741
  }
3738
- function hideToast(options) {
3739
- return new Promise(resolve => {
3740
- promptAction.showToast({
3741
- message: '关闭中',
3742
- duration: 10,
3743
- bottom: '9999px'
3744
- });
3745
- callAsyncSuccess(resolve, resCallback('hideToast'), options);
3746
- });
3747
- }
3742
+ const hideToast = /* @__PURE__ */ temporarilyNotSupport('hideToast');
3748
3743
  const showLoading = temporarilyNotSupport('showLoading');
3749
3744
  const hideLoading = temporarilyNotSupport('hideLoading');
3750
3745
  const enableAlertBeforeUnload = /* @__PURE__ */ temporarilyNotSupport('enableAlertBeforeUnload');