vdesign-ui 0.2.5 → 0.2.7

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.
@@ -219,30 +219,6 @@ module.exports = !DESCRIPTORS && !fails(function () {
219
219
  });
220
220
 
221
221
 
222
- /***/ }),
223
-
224
- /***/ "0d26":
225
- /***/ (function(module, exports, __webpack_require__) {
226
-
227
- "use strict";
228
-
229
- var uncurryThis = __webpack_require__("e330");
230
-
231
- var $Error = Error;
232
- var replace = uncurryThis(''.replace);
233
-
234
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
235
- // eslint-disable-next-line redos/no-vulnerable -- safe
236
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
237
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
238
-
239
- module.exports = function (stack, dropEntries) {
240
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
241
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
242
- } return stack;
243
- };
244
-
245
-
246
222
  /***/ }),
247
223
 
248
224
  /***/ "0d51":
@@ -454,20 +430,6 @@ module.exports = typeof documentAll == 'undefined' && documentAll !== undefined
454
430
 
455
431
  // extracted by mini-css-extract-plugin
456
432
 
457
- /***/ }),
458
-
459
- /***/ "1787":
460
- /***/ (function(module, exports, __webpack_require__) {
461
-
462
- "use strict";
463
-
464
- var isObject = __webpack_require__("861d");
465
-
466
- module.exports = function (argument) {
467
- return isObject(argument) || argument === null;
468
- };
469
-
470
-
471
433
  /***/ }),
472
434
 
473
435
  /***/ "1a2d":
@@ -8973,25 +8935,6 @@ if (inBrowser) {
8973
8935
  /* unused harmony reexport * */
8974
8936
 
8975
8937
 
8976
- /***/ }),
8977
-
8978
- /***/ "2ba4":
8979
- /***/ (function(module, exports, __webpack_require__) {
8980
-
8981
- "use strict";
8982
-
8983
- var NATIVE_BIND = __webpack_require__("40d5");
8984
-
8985
- var FunctionPrototype = Function.prototype;
8986
- var apply = FunctionPrototype.apply;
8987
- var call = FunctionPrototype.call;
8988
-
8989
- // eslint-disable-next-line es/no-reflect -- safe
8990
- module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
8991
- return call.apply(apply, arguments);
8992
- });
8993
-
8994
-
8995
8938
  /***/ }),
8996
8939
 
8997
8940
  /***/ "2c81":
@@ -9151,24 +9094,6 @@ var uncurryThis = __webpack_require__("e330");
9151
9094
  module.exports = uncurryThis({}.isPrototypeOf);
9152
9095
 
9153
9096
 
9154
- /***/ }),
9155
-
9156
- /***/ "3bbe":
9157
- /***/ (function(module, exports, __webpack_require__) {
9158
-
9159
- "use strict";
9160
-
9161
- var isPossiblePrototype = __webpack_require__("1787");
9162
-
9163
- var $String = String;
9164
- var $TypeError = TypeError;
9165
-
9166
- module.exports = function (argument) {
9167
- if (isPossiblePrototype(argument)) return argument;
9168
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
9169
- };
9170
-
9171
-
9172
9097
  /***/ }),
9173
9098
 
9174
9099
  /***/ "3c69":
@@ -9973,28 +9898,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUkAAADsCAMAAADO
9973
9898
 
9974
9899
  // extracted by mini-css-extract-plugin
9975
9900
 
9976
- /***/ }),
9977
-
9978
- /***/ "6f19":
9979
- /***/ (function(module, exports, __webpack_require__) {
9980
-
9981
- "use strict";
9982
-
9983
- var createNonEnumerableProperty = __webpack_require__("9112");
9984
- var clearErrorStack = __webpack_require__("0d26");
9985
- var ERROR_STACK_INSTALLABLE = __webpack_require__("b980");
9986
-
9987
- // non-standard V8
9988
- var captureStackTrace = Error.captureStackTrace;
9989
-
9990
- module.exports = function (error, C, stack, dropEntries) {
9991
- if (ERROR_STACK_INSTALLABLE) {
9992
- if (captureStackTrace) captureStackTrace(error, C);
9993
- else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
9994
- }
9995
- };
9996
-
9997
-
9998
9901
  /***/ }),
