yxuse 3.0.49 → 3.0.51
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/README.md +29 -14
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs5.js +2 -2
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.cjs6.js +3 -3
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -1
- package/lib/index.es2.js +2 -1
- package/lib/index.es2.js.map +1 -1
- package/lib/index.es5.js +14 -2
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/lib/index.es6.js +177 -96
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -1
- package/lib/mqtt.min.cjs.js +1 -1
- package/lib/mqtt.min.cjs.js.gz +0 -0
- package/lib/mqtt.min.cjs.js.map +1 -1
- package/lib/mqtt.min.es.js +12 -1
- package/lib/mqtt.min.es.js.gz +0 -0
- package/lib/mqtt.min.es.js.map +1 -1
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +1 -1
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +1 -1
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +2 -1
- package/package.json +3 -3
- package/types/bc/index.d.ts +7 -0
- package/types/components/LogoTitle/index.vue.d.ts +9 -0
- package/types/components/YxDialog/index.vue.d.ts +1 -1
- package/types/components/YxDrawer/index.vue.d.ts +1 -1
- package/types/components/YxForm/index.vue.d.ts +2 -0
- package/types/components/YxForm/type.d.ts +2 -2
- package/types/components/YxTable/type.d.ts +1 -1
- package/types/components/YxUpload/index.vue.d.ts +4 -1
- package/types/utils/common/index.d.ts +8 -0
package/lib/mqtt.min.es.js
CHANGED
|
@@ -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,6 +203,16 @@ const getCownDownTime = (time) => {
|
|
|
203
203
|
}
|
|
204
204
|
return formattedTime;
|
|
205
205
|
};
|
|
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
|
+
};
|
|
206
216
|
class YxSubscribe {
|
|
207
217
|
constructor() {
|
|
208
218
|
__publicField(this, "subscribers");
|
|
@@ -7061,6 +7071,7 @@ export {
|
|
|
7061
7071
|
mqtt_minExports as m,
|
|
7062
7072
|
notifyMessageToSystems as n,
|
|
7063
7073
|
receiveMessage as r,
|
|
7074
|
+
useConfirm as u,
|
|
7064
7075
|
yxMessage as y
|
|
7065
7076
|
};
|
|
7066
7077
|
//# sourceMappingURL=mqtt.min.es.js.map
|
package/lib/mqtt.min.es.js.gz
CHANGED
|
Binary file
|