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.
- package/README.md +27 -13
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +5 -6
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs5.js +1 -1
- 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 -2
- package/lib/index.es5.js +2 -2
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +201 -201
- 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 +14 -7
- 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 +3 -3
- package/package.json +3 -3
- 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 +5 -3
- package/types/components/YxForm/type.d.ts +5 -5
- package/types/components/YxTable/index.vue.d.ts +3 -2
- package/types/components/YxTable/type.d.ts +2 -1
- package/types/components/YxUpload/index.vue.d.ts +4 -1
- package/types/components/index.d.ts +0 -1
- package/types/components/type.d.ts +0 -1
- package/types/utils/common/index.d.ts +6 -3
- package/lib/index.es2.js.gz +0 -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,9 +203,16 @@ const getCownDownTime = (time) => {
|
|
|
203
203
|
}
|
|
204
204
|
return formattedTime;
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
7067
|
+
yxSubscribe as f,
|
|
7061
7068
|
getCownDownTime as g,
|
|
7062
|
-
|
|
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
|
package/lib/mqtt.min.es.js.gz
CHANGED
|
Binary file
|