9999
9902
 
10000
9903
  /***/ "6fa5":
@@ -10013,33 +9916,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUkAAADsCAMAAADO
10013
9916
  /* unused harmony reexport * */
10014
9917
 
10015
9918
 
10016
- /***/ }),
10017
-
10018
- /***/ "7156":
10019
- /***/ (function(module, exports, __webpack_require__) {
10020
-
10021
- "use strict";
10022
-
10023
- var isCallable = __webpack_require__("1626");
10024
- var isObject = __webpack_require__("861d");
10025
- var setPrototypeOf = __webpack_require__("d2bb");
10026
-
10027
- // makes subclassing work correct for wrapped built-ins
10028
- module.exports = function ($this, dummy, Wrapper) {
10029
- var NewTarget, NewTargetPrototype;
10030
- if (
10031
- // it can work only with native `setPrototypeOf`
10032
- setPrototypeOf &&
10033
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
10034
- isCallable(NewTarget = dummy.constructor) &&
10035
- NewTarget !== Wrapper &&
10036
- isObject(NewTargetPrototype = NewTarget.prototype) &&
10037
- NewTargetPrototype !== Wrapper.prototype
10038
- ) setPrototypeOf($this, NewTargetPrototype);
10039
- return $this;
10040
- };
10041
-
10042
-
10043
9919
  /***/ }),
10044
9920
 
10045
9921
  /***/ "7234":
@@ -10054,24 +9930,6 @@ module.exports = function (it) {
10054
9930
  };
10055
9931
 
10056
9932
 
10057
- /***/ }),
10058
-
10059
- /***/ "7282":
10060
- /***/ (function(module, exports, __webpack_require__) {
10061
-
10062
- "use strict";
10063
-
10064
- var uncurryThis = __webpack_require__("e330");
10065
- var aCallable = __webpack_require__("59ed");
10066
-
10067
- module.exports = function (object, key, method) {
10068
- try {
10069
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
10070
- return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
10071
- } catch (error) { /* empty */ }
10072
- };
10073
-
10074
-
10075
9933
  /***/ }),
10076
9934
 
10077
9935
  /***/ "7284":
@@ -10776,43 +10634,6 @@ module.exports = function (METHOD_NAME, argument) {
10776
10634
 
10777
10635
  // extracted by mini-css-extract-plugin
10778
10636
 
10779
- /***/ }),
10780
-
10781
- /***/ "ab36":
10782
- /***/ (function(module, exports, __webpack_require__) {
10783
-
10784
- "use strict";
10785
-
10786
- var isObject = __webpack_require__("861d");
10787
- var createNonEnumerableProperty = __webpack_require__("9112");
10788
-
10789
- // `InstallErrorCause` abstract operation
10790
- // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
10791
- module.exports = function (O, options) {
10792
- if (isObject(options) && 'cause' in options) {
10793
- createNonEnumerableProperty(O, 'cause', options.cause);
10794
- }
10795
- };
10796
-
10797
-
10798
- /***/ }),
10799
-
10800
- /***/ "aeb0":
10801
- /***/ (function(module, exports, __webpack_require__) {
10802
-
10803
- "use strict";
10804
-
10805
- var defineProperty = __webpack_require__("9bf2").f;
10806
-
10807
- module.exports = function (Target, Source, key) {
10808
- key in Target || defineProperty(Target, key, {
10809
- configurable: true,
10810
- get: function () { return Source[key]; },
10811
- set: function (it) { Source[key] = it; }
10812
- });
10813
- };
10814
-
10815
-
10816
10637
  /***/ }),
10817
10638
 
10818
10639
  /***/ "aeb7":
