@nutui/nutui 4.0.9 → 4.0.10

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 (168) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +15382 -0
  4. package/dist/nutui.umd.js +1 -7
  5. package/dist/packages/_es/ActionSheet.js +78 -111
  6. package/dist/packages/_es/Address.js +250 -375
  7. package/dist/packages/_es/AddressList.js +269 -354
  8. package/dist/packages/_es/Animate.js +41 -58
  9. package/dist/packages/_es/Audio.js +128 -197
  10. package/dist/packages/_es/AudioOperate.js +60 -71
  11. package/dist/packages/_es/Avatar.js +66 -89
  12. package/dist/packages/_es/AvatarGroup.js +23 -31
  13. package/dist/packages/_es/Backtop.js +59 -99
  14. package/dist/packages/_es/Badge.js +36 -47
  15. package/dist/packages/_es/Barrage.js +68 -147
  16. package/dist/packages/_es/Button.js +47 -66
  17. package/dist/packages/_es/Calendar.js +135 -157
  18. package/dist/packages/_es/CalendarItem.js +6 -6
  19. package/dist/packages/_es/Card.js +42 -56
  20. package/dist/packages/_es/Cascader.js +315 -474
  21. package/dist/packages/_es/Category.js +29 -39
  22. package/dist/packages/_es/CategoryPane.js +57 -83
  23. package/dist/packages/_es/Cell.js +56 -71
  24. package/dist/packages/_es/CellGroup.js +19 -27
  25. package/dist/packages/_es/Checkbox.js +109 -156
  26. package/dist/packages/_es/CheckboxGroup.js +38 -59
  27. package/dist/packages/_es/CircleProgress.js +67 -96
  28. package/dist/packages/_es/Col.js +23 -31
  29. package/dist/packages/_es/Collapse.js +33 -58
  30. package/dist/packages/_es/CollapseItem.js +78 -108
  31. package/dist/packages/_es/Comment.js +207 -279
  32. package/dist/packages/_es/ConfigProvider.js +37 -55
  33. package/dist/packages/_es/Countdown.js +100 -212
  34. package/dist/packages/_es/Countup.js +232 -445
  35. package/dist/packages/_es/DatePicker.js +162 -265
  36. package/dist/packages/_es/Dialog.js +161 -213
  37. package/dist/packages/_es/Divider.js +42 -57
  38. package/dist/packages/_es/Drag.js +70 -153
  39. package/dist/packages/_es/Ecard.js +64 -104
  40. package/dist/packages/_es/Elevator.js +143 -219
  41. package/dist/packages/_es/Ellipsis.js +95 -178
  42. package/dist/packages/_es/Empty.js +23 -39
  43. package/dist/packages/_es/FixedNav.js +93 -116
  44. package/dist/packages/_es/Form.js +107 -178
  45. package/dist/packages/_es/FormItem.js +48 -61
  46. package/dist/packages/_es/Grid.js +5 -6
  47. package/dist/packages/_es/GridItem.js +58 -84
  48. package/dist/packages/_es/Image.js +90 -129
  49. package/dist/packages/_es/ImagePreview.js +256 -412
  50. package/dist/packages/_es/Indicator.js +30 -34
  51. package/dist/packages/_es/InfiniteLoading.js +83 -136
  52. package/dist/packages/_es/Input.js +160 -264
  53. package/dist/packages/_es/InputNumber.js +81 -117
  54. package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
  55. package/dist/packages/_es/Invoice.js +104 -130
  56. package/dist/packages/_es/Layout.js +3 -4
  57. package/dist/packages/_es/List.js +117 -215
  58. package/dist/packages/_es/Menu.js +96 -152
  59. package/dist/packages/_es/MenuItem.js +117 -172
  60. package/dist/packages/_es/Navbar.js +103 -119
  61. package/dist/packages/_es/Noticebar.js +197 -312
  62. package/dist/packages/_es/Notify.js +110 -166
  63. package/dist/packages/_es/NumberKeyboard.js +127 -202
  64. package/dist/packages/_es/Overlay.js +52 -80
  65. package/dist/packages/_es/Pagination.js +70 -100
  66. package/dist/packages/_es/Picker.js +275 -441
  67. package/dist/packages/_es/Popover.js +122 -225
  68. package/dist/packages/_es/Popup.js +4 -4
  69. package/dist/packages/_es/Price.js +44 -82
  70. package/dist/packages/_es/Progress.js +63 -79
  71. package/dist/packages/_es/PullRefresh.js +95 -173
  72. package/dist/packages/_es/Radio.js +4 -4
  73. package/dist/packages/_es/RadioGroup.js +3 -3
  74. package/dist/packages/_es/Range.js +204 -347
  75. package/dist/packages/_es/Rate.js +92 -141
  76. package/dist/packages/_es/Row.js +21 -27
  77. package/dist/packages/_es/Searchbar.js +130 -179
  78. package/dist/packages/_es/ShortPassword.js +69 -93
  79. package/dist/packages/_es/SideNavbar.js +49 -80
  80. package/dist/packages/_es/SideNavbarItem.js +22 -32
  81. package/dist/packages/_es/Signature.js +83 -146
  82. package/dist/packages/_es/Skeleton.js +110 -130
  83. package/dist/packages/_es/Sku.js +250 -343
  84. package/dist/packages/_es/Step.js +59 -86
  85. package/dist/packages/_es/Steps.js +26 -31
  86. package/dist/packages/_es/Sticky.js +4 -4
  87. package/dist/packages/_es/SubSideNavbar.js +52 -74
  88. package/dist/packages/_es/Swipe.js +83 -155
  89. package/dist/packages/_es/Swiper.js +174 -311
  90. package/dist/packages/_es/SwiperItem.js +28 -44
  91. package/dist/packages/_es/Switch.js +55 -68
  92. package/dist/packages/_es/TabPane.js +30 -41
  93. package/dist/packages/_es/Tabbar.js +41 -52
  94. package/dist/packages/_es/TabbarItem.js +61 -82
  95. package/dist/packages/_es/Table.js +109 -165
  96. package/dist/packages/_es/Tabs.js +240 -388
  97. package/dist/packages/_es/Tag.js +44 -61
  98. package/dist/packages/_es/Textarea.js +80 -124
  99. package/dist/packages/_es/TimeDetail.js +49 -76
  100. package/dist/packages/_es/TimePannel.js +34 -48
  101. package/dist/packages/_es/TimeSelect.js +47 -68
  102. package/dist/packages/_es/Toast.js +144 -218
  103. package/dist/packages/_es/Tour.js +138 -192
  104. package/dist/packages/_es/TrendArrow.js +57 -77
  105. package/dist/packages/_es/Uploader.js +234 -359
  106. package/dist/packages/_es/Video.js +191 -316
  107. package/dist/packages/_es/Watermark.js +84 -117
  108. package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
  109. package/dist/packages/_es/common-d218746f.js +116 -0
  110. package/dist/packages/_es/component-234624bc.js +89 -0
  111. package/dist/packages/_es/index-14dfadc4.js +561 -0
  112. package/dist/packages/_es/index-192a3ef6.js +29 -0
  113. package/dist/packages/_es/index-360c5092.js +210 -0
  114. package/dist/packages/_es/index-496e6e05.js +24 -0
  115. package/dist/packages/_es/index-50eed3d9.js +7 -0
  116. package/dist/packages/_es/index-53ec2d4d.js +34 -0
  117. package/dist/packages/_es/index-fadb0974.js +8 -0
  118. package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
  121. package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
  122. package/dist/packages/_es/pxCheck-38173291.js +4 -0
  123. package/dist/packages/_es/raf-a74f1a06.js +16 -0
  124. package/dist/packages/_es/renderIcon-47498b32.js +5 -0
  125. package/dist/packages/col/index.scss +2 -2
  126. package/dist/packages/menuitem/index.scss +7 -10
  127. package/dist/packages/searchbar/index.scss +4 -0
  128. package/dist/smartips/web-types.json +2 -2
  129. package/dist/style.css +1 -1
  130. package/dist/styles/themes/default.scss +158 -55
  131. package/dist/styles/themes/jdb.scss +158 -55
  132. package/dist/styles/themes/jddkh.scss +158 -55
  133. package/dist/styles/themes/jdt.scss +158 -55
  134. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  135. package/dist/types/__VUE/collapseitem/index.vue.d.ts +110 -3
  136. package/dist/types/__VUE/image/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
  138. package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
  139. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  140. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  141. package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
  142. package/dist/types/__VUE/row/index.vue.d.ts +1 -1
  143. package/dist/types/__VUE/searchbar/index.vue.d.ts +121 -5
  144. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  146. package/dist/types/__VUE/table/common.d.ts +55 -2
  147. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  148. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  149. package/dist/types/index.d.ts +1 -1
  150. package/package.json +2 -2
  151. package/dist/packages/_es/Interceptor-956b24fc.js +0 -29
  152. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
  153. package/dist/packages/_es/common-b9a5e726.js +0 -145
  154. package/dist/packages/_es/component-81a4c1d0.js +0 -145
  155. package/dist/packages/_es/index-29892cda.js +0 -33
  156. package/dist/packages/_es/index-43c34ac6.js +0 -30
  157. package/dist/packages/_es/index-54d03fc1.js +0 -8
  158. package/dist/packages/_es/index-79c5dc33.js +0 -10
  159. package/dist/packages/_es/index-7a7385e4.js +0 -67
  160. package/dist/packages/_es/index-87422be8.js +0 -942
  161. package/dist/packages/_es/index-da0a7662.js +0 -259
  162. package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
  163. package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
  164. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
  165. package/dist/packages/_es/mountComponent-8b24c346.js +0 -39
  166. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  167. package/dist/packages/_es/raf-729dad54.js +0 -25
  168. package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
