guava-ui 0.1.1 → 0.1.2
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/lib/guava-ui.es.js +5 -4
- package/lib/guava-ui.es.js.map +1 -1
- package/lib/guava-ui.umd.js +2 -2
- package/lib/guava-ui.umd.js.map +1 -1
- package/lib/types/index.d.ts +3 -0
- package/package.json +1 -1
package/lib/guava-ui.es.js
CHANGED
|
@@ -28,7 +28,7 @@ var B = (e, t, n) => new Promise((a, o) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { setActivePinia as dt } from "pinia";
|
|
30
30
|
import { defineComponent as M, computed as b, watch as ae, createVNode as m, useAttrs as pt, openBlock as f, createElementBlock as y, mergeProps as de, unref as r, createElementVNode as w, resolveComponent as le, createBlock as D, normalizeClass as T, withCtx as G, Fragment as F, renderList as oe, createTextVNode as se, toDisplayString as U, ref as z, TransitionGroup as mt, isVNode as ke, normalizeStyle as Se, onMounted as we, createCommentVNode as Be, withModifiers as Ge, resolveDynamicComponent as Le, reactive as ft, nextTick as ht } from "vue";
|
|
31
|
-
import { ElButton as gt, ElDropdown as Xe, ElDropdownMenu as Fe, ElDropdownItem as qe, ElBacktop as vt, ElBreadcrumb as bt, ElBreadcrumbItem as yt, ElIcon as me, ElMenuItem as St, ElSubMenu as Gt, ElScrollbar as Zt, ElMenu as It, ElAutocomplete as kt, ElTabs as Ke, ElTabPane as _e, ElDrawer as wt,
|
|
31
|
+
import { ElButton as gt, ElDropdown as Xe, ElDropdownMenu as Fe, ElDropdownItem as qe, ElBacktop as vt, ElBreadcrumb as bt, ElBreadcrumbItem as yt, ElIcon as me, ElMenuItem as St, ElSubMenu as Gt, ElScrollbar as Zt, ElMenu as It, ElAutocomplete as kt, ElTabs as Ke, ElTabPane as _e, ElDrawer as wt, ElNotification as Rt, ElMessageBox as xt, ElMessage as Tt } from "element-plus";
|
|
32
32
|
import { useStyle as W } from "@/hook/web/useStyle";
|
|
33
33
|
import { useRouter as ve } from "vue-router";
|
|
34
34
|
import { createTypes as Nt, toValidableType as jt } from "vue-types";
|
|
@@ -1248,7 +1248,7 @@ const {
|
|
|
1248
1248
|
st === "en" && (a = "Hint");
|
|
1249
1249
|
const o = t === "error" ? Fn : Xn;
|
|
1250
1250
|
let s = "No message...";
|
|
1251
|
-
et(e) ? s = e.message || "No message..." : typeof e == "string" ? s = e : typeof e == "object" && (s = JSON.stringify(e)),
|
|
1251
|
+
et(e) ? s = e.message || "No message..." : typeof e == "string" ? s = e : typeof e == "object" && (s = JSON.stringify(e)), Rt({
|
|
1252
1252
|
title: a,
|
|
1253
1253
|
message: s,
|
|
1254
1254
|
type: t,
|
|
@@ -1261,7 +1261,7 @@ const {
|
|
|
1261
1261
|
n = "是否确定此操作?";
|
|
1262
1262
|
let o = "提示信息", s = "确定", l = "取消";
|
|
1263
1263
|
return e ? n = e : st === "en" && (n = "Are you sure you want to proceed?", o = "Hint", s = "Ok", l = "Cancel"), new Promise((c, i) => {
|
|
1264
|
-
|
|
1264
|
+
xt.confirm(n, o, {
|
|
1265
1265
|
confirmButtonText: s,
|
|
1266
1266
|
cancelButtonText: l,
|
|
1267
1267
|
type: t,
|
|
@@ -1278,7 +1278,7 @@ const {
|
|
|
1278
1278
|
let a = "No message...";
|
|
1279
1279
|
et(e) ? a = e.message || "No message..." : typeof e == "string" ? a = e : typeof e == "object" && (a = JSON.stringify(e));
|
|
1280
1280
|
const o = t === "error" ? Kn : qn;
|
|
1281
|
-
|
|
1281
|
+
Tt({
|
|
1282
1282
|
message: a,
|
|
1283
1283
|
showClose: !0,
|
|
1284
1284
|
type: t,
|
|
@@ -1305,6 +1305,7 @@ export {
|
|
|
1305
1305
|
Sn as GvSidebarLogo,
|
|
1306
1306
|
Un as GvTagsView,
|
|
1307
1307
|
Zn as GvTheme,
|
|
1308
|
+
_n as alert,
|
|
1308
1309
|
Bo as decrypt,
|
|
1309
1310
|
$t as eachTree,
|
|
1310
1311
|
Vo as encrypt,
|