@@ -10919,25 +10740,6 @@ module.exports = function (name) {
10919
10740
  };
10920
10741
 
10921
10742
 
10922
- /***/ }),
10923
-
10924
- /***/ "b980":
10925
- /***/ (function(module, exports, __webpack_require__) {
10926
-
10927
- "use strict";
10928
-
10929
- var fails = __webpack_require__("d039");
10930
- var createPropertyDescriptor = __webpack_require__("5c6c");
10931
-
10932
- module.exports = !fails(function () {
10933
- var error = new Error('a');
10934
- if (!('stack' in error)) return true;
10935
- // eslint-disable-next-line es/no-object-defineproperty -- safe
10936
- Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
10937
- return error.stack !== 7;
10938
- });
10939
-
10940
-
10941
10743
  /***/ }),
10942
10744
 
10943
10745
  /***/ "ba39":
@@ -11533,43 +11335,6 @@ function createNamespace(name) {
11533
11335
  return [createComponent(name), createBEM(name), createI18N(name)];
11534
11336
  }
11535
11337
 
11536
- /***/ }),
11537
-
11538
- /***/ "d2bb":
11539
- /***/ (function(module, exports, __webpack_require__) {
11540
-
11541
- "use strict";
11542
-
11543
- /* eslint-disable no-proto -- safe */
11544
- var uncurryThisAccessor = __webpack_require__("7282");
11545
- var isObject = __webpack_require__("861d");
11546
- var requireObjectCoercible = __webpack_require__("1d80");
11547
- var aPossiblePrototype = __webpack_require__("3bbe");
11548
-
11549
- // `Object.setPrototypeOf` method
11550
- // https://tc39.es/ecma262/#sec-object.setprototypeof
11551
- // Works with __proto__ only. Old v8 can't work with null proto objects.
11552
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
11553
- module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
11554
- var CORRECT_SETTER = false;
11555
- var test = {};
11556
- var setter;
11557
- try {
11558
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
11559
- setter(test, []);
11560
- CORRECT_SETTER = test instanceof Array;
11561
- } catch (error) { /* empty */ }
11562
- return function setPrototypeOf(O, proto) {
11563
- requireObjectCoercible(O);
11564
- aPossiblePrototype(proto);
11565
- if (!isObject(O)) return O;
11566
- if (CORRECT_SETTER) setter(O, proto);
11567
- else O.__proto__ = proto;
11568
- return O;
11569
- };
11570
- }() : undefined);
11571
-
11572
-
11573
11338
  /***/ }),
11574
11339
 
11575
11340
  /***/ "d2f8":
@@ -11686,72 +11451,6 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
11686
11451
  };
11687
11452
 
11688
11453
 
