yxuse 3.0.50 → 3.0.52

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 (42) hide show
  1. package/README.md +27 -13
  2. package/lib/components.cjs.js +1 -1
  3. package/lib/components.es.js +5 -6
  4. package/lib/index.cjs2.js +1 -1
  5. package/lib/index.cjs5.js +1 -1
  6. package/lib/index.cjs5.js.gz +0 -0
  7. package/lib/index.cjs5.js.map +1 -1
  8. package/lib/index.cjs6.js +3 -3
  9. package/lib/index.cjs6.js.gz +0 -0
  10. package/lib/index.cjs6.js.map +1 -1
  11. package/lib/index.es2.js +2 -2
  12. package/lib/index.es5.js +2 -2
  13. package/lib/index.es5.js.gz +0 -0
  14. package/lib/index.es6.js +201 -201
  15. package/lib/index.es6.js.gz +0 -0
  16. package/lib/index.es6.js.map +1 -1
  17. package/lib/mqtt.min.cjs.js +1 -1
  18. package/lib/mqtt.min.cjs.js.gz +0 -0
  19. package/lib/mqtt.min.cjs.js.map +1 -1
  20. package/lib/mqtt.min.es.js +14 -7
  21. package/lib/mqtt.min.es.js.gz +0 -0
  22. package/lib/mqtt.min.es.js.map +1 -1
  23. package/lib/style.css +1 -1
  24. package/lib/style.css.gz +0 -0
  25. package/lib/theme.cjs.js +1 -1
  26. package/lib/theme.es.js +1 -1
  27. package/lib/translate.cjs.js +1 -1
  28. package/lib/translate.es.js +1 -1
  29. package/lib/utils.cjs.js +1 -1
  30. package/lib/utils.es.js +3 -3
  31. package/package.json +3 -3
  32. package/types/components/YxDialog/index.vue.d.ts +1 -1
  33. package/types/components/YxDrawer/index.vue.d.ts +1 -1
  34. package/types/components/YxForm/index.vue.d.ts +5 -3
  35. package/types/components/YxForm/type.d.ts +5 -5
  36. package/types/components/YxTable/index.vue.d.ts +3 -2
  37. package/types/components/YxTable/type.d.ts +2 -1
  38. package/types/components/YxUpload/index.vue.d.ts +4 -1
  39. package/types/components/index.d.ts +0 -1
  40. package/types/components/type.d.ts +0 -1
  41. package/types/utils/common/index.d.ts +6 -3
  42. package/lib/index.es2.js.gz +0 -0
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
21
- import { ElMessage } from "element-plus";
21
+ import { ElMessage, ElMessageBox } from "element-plus";
22
22
  import "./index.es12.js";
23
23
  import { d as dayjs, c as commonjsGlobal } from "./dayjs.min.es.js";
24
24
  const notifyMessageToSystems = (message) => {
@@ -203,9 +203,16 @@ const getCownDownTime = (time) => {
203
203
  }
204
204
  return formattedTime;
205
205
  };
206
- function isTabActive() {
207
- return document.visibilityState === "visible" && document.hasFocus();
208
- }
206
+ const useConfirm = (content, confrmCallback, options = {}) => {
207
+ ElMessageBox.confirm(content, (options == null ? void 0 : options.title) || "提示", __spreadValues({
208
+ confirmButtonText: "确定",
209
+ cancelButtonText: "取消",
210
+ type: "warning"
211
+ }, options)).then(() => {
212
+ confrmCallback();
213
+ }).catch(() => {
214
+ });
215
+ };
209
216
  class YxSubscribe {
210
217
  constructor() {
211
218
  __publicField(this, "subscribers");
@@ -7057,14 +7064,14 @@ export {
7057
7064
  copyText as c,
7058
7065
  isDarkColor as d,
7059
7066
  enumToArray as e,
7060
- isTabActive as f,
7067
+ yxSubscribe as f,
7061
7068
  getCownDownTime as g,
7062
- yxSubscribe as h,
7069
+ commonjsRequire as h,
7063
7070
  isColorEqual as i,
7064
- commonjsRequire as j,
7065
7071
  mqtt_minExports as m,
7066
7072
  notifyMessageToSystems as n,
7067
7073
  receiveMessage as r,
7074
+ useConfirm as u,
7068
7075
  yxMessage as y
7069
7076
  };
7070
7077
  //# sourceMappingURL=mqtt.min.es.js.map
Binary file