@94ai/nf-toast-demo 1.1.26 → 1.1.27

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/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { PluginObject } from 'vue';
1
+ import { PluginObject } from 'vue-demi';
2
2
  declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{
3
3
  isShow: boolean;
4
4
  live: boolean;
5
- }, Readonly<import("vue").ExtractPropTypes<{
5
+ }, Readonly<import("vue-demi").ExtractPropTypes<{
6
6
  message: {
7
7
  type: StringConstructor;
8
8
  default(): "默认提示";
@@ -18,7 +18,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
18
18
  closend: {
19
19
  type: FunctionConstructor;
20
20
  };
21
- }>>, Readonly<import("vue").ExtractPropTypes<{
21
+ }>>, Readonly<import("vue-demi").ExtractPropTypes<{
22
22
  message: {
23
23
  type: StringConstructor;
24
24
  default(): "默认提示";
@@ -38,7 +38,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
38
38
  message: string;
39
39
  type: string;
40
40
  closable: boolean;
41
- }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{
41
+ }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
42
42
  message: {
43
43
  type: StringConstructor;
44
44
  default(): "默认提示";
@@ -54,7 +54,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
54
54
  closend: {
55
55
  type: FunctionConstructor;
56
56
  };
57
- }>>> & import("vue").ShallowUnwrapRef<{}> & {
57
+ }>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
58
58
  isShow: boolean;
59
59
  live: boolean;
60
60
  } & import("vue/types/v3-component-options").ExtractComputedReturns<{
@@ -63,7 +63,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
63
63
  iconfonttoast: boolean;
64
64
  };
65
65
  style(): {};
66
- }> & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{
66
+ }> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
67
67
  message: {
68
68
  type: StringConstructor;
69
69
  default(): "默认提示";
@@ -79,7 +79,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
79
79
  closend: {
80
80
  type: FunctionConstructor;
81
81
  };
82
- }>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
82
+ }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
83
83
  message: {
84
84
  type: StringConstructor;
85
85
  default(): "默认提示";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const Vue = require("vue");
3
+ const vueDemi = require("vue-demi");
4
4
  function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
5
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
6
  if (render2) {
@@ -57,7 +57,7 @@ function normalizeComponent(scriptExports, render2, staticRenderFns, functionalT
57
57
  options
58
58
  };
59
59
  }
60
- var _sfc_main = Vue.defineComponent({
60
+ var _sfc_main = vueDemi.defineComponent({
61
61
  name: "ai-toast-demo",
62
62
  props: {
63
63
  message: {
@@ -2898,7 +2898,7 @@ function _objectSpread(target) {
2898
2898
  }
2899
2899
  return target;
2900
2900
  }
2901
- var NotificationConstructor = Vue.extend(Component);
2901
+ var NotificationConstructor = vueDemi.Vue2.extend(Component);
2902
2902
  var instances = [];
2903
2903
  var seed = 1;
2904
2904
  var removeInstance = function removeInstance2(instance) {
@@ -2918,7 +2918,7 @@ var removeInstance = function removeInstance2(instance) {
2918
2918
  }
2919
2919
  };
2920
2920
  var toast = function toast2(options) {
2921
- if (Vue.prototype.$isServer)
2921
+ if (vueDemi.Vue2.prototype.$isServer)
2922
2922
  return;
2923
2923
  var autoClose = options.autoClose, rest = _objectWithoutProperties(options, _excluded);
2924
2924
  var instance = new NotificationConstructor({
@@ -1,4 +1,4 @@
1
- import Vue, { defineComponent } from "vue";
1
+ import { defineComponent, Vue2 } from "vue-demi";
2
2
  function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
3
3
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
4
4
  if (render2) {
@@ -2896,7 +2896,7 @@ function _objectSpread(target) {
2896
2896
  }
2897
2897
  return target;
2898
2898
  }
2899
- var NotificationConstructor = Vue.extend(Component);
2899
+ var NotificationConstructor = Vue2.extend(Component);
2900
2900
  var instances = [];
2901
2901
  var seed = 1;
2902
2902
  var removeInstance = function removeInstance2(instance) {
@@ -2916,7 +2916,7 @@ var removeInstance = function removeInstance2(instance) {
2916
2916
  }
2917
2917
  };
2918
2918
  var toast = function toast2(options) {
2919
- if (Vue.prototype.$isServer)
2919
+ if (Vue2.prototype.$isServer)
2920
2920
  return;
2921
2921
  var autoClose = options.autoClose, rest = _objectWithoutProperties(options, _excluded);
2922
2922
  var instance = new NotificationConstructor({
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ declare const _default: import("vue-demi").DefineComponent<{
2
2
  message: {
3
3
  type: StringConstructor;
4
4
  default(): "默认提示";
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
23
23
  iconfonttoast: boolean;
24
24
  };
25
25
  style(): {};
26
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
26
+ }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
27
27
  message: {
28
28
  type: StringConstructor;
29
29
  default(): "默认提示";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-toast-demo",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "toast示例组件",
5
5
  "keywords": [
6
6
  "toast"
@@ -16,15 +16,17 @@
16
16
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
17
17
  },
18
18
  "dependencies": {
19
- "@94ai/nf-theme-chalk": "^1.1.26"
19
+ "@94ai/nf-theme-chalk": "^1.1.27",
20
+ "vue-demi": "^0.14.5"
20
21
  },
21
22
  "main": "lib/nf-toast-demo.cjs.js",
22
23
  "module": "lib/nf-toast-demo.esm-bundler.js",
23
24
  "style": "lib/nf-toast-demo.css",
24
25
  "types": "lib/index.d.ts",
25
26
  "peerDependencies": {
27
+ "@vue/composition-api": "^1.0.0-rc.1",
26
28
  "element-ui": ">=2.13.2",
27
29
  "vue": ">=2"
28
30
  },
29
- "gitHead": "9a78d355588bca739562941f6f8673c22b8ce070"
31
+ "gitHead": "881c72f588b9adc1d9316104746ba3a45e77b2c0"
30
32
  }