11689
- /***/ }),
11690
-
11691
- /***/ "d9e2":
11692
- /***/ (function(module, exports, __webpack_require__) {
11693
-
11694
- "use strict";
11695
-
11696
- /* eslint-disable no-unused-vars -- required for functions `.length` */
11697
- var $ = __webpack_require__("23e7");
11698
- var global = __webpack_require__("da84");
11699
- var apply = __webpack_require__("2ba4");
11700
- var wrapErrorConstructorWithCause = __webpack_require__("e5cb");
11701
-
11702
- var WEB_ASSEMBLY = 'WebAssembly';
11703
- var WebAssembly = global[WEB_ASSEMBLY];
11704
-
11705
- // eslint-disable-next-line es/no-error-cause -- feature detection
11706
- var FORCED = new Error('e', { cause: 7 }).cause !== 7;
11707
-
11708
- var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
11709
- var O = {};
11710
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
11711
- $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
11712
- };
11713
-
11714
- var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
11715
- if (WebAssembly && WebAssembly[ERROR_NAME]) {
11716
- var O = {};
11717
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
11718
- $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
11719
- }
11720
- };
11721
-
11722
- // https://tc39.es/ecma262/#sec-nativeerror
11723
- exportGlobalErrorCauseWrapper('Error', function (init) {
11724
- return function Error(message) { return apply(init, this, arguments); };
11725
- });
11726
- exportGlobalErrorCauseWrapper('EvalError', function (init) {
11727
- return function EvalError(message) { return apply(init, this, arguments); };
11728
- });
11729
- exportGlobalErrorCauseWrapper('RangeError', function (init) {
11730
- return function RangeError(message) { return apply(init, this, arguments); };
11731
- });
11732
- exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
11733
- return function ReferenceError(message) { return apply(init, this, arguments); };
11734
- });
11735
- exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
11736
- return function SyntaxError(message) { return apply(init, this, arguments); };
11737
- });
11738
- exportGlobalErrorCauseWrapper('TypeError', function (init) {
11739
- return function TypeError(message) { return apply(init, this, arguments); };
11740
- });
11741
- exportGlobalErrorCauseWrapper('URIError', function (init) {
11742
- return function URIError(message) { return apply(init, this, arguments); };
11743
- });
11744
- exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
11745
- return function CompileError(message) { return apply(init, this, arguments); };
11746
- });
11747
- exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
11748
- return function LinkError(message) { return apply(init, this, arguments); };
11749
- });
11750
- exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
11751
- return function RuntimeError(message) { return apply(init, this, arguments); };
11752
- });
11753
-
11754
-
11755
11454
  /***/ }),
11756
11455
 
11757
11456
  /***/ "da84":
@@ -11880,20 +11579,6 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
11880
11579
  };
11881
11580
 
11882
11581
 
11883
- /***/ }),
11884
-
11885
- /***/ "e391":
11886
- /***/ (function(module, exports, __webpack_require__) {
11887
-
11888
- "use strict";
11889
-
11890
- var toString = __webpack_require__("577e");
11891
-
11892
- module.exports = function (argument, $default) {
11893
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
11894
- };
11895
-
11896
-
11897
11582
  /***/ }),
11898
11583
 
11899
11584
  /***/ "e3b3":
@@ -11912,79 +11597,6 @@ module.exports = function (argument, $default) {
11912
11597
  /* unused harmony reexport * */
11913
11598
 
11914
11599
 
11915
- /***/ }),
11916
-
11917
- /***/ "e5cb":
11918
- /***/ (function(module, exports, __webpack_require__) {
11919
-
11920
- "use strict";
11921
-
11922
- var getBuiltIn = __webpack_require__("d066");
11923
- var hasOwn = __webpack_require__("1a2d");
11924
- var createNonEnumerableProperty = __webpack_require__("9112");
11925
- var isPrototypeOf = __webpack_require__("3a9b");
11926
- var setPrototypeOf = __webpack_require__("d2bb");
11927
- var copyConstructorProperties = __webpack_require__("e893");
11928
- var proxyAccessor = __webpack_require__("aeb0");
11929
- var inheritIfRequired = __webpack_require__("7156");
11930
- var normalizeStringArgument = __webpack_require__("e391");
11931
- var installErrorCause = __webpack_require__("ab36");
11932
- var installErrorStack = __webpack_require__("6f19");
11933
- var DESCRIPTORS = __webpack_require__("83ab");
11934
- var IS_PURE = __webpack_require__("c430");
11935
-
11936
- module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
11937
- var STACK_TRACE_LIMIT = 'stackTraceLimit';
11938
- var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
11939
- var path = FULL_NAME.split('.');
11940
- var ERROR_NAME = path[path.length - 1];
11941
- var OriginalError = getBuiltIn.apply(null, path);
11942
-
11943
- if (!OriginalError) return;
11944
-
11945
- var OriginalErrorPrototype = OriginalError.prototype;
11946
-
11947
- // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
11948
- if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
11949
-
11950
- if (!FORCED) return OriginalError;
11951
-
11952
- var BaseError = getBuiltIn('Error');
11953
-
11954
- var WrappedError = wrapper(function (a, b) {
11955
- var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
11956
- var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
11957
- if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
11958
- installErrorStack(result, WrappedError, result.stack, 2);
11959
- if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
11960
- if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
11961
- return result;
11962
- });
11963
-
11964
- WrappedError.prototype = OriginalErrorPrototype;
11965
-
11966
- if (ERROR_NAME !== 'Error') {
11967
- if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
11968
- else copyConstructorProperties(WrappedError, BaseError, { name: true });
11969
- } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
11970
- proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
11971
- proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
11972
- }
11973
-
11974
- copyConstructorProperties(WrappedError, OriginalError);
11975
-
11976
- if (!IS_PURE) try {
11977
- // Safari 13- bug: WebAssembly errors does not have a proper `.name`
11978
- if (OriginalErrorPrototype.name !== ERROR_NAME) {
11979
- createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
11980
- }
11981
- OriginalErrorPrototype.constructor = WrappedError;
11982
- } catch (error) { /* empty */ }
11983
-
11984
- return WrappedError;
11985
- };
11986
-
11987
-
11988
11600
  /***/ }),
