@titaui/pc 1.10.27 → 1.10.28
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.
|
@@ -80,17 +80,22 @@ var Toast = /*#__PURE__*/function () {
|
|
|
80
80
|
_createClass(Toast, null, [{
|
|
81
81
|
key: "Success",
|
|
82
82
|
value: function () {
|
|
83
|
-
var _Success = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(msg
|
|
84
|
-
var
|
|
83
|
+
var _Success = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(msg) {
|
|
84
|
+
var options,
|
|
85
|
+
key,
|
|
86
|
+
ins,
|
|
87
|
+
canClose,
|
|
88
|
+
_args = arguments;
|
|
85
89
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
86
90
|
while (1) {
|
|
87
91
|
switch (_context.prev = _context.next) {
|
|
88
92
|
case 0:
|
|
93
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
89
94
|
key = (0, _uuid["default"])();
|
|
90
|
-
_context.next =
|
|
95
|
+
_context.next = 4;
|
|
91
96
|
return getInstance();
|
|
92
97
|
|
|
93
|
-
case
|
|
98
|
+
case 4:
|
|
94
99
|
ins = _context.sent;
|
|
95
100
|
canClose = options.canClose !== undefined ? options.canClose : false;
|
|
96
101
|
ins.notice({
|
|
@@ -100,7 +105,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
100
105
|
key: key
|
|
101
106
|
});
|
|
102
107
|
|
|
103
|
-
case
|
|
108
|
+
case 7:
|
|
104
109
|
case "end":
|
|
105
110
|
return _context.stop();
|
|
106
111
|
}
|
|
@@ -108,7 +113,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
108
113
|
}, _callee);
|
|
109
114
|
}));
|
|
110
115
|
|
|
111
|
-
function Success(_x
|
|
116
|
+
function Success(_x) {
|
|
112
117
|
return _Success.apply(this, arguments);
|
|
113
118
|
}
|
|
114
119
|
|
|
@@ -154,7 +159,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
154
159
|
}, _callee2);
|
|
155
160
|
}));
|
|
156
161
|
|
|
157
|
-
function Warning(
|
|
162
|
+
function Warning(_x2) {
|
|
158
163
|
return _Warning.apply(this, arguments);
|
|
159
164
|
}
|
|
160
165
|
|
|
@@ -198,7 +203,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
198
203
|
}, _callee3);
|
|
199
204
|
}));
|
|
200
205
|
|
|
201
|
-
function Error(
|
|
206
|
+
function Error(_x3) {
|
|
202
207
|
return _Error.apply(this, arguments);
|
|
203
208
|
}
|
|
204
209
|
|