@@ -1,33 +1,25 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
21
- import { c as createComponent } from "./component-81a4c1d0.js";
22
- import { P as Popup } from "./index-da0a7662.js";
23
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ var B = Object.defineProperty, $ = Object.defineProperties;
2
+ var D = Object.getOwnPropertyDescriptors;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var E = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
+ var g = (e, t, n) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ E.call(t, n) && g(e, n, t[n]);
8
+ if (b)
9
+ for (var n of b(t))
10
+ T.call(t, n) && g(e, n, t[n]);
11
+ return e;
12
+ }, a = (e, t) => $(e, D(t));
13
+ import { ref as F, watch as I, resolveComponent as P, openBlock as C, createBlock as M, withCtx as A, createElementVNode as O, normalizeClass as U, normalizeStyle as V, renderSlot as W, createElementBlock as z, Fragment as L, createTextVNode as R, toDisplayString as j, createVNode as N, render as h, onMounted as q, h as G } from "vue";
14
+ import { c as H } from "./component-234624bc.js";
15
+ import { P as k } from "./index-360c5092.js";
16
+ import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
24
17
  import "../locale/lang";
25
18
  import "./Overlay.js";
26
19
  import "@nutui/icons-vue";
27
- const { create } = createComponent("notify");
28
- const _sfc_main = create({
20
+ const { create: K } = H("notify"), Q = K({
29
21
  components: {
30
- [Popup.name]: Popup
22
+ [k.name]: k
31
23
  },
32
24
  props: {
33
25
  id: String,
@@ -45,7 +37,7 @@ const _sfc_main = create({
45
37
  },
46
38
  visible: {
47
39
  type: Boolean,
48
- default: false
40
+ default: !1
49
41
  },
50
42
  position: {
51
43
  type: String,
@@ -53,75 +45,64 @@ const _sfc_main = create({
53
45
  },
54
46
  teleportDisable: {
55
47
  type: Boolean,
56
- default: true
48
+ default: !0
57
49
  },
58
50
  onClose: Function,
59
51
  onClick: Function,
60
52
  unmount: Function
61
53
  },
62
54
  emits: ["update:visible"],
63
- setup(props, { emit }) {
64
- const clickCover = () => {
65
- props.onClick && props.onClick();
66
- };
67
- let timer = null;
68
- const clearTimer = () => {
69
- timer && clearTimeout(timer);
70
- timer = null;
71
- };
72
- const hide = () => {
73
- emit("update:visible", false);
55
+ setup(e, { emit: t }) {
56
+ const n = () => {
57
+ e.onClick && e.onClick();
74
58
  };
75
- const isShowPopup = ref(false);
76
- const unWatch = watch(
77
- () => props.visible,
78
- (newVal) => {
79
- isShowPopup.value = props.visible;
80
- const DURATION = props.duration;
81
- if (newVal && DURATION) {
82
- timer = setTimeout(() => {
83
- hide();
84
- }, DURATION);
85
- }
59
+ let i = null;
60
+ const r = () => {
61
+ i && clearTimeout(i), i = null;
62
+ }, m = () => {
63
+ t("update:visible", !1);
64
+ }, f = F(!1), l = I(
65
+ () => e.visible,
66
+ (w) => {
67
+ f.value = e.visible;
68
+ const v = e.duration;
69
+ w && v && (i = setTimeout(() => {
70
+ m();
71
+ }, v));
86
72
  },
87
- { immediate: true }
73
+ { immediate: !0 }
88
74
  );
89
- const onAfterLeave = () => {
90
- clearTimer();
91
- unWatch && unWatch();
92
- props.unmount && props.unmount(props.id);
93
- props.onClose && props.onClose();
94
- };
95
- return { onAfterLeave, clickCover, isShowPopup };
75
+ return { onAfterLeave: () => {
76
+ r(), l && l(), e.unmount && e.unmount(e.id), e.onClose && e.onClose();
77
+ }, clickCover: n, isShowPopup: f };
96
78
  }
97
79
  });
98
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
99
- const _component_nut_popup = resolveComponent("nut-popup");
100
- return openBlock(), createBlock(_component_nut_popup, {
101
- visible: _ctx.isShowPopup,
102
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.isShowPopup = $event),
103
- position: _ctx.position,
104
- overlay: false,
105
- teleportDisable: _ctx.teleportDisable
80
+ function X(e, t, n, i, r, m) {
81
+ const f = P("nut-popup");
82
+ return C(), M(f, {
83
+ visible: e.isShowPopup,
84
+ "onUpdate:visible": t[1] || (t[1] = (l) => e.isShowPopup = l),
85
+ position: e.position,
86
+ overlay: !1,
87
+ teleportDisable: e.teleportDisable
106
88
  }, {
107
- default: withCtx(() => [
108
- createElementVNode("div", {
109
- class: normalizeClass(["nut-notify", `nut-notify--${_ctx.type}`, _ctx.className]),
110
- style: normalizeStyle({ color: _ctx.color, background: _ctx.background }),
111
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
89
+ default: A(() => [
90
+ O("div", {
91
+ class: U(["nut-notify", `nut-notify--${e.type}`, e.className]),
92
+ style: V({ color: e.color, background: e.background }),
93
+ onClick: t[0] || (t[0] = (...l) => e.clickCover && e.clickCover(...l))
112
94
  }, [
113
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
114
- createTextVNode(toDisplayString(_ctx.msg), 1)
95
+ e.$slots.default ? W(e.$slots, "default", { key: 0 }) : (C(), z(L, { key: 1 }, [
96
+ R(j(e.msg), 1)
115
97
  ], 64))
116
98
  ], 6)
117
99
  ]),
118
100
  _: 3
119
101
  }, 8, ["visible", "position", "teleportDisable"]);
120
102
  }
121
- const Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
122
- const defaultOptions = {
103
+ const y = /* @__PURE__ */ J(Q, [["render", X]]), p = {
123
104
  type: "base",
124
- visible: true,
105
+ visible: !0,
125
106
  msg: "",
126
107
  color: void 0,
127
108
  background: void 0,
@@ -134,111 +115,74 @@ const defaultOptions = {
134
115
  teleport: "",
135
116
  unmount: new Function()
136
117
  };
137
- let idsMap = [];
138
- let optsMap = [];
139
- const clearNotify = (id) => {
140
- if (id) {
141
- const container = document.getElementById(id);
142
- optsMap = optsMap.filter((item) => item.id !== id);
143
- idsMap = idsMap.filter((item) => item !== id);
144
- if (container) {
145
- document.body.removeChild(container);
146
- }
147
- } else {
148
- idsMap.forEach((item) => {
149
- const container = document.getElementById(item);
150
- if (container) {
151
- document.body.removeChild(container);
152
- }
153
- });
154
- optsMap = [];
155
- idsMap = [];
156
- }
157
- };
158
- const updateNotify = (opts) => {
159
- const container = document.getElementById(opts.id);
160
- if (container) {
161
- const currentOpt = optsMap.find((item) => item.id === opts.id);
162
- if (currentOpt) {
163
- opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
164
- } else {
165
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
166
- }
167
- const instance = createVNode(Notify, opts);
168
- render(instance, container);
169
- return instance.component.data;
118
+ let u = [], c = [];
119
+ const S = (e) => {
120
+ if (e) {
121
+ const t = document.getElementById(e);
122
+ c = c.filter((n) => n.id !== e), u = u.filter((n) => n !== e), t && document.body.removeChild(t);
123
+ } else
124
+ u.forEach((t) => {
125
+ const n = document.getElementById(t);
126
+ n && document.body.removeChild(n);
127
+ }), c = [], u = [];
128
+ }, Y = (e) => {
129
+ const t = document.getElementById(e.id);
130
+ if (t) {
131
+ const n = c.find((r) => r.id === e.id);
132
+ n ? e = o(o(o({}, p), n), e) : e = o(o({}, p), e);
133
+ const i = N(y, e);
134
+ return h(i, t), i.component.data;
170
135
  }
171
- };
172
- const mountNotify = (opts) => {
173
- opts.unmount = clearNotify;
174
- let _id;
175
- if (opts.id) {
176
- _id = opts.id;
177
- if (idsMap.find((item) => item === opts.id)) {
178
- return updateNotify(opts);
179
- }
180
- } else {
181
- _id = (/* @__PURE__ */ new Date()).getTime() + "";
182
- }
183
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
184
- opts.id = _id;
185
- idsMap.push(opts.id);
186
- optsMap.push(opts);
187
- const root = document.createElement("view");
188
- root.id = "notify-" + opts.id;
189
- const Wrapper = {
136
+ }, d = (e) => {
137
+ e.unmount = S;
138
+ let t;
139
+ if (e.id) {
140
+ if (t = e.id, u.find((m) => m === e.id))
141
+ return Y(e);
142
+ } else
143
+ t = (/* @__PURE__ */ new Date()).getTime() + "";
144
+ e = o(o({}, p), e), e.id = t, u.push(e.id), c.push(e);
145
+ const n = document.createElement("view");
146
+ n.id = "notify-" + e.id;
147
+ const r = N({
190
148
  setup() {
191
- opts.teleport = `#notify-${opts.id}`;
192
- onMounted(() => {
149
+ return e.teleport = `#notify-${e.id}`, q(() => {
193
150
  setTimeout(() => {
194
- opts.onClose && opts.onClose();
195
- document.body.removeChild(root);
196
- }, opts.duration);
197
- });
198
- return () => {
199
- return h(Notify, opts);
200
- };
151
+ e.onClose && e.onClose(), document.body.removeChild(n);
152
+ }, e.duration);
153
+ }), () => G(y, e);
201
154
  }
202
- };
203
- const instance = createVNode(Wrapper);
204
- document.body.appendChild(root);
205
- render(instance, root);
206
- };
207
- const errorMsg = (msg) => {
208
- if (!msg) {
155
+ });
156
+ document.body.appendChild(n), h(r, n);
157
+ }, s = (e) => {
158
+ if (!e) {
209
159
  console.warn("[NutUI Notify]: msg不能为空");
210
160
  return;
211
161
  }
212
- };
213
- const showNotify = {
214
- text(msg, obj = {}) {
215
- errorMsg(msg);
216
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg }));
162
+ }, le = {
163
+ text(e, t = {}) {
164
+ return s(e), d(a(o({}, t), { msg: e }));
217
165
  },
218
- primary(msg, obj = {}) {
219
- errorMsg(msg);
220
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "primary" }));
166
+ primary(e, t = {}) {
167
+ return s(e), d(a(o({}, t), { msg: e, type: "primary" }));
221
168
  },
222
- success(msg, obj = {}) {
223
- errorMsg(msg);
224
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "success" }));
169
+ success(e, t = {}) {
170
+ return s(e), d(a(o({}, t), { msg: e, type: "success" }));
225
171
  },
226
- danger(msg, obj = {}) {
227
- errorMsg(msg);
228
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "danger" }));
172
+ danger(e, t = {}) {
173
+ return s(e), d(a(o({}, t), { msg: e, type: "danger" }));
229
174
  },
230
- warn(msg, obj = {}) {
231
- errorMsg(msg);
232
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "warning" }));
175
+ warn(e, t = {}) {
176
+ return s(e), d(a(o({}, t), { msg: e, type: "warning" }));
233
177
  },
234
178
  hide() {
235
- clearNotify();
179
+ S();
236
180
  },
237
- install(app) {
238
- app.use(Notify);
181
+ install(e) {
182
+ e.use(y);
239
183
  }
240
184
  };
241
185
  export {
242
- Notify as default,
243
- showNotify
186
+ y as default,
187
+ le as showNotify
244
188
  };