11989
11601
 
11990
11602
  /***/ "e624":
@@ -21075,9 +20687,6 @@ var headnav_component = normalizeComponent(
21075
20687
  )
21076
20688
 
21077
20689
  /* harmony default export */ var headnav = (headnav_component.exports);
21078
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
21079
- var es_error_cause = __webpack_require__("d9e2");
21080
-
21081
20690
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75d8bda1-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/toast/index.vue?vue&type=template&id=7c605e5b
21082
20691
  var toastvue_type_template_id_7c605e5b_render = function render() {
21083
20692
  var _vm = this,
@@ -21173,95 +20782,76 @@ var toast_component = normalizeComponent(
21173
20782
 
21174
20783
 
21175
20784
 
21176
-
21177
20785
  let timer = null;
21178
-
21179
- /**
21180
- * 使用新类继承 VUE 扩展组件
21181
- */
21182
- class toast_Toast extends vue_runtime_esm["a" /* default */].extend(components_toast) {
20786
+ let currentToast = null;
20787
+ class toast_VdToast extends vue_runtime_esm["a" /* default */].extend(components_toast) {
21183
20788
  constructor(options) {
21184
20789
  super();
21185
- const type = Object.prototype.toString.call(options);
21186
- /**
21187
- * 赋值虚拟节点
21188
- */
21189
20790
  this.vm = this.$mount();
21190
- /**
21191
- * 判断 options 类型
21192
- */
21193
- if (type === '[object String]' || type === '[object Number]') {
20791
+
20792
+ // 支持字符串或对象传入
20793
+ if (typeof options === 'string' || typeof options === 'number') {
21194
20794
  this.message = options;
21195
- } else if (type === '[object Object]') {
21196
- /**
21197
- * 循环遍历,设置该类属性
21198
- */
21199
- Object.keys(options).forEach(elem => {
21200
- this[elem] = options[elem];
21201
- });
21202
- } else {
21203
- /**
21204
- * 抛出错误
21205
- */
21206
- throw new Error(`${JSON.stringify(options)} is not Number, String or Object`);
20795
+ } else if (typeof options === 'object') {
20796
+ Object.assign(this, options);
21207
20797
  }
21208
-
21209
- // // 设置具名插槽内容
21210
- // if (options.slotContent) {
21211
- // const slotContent = options.slotContent;
21212
- // this.$slots.icon = slotContent.icon ? [this.$createElement('div', { domProps: { innerHTML: slotContent.icon } })] : [];
21213
- // this.$slots.content = slotContent.content ? [this.$createElement('div', { domProps: { innerHTML: slotContent.content } })] : [];
21214
- // }
21215
-
21216
20798
  this.init();
21217
20799
  }
21218
-
21219
- /**
21220
- * 初始化方法
21221
- */
21222
20800
  init() {
21223
- /**
21224
- * 把虚拟 DOM 插入到真实 DOM 树中
21225
- */
21226
20801
  if (inBrowser) {
21227
- document.body.appendChild(this.vm.$el); // 将虚拟 DOM 插入真实 DOM
20802
+ document.body.appendChild(this.vm.$el);
21228
20803
  this.start();
21229
20804
  }
21230
20805
  }
21231
-
21232
- /**
21233
- * 开始此组件
21234
- */
21235
20806
  start() {
21236
20807
  clearTimeout(timer);
21237
- /**
21238
- * 在挂载真实 DOM 树后显示过渡效果
21239
- */
21240
20808
  timer = setTimeout(() => {
21241
20809
  this.isShow = true;
21242
- this.end();
20810
+ if (this.duration > 0) {
20811
+ this.end();
20812
+ }
21243
20813
  }, 100);
21244
20814
  }
21245
-
21246
- /**
21247
- * 结束此组件
21248
- */
21249
20815
  end() {
21250
- /**
21251
- * 关闭过渡效果之后移除真实 DOM 树节点
21252
- */
21253
- setTimeout(() => {
21254
- this.isShow = false;
21255
- setTimeout(() => {
21256
- if (inBrowser) {
21257
- document.body.removeChild(this.vm.$el);
21258
- }
21259
- }, 500);
21260
- }, this.duration);
20816
+ clearTimeout(timer);
20817
+ if (this.duration > 0) {
20818
+ timer = setTimeout(() => {
20819
+ this.isShow = false;
20820
+ setTimeout(() => {
20821
+ // 检查元素是否仍在 DOM 中
20822
+ if (inBrowser && document.body.contains(this.vm.$el)) {
20823
+ document.body.removeChild(this.vm.$el);
20824
+ }
20825
+ }, 500);
20826
+ }, this.duration);
20827
+ }
20828
+ }
20829
+ clear() {
20830
+ this.isShow = false;
20831
+ clearTimeout(timer);
20832
+ // 检查元素是否仍在 DOM 中
20833
+ if (inBrowser && document.body.contains(this.vm.$el)) {
20834
+ document.body.removeChild(this.vm.$el);
20835
+ }
21261
20836
  }
21262
20837
  }
21263
- const GetToast = options => new toast_Toast(options);
21264
- /* harmony default export */ var packages_components_toast = (GetToast);
20838
+
20839
+ // 创建静态方法以支持直接调用
20840
+ const showToast = options => {
20841
+ currentToast && currentToast.clear(); // 清除现有的 toast
20842
+ currentToast = new toast_VdToast(options); // 创建新的 toast 实例
20843
+ return currentToast;
20844
+ };
20845
+
20846
+ // 添加静态方法,支持手动清除
20847
+ showToast.clear = () => {
20848
+ currentToast && currentToast.clear();
20849
+ currentToast = null;
20850
+ };
20851
+
20852
+ // 在 Vue 的原型上挂载,方便全局调用
20853
+ vue_runtime_esm["a" /* default */].prototype.$VdToast = showToast;
20854
+ /* harmony default export */ var packages_components_toast = (showToast);
21265
20855
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75d8bda1-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/footer/index.vue?vue&type=template&id=2c9567c1
21266
20856
  var footervue_type_template_id_2c9567c1_render = function render() {
21267
20857
  var _vm = this,
@@ -24996,7 +24586,7 @@ var Toast_createNamespace = Object(create["a" /* createNamespace */])('toast'),
24996
24586
  Toast_createComponent = Toast_createNamespace[0],
24997
24587
  Toast_bem = Toast_createNamespace[1];
24998
24588
 
24999
- /* harmony default export */ var es_toast_Toast = (Toast_createComponent({
24589
+ /* harmony default export */ var Toast = (Toast_createComponent({
25000
24590
  mixins: [PopupMixin()],
25001
24591
  props: {
25002
24592
  icon: String,
@@ -25198,7 +24788,7 @@ function createInstance() {
25198
24788
  });
25199
24789
 
25200
24790
  if (!queue.length || multiple) {
25201
- var toast = new (vue_runtime_esm["a" /* default */].extend(es_toast_Toast))({
24791
+ var toast = new (vue_runtime_esm["a" /* default */].extend(Toast))({
25202
24792
  el: document.createElement('div')
25203
24793
  });
25204
24794
  toast.$on('input', function (value) {
@@ -25219,7 +24809,7 @@ function transformOptions(options) {
25219
24809
  });
25220
24810
  }
25221
24811
 
25222
- function vant_es_toast_Toast(options) {
24812
+ function toast_Toast(options) {
25223
24813
  if (options === void 0) {
25224
24814
  options = {};
25225
24815
  }
@@ -25270,17 +24860,17 @@ function vant_es_toast_Toast(options) {
25270
24860
 
25271
24861
  var toast_createMethod = function createMethod(type) {
25272
24862
  return function (options) {
25273
- return vant_es_toast_Toast(_extends({
24863
+ return toast_Toast(_extends({
25274
24864
  type: type
25275
24865
  }, parseOptions(options)));
25276
24866
  };
25277
24867
  };
25278
24868
 
25279
24869
  ['loading', 'success', 'fail'].forEach(function (method) {
25280
- vant_es_toast_Toast[method] = toast_createMethod(method);
24870
+ toast_Toast[method] = toast_createMethod(method);
25281
24871
  });
25282
24872
 
25283
- vant_es_toast_Toast.clear = function (all) {
24873
+ toast_Toast.clear = function (all) {
25284
24874
  if (queue.length) {
25285
24875
  if (all) {
25286
24876
  queue.forEach(function (toast) {
@@ -25295,7 +24885,7 @@ vant_es_toast_Toast.clear = function (all) {
25295
24885
  }
25296
24886
  };
25297
24887
 
25298
- vant_es_toast_Toast.setDefaultOptions = function (type, options) {
24888
+ toast_Toast.setDefaultOptions = function (type, options) {
25299
24889
  if (typeof type === 'string') {
25300
24890
  defaultOptionsMap[type] = options;
25301
24891
  } else {
@@ -25303,7 +24893,7 @@ vant_es_toast_Toast.setDefaultOptions = function (type, options) {
25303
24893
  }
25304
24894
  };
25305
24895
 
25306
- vant_es_toast_Toast.resetDefaultOptions = function (type) {
24896
+ toast_Toast.resetDefaultOptions = function (type) {
25307
24897
  if (typeof type === 'string') {
25308
24898
  defaultOptionsMap[type] = null;
25309
24899
  } else {
@@ -25312,7 +24902,7 @@ vant_es_toast_Toast.resetDefaultOptions = function (type) {
25312
24902
  }
25313
24903
  };
25314
24904
 
25315
- vant_es_toast_Toast.allowMultiple = function (value) {
24905
+ toast_Toast.allowMultiple = function (value) {
25316
24906
  if (value === void 0) {
25317
24907
  value = true;
25318
24908
  }
@@ -25320,12 +24910,12 @@ vant_es_toast_Toast.allowMultiple = function (value) {
25320
24910
  multiple = value;
25321
24911
  };
25322
24912
 
25323
- vant_es_toast_Toast.install = function () {
25324
- vue_runtime_esm["a" /* default */].use(es_toast_Toast);
24913
+ toast_Toast.install = function () {
24914
+ vue_runtime_esm["a" /* default */].use(Toast);
25325
24915
  };
25326
24916
 
25327
- vue_runtime_esm["a" /* default */].prototype.$toast = vant_es_toast_Toast;
25328
- /* harmony default export */ var vant_es_toast = (vant_es_toast_Toast);
24917
+ vue_runtime_esm["a" /* default */].prototype.$toast = toast_Toast;
24918
+ /* harmony default export */ var vant_es_toast = (toast_Toast);
25329
24919
  // CONCATENATED MODULE: ./node_modules/vant/es/calendar/components/Month.js
25330
24920
 
